bootstrap: take advantage of POSIX shell features
[gnulib.git] / ChangeLog
1 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2
3         bootstrap: take advantage of POSIX shell features
4
5         The 'bootstrap' script offered by Gnulib script already uses POSIX
6         shell features (like $((...)) arithmetic expansions) that are not
7         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
8         means that bootstrap must already be run using a proper POSIX shell,
9         which will thus provide more features, like ${var#pattern} parameter
10         expansion or inversion of a command exit status with '!'.  We can
11         thus use these features to improve the clarity and the performances
12         of the bootstrap script.
13
14         Suggested by Eric Blake.
15
16         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
17         of sed/expr plus command substitutions, to save some forks.  While
18         we are at it, prefer the POSIX $(...) form of command substitution,
19         rather than the legacy form `...` (since the former is visually
20         clearer and interacts better with quoting), and prefer the idiom:
21           "if ! CMD; then ACTION ..."
22         over the idiom:
23           "if CMD; then :; else ACTION ..."
24         which was required by legacy Bourne shells not supporting '!'.
25
26 2012-05-12  Bruno Haible  <bruno@clisp.org>
27
28         system-quote: Add more comments.
29         * lib/system-quote.h: Add more comments about wilcards and limitations.
30         Suggested by Eli Zaretskii <eliz@gnu.org>.
31
32         sh-quote, system-quote: Add comments about wildcards.
33         * lib/sh-quote.h: Clarify what happens with wildcard characters.
34         * lib/system-quote.h: Likewise.
35         Reported by Eli Zaretskii <eliz@gnu.org>.
36
37 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38
39         fsusage: check for GNU/Linux statvfs problem dynamically
40         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
41         Define STAT_STATFS2_BSIZE too, since in this case the code now
42         checks dynamically whether statvfs is reliable, falling back on
43         Linux-style statfs otherwise.
44         (statvfs_works): New function, for dynamically testing statvfs.
45         (get_fs_usage) [STAT_STATVFS]: Use it.
46         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
47         statvfs on GNU/Linux hosts, since it's now done dynamically.
48
49 2012-05-10  Bruno Haible  <bruno@clisp.org>
50
51         system-quote, execute, spawn-pipe: Escape '?' on Windows.
52         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
53         '?' character.
54         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
55         * tests/test-system-quote-main.c (check_all): Check also strings like
56         "??????????".
57         Reported by Eli Zaretskii <eliz@gnu.org>.
58
59 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60
61         _Noreturn: port config.h to gcc -Wundef
62         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
63         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
64         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
65
66 2012-05-10  Bruno Haible  <bruno@clisp.org>
67
68         system-quote: Refactor.
69         * lib/system-quote.h (system_quote_copy): Fix comment.
70         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
71         New functions, extracted from system_quote_copy.
72         (system_quote_length, system_quote_copy): Use these functions.
73         Reported by Paul Eggert.
74
75 2012-05-08  Bruno Haible  <bruno@clisp.org>
76
77         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
78         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
79
80 2012-05-08  Bruno Haible  <bruno@clisp.org>
81
82         Tests for module 'system-quote'.
83         * modules/system-quote-tests: New file.
84         * tests/test-system-quote.sh: New file.
85         * tests/test-system-quote-main.c: New file.
86         * tests/test-system-quote-child.c: New file.
87
88         New module 'system-quote'.
89         * lib/system-quote.h: New file.
90         * lib/system-quote.c: New file.
91         * modules/system-quote: New file.
92
93 2012-05-08  Bruno Haible  <bruno@clisp.org>
94
95         sh-quote: Make C++ safe and allow multiple inclusion.
96         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
97         declarations in extern "C".
98
99 2012-05-08  Bruno Haible  <bruno@clisp.org>
100
101         sh-quote tests: Make tests stricter.
102         * tests/test-sh-quote.c (check_one): Check the return value of
103         shell_quote_copy.
104         (main): Check a string with a CR character. Check a string that
105         contains UCHAR_MAX.
106
107 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
108
109         warnings.m4: provide a means to specify the program to compile.
110         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
111         (gl_WARN_ADD): here.
112         Use gl_AS_VAR_APPEND.
113         Support an argument to specify the program to compile.
114         (gl_WARN_ADD): Accept an argument to specify the program to compile.
115         AC_SUBST the WARN_CFLAGS when they are used.
116         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
117         leave this to gl_WARN_ADD.
118
119 2012-05-08  Eric Blake  <eblake@redhat.com>
120
121         doc: recommendations on gettext version
122         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
123         choice between versions.
124         * DEPENDENCIES (gettext): Cover both approaches.
125
126 2012-05-08  Jim Meyering  <meyering@redhat.com>
127
128         init.sh: explain why EXEEXT support uses aliases rather than functions
129         * tests/init.sh: Add a comment.
130
131         init.sh: don't let bash aliases interfere with tests
132         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
133         is bash.  This avoids problems for those who alias standard commands to
134         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
135         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
136
137 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
138
139         stdint: be more consistent with glibc, SunOS libc
140         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
141         (gl_int_fast16_t, gl_uint_fast16_t)
142         (gl_int_fast32_t, gl_uint_fast32_t)
143         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
144         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
145         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
146         Be consistent with glibc by default, and with SunOS 5.10 and later
147         if __sun is defined.  This lessens the likelihood of clashes if
148         code compiled for older hosts is combined with code compiled for
149         newer ones.  Problem reported by Niels Möller in
150         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
151
152 2012-05-07  Eric Blake  <eblake@redhat.com>
153
154         isatty: relax license to LGPLv2+
155         * modules/isatty (License): Relax license.
156
157 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
158
159         stat-size: comment fix
160         * lib/stat-size.h: Remove obsolete comment about indenting.
161
162 2012-05-06  Bruno Haible  <bruno@clisp.org>
163
164         Tests for module 'sh-quote'.
165         * modules/sh-quote-tests: New file.
166         * tests/test-sh-quote.c: New file.
167
168 2012-05-06  Bruno Haible  <bruno@clisp.org>
169
170         sh-quote: Improve shell_quote_argv's signature.
171         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
172         * lib/sh-quote.c (shell_quote_argv): Likewise.
173
174 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
175
176         stdint: document issues with int_fast8_t etc.
177         * doc/posix-headers/stdint.texi (stdint.h): Say that other
178         stdint.h substitutes may define these types differently.  See
179         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
180
181 2012-05-05  Bruno Haible  <bruno@clisp.org>
182
183         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
185         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
186         or 'guessing no (mishandles large arguments)'.
187
188 2012-05-05  Bruno Haible  <bruno@clisp.org>
189
190         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
191         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
192         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
193         set gl_cv_func_link_follows_symlink to "guessing no".
194
195 2012-05-05  Bruno Haible  <bruno@clisp.org>
196
197         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
198         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
199         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
200         "guessing no".
201         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
202
203 2012-05-05  Bruno Haible  <bruno@clisp.org>
204
205         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
206         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
207         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
208         set gl_cv_struct_dirent_d_ino to "guessing yes".
209
210 2012-05-05  Bruno Haible  <bruno@clisp.org>
211
212         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
213         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
214         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
215         "guessing yes".
216
217 2012-05-05  Bruno Haible  <bruno@clisp.org>
218
219         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
220         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
221         compiling to a glibc system, set gl_cv_func_signbit and
222         gl_cv_func_signbit_gcc to "guessing yes".
223
224 2012-05-05  Bruno Haible  <bruno@clisp.org>
225
226         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
227         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
228         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
229         to "guessing yes".
230         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
231         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
232
233 2012-05-05  Bruno Haible  <bruno@clisp.org>
234
235         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
236         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
237         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
238         gl_cv_func_realpath_works to "guessing yes".
239
240 2012-05-05  Bruno Haible  <bruno@clisp.org>
241
242         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
244         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
245
246 2012-05-04  Bruno Haible  <bruno@clisp.org>
247
248         Tweak last commit.
249         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
250         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
251
252 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
253
254         unistd_h: make it easier to avoid sys_types_h
255         This is useful for Emacs, which has its own method of porting to
256         Windows, and which therefore does not need the sys_types_h module.
257         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
258         code moved here from gl_SYS_TYPES_H.
259         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
260         using the code directly.
261         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
262         gl_SYS_TYPES_H.
263         * modules/sys_types (Files):
264         * modules/unistd (Files): Add m4/off_t.m4.
265
266 2012-05-03  Bruno Haible  <bruno@clisp.org>
267
268         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
269         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
270         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
271         "guessing yes" or "guessing no".
272         (gl_FUNC_LSTAT): Update.
273         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
274         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
275         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
276
277 2012-05-03  Bruno Haible  <bruno@clisp.org>
278
279         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
280         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
281         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
282         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
283         cross-compiling, choose the first alternative on glibc systems.
284         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
285
286 2012-05-03  Bruno Haible  <bruno@clisp.org>
287
288         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
289         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
290         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
291
292 2012-05-03  Bruno Haible  <bruno@clisp.org>
293
294         chown: Avoid "guessing no" when cross-compiling to glibc systems.
295         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
296
297 2012-05-03  Bruno Haible  <bruno@clisp.org>
298
299         Avoid "guessing no" guesses when cross-compiling to glibc systems.
300         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
301         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
302         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
303         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
304         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
305         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
306         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
307         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
308         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
309         compiling to glibc systems, set gl_cv_func_chown_slash_works,
310         gl_cv_func_chown_ctime_works to "guessing yes".
311         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
312         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
313         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
314         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
315         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
317         compiling to glibc systems, set gl_cv_func_open_directory_works to
318         "guessing yes".
319         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
320         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
321         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
322         "guessing yes".
323         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
324         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
325         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
326         compiling to glibc systems, set gl_cv_func_floorf_ieee to
327         "guessing yes".
328         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
329         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
330         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
331         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
332         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
333         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
334         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
335         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
336         "guessing yes".
337         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
338         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
339         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
340         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
341         "guessing yes".
342         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
343         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
344         "guessing yes".
345         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
346         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
347         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
348         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
349         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
350         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
351         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
352         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
353         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
354         compiling to glibc systems, set gl_cv_func_log10f_ieee to
355         "guessing yes".
356         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
357         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
358         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
359         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
360         "guessing yes".
361         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
362         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
363         "guessing yes".
364         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
365         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
366         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
367         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
368         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
369         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
370         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
371         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
372         compiling to glibc systems, set gl_cv_func_mkfifo_works to
373         "guessing yes".
374         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
375         compiling to glibc systems, set gl_cv_func_mknod_works to
376         "guessing yes".
377         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
378         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
379         "guessing yes".
380         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
381         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
382         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
383         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
384         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
385         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
386         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
387         compiling to glibc systems, set gl_cv_func_svid_putenv to
388         "guessing yes".
389         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
390         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
391         "guessing yes".
392         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
393         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
394         "guessing yes".
395         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
396         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
397         to "guessing yes".
398         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
399         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
400         to "guessing yes".
401         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
402         compiling to glibc systems, set gl_cv_func_rmdir_works to
403         "guessing yes".
404         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
405         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
406         gl_cv_func_unlink_parent_fails to "guessing yes".
407         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
408         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
409         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
410         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
411         gl_cv_func_rename_dest_works to "guessing yes".
412         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
413         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
414         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
415         compiling to glibc systems, set gl_cv_func_roundf_ieee to
416         "guessing yes".
417         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
418         compiling to glibc systems, set gl_cv_func_roundl_ieee to
419         "guessing yes".
420         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
421         compiling to glibc systems, set gl_cv_func_setenv_works to
422         "guessing yes".
423         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
424         compiling to glibc systems, set gl_cv_func_unsetenv_works to
425         "guessing yes".
426         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
427         compiling to glibc systems, set gl_cv_func_sleep_works to
428         "guessing yes".
429         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
430         compiling to glibc systems, set gl_cv_func_stat_file_slash to
431         "guessing yes".
432         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
433         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
434         "guessing yes".
435         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
436         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
437         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
438         compiling to glibc systems, set gl_cv_func_truncf_ieee to
439         "guessing yes".
440         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
441         compiling to glibc systems, set gl_cv_func_truncl_ieee to
442         "guessing yes".
443         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
444         compiling to glibc systems, set gl_cv_func_usleep_works to
445         "guessing yes".
446         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
447         compiling to glibc systems, set gl_cv_func_futimesat_works to
448         "guessing yes".
449
450 2012-05-03  Bruno Haible  <bruno@clisp.org>
451
452         Say "guessing yes" or "guessing no" when cross-compiling.
453         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
454         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
455         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
456         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
457         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
458         am_cv_func_working_getline to "guessing yes" or "guessing no".
459         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
460         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
461         (gl_FUNC_MEMMEM): When cross-compiling, set
462         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
463         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
464         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
466         set gl_cv_func_strcasestr_works_always to "guessing yes" or
467         "guessing no".
468         (gl_FUNC_STRCASESTR): When cross-compiling, set
469         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
470         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
471         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
472         (gl_FUNC_STRSTR): When cross-compiling, set
473         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
474         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
475         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
476         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
477         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
478
479 2012-05-01  Bruno Haible  <bruno@clisp.org>
480
481         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
482         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
483         * build-aux/reloc-ldflags: Likewise.
484         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
485
486 2012-05-01  Bruno Haible  <bruno@clisp.org>
487
488         gnulib-tool: Remove transitional code.
489         * gnulib-tool: Don't warn about --import with 0 arguments any more.
490         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
491
492 2012-05-01  Bruno Haible  <bruno@clisp.org>
493
494         getcwd: Fix misindentation.
495         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
496
497 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
498
499         exclude: process exclude and include directives in order
500         This restores the pre-2009 behavior, and is part of a fix of a
501         grep bug reported by Quentin Arce in
502         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
503         * lib/exclude.c (struct exclude): Remove 'tail' member.
504         (new_exclude_segment): Prepend the new segment instead of appending.
505         Return void, since that's now more convenient.
506         (file_pattern_matches): Renamed from excluded_file_pattern_p.
507         (file_name_matches): Renamed from excluded_file_name_p.
508         (file_pattern_matches, file_name_matches):
509         Return true if the pattern matches, not if it excludes.
510         All callers changed.
511         (excluded_file_name): Process the list in reverse order;
512         since the list is now reversed this restores the pre-2009 behavior.
513         (add_exclude): Adjust to new reversed-order list.  Use local var
514         rather than macro, for clarity.
515         * tests/test-exclude7.sh: Adjust to corrected behavior.
516
517         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
518         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
519         it's not possible here.  Handle the case of \ at end of pattern
520         without dumping core.
521         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
522
523         _Noreturn: future-proof non-GNU and non-MSVC compilers
524         * build-aux/snippet/_Noreturn.h (_Noreturn):
525         * m4/gnulib-common.m4 (gl_COMMON_BODY):
526         Do not define _Noreturn if __STDC_VERSION__ indicates this is
527         C11 or later.  This is more likely to work with random future C
528         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
529         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
530
531         exclude: handle wildcards with FNM_EXTMATCH
532         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
533         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
534         comment that "has wildcards" really means "has or may have
535         wildcards".  Simplify by avoiding the need to call strcspn.
536
537 2012-04-29  Bruno Haible  <bruno@clisp.org>
538
539         gnulib-tool: Fix list of authors.
540         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
541
542 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
543
544         bootstrap: support Automake-NG in $buildreq
545         * bootstrap (check_versions): Handle automake and aclocal from
546         Automake-NG specially.  They can be specified as respectively
547         the "automake-ng" and "aclocal-ng" requirements.
548
549 2012-04-25  Eric Blake  <eblake@redhat.com>
550
551         bootstrap: only force latest Makefile.in.in for gettext module
552         * build-aux/bootstrap (with_gettext): Only install latest
553         Makefile.in.in for projects requesting bleeding edge gettext.
554
555 2012-04-22  Bruno Haible  <bruno@clisp.org>
556
557         doc: Mention reason for replacement on glibc/Linux systems.
558         * doc/posix-functions/dprintf.texi: Mention the problem with special
559         'long double' values.
560         * doc/posix-functions/fprintf.texi: Likewise.
561         * doc/posix-functions/printf.texi: Likewise.
562         * doc/posix-functions/snprintf.texi: Likewise.
563         * doc/posix-functions/sprintf.texi: Likewise.
564         * doc/posix-functions/vdprintf.texi: Likewise.
565         * doc/posix-functions/vfprintf.texi: Likewise.
566         * doc/posix-functions/vprintf.texi: Likewise.
567         * doc/posix-functions/vsnprintf.texi: Likewise.
568         * doc/posix-functions/vsprintf.texi: Likewise.
569         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
570         platforms with F_DUPFD_CLOEXEC problems.
571         * doc/posix-functions/glob.texi: Mention which platforms are affected
572         by the problem with symbolic links.
573         * doc/posix-functions/linkat.texi: Mention the problem with
574         AT_SYMLINK_FOLLOW on Linux.
575
576 2012-04-22  Bruno Haible  <bruno@clisp.org>
577
578         pwrite: Don't replace on all platforms.
579         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
580
581 2012-04-22  Bruno Haible  <bruno@clisp.org>
582
583         rint* tests: Avoid gcc warnings.
584         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
585         * tests/test-rintf.c (INFINITY, NAN): Likewise.
586         * tests/test-rintl.c (INFINITY, NAN): Likewise.
587
588 2012-04-21  Bruno Haible  <bruno@clisp.org>
589
590         users.txt: Update.
591         * users.txt: Add freedink, wdiff. Update URLs for projects that have
592         switched from CVS to git, bzr, or svn.
593
594 2012-04-21  Bruno Haible  <bruno@clisp.org>
595
596         Large File Support for native Windows platforms.
597
598         * m4/largefile.m4 (gl_LARGEFILE): New macro.
599         * modules/largefile (configure.ac): Require gl_LARGEFILE.
600
601         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
602         type.
603         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
604         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
605         * doc/posix-headers/sys_types.texi: Mention the effect of the
606         'largefile' module.
607
608         * lib/fcntl.in.h: Add comments about off_t.
609         * modules/fcntl-h (Depends-on): Add sys_types.
610
611         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
612         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
613         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
614         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
615         * modules/unistd (Depends-on): Add sys_types.
616         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
617
618         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
619         instead of lseek.
620         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
621         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
622         * modules/lseek (Depends-on): Add sys_types.
623
624         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
625         msvc-nothrow.h.
626         (SetFileSize): New function.
627         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
628         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
629         if Large File Support is requested.
630         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
631         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
632
633         * lib/stdio.in.h: Add comments about off_t.
634         * modules/stdio (Depends-on): Add sys_types.
635
636         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
637         instead of ftello.
638         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
639         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
640         (gl_PREREQ_FTELLO): New macro.
641         * modules/ftello (Depends-on): Add sys_types.
642         (configure.ac): Incoke gl_PREREQ_FTELLO.
643
644         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
645         instead of fseeko.
646         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
647         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
648         (gl_PREREQ_FSEEKO): New macro.
649         * modules/fseeko (Depends-on): Add sys_types.
650         (configure.ac): Invoke gl_PREREQ_FSEEKO.
651
652         * lib/sys_stat.in.h: Add comments about off_t.
653         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
654         64-bit integer for st_size in 'struct stat'.
655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
656         Define _GL_WINDOWS_64_BIT_ST_SIZE.
657         * modules/sys_stat (Depends-on): Add sys_types.
658         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
659
660         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
661         instead of stat or _stat.
662
663         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
664         'struct _stati64' instead of fstat and 'struct stat'.
665         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
666         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
667
668         Reported by Ray Satiro <raysatiro@yahoo.com>.
669
670 2012-04-19  Eric Blake  <eblake@redhat.com>
671
672         bootstrap: accommodate older libtool
673         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
674         Reported by Daniel P. Berrange.
675
676 2012-04-19  Jim Meyering  <meyering@redhat.com>
677
678         announce-gen: avoid failure due to lack of Digest::SHA1
679         Even with the preferred Digest::SHA available, this script
680         would fail when the backup module, Digest::SHA1, was not installed.
681         * build-aux/announce-gen: Quote the conditional use of "use".
682         Reported by Reuben Thomas in:
683         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
684
685         bootstrap: don't let a user's CDPATH setting affect this script
686         When CDPATH is set, cd will sometimes generate output.
687         When "cd" is run in a subshell whose output matters, that
688         surprising-to-some output can cause malfunction.
689         Unsetting CDPATH turns off this shell "feature."
690         * build-aux/bootstrap (CDPATH): Unset.
691         Reported by Reuben Thomas in:
692         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
693         and inspired by his patch here:
694         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
695
696 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
697         and Jim Meyering  <meyering@redhat.com>
698
699         maint.mk: catch "see @xref{}" and similar
700         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
701         prohibit "See also @xref{", "Also see @pxref{", and similar.
702
703 2012-04-16  Jim Meyering  <meyering@redhat.com>
704
705         bootstrap: really use gnulib's po/Makefile.in.in
706         * build-aux/bootstrap: Correct the source file name in previous change.
707         Reported by Akim Demaille.
708
709         configmake: correct minor inconsistency in Makefile rule
710         * modules/configmake (Makefile.am): All other rules like this one
711         run the final "mv -f ..." in the same backslash-continued command
712         as the one that does everything else.  This one put the mv -f ...
713         command on a separate, non-backslash-continued line.
714         Make it like the others.
715
716         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
717         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
718         the one from gettext.  Reported by Akim Demaille.
719
720 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
721
722         Fix recursion of install-* into po directories.
723         Bison's install-pdf bug reported by Hans Aberg at
724         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
725         * build-aux/po/Makefile.in.in (install-dvi, install-html)
726         (install-info, install-pdf, install-ps): New targets.
727
728 2012-04-16  Jim Meyering  <meyering@redhat.com>
729
730         maint: avoid spurious "make sc_maint" failure
731         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
732         exempt all *.class file names, for lib/javaversion.class.
733
734 2012-04-15  Bruno Haible  <bruno@clisp.org>
735
736         lseek: Make configure test independent of environment.
737         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
738         Windows, we know that lseek() on pipes is broken; skip the runtime
739         test.
740
741 2012-04-14  Bruno Haible  <bruno@clisp.org>
742
743         stat: Bypass buggy override in mingw64.
744         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
745         * lib/stat.c (stat) [mingw64]: Define to _stat.
746         * doc/posix-functions/stat.texi: Mention mingw64 bug.
747
748 2012-04-14  Bruno Haible  <bruno@clisp.org>
749
750         pathmax: Fix compilation error on MSVC 9.
751         * modules/pathmax (Depends-on): Add unistd.
752
753 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
754
755         README: document pointer comparison assumption
756         * README (Portability guidelines): Document assumption about
757         pointer comparisons, in response to a recent bug-gnulib comment by
758         Jeffrey Kegler.
759
760 2012-04-12  Bruno Haible  <bruno@clisp.org>
761
762         Tests for module 'getrusage'.
763         * modules/getrusage-tests: New file.
764         * tests/test-getrusage.c: New file.
765
766         New module 'getrusage'.
767         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
768         warn-on-use.h.
769         (getrusage): New declaration.
770         * lib/getrusage.c: New file.
771         * m4/getrusage.m4: New file.
772         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
773         is declared.
774         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
775         HAVE_GETRUSAGE.
776         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
777         snippet/c++defs, snippet/warn-on-use.
778         (Makefile.am): Update generation of sys/resource.h. Substitute
779         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
780         * modules/getrusage: New file.
781         * doc/posix-functions/getrusage.texi: Mention the new module.
782
783 2012-04-12  Bruno Haible  <bruno@clisp.org>
784
785         Tests for module 'sys_resource'.
786         * modules/sys_resource-tests: New file.
787         * tests/test-sys_resource.c: New file.
788
789         New module 'sys_resource'.
790         * lib/sys_resource.in.h: New file.
791         * m4/sys_resource_h.m4: New file.
792         * modules/sys_resource: New file.
793         * doc/posix-headers/sys_resource.texi: Mention the new module.
794
795 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
796
797         ioctl: Fix compilation error on mingw.
798         * lib/ioctl.c: Include <windows.h>.
799         Also reported by Ray Satiro <raysatiro@yahoo.com>.
800
801 2012-04-04  Jim Meyering  <meyering@redhat.com>
802
803         regex: correct #pragma guard expression
804         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
805         not 4.3.  Correct its cpp guard expression.
806
807 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
808
809         regex: remove unnecessary type punning
810         Problem reported by Vladimir Serbinenko in
811         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
812         * lib/regex.h (struct re_pattern_buffer): Change the type of
813         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
814         Fix comment to match code.
815         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
816         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
817         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
818         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
819         (set_regs):
820         Omit no-longer-necessary casts.
821
822 2012-04-03  Bruno Haible  <bruno@clisp.org>
823
824         Tests for module 'ilogbl'.
825         * modules/ilogbl-tests: New file.
826         * tests/test-ilogbl.c: New file.
827
828         New module 'ilogbl'.
829         * lib/math.in.h (ilogbl): New declaration.
830         * lib/ilogbl.c: New file.
831         * m4/ilogbl.m4: New file.
832         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
834         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
835         Split sed invocation, to avoid the limit of 100 substitutions of
836         HP-UX 'sed'.
837         * modules/ilogbl: New file.
838         * tests/test-math-c++.cc: Check the declaration of ilogbl.
839         * doc/posix-functions/ilogbl.texi: Mention the new module.
840
841 2012-04-03  Bruno Haible  <bruno@clisp.org>
842
843         Tests for module 'ilogbf'.
844         * modules/ilogbf-tests: New file.
845         * tests/test-ilogbf.c: New file.
846
847         New module 'ilogbf'.
848         * lib/math.in.h (ilogbf): New declaration.
849         * lib/ilogbf.c: New file.
850         * m4/ilogbf.m4: New file.
851         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
853         REPLACE_ILOGBF.
854         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
855         REPLACE_ILOGBF.
856         * modules/ilogbf: New file.
857         * tests/test-math-c++.cc: Check the declaration of ilogbf.
858         * doc/posix-functions/ilogbf.texi: Mention the new module.
859
860 2012-04-03  Bruno Haible  <bruno@clisp.org>
861
862         Tests for module 'ilogb'.
863         * modules/ilogb-tests: New file.
864         * tests/test-ilogb.c: New file.
865         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
866         tests/test-logb-ieee.h.
867
868         New module 'ilogb'.
869         * lib/math.in.h (ilogb): New declaration.
870         * lib/ilogb.c: New file.
871         * m4/ilogb.m4: New file.
872         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
874         REPLACE_ILOGB.
875         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
876         REPLACE_ILOGB.
877         * modules/ilogb: New file.
878         * tests/test-math-c++.cc: Check the declaration of ilogb.
879         * doc/posix-functions/ilogb.texi: Mention the new module.
880
881 2012-04-03  Bruno Haible  <bruno@clisp.org>
882
883         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
884         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
885         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
886         (main): Check their values.
887         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
888         problem.
889
890 2012-04-03  Bruno Haible  <bruno@clisp.org>
891
892         Tests for module 'logbl-ieee'.
893         * modules/logbl-ieee-tests: New file.
894         * tests/test-logbl-ieee.c: New file.
895
896         New module 'logbl-ieee'.
897         * modules/logbl-ieee: New file.
898
899         Tests for module 'logb-ieee'.
900         * modules/logb-ieee-tests: New file.
901         * tests/test-logb-ieee.c: New file.
902
903         New module 'logb-ieee'.
904         * modules/logb-ieee: New file.
905
906         Tests for module 'logbf-ieee'.
907         * modules/logbf-ieee-tests: New file.
908         * tests/test-logbf-ieee.c: New file.
909         * tests/test-logb-ieee.h: New file.
910
911         New module 'logbf-ieee'.
912         * modules/logbf-ieee: New file.
913
914 2012-04-03  Bruno Haible  <bruno@clisp.org>
915
916         Tests for module 'logbl'.
917         * modules/logbl-tests: New file.
918         * tests/test-logbl.c: New file.
919
920         New module 'logbl'.
921         * lib/math.in.h (logbl): New declaration.
922         * lib/logbl.c: New file.
923         * m4/logbl.m4: New file.
924         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
926         REPLACE_LOGBL.
927         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
928         REPLACE_LOGBL.
929         * modules/logbl: New file.
930         * tests/test-math-c++.cc: Check the declaration of logbl.
931         * doc/posix-functions/logbl.texi: Mention the new module.
932
933 2012-04-02  Bruno Haible  <bruno@clisp.org>
934
935         Tests for module 'logbf'.
936         * modules/logbf-tests: New file.
937         * tests/test-logbf.c: New file.
938
939         New module 'logbf'.
940         * lib/math.in.h (logbf): New declaration.
941         * lib/logbf.c: New file.
942         * m4/logbf.m4: New file.
943         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
945         REPLACE_LOGBF.
946         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
947         REPLACE_LOGBF.
948         * modules/logbf: New file.
949         * tests/test-math-c++.cc: Check the declaration of logbf.
950         * doc/posix-functions/logbf.texi: Mention the new module.
951
952 2012-04-02  Bruno Haible  <bruno@clisp.org>
953
954         logb tests: More tests.
955         * tests/test-logb.h: New file, based on tests/test-logb.c and
956         tests/test-frexp.h.
957         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
958         (main): Just invoke test_function.
959         * modules/logb-tests (Files): Add tests/test-logb.h,
960         tests/minus-zero.h, tests/randomd.c.
961         (Makefile.am): Add randomd.c to test_logb_SOURCES.
962
963         logb: Provide replacement and workarounds.
964         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
965         is 1.
966         * lib/logb.c: New file.
967         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
968         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
970         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
971         * modules/logb (Files): Add lib/logb.c.
972         (Depends-on): Add isfinite, frexp, isnand.
973         (configure.ac): Compile the replacement code logb.c if needed.
974         * tests/test-math-c++.cc: Check the declaration of logb.
975         * doc/posix-functions/logb.texi: Mention the replacement and the bug
976         with subnormal numbers.
977
978 2012-04-02  Bruno Haible  <bruno@clisp.org>
979
980         log10* tests: Speed up.
981         * tests/test-log10.h (test_function): Reduce amount of random numbers
982         to test.
983
984 2012-04-01  Bruno Haible  <bruno@clisp.org>
985
986         logf-ieee: Fix test whether logf works.
987         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
988
989 2012-04-01  Bruno Haible  <bruno@clisp.org>
990
991         log10l: Work around log10l-ieee test failure on IRIX 6.5.
992         * lib/log10l.c: Include <float.h>
993         (log10l): On IRIX, normalize the +Infinity value.
994         * modules/log10l (Depends-on): Add 'float'.
995         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
996         +Infinity.
997
998         log10f-ieee: Work around test failure on NetBSD 5.1.
999         * m4/log10f-ieee.m4: New file.
1000         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1001         test whether log10f works with a negative argument. Replace it if not.
1002         * lib/log10f.c (log10f): For negative arguments, return NaN.
1003         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1004         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1005         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1006
1007         log10f-ieee: Work around test failure on Solaris 9.
1008         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1009         (configure.ac): Require gl_FUNC_LOG10F.
1010
1011         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1012         * m4/log10-ieee.m4: New file.
1013         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1014         whether log10 works with a negative argument. Replace it if not.
1015         * lib/log10.c (log10): For negative arguments, return NaN.
1016         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1017         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1018         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1019
1020         Tests for module 'log10l-ieee'.
1021         * modules/log10l-ieee-tests: New file.
1022         * tests/test-log10l-ieee.c: New file.
1023
1024         New module 'log10l-ieee'.
1025         * modules/log10l-ieee: New file.
1026
1027         Tests for module 'log10-ieee'.
1028         * modules/log10-ieee-tests: New file.
1029         * tests/test-log10-ieee.c: New file.
1030
1031         New module 'log10-ieee'.
1032         * modules/log10-ieee: New file.
1033
1034         Tests for module 'log10f-ieee'.
1035         * modules/log10f-ieee-tests: New file.
1036         * tests/test-log10f-ieee.c: New file.
1037         * tests/test-log10-ieee.h: New file.
1038
1039         New module 'log10f-ieee'.
1040         * modules/log10f-ieee: New file.
1041
1042 2012-04-01  Bruno Haible  <bruno@clisp.org>
1043
1044         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1045         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1046         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1047         workaround.
1048         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1049         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1051         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1052         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1053         (Depends-on): Update conditions.
1054         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1055         IRIX 6.5, OSF/1 5.1 problems.
1056
1057 2012-04-01  Bruno Haible  <bruno@clisp.org>
1058
1059         log10f: Work around OSF/1 5.1 bug.
1060         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1061         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1062         workaround.
1063         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1064         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1066         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1067         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1068         (Depends-on): Update conditions.
1069         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1070
1071 2012-04-01  Bruno Haible  <bruno@clisp.org>
1072
1073         log10: Work around OSF/1 5.1 bug.
1074         * lib/math.in.h (log10): New declaration.
1075         * lib/log10.c: New file.
1076         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1077         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1078         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1080         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1081         * modules/log10 (Files): Add lib/log10.c.
1082         (Depends-on): Add math.
1083         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1084         * tests/test-math-c++.cc: Check the declaration of log10.
1085         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1086
1087 2012-03-31  Bruno Haible  <bruno@clisp.org>
1088
1089         log10l tests: More tests.
1090         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1091         tests/minus-zero.h, tests/randoml.c.
1092         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1093         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1094         (main): Invoke test_function.
1095
1096         log10f tests: More tests.
1097         * modules/log10f-tests (Files): Add tests/test-log10.h,
1098         tests/minus-zero.h, tests/randomf.c.
1099         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1100         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1101         (main): Invoke test_function.
1102
1103         log10 tests: More tests.
1104         * tests/test-log10.h: New file.
1105         * modules/log10-tests (Files): Add tests/test-log10.h,
1106         tests/minus-zero.h, tests/randomd.c.
1107         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1108         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1109         (main): Invoke test_function.
1110
1111 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1112
1113         fflush: Fix syntax error.
1114         * lib/fflush.c: Include unused-parameter.h, needed for
1115         _GL_UNUSED_PARAMETER.
1116         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1117
1118 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1119
1120         regex: pacify GCC when compiling GRUB
1121         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1122         a diagnostic.  Reported by Vladimir Serbinenko in
1123         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1124
1125 2012-03-29  Eric Blake  <eblake@redhat.com>
1126
1127         stdio: don't assume gets any more
1128         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1129         support.
1130         * modules/stdio (Makefile.am): Likewise.
1131         * lib/stdio-read.c (gets): Likewise.
1132         * tests/test-stdio-c++.cc: Likewise.
1133         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1134         * lib/stdio.in.h (gets): Make warning occur in more places.
1135         * doc/posix-functions/gets.texi (gets): Update documentation.
1136         Reported by Christer Solskogen.
1137
1138         maint.mk: fix syntax checks without exclusions
1139         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1140         Reported by Daniel P. Berrange.
1141
1142         strerror_r: avoid compiler warning
1143         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1144         level.
1145
1146         fflush: avoid compiler warning
1147         * lib/fflush.c (update_fpos_cache): Mark variables that are
1148         potentially unused.
1149
1150 2012-03-25  Bruno Haible  <bruno@clisp.org>
1151
1152         Tests for module 'localeconv'.
1153         * modules/localeconv-tests: New file.
1154         * tests/test-localeconv.c: New file.
1155
1156         New module 'localeconv'.
1157         * lib/locale.in.h (localeconv): New declaration.
1158         * lib/localeconv.c: New file.
1159         * m4/localeconv.m4: New file.
1160         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1161         REPLACE_LOCALECONV.
1162         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1163         REPLACE_LOCALECONV.
1164         * modules/localeconv: New file.
1165         * modules/nl_langinfo (Depends-on): Add localeconv.
1166         * modules/human (Depends-on): Likewise.
1167         * doc/posix-functions/localeconv.texi: Mention the new module.
1168
1169 2012-03-25  Bruno Haible  <bruno@clisp.org>
1170
1171         locale: Provide a complete 'struct lconv'.
1172         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1173         'struct lconv' does not contain int_p_cs_precedes.
1174         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1175         * doc/posix-headers/locale.texi: Update.
1176
1177         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1178         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1179         * doc/posix-headers/locale.texi: Update.
1180
1181         locale: Provide a working 'struct lconv'.
1182         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1183         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1184         'struct lconv' does not even contain decimal_point.
1185         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1186         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1187         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1188         * doc/posix-headers/locale.texi: Mention the problems with
1189         'struct lconv'.
1190         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1191
1192 2012-03-24  Bruno Haible  <bruno@clisp.org>
1193
1194         Enable common subexpression optimization in GCC.
1195         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1196         macros.
1197         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1198         GCC attribute 'const'.
1199         (uc_locale_language): Declare with GCC attribute 'pure'.
1200         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1201         with GCC attribute 'const'.
1202         * lib/unictype.in.h (uc_is_general_category_withtable,
1203         uc_combining_class, uc_combining_class_name,
1204         uc_combining_class_long_name, uc_bidi_class_name,
1205         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1206         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1207         uc_decimal_value, uc_digit_value, uc_numeric_value,
1208         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1209         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1210         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1211         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1212         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1213         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1214         Declare with GCC attribute 'const'.
1215         (uc_general_category_name, uc_general_category_long_name,
1216         uc_general_category_byname, uc_general_category,
1217         uc_is_general_category, uc_combining_class_byname,
1218         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1219         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1220         Declare with GCC attribute 'pure'.
1221         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1222         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1223         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1224         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1225         with GCC attribute 'pure'.
1226         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1227         'const'.
1228         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1229         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1230         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1231         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1232         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1233         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1234         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1235         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1236         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1237         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1238         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1239         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1240         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1241         GCC attribute 'pure'.
1242         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1243         'const'.
1244         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1245         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1246         u32_strwidth): Declare with GCC attribute 'pure'.
1247
1248         Enable common subexpression optimization in GCC.
1249         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1250         (alphasort): Declare with GCC attribute 'pure'.
1251         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1252         (atoll): Declare with GCC attribute 'pure'.
1253         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1254         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1255         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1256         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1257         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1258         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1259         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1260
1261 2012-03-24  Bruno Haible  <bruno@clisp.org>
1262
1263         gnulib-tool: Avoid unintended error output from 'cmp'.
1264         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1265         "cmp -s", not "cmp > /dev/null".
1266
1267 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1268
1269         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1270
1271         It's not just Automake versions < 1.9b that creates an empty
1272         pkgdatadir at installation time if pkgdata_DATA is specified
1273         to empty; modern automake versions do this as well, at least
1274         until automake 1.11.4 (not yet released at the moment of writing,
1275         but soon to appear).  That behaviour was generally considered a
1276         feature rather than a bug, at least until this discussion:
1277         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1278
1279         See also automake bugs #10997 and #11030.
1280
1281         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1282         reference to relevant automake bug numbers.
1283         (func_emit_tests_Makefile_am): Likewise.
1284
1285 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1286
1287         announce-gen: use Digest::SHA when possible
1288         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1289         back to Digest::SHA1 if necessary.
1290
1291 2012-03-20  Jim Meyering  <meyering@redhat.com>
1292
1293         tests: avoid gcc warnings about argv vs. const initializers
1294         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1295         warnings about discarding 'const' qualifier from pointer target type.
1296         * tests/test-posix_spawn2.c (main): Likewise.
1297
1298 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1299
1300         README-release: simplify slightly
1301         * top/README-release: Run "git checkout master" only once.
1302
1303 2012-03-15  Mark Wielaard  <mark@klomp.org>
1304
1305         git-merge-changelog: add specific example on how to use with hg.
1306         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1307
1308 2012-03-18  Mark Wielaard  <mark@klomp.org>
1309
1310         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1311
1312 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1313
1314         git-version-gen: don't let "prefix" envvar cause trouble
1315         * build-aux/git-version-gen (prefix): Initialize properly,
1316         so as not to use a value specified via the environment.
1317         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1318
1319 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1320
1321         regex: diagnose too-large repeat counts in EREs
1322         Previously, the code did not diagnose the too-large repeat count
1323         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1324         as if it were 'b\{1000000000}', which is unexpected.
1325         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1326         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1327         is a reasonable one for this problem.  Another option would be to
1328         create a new REG_OVERFLOW error for repeat counts that are too large.
1329         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1330         count is too large, so that the caller can distinguish the two cases.
1331         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1332         "Too large" return code, and that repeat counts are one example of this.
1333
1334 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1335
1336         doc: some glibc x32 integer width issues
1337         * doc/posix-headers/sys_types.texi (sys/types.h):
1338         * doc/posix-headers/time.texi (time.h):
1339         Mention that glibc x32 does not conform to POSIX in a couple of
1340         areas related to integer widths.
1341
1342 2012-03-15  Bruno Haible  <bruno@clisp.org>
1343
1344         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1345         * lib/fma.c (VOLATILE): New macro.
1346         (FUNC): Use it to work around a GCC compiler bug.
1347
1348 2012-03-13  Bruno Haible  <bruno@clisp.org>
1349
1350         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1351         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1352         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1353         REPLACE_HYPOTL to 1.
1354         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1355
1356 2012-03-13  Bruno Haible  <bruno@clisp.org>
1357
1358         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1359         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1360         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1361         REPLACE_REMAINDERL to 1.
1362         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1363         bug.
1364
1365 2012-03-13  Bruno Haible  <bruno@clisp.org>
1366
1367         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1368         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1369         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1370         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1371         too big rounding errors.
1372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1373         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1374         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1375         (Depends-on): Update conditions.
1376         * tests/test-sqrtl.c (my_ldexpl): New function.
1377         (main): Add test of a particular value.
1378         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1379
1380 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1381
1382         doc: Update timer_* platform portability notes.
1383         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1384         that always return ENOSYS.
1385         * doc/posix-functions/timer_delete.texi: Likewise.
1386         * doc/posix-functions/timer_gettime.texi: Likewise.
1387         * doc/posix-functions/timer_settime.texi: Likewise.
1388
1389 2012-03-13  Bruno Haible  <bruno@clisp.org>
1390
1391         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1392         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1393         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1394         REPLACE_CBRTL to 1.
1395         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1396
1397 2012-03-13  Bruno Haible  <bruno@clisp.org>
1398
1399         remainderl: Avoid compilation error on AIX >= 5.2.
1400         * lib/math.in.h (remainderl): Undefine macro from the system header.
1401
1402 2012-03-13  Bruno Haible  <bruno@clisp.org>
1403
1404         Avoid compilation errors with MSVC option -fp:strict.
1405         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1406         * lib/cbrtf.c: Likewise.
1407         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1408
1409 2012-03-12  Bruno Haible  <bruno@clisp.org>
1410
1411         uninorm: Don't crash in out-of-memory conditions.
1412         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1413         gracefully.
1414         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1415         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1416
1417 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1418
1419         quote: fix syntax-check
1420         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1421         also exports quote_quoting_options.
1422
1423 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1424
1425         Collapse list of copyright years to ranges.  See
1426         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1427         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1428         build-aux/csharpexec.sh.in, build-aux/gnupload,
1429         build-aux/install-reloc, build-aux/javacomp.sh.in,
1430         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1431         build-aux/move-if-change, build-aux/reloc-ldflags,
1432         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1433
1434 2012-03-11  Bruno Haible  <bruno@clisp.org>
1435
1436         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1437         * m4/log2f-ieee.m4: New file.
1438         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1439         whether log2f works with a minus zero argument. Replace it if not.
1440         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1441         (Depends-on): Add log2-ieee.
1442         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1443         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1444
1445         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1446         * m4/log2-ieee.m4: New file.
1447         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1448         whether log2 works with a minus zero argument. Replace it if not.
1449         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1450         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1451         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1452
1453         Tests for module 'log2l-ieee'.
1454         * modules/log2l-ieee-tests: New file.
1455         * tests/test-log2l-ieee.c: New file.
1456
1457         New module 'log2l-ieee'.
1458         * modules/log2l-ieee: New file.
1459
1460         Tests for module 'log2-ieee'.
1461         * modules/log2-ieee-tests: New file.
1462         * tests/test-log2-ieee.c: New file.
1463
1464         New module 'log2-ieee'.
1465         * modules/log2-ieee: New file.
1466
1467         Tests for module 'log2f-ieee'.
1468         * modules/log2f-ieee-tests: New file.
1469         * tests/test-log2f-ieee.c: New file.
1470         * tests/test-log2-ieee.h: New file.
1471
1472         New module 'log2f-ieee'.
1473         * modules/log2f-ieee: New file.
1474
1475 2012-03-11  Bruno Haible  <bruno@clisp.org>
1476
1477         Tests for module 'log2l'.
1478         * modules/log2l-tests: New file.
1479         * tests/test-log2l.c: New file.
1480
1481         New module 'log2l'.
1482         * lib/math.in.h (log2l): New declaration.
1483         * lib/log2l.c: New file.
1484         * m4/log2l.m4: New file.
1485         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1487         REPLACE_LOG2L.
1488         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1489         REPLACE_LOG2L.
1490         * modules/log2l: New file.
1491         * tests/test-math-c++.cc: Check the declaration of log2l.
1492         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1493         and OSF/1 problems.
1494
1495 2012-03-11  Bruno Haible  <bruno@clisp.org>
1496
1497         Tests for module 'log2f'.
1498         * modules/log2f-tests: New file.
1499         * tests/test-log2f.c: New file.
1500
1501         New module 'log2f'.
1502         * lib/math.in.h (log2f): New declaration.
1503         * lib/log2f.c: New file.
1504         * m4/log2f.m4: New file.
1505         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1507         REPLACE_LOG2F.
1508         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1509         REPLACE_LOG2F.
1510         * modules/log2f: New file.
1511         * tests/test-math-c++.cc: Check the declaration of log2f.
1512         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1513         and OSF/1 and Cygwin problems.
1514
1515 2012-03-11  Bruno Haible  <bruno@clisp.org>
1516
1517         Tests for module 'log2'.
1518         * modules/log2-tests: New file.
1519         * tests/test-log2.c: New file.
1520         * tests/test-log2.h: New file.
1521
1522         New module 'log2'.
1523         * lib/math.in.h (log2): New declaration.
1524         * lib/log2.c: New file.
1525         * m4/log2.m4: New file.
1526         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1528         REPLACE_LOG2.
1529         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1530         REPLACE_LOG2.
1531         * modules/log2: New file.
1532         * tests/test-math-c++.cc: Check the declaration of log2.
1533         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1534         and OSF/1 and Cygwin problems.
1535
1536 2012-03-11  Bruno Haible  <bruno@clisp.org>
1537
1538         exp2* tests: More tests.
1539         * tests/test-exp2.h (test_function): Test all integral arguments that
1540         don't need to overflow or denormalized numbers.
1541         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1542         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1543         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1544
1545 2012-03-10  Bruno Haible  <bruno@clisp.org>
1546
1547         log1pl-ieee: Work around test failure on AIX 7.1.
1548         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1549
1550         log1pl-ieee: Work around test failure on IRIX 6.5.
1551         * m4/log1pl-ieee.m4: New file.
1552         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1553         test whether log1pl works with a minus zero argument. Replace it if
1554         not.
1555         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1557         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1558         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1559         (Depends-on): Update conditions.
1560         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1561         m4/signbit.m4.
1562         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1563         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1564
1565         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1566         * m4/log1pf-ieee.m4: New file.
1567         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1568         test whether log1pf works with a minus zero argument. Replace it if
1569         not.
1570         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1571         m4/signbit.m4.
1572         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1573         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1574
1575         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1576         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1577         (configure.ac): Require gl_FUNC_LOG1PF.
1578
1579         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1580         * m4/log1p-ieee.m4: New file.
1581         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1582         whether log1p works with a minus zero argument. Replace it if not.
1583         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1585         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1586         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1587         (Depends-on): Update conditions.
1588         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1589         m4/signbit.m4.
1590         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1591         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1592
1593         Tests for module 'log1pl-ieee'.
1594         * modules/log1pl-ieee-tests: New file.
1595         * tests/test-log1pl-ieee.c: New file.
1596
1597         New module 'log1pl-ieee'.
1598         * modules/log1pl-ieee: New file.
1599
1600         Tests for module 'log1p-ieee'.
1601         * modules/log1p-ieee-tests: New file.
1602         * tests/test-log1p-ieee.c: New file.
1603
1604         New module 'log1p-ieee'.
1605         * modules/log1p-ieee: New file.
1606
1607         Tests for module 'log1pf-ieee'.
1608         * modules/log1pf-ieee-tests: New file.
1609         * tests/test-log1pf-ieee.c: New file.
1610         * tests/test-log1p-ieee.h: New file.
1611
1612         New module 'log1pf-ieee'.
1613         * modules/log1pf-ieee: New file.
1614
1615 2012-03-10  Bruno Haible  <bruno@clisp.org>
1616
1617         Tests for module 'log1pl'.
1618         * modules/log1pl-tests: New file.
1619         * tests/test-log1pl.c: New file.
1620
1621         New module 'log1pl'.
1622         * lib/math.in.h (log1pl): New declaration.
1623         * lib/log1pl.c: New file.
1624         * m4/log1pl.m4: New file.
1625         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1627         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1628         * modules/log1pl: New file.
1629         * tests/test-math-c++.cc: Check the declaration of log1pl.
1630         * doc/posix-functions/log1pl.texi: Mention the new module.
1631
1632 2012-03-10  Bruno Haible  <bruno@clisp.org>
1633
1634         Tests for module 'log1pf'.
1635         * modules/log1pf-tests: New file.
1636         * tests/test-log1pf.c: New file.
1637
1638         New module 'log1pf'.
1639         * lib/math.in.h (log1pf): New declaration.
1640         * lib/log1pf.c: New file.
1641         * m4/log1pf.m4: New file.
1642         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1644         REPLACE_LOG1PF.
1645         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1646         REPLACE_LOG1PF.
1647         * modules/log1pf: New file.
1648         * tests/test-math-c++.cc: Check the declaration of log1pf.
1649         * doc/posix-functions/log1pf.texi: Mention the new module.
1650
1651 2012-03-10  Bruno Haible  <bruno@clisp.org>
1652
1653         log1p tests: More tests.
1654         * tests/test-log1p.h: New file.
1655         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1656         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1657         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1658         (main): Invoke test_function.
1659
1660         log1p: Provide replacement for Minix and MSVC.
1661         * lib/math.in.h (log1p): New declaration.
1662         * lib/log1p.c: New file.
1663         * m4/log1p.m4: New file.
1664         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1665         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1666         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1667         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1668         (Depends-on): Add math, isnand, log, round.
1669         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1670         HAVE_LOG1P is 0.
1671         * tests/test-math-c++.cc: Check the declaration of log1p.
1672         * doc/posix-functions/log1p.texi: Mention the replacement.
1673
1674 2012-03-10  Bruno Haible  <bruno@clisp.org>
1675
1676         math tests: Small simplification.
1677         * tests/test-exp.h (test_function): Use the same err_bound for
1678         'double' on platforms with sizeof (long double) == sizeof (double)
1679         than on platforms with sizeof (long double) > sizeof (double).
1680         * tests/test-exp2.h (test_function): Likewise.
1681         * tests/test-expm1.h (test_function): Likewise.
1682         * tests/test-log.h (test_function): Likewise.
1683
1684 2012-03-10  Bruno Haible  <bruno@clisp.org>
1685
1686         Fix some comments.
1687         * lib/expl.c: Fix an ambiguous comment.
1688         * lib/expm1.c: Likewise.
1689         * lib/expm1l.c: Likewise.
1690         * lib/exp2.c: Likewise.
1691         * lib/exp2l.c: Likewise.
1692
1693 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1694
1695         regex: allow inclusion of <regex.h> before <limits.h>
1696         Without this patch, portable programs had to include <limits.h> before
1697         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1698         I ran into this problem with a test version of GNU grep on Solaris 8.
1699         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1700         This is done conditionally so that this change can be merged
1701         back to glibc.
1702         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1703         using the included regex.
1704
1705         fts: depend on fdopendir
1706         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1707         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1708         problem was introduced when fdopendir was split out.
1709
1710 2012-03-10  Bruno Haible  <bruno@clisp.org>
1711
1712         Remove unused variables.
1713         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1714         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1715
1716 2012-03-10  Bruno Haible  <bruno@clisp.org>
1717
1718         isnanf-nolibm: Fix last commit.
1719         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1720
1721         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1722         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1723
1724 2012-03-10  Bruno Haible  <bruno@clisp.org>
1725
1726         logf-ieee: Work around test failure on NetBSD 5.1.
1727         * m4/logf-ieee.m4: New file.
1728         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1729         whether logf works with a negative argument. Replace it if not.
1730         * lib/logf.c (logf): For negative arguments, return NaN.
1731         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1732         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1733         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1734
1735         logf-ieee: Work around test failure on Solaris 9.
1736         * modules/logf-ieee (Depends-on): Add log-ieee.
1737         (configure.ac): Require gl_FUNC_LOGF.
1738
1739         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1740         * m4/log-ieee.m4: New file.
1741         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1742         log works with a negative argument. Replace it if not.
1743         * lib/log.c (log): For negative arguments, return NaN.
1744         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1745         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1746         * doc/posix-functions/log.texi: Mention the log-ieee module.
1747
1748         Tests for module 'logl-ieee'.
1749         * modules/logl-ieee-tests: New file.
1750         * tests/test-logl-ieee.c: New file.
1751
1752         New module 'logl-ieee'.
1753         * modules/logl-ieee: New file.
1754
1755         Tests for module 'log-ieee'.
1756         * modules/log-ieee-tests: New file.
1757         * tests/test-log-ieee.c: New file.
1758
1759         New module 'log-ieee'.
1760         * modules/log-ieee: New file.
1761
1762         Tests for module 'logf-ieee'.
1763         * modules/logf-ieee-tests: New file.
1764         * tests/test-logf-ieee.c: New file.
1765         * tests/test-log-ieee.h: New file.
1766
1767         New module 'logf-ieee'.
1768         * modules/logf-ieee: New file.
1769
1770 2012-03-10  Bruno Haible  <bruno@clisp.org>
1771
1772         log: Fix bug introduced on 2012-03-09.
1773         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1774
1775 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1776
1777         timer-time: link explicitly with pthreads on glibc
1778         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1779         to support static linking, when newer glibc is
1780         detected, as that contains pthread emulation of
1781         POSIX timer functions where required.
1782         * modules/timer-time: Depend on threadlib to
1783         pull in the appropriate library to link.
1784
1785 2012-03-10  Bruno Haible  <bruno@clisp.org>
1786
1787         log* tests: More tests.
1788         * tests/test-log.h: New file.
1789         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1790         (main): Invoke test_function.
1791         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1792         (main): Invoke test_function.
1793         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1794         (main): Invoke test_function.
1795         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1796         tests/randomd.c.
1797         (Makefile.am): Add randomd.c to test_log_SOURCES.
1798         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1799         tests/randomf.c.
1800         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1801         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1802         tests/randoml.c.
1803         (Depends-on): Add 'float'.
1804         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1805
1806 2012-03-09  Bruno Haible  <bruno@clisp.org>
1807
1808         logl: Work around OSF/1 5.1 bug.
1809         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1810         * lib/logl.c (logl): If logl exists, use it and provide just the
1811         workaround.
1812         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1813         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1815         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1816         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1817         (Depends-on): Update conditions.
1818         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1819
1820 2012-03-09  Bruno Haible  <bruno@clisp.org>
1821
1822         logf: Work around OSF/1 5.1 bug.
1823         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1824         * lib/logf.c (logf): If logf exists, use it and provide just the
1825         workaround.
1826         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1827         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1829         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1830         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1831         (Depends-on): Update conditions.
1832         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1833
1834 2012-03-09  Bruno Haible  <bruno@clisp.org>
1835
1836         log: Work around OSF/1 5.1 bug.
1837         * lib/math.in.h (log): New declaration.
1838         * lib/log.c: New file.
1839         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1840         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1841         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1843         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1844         * modules/log (Files): Add lib/log.c.
1845         (Depends-on): Add math.
1846         (configure.ac): If REPLACE_LOG is 1, compile an override.
1847         * tests/test-math-c++.cc: Check the declaration of log.
1848         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1849
1850 2012-03-09  Jim Meyering  <meyering@redhat.com>
1851
1852         readtokens.c: adjust wording in a comment
1853         * lib/readtokens.c: Insert omitted "that" in a comment.
1854
1855 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1856
1857         modechange: add notations +40, 00440, etc.
1858         * lib/modechange.c (mode_compile): Support new notations
1859         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1860
1861 2012-03-08  Bruno Haible  <bruno@clisp.org>
1862
1863         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1864         * m4/exp2l-ieee.m4: New file.
1865         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1866         test whether exp2l works with a NaN argument and with a negative
1867         infinity argument. Replace it if not.
1868         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1870         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1871         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1872         (Depends-on): Update conditions.
1873         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1874         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1875         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1876
1877         Tests for module 'exp2l-ieee'.
1878         * modules/exp2l-ieee-tests: New file.
1879         * tests/test-exp2l-ieee.c: New file.
1880
1881         New module 'exp2l-ieee'.
1882         * modules/exp2l-ieee: New file.
1883
1884         Tests for module 'exp2-ieee'.
1885         * modules/exp2-ieee-tests: New file.
1886         * tests/test-exp2-ieee.c: New file.
1887
1888         New module 'exp2-ieee'.
1889         * modules/exp2-ieee: New file.
1890
1891         Tests for module 'exp2f-ieee'.
1892         * modules/exp2f-ieee-tests: New file.
1893         * tests/test-exp2f-ieee.c: New file.
1894         * tests/test-exp2-ieee.h: New file.
1895
1896         New module 'exp2f-ieee'.
1897         * modules/exp2f-ieee: New file.
1898
1899 2012-03-08  Bruno Haible  <bruno@clisp.org>
1900
1901         Tests for module 'exp2l'.
1902         * modules/exp2l-tests: New file.
1903         * tests/test-exp2l.c: New file.
1904
1905         New module 'exp2l'.
1906         * lib/math.in.h (exp2l): New declaration.
1907         * lib/exp2l.c: New file.
1908         * lib/expl-table.c: New file, extracted from lib/expl.c.
1909         * lib/expl.c (gl_expl_table): New declaration.
1910         (expl): Remove expl_table. Update reference.
1911         * m4/exp2l.m4: New file.
1912         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1914         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1915         * modules/exp2l: New file.
1916         * modules/expl (Files): Add lib/expl-table.c.
1917         (configure.ac): Compile also expl-table.c.
1918         * tests/test-math-c++.cc: Check the declaration of exp2l.
1919         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1920         problem.
1921
1922 2012-03-08  Bruno Haible  <bruno@clisp.org>
1923
1924         Tests for module 'exp2f'.
1925         * modules/exp2f-tests: New file.
1926         * tests/test-exp2f.c: New file.
1927
1928         New module 'exp2f'.
1929         * lib/math.in.h (exp2f): New declaration.
1930         * lib/exp2f.c: New file.
1931         * m4/exp2f.m4: New file.
1932         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1934         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1935         * modules/exp2f: New file.
1936         * tests/test-math-c++.cc: Check the declaration of exp2f.
1937         * doc/posix-functions/exp2f.texi: Mention the new module and the
1938         IRIX problem.
1939
1940 2012-03-08  Bruno Haible  <bruno@clisp.org>
1941
1942         Tests for module 'exp2'.
1943         * modules/exp2-tests: New file.
1944         * tests/test-exp2.c: New file.
1945         * tests/test-exp2.h: New file.
1946
1947         New module 'exp2'.
1948         * lib/math.in.h (exp2): New declaration.
1949         * lib/exp2.c: New file.
1950         * m4/exp2.m4: New file.
1951         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1953         REPLACE_EXP2.
1954         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1955         REPLACE_EXP2.
1956         * modules/exp2: New file.
1957         * tests/test-math-c++.cc: Check the declaration of exp2.
1958         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1959         and OpenBSD problems.
1960
1961 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1962
1963         savedir: fix comment typo
1964         * lib/savedir.c (savedirstream): Fix typo in comment.
1965
1966 2012-03-08  Bruno Haible  <bruno@clisp.org>
1967
1968         test-readtokens.c: use const; remove unwarranted cast
1969         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1970
1971 2012-03-08  Bruno Haible  <bruno@clisp.org>
1972
1973         fmal: Avoid compilation error on AIX.
1974         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1975         AIX 5.2..7.1.
1976
1977 2012-03-08  Bruno Haible  <bruno@clisp.org>
1978
1979         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1980         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1981         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1982         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1983         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1984         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1985         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1986
1987 2012-03-08  Bruno Haible  <bruno@clisp.org>
1988
1989         remainderf: Override buggy system function on IRIX 6.5.
1990         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1991         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1992         when it exists.
1993         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1994
1995 2012-03-08  Jim Meyering  <meyering@redhat.com>
1996
1997         test-readtokens.c: avoid const-related compilation warnings
1998         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1999
2000 2012-03-07  Jim Meyering  <meyering@redhat.com>
2001             Bruno Haible  <bruno@clisp.org>
2002
2003         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2004         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2005         tests/randomd.c.
2006         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2007         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2008         tests/randoml.c.
2009         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2010
2011 2012-03-07  Bruno Haible  <bruno@clisp.org>
2012
2013         expm1l: Avoid compilation error on AIX.
2014         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2015         AIX 5.2..7.1.
2016
2017 2012-03-07  Bruno Haible  <bruno@clisp.org>
2018
2019         expm1l: Don't override undeclared system function on IRIX 6.5.
2020         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2021         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2022         it exists. Set HAVE_DECL_EXPM1L.
2023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2024         HAVE_EXPM1L.
2025         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2026         HAVE_EXPM1L.
2027         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2028
2029 2012-03-07  Bruno Haible  <bruno@clisp.org>
2030
2031         remainderl: Don't override undeclared system function on IRIX 6.5.
2032         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2033         HAVE_REMAINDERL.
2034         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2035         declared when it exists. Set HAVE_DECL_REMAINDERL.
2036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2037         not HAVE_REMAINDERL.
2038         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2039         HAVE_REMAINDERL.
2040         * doc/posix-functions/remainderl.texi: Mention missing declaration
2041         problem.
2042
2043 2012-03-07  Bruno Haible  <bruno@clisp.org>
2044
2045         rintf: Don't override undeclared system function on IRIX 6.5.
2046         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2047         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2048         exists. Set HAVE_DECL_RINTF.
2049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2050         HAVE_RINTF.
2051         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2052         HAVE_RINTF.
2053         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2054
2055 2012-03-07  Bruno Haible  <bruno@clisp.org>
2056
2057         roundl: Avoid compilation error on AIX.
2058         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2059         AIX 5.2..7.1.
2060
2061 2012-03-07  Bruno Haible  <bruno@clisp.org>
2062
2063         roundl: Don't override undeclared system function on IRIX 6.5.
2064         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2065         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2066         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2067         * modules/roundl (configure.ac): For replacement code, test
2068         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2069         (Depends-on): Update conditions.
2070         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2071
2072 2012-03-07  Bruno Haible  <bruno@clisp.org>
2073
2074         roundf: Don't override undeclared system function on IRIX 6.5.
2075         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2076         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2077         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2078         * modules/roundf (configure.ac): For replacement code, test
2079         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2080         (Depends-on): Update conditions.
2081         * modules/roundf-ieee (Depends-on): Update conditions.
2082         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2083
2084 2012-03-07  Bruno Haible  <bruno@clisp.org>
2085
2086         round: Don't override undeclared system function on IRIX 6.5.
2087         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2088         argument.
2089         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2090         also when it is not declared. Set HAVE_ROUND. For replacement code,
2091         test HAVE_ROUND, not HAVE_DECL_ROUND.
2092         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2093         not HAVE_DECL_ROUND.
2094         (Depends-on): Update conditions.
2095         * modules/round-ieee (Depends-on): Update conditions.
2096         * doc/posix-functions/round.texi: Mention the IRIX problem.
2097
2098 2012-03-07  Bruno Haible  <bruno@clisp.org>
2099
2100         copysignf: Don't override undeclared system function on IRIX 6.5.
2101         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2102         HAVE_COPYSIGNF.
2103         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2104         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2106         not HAVE_COPYSIGNF.
2107         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2108         HAVE_COPYSIGNF.
2109         * doc/posix-functions/copysignf.texi: Mention missing declaration
2110         problem.
2111
2112 2012-03-07  Jim Meyering  <meyering@redhat.com>
2113
2114         readtokens: add tests
2115         * modules/readtokens-tests: New file.
2116         * tests/test-readtokens.c: New file.
2117
2118 2012-03-07  Jim Meyering  <meyering@redhat.com>
2119
2120         quotearg: the module must now include quote.h
2121         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2122         So must the module.
2123         * modules/quotearg (Files): Add quote.h.
2124
2125 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2126
2127         readtokens: avoid core dumps with unusual calling patterns
2128         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2129         * lib/readtokens.c: Include limits.h.
2130         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2131         (readtoken): Don't cache the delimiters; the cache code was buggy
2132         if !delim && saved_delim, or if the new n_delim differs from the old.
2133         Also, it wasn't thread-safe.
2134
2135 2012-03-07  Bruno Haible  <bruno@clisp.org>
2136
2137         quote: Adhere to common module description layout.
2138         * modules/quote (Makefile.am): Add back empty section.
2139
2140 2012-03-06  Akim Demaille  <demaille@gostai.com>
2141
2142         quote: fuse into quotearg
2143         This patch is made for the benefit of Bison.
2144         quote does not leave the choice of the quoting style to the user.
2145         quoting_style provides poor customizability, yet quoting_options,
2146         which is very rich, is hidden inside quotearg.c.  So in order to
2147         allow quote customization, move its implementation to quotearg.c.
2148         * lib/quote.c: Remove.
2149         * modules/quote: Adjust.
2150         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2151         warning: provide all the members of literal structs.
2152         (quote_quoting_options): New.
2153         (quote, quote_n): Import implementation from quote.c.
2154         * lib/quote.h: Import the comments from quote.c.
2155         (quote_quoting_options): New.
2156
2157 2012-03-06  Bruno Haible  <bruno@clisp.org>
2158
2159         Tests for module 'expm1l-ieee'.
2160         * modules/expm1l-ieee-tests: New file.
2161         * tests/test-expm1l-ieee.c: New file.
2162
2163         New module 'expm1l-ieee'.
2164         * modules/expm1l-ieee: New file.
2165
2166         Tests for module 'expm1f-ieee'.
2167         * modules/expm1f-ieee-tests: New file.
2168         * tests/test-expm1f-ieee.c: New file.
2169
2170         New module 'expm1f-ieee'.
2171         * modules/expm1f-ieee: New file.
2172
2173         Tests for module 'expm1-ieee'.
2174         * modules/expm1-ieee-tests: New file.
2175         * tests/test-expm1-ieee.c: New file.
2176         * tests/test-expm1-ieee.h: New file.
2177
2178         New module 'expm1-ieee'.
2179         * modules/expm1-ieee: New file.
2180         * m4/expm1-ieee.m4: New file.
2181         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2182         whether expm1 works with a minus zero argument. Replace it if not.
2183         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2185         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2186         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2187         (Depends-on): Update conditions.
2188         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2189         AIX problem.
2190
2191 2012-03-06  Bruno Haible  <bruno@clisp.org>
2192
2193         Work around expm1f bug on IRIX 6.5.
2194         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2195         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2196         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2197         not work.
2198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2199         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2200         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2201         (Depends-on): Update conditions.
2202         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2203
2204 2012-03-06  Bruno Haible  <bruno@clisp.org>
2205
2206         Tests for module 'expm1l'.
2207         * modules/expm1l-tests: New file.
2208         * tests/test-expm1l.c: New file.
2209
2210         New module 'expm1l'.
2211         * lib/math.in.h (expm1l): New declaration.
2212         * lib/expm1l.c: New file.
2213         * m4/expm1l.m4: New file.
2214         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2216         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2217         * modules/expm1l: New file.
2218         * tests/test-math-c++.cc: Check the declaration of expm1l.
2219         * doc/posix-functions/expm1l.texi: Mention the new module.
2220
2221 2012-03-06  Bruno Haible  <bruno@clisp.org>
2222
2223         Tests for module 'expm1f'.
2224         * modules/expm1f-tests: New file.
2225         * tests/test-expm1f.c: New file.
2226
2227         New module 'expm1f'.
2228         * lib/math.in.h (expm1f): New declaration.
2229         * lib/expm1f.c: New file.
2230         * m4/expm1f.m4: New file.
2231         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2233         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2234         * modules/expm1f: New file.
2235         * tests/test-math-c++.cc: Check the declaration of expm1f.
2236         * doc/posix-functions/expm1f.texi: Mention the new module.
2237
2238 2012-03-06  Bruno Haible  <bruno@clisp.org>
2239
2240         Tests for module 'expm1'.
2241         * modules/expm1-tests: New file.
2242         * tests/test-expm1.c: New file.
2243         * tests/test-expm1.h: New file.
2244
2245         New module 'expm1'.
2246         * lib/math.in.h (expm1): New declaration.
2247         * lib/expm1.c: New file.
2248         * m4/expm1.m4: New file.
2249         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2251         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2252         * modules/expm1: New file.
2253         * tests/test-math-c++.cc: Check the declaration of expm1.
2254         * doc/posix-functions/expm1.texi: Mention the new module.
2255
2256 2012-03-06  Bruno Haible  <bruno@clisp.org>
2257
2258         math: Ensure declarations of math functions.
2259         * modules/acosf (Depends-on): Add 'extensions'.
2260         * modules/asinf (Depends-on): Likewise.
2261         * modules/atan2f (Depends-on): Likewise.
2262         * modules/atanf (Depends-on): Likewise.
2263         * modules/cbrt (Depends-on): Likewise.
2264         * modules/cbrtf (Depends-on): Likewise.
2265         * modules/cbrtl (Depends-on): Likewise.
2266         * modules/copysignf (Depends-on): Likewise.
2267         * modules/copysignl (Depends-on): Likewise.
2268         * modules/cosf (Depends-on): Likewise.
2269         * modules/coshf (Depends-on): Likewise.
2270         * modules/expf (Depends-on): Likewise.
2271         * modules/fabsf (Depends-on): Likewise.
2272         * modules/fabsl (Depends-on): Likewise.
2273         * modules/fmaf (Depends-on): Likewise.
2274         * modules/fmal (Depends-on): Likewise.
2275         * modules/fmodf (Depends-on): Likewise.
2276         * modules/fmodl (Depends-on): Likewise.
2277         * modules/frexpf (Depends-on): Likewise.
2278         * modules/frexpl (Depends-on): Likewise.
2279         * modules/hypot (Depends-on): Likewise.
2280         * modules/hypotf (Depends-on): Likewise.
2281         * modules/hypotl (Depends-on): Likewise.
2282         * modules/ldexpf (Depends-on): Likewise.
2283         * modules/ldexpl (Depends-on): Likewise.
2284         * modules/log10f (Depends-on): Likewise.
2285         * modules/log10l (Depends-on): Likewise.
2286         * modules/log1p (Depends-on): Likewise.
2287         * modules/logb (Depends-on): Likewise.
2288         * modules/logf (Depends-on): Likewise.
2289         * modules/modff (Depends-on): Likewise.
2290         * modules/modfl (Depends-on): Likewise.
2291         * modules/powf (Depends-on): Likewise.
2292         * modules/remainderf (Depends-on): Likewise.
2293         * modules/remainderl (Depends-on): Likewise.
2294         * modules/rintf (Depends-on): Likewise.
2295         * modules/rintl (Depends-on): Likewise.
2296         * modules/sinf (Depends-on): Likewise.
2297         * modules/sinhf (Depends-on): Likewise.
2298         * modules/sqrtf (Depends-on): Likewise.
2299         * modules/tanf (Depends-on): Likewise.
2300         * modules/tanhf (Depends-on): Likewise.
2301         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2302         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2303         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2304         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2305         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2306         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2307         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2308         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2309         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2310         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2311         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2312         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2313         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2314         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2315         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2316         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2317         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2318         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2319         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2320         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2321         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2322         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2323         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2324         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2325         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2326         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2327         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2328         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2329         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2330         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2331         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2332         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2333         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2334         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2335         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2336         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2337         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2338         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2339         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2340         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2341         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2342
2343 2012-03-06  Bruno Haible  <bruno@clisp.org>
2344
2345         math: Update module names in warnings.
2346         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2347         tanl): Use specific module name in warn-on-use warning.
2348
2349 2012-03-06  Bruno Haible  <bruno@clisp.org>
2350
2351         expl: Simplify computation.
2352         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2353
2354 2012-03-05  Bruno Haible  <bruno@clisp.org>
2355
2356         exp* tests: More tests.
2357         * tests/test-exp.h: New file.
2358         * tests/test-exp.c: Include <float.h> and test-exp.h.
2359         (main): Invoke test_function.
2360         * tests/test-expf.c: Include <float.h> and test-exp.h.
2361         (main): Invoke test_function.
2362         * tests/test-expl.c: Include <float.h> and test-exp.h.
2363         (main): Invoke test_function.
2364         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2365         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2366         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2367         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2368         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2369         (Depends-on): Add 'float'.
2370         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2371
2372         expl: Fix precision of computed result.
2373         * lib/expl.c: Completely rewritten.
2374         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2375         (Maintainer): Add me.
2376         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2377
2378 2012-03-05  Bruno Haible  <bruno@clisp.org>
2379
2380         cbrt* tests: More tests.
2381         * tests/test-cbrt.h: New file.
2382         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2383         (main): Invoke test_function.
2384         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2385         (main): Invoke test_function.
2386         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2387         (main): Invoke test_function.
2388         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2389         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2390         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2391         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2392         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2393         (Depends-on): Add 'float'.
2394         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2395
2396 2012-03-05  Bruno Haible  <bruno@clisp.org>
2397
2398         hypot* tests: More tests.
2399         * tests/test-hypot.h: New file, partially extracted from
2400         tests/test-hypotl.c.
2401         * tests/test-hypot.c: Include test-hypot.h.
2402         (main): Invoke test_function.
2403         * tests/test-hypotf.c: Include test-hypot.h.
2404         (main): Invoke test_function.
2405         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2406         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2407         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2408         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2409         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2410         tests/randomf.c.
2411         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2412         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2413         tests/randoml.c.
2414         (Depends-on): Add 'fpucw', 'float'.
2415         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2416
2417 2012-03-05  Bruno Haible  <bruno@clisp.org>
2418
2419         fpucw: Doc about FreeBSD.
2420         * lib/fpucw.h: Mention FreeBSD in comments.
2421
2422 2012-03-04  Bruno Haible  <bruno@clisp.org>
2423
2424         sqrt* tests: More tests.
2425         * tests/test-sqrt.h: New file.
2426         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2427         (main): Invoke test_function.
2428         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2429         (main): Invoke test_function.
2430         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2431         (main): Invoke test_function.
2432         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2433         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2434         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2435         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2436         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2437         (Depends-on): Add 'float'.
2438         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2439
2440 2012-03-04  Bruno Haible  <bruno@clisp.org>
2441
2442         remainder* tests: More tests.
2443         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2444         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2445         (main): Invoke test_function.
2446         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2447         (main): Invoke test_function.
2448         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2449         (main): Invoke test_function.
2450         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2451         tests/randomd.c.
2452         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2453         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2454         tests/randomf.c.
2455         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2456         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2457         tests/randoml.c.
2458         (Depends-on): Add 'float'.
2459         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2460
2461 2012-03-04  Bruno Haible  <bruno@clisp.org>
2462
2463         remainder, remainderf, remainderl: Fix computation for large quotients.
2464         * lib/remainder.c: Completely rewritten.
2465         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2466         USE_FLOAT.
2467         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2468         USE_LONG_DOUBLE.
2469         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2470         isnand, isinf. Remove round, fma.
2471         * modules/remainderf (Files): Add lib/remainder.c.
2472         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2473         Remove roundf, fmaf.
2474         * modules/remainderl (Files): Add lib/remainder.c.
2475         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2476         isinf. Remove roundl, fmal.
2477         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2478         REMAINDER_LIBM.
2479         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2480         REMAINDERF_LIBM.
2481         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2482         REMAINDERL_LIBM.
2483
2484 2012-03-04  Bruno Haible  <bruno@clisp.org>
2485
2486         fmod* tests: More tests.
2487         * tests/test-fmod.h (my_ldexp): New function.
2488         (test_function): Reduce amount of random numbers to test. Add tests
2489         of very large quotients x / y.
2490         * tests/test-fmod.c (MAX_EXP): New macro.
2491         * tests/test-fmodf.c (MAX_EXP): Likewise.
2492         * tests/test-fmodl.c (MAX_EXP): Likewise.
2493
2494 2012-03-04  Bruno Haible  <bruno@clisp.org>
2495
2496         fmod, fmodl: Fix computation for large quotients x / y.
2497         * lib/fmod.c: Completely rewritten.
2498         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2499         USE_LONG_DOUBLE.
2500         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2501         isnand. Remove fma.
2502         * modules/fmodl (Files): Add lib/fmod.c.
2503         (Depends-on): Add float, isfinite, signbit, fabsl,
2504         frexpl, ldexpl, isnanl. Remove fma.
2505         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2506         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2507
2508 2012-03-03  Bruno Haible  <bruno@clisp.org>
2509
2510         fmod* tests: More tests.
2511         * tests/test-fmod.h: New file.
2512         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2513         (main): Invoke test_function.
2514         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2515         (main): Invoke test_function.
2516         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2517         (main): Invoke test_function.
2518         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2519         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2520         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2521         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2522         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2523         (Depends-on): Add 'float'.
2524         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2525
2526 2012-03-03  Bruno Haible  <bruno@clisp.org>
2527
2528         rint* tests: More tests.
2529         * tests/test-rint.h: New file, partially extracted from
2530         tests/test-rintl.c.
2531         * tests/test-rint.c: Include test-rint.h.
2532         (main): Invoke test_function.
2533         * tests/test-rintf.c: Include test-rint.h.
2534         (main): Invoke test_function.
2535         * tests/test-rintl.c: Include test-rint.h.
2536         (main): Invoke test_function.
2537         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2538         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2539         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2540         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2541         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2542         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2543
2544 2012-03-03  Bruno Haible  <bruno@clisp.org>
2545
2546         modf* tests: More tests.
2547         * tests/test-modf.h: New file.
2548         * tests/test-modf.c: Include <float.h> and test-modf.h.
2549         (main): Invoke test_function.
2550         * tests/test-modff.c: Include <float.h> and test-modf.h.
2551         (main): Invoke test_function.
2552         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2553         (main): Invoke test_function.
2554         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2555         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2556         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2557         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2558         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2559         (Depends-on): Add 'float'.
2560         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2561
2562 2012-03-03  Bruno Haible  <bruno@clisp.org>
2563
2564         fabs* tests: More tests.
2565         * tests/test-fabs.h: New file, partially extracted from
2566         tests/test-fabsl.c.
2567         * tests/test-fabs.c (RANDOM): New macro.
2568         * tests/test-fabsf.c (RANDOM): New macro.
2569         * tests/test-fabsl.c (RANDOM): New macro.
2570         * modules/fabs-tests (Files): Add tests/randomd.c.
2571         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2572         * modules/fabsf-tests (Files): Add tests/randomf.c.
2573         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2574         * modules/fabsl-tests (Files): Add tests/randoml.c.
2575         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2576
2577 2012-03-03  Bruno Haible  <bruno@clisp.org>
2578
2579         ldexp* tests: More tests.
2580         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2581         * tests/test-ldexp.c (RANDOM): New macro.
2582         * tests/test-ldexpf.c (RANDOM): New macro.
2583         * tests/test-ldexpl.c (RANDOM): New macro.
2584         * modules/ldexp-tests (Files): Add tests/randomd.c.
2585         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2586         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2587         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2588         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2589         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2590
2591 2012-03-03  Bruno Haible  <bruno@clisp.org>
2592
2593         frexp* tests: More tests.
2594         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2595         * tests/test-frexp.c (RANDOM): New macro.
2596         * tests/test-frexpf.c (RANDOM): New macro.
2597         * tests/test-frexpl.c (RANDOM): New macro.
2598         * modules/frexp-tests (Files): Add tests/randomd.c.
2599         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2600         * modules/frexpf-tests (Files): Add tests/randomf.c.
2601         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2602         * modules/frexpl-tests (Files): Add tests/randoml.c.
2603         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2604
2605 2012-03-03  Bruno Haible  <bruno@clisp.org>
2606
2607         Support for pseudo-random numbers in tests.
2608         * tests/randomf.c: New file.
2609         * tests/randomd.c: New file.
2610         * tests/randoml.c: New file.
2611         * tests/macros.h (randomf, randomd, randoml): New declarations.
2612
2613 2012-03-03  Bruno Haible  <bruno@clisp.org>
2614
2615         frexp* tests: Refactor.
2616         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2617         * tests/test-frexp.c: Include and use it.
2618         * tests/test-frexpf.c: Likewise.
2619         * tests/test-frexpl.c: Likewise.
2620         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2621         * modules/frexpf-tests (Files): Likewise.
2622         * modules/frexpl-tests (Files): Likewise.
2623
2624 2012-03-02  Jim Meyering  <meyering@redhat.com>
2625
2626         maint: don't specify XZ_OPT=-9ev in dist-related rule
2627         Using xz's -9 option is warranted only if you have a very large
2628         tarball (see xz's documentation for the sizes vs. presets), and
2629         requires 64MiB of memory at decompression time.
2630         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2631         Automake's default of just "-e" is fine.  Override on a
2632         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2633
2634 2012-03-01  Eric Blake  <eblake@redhat.com>
2635
2636         maint.mk: allow announcement for non-gnulib project
2637         * maint.mk (announcement): Skip gnulib version if not used.
2638
2639 2012-03-01  Jim Meyering  <meyering@redhat.com>
2640
2641         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2642         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2643         envvar settings cannot interfere.  Otherwise, setting envvars like
2644         prohibit=foo require=bar, etc. would cause spurious test failures.
2645
2646 2012-03-01  Eric Blake  <eblake@redhat.com>
2647
2648         maint.mk: add per-line exclusions to prohibitions
2649         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2650         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2651         (sc_const_long_option): Use it.
2652
2653 2012-03-01  Bruno Haible  <bruno@clisp.org>
2654
2655         Tests for module 'expl-ieee'.
2656         * modules/expl-ieee-tests: New file.
2657         * tests/test-expl-ieee.c: New file.
2658
2659         New module 'expl-ieee'.
2660         * modules/expl-ieee: New file.
2661
2662         Tests for module 'exp-ieee'.
2663         * modules/exp-ieee-tests: New file.
2664         * tests/test-exp-ieee.c: New file.
2665
2666         New module 'exp-ieee'.
2667         * modules/exp-ieee: New file.
2668
2669         Tests for module 'expf-ieee'.
2670         * modules/expf-ieee-tests: New file.
2671         * tests/test-expf-ieee.c: New file.
2672         * tests/test-exp-ieee.h: New file.
2673
2674         New module 'expf-ieee'.
2675         * modules/expf-ieee: New file.
2676
2677 2012-02-29  Bruno Haible  <bruno@clisp.org>
2678
2679         cbrtl-ieee: Work around test failure on IRIX 6.5.
2680         * m4/cbrtl-ieee.m4: New file.
2681         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2682         test whether cbrtl works with a minus zero argument. Replace it if not.
2683         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2685         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2686         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2687         (Depends-on): Update conditions.
2688         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2689         m4/signbit.m4.
2690         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2691         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2692         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2693
2694         Tests for module 'cbrtl-ieee'.
2695         * modules/cbrtl-ieee-tests: New file.
2696         * tests/test-cbrtl-ieee.c: New file.
2697
2698         New module 'cbrtl-ieee'.
2699         * modules/cbrtl-ieee: New file.
2700
2701         Tests for module 'cbrt-ieee'.
2702         * modules/cbrt-ieee-tests: New file.
2703         * tests/test-cbrt-ieee.c: New file.
2704
2705         New module 'cbrt-ieee'.
2706         * modules/cbrt-ieee: New file.
2707
2708         Tests for module 'cbrtf-ieee'.
2709         * modules/cbrtf-ieee-tests: New file.
2710         * tests/test-cbrtf-ieee.c: New file.
2711         * tests/test-cbrt-ieee.h: New file.
2712
2713         New module 'cbrtf-ieee'.
2714         * modules/cbrtf-ieee: New file.
2715
2716 2012-02-29  Bruno Haible  <bruno@clisp.org>
2717
2718         cbrtf: Work around bug in IRIX 6.5 system function.
2719         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2720         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2721         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2722         work.
2723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2724         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2725         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2726         (Depends-on): Update conditions.
2727         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2728
2729 2012-02-29  Bruno Haible  <bruno@clisp.org>
2730
2731         Tests for module 'cbrtl'.
2732         * modules/cbrtl-tests: New file.
2733         * tests/test-cbrtl.c: New file.
2734
2735         New module 'cbrtl'.
2736         * lib/math.in.h (cbrtl): New declaration.
2737         * lib/cbrtl.c: New file.
2738         * m4/cbrtl.m4: New file.
2739         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2741         HAVE_DECL_CBRTL.
2742         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2743         HAVE_DECL_CBRTL.
2744         * modules/cbrtl: New file.
2745         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2746         * doc/posix-functions/cbrtl.texi: Mention the new module.
2747
2748 2012-02-29  Bruno Haible  <bruno@clisp.org>
2749
2750         Tests for module 'cbrtf'.
2751         * modules/cbrtf-tests: New file.
2752         * tests/test-cbrtf.c: New file.
2753
2754         New module 'cbrtf'.
2755         * lib/math.in.h (cbrtf): New declaration.
2756         * lib/cbrtf.c: New file.
2757         * m4/cbrtf.m4: New file.
2758         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2760         HAVE_DECL_CBRTF.
2761         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2762         HAVE_DECL_CBRTF.
2763         * modules/cbrtf: New file.
2764         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2765         * doc/posix-functions/cbrtf.texi: Mention the new module.
2766
2767 2012-02-29  Bruno Haible  <bruno@clisp.org>
2768
2769         cbrt: Provide replacement on MSVC and Minix.
2770         * lib/math.in.h (cbrt): New declaration.
2771         * lib/cbrt.c: New file.
2772         * m4/cbrt.m4: New file.
2773         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2775         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2776         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2777         (Depends-on): Add dependencies.
2778         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2779         * tests/test-math-c++.cc: Check the declaration of cbrt.
2780         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2781         replacement.
2782
2783 2012-02-29  Bruno Haible  <bruno@clisp.org>
2784
2785         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2786         * m4/hypotl-ieee.m4: New file.
2787         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2788         test whether hypotl works with mixed NaN and Infinity arguments.
2789         Replace it if not.
2790         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2792         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2793         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2794         (Depends-on): Update conditions.
2795         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2796         (Depends-on): Add hypot-ieee.
2797         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2798         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2799
2800         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2801         * m4/hypotf-ieee.m4: New file.
2802         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2803         test whether hypotf works with mixed NaN and Infinity arguments.
2804         Replace it if not.
2805         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2806         (Depends-on): Add hypot-ieee.
2807         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2808         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2809
2810         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2811         * lib/math.in.h (hypot): New declaration.
2812         * lib/hypot.c: New file.
2813         * m4/hypot-ieee.m4: New file.
2814         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2815         whether hypot works with mixed NaN and Infinity arguments. Replace it
2816         if not.
2817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2818         REPLACE_HYPOT.
2819         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2820         * modules/hypot (Files): Add lib/hypot.c.
2821         (Depends-on): Add dependencies.
2822         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2823         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2824         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2825         * tests/test-math-c++.cc: Check the declaration of hypot.
2826         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2827
2828         Tests for module 'hypotl-ieee'.
2829         * modules/hypotl-ieee-tests: New file.
2830         * tests/test-hypotl-ieee.c: New file.
2831
2832         New module 'hypotl-ieee'.
2833         * modules/hypotl-ieee: New file.
2834
2835         Tests for module 'hypot-ieee'.
2836         * modules/hypot-ieee-tests: New file.
2837         * tests/test-hypot-ieee.c: New file.
2838
2839         New module 'hypot-ieee'.
2840         * modules/hypot-ieee: New file.
2841
2842         Tests for module 'hypotf-ieee'.
2843         * modules/hypotf-ieee-tests: New file.
2844         * tests/test-hypotf-ieee.c: New file.
2845         * tests/test-hypot-ieee.h: New file.
2846
2847         New module 'hypotf-ieee'.
2848         * modules/hypotf-ieee: New file.
2849
2850 2012-02-29  Bruno Haible  <bruno@clisp.org>
2851
2852         Remove unused variables.
2853         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2854         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2855         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2856         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2857
2858 2012-02-29  Eric Blake  <eblake@redhat.com>
2859
2860         termios: fix pid_t always, not just for tcgetsid
2861         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2862         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2863         just when building tcgetsid.
2864
2865 2012-02-29  Bruno Haible  <bruno@clisp.org>
2866
2867         Tests for module 'hypotl'.
2868         * modules/hypotl-tests: New file.
2869         * tests/test-hypotl.c: New file.
2870
2871         New module 'hypotl'.
2872         * lib/math.in.h (hypotl): New declaration.
2873         * lib/hypotl.c: New file.
2874         * m4/hypotl.m4: New file.
2875         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2877         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2878         * modules/hypotl: New file.
2879         * tests/test-math-c++.cc: Check the hypotl declaration.
2880         * doc/posix-functions/hypotl.texi: Mention the new module.
2881
2882 2012-02-29  Eric Blake  <eblake@redhat.com>
2883
2884         tcgetsid: fix cygwin header bug
2885         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2886
2887         docs: update cygwin progress
2888         * doc/posix-functions/llround.texi (llround): Added in cygwin
2889         1.7.8.
2890         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2891         * doc/glibc-functions/program_invocation_name.texi
2892         (program_invocation_name): Likewise.
2893         * doc/glibc-functions/program_invocation_short_name.texi
2894         (program_invocation_short_name): Likewise.
2895         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2896         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2897         Likewise.
2898         * doc/posix-functions/pthread_spin_destroy.texi
2899         (pthread_spin_destroy): Added in cygwin 1.7.10.
2900         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2901         Likewise.
2902         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2903         Likewise.
2904         * doc/posix-functions/pthread_spin_trylock.texi
2905         (pthread_spin_trylock): Likewise.
2906         * doc/posix-functions/pthread_spin_unlock.texi
2907         (pthread_spin_unlock): Likewise.
2908         * doc/posix-functions/pthread_setschedprio.texi
2909         (pthread_setschedprio): Likewise.
2910         * doc/posix-functions/pthread_attr_getstack.texi
2911         (pthread_attr_getstack): Likewise.
2912         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2913         (pthread_attr_getstackaddr): Likewise.
2914         * doc/glibc-functions/pthread_getattr_np.texi
2915         (pthread_getattr_np): Likewise.
2916         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2917         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2918         * doc/posix-functions/clock_settime.texi (clock_settime):
2919         Likewise.
2920         * doc/posix-functions/pthread_attr_getguardsize.texi
2921         (pthread_attr_getguardsize): Likewise.
2922         * doc/posix-functions/pthread_attr_setguardsize.texi
2923         (pthread_attr_setguardsize): Likewise.
2924         * doc/posix-functions/pthread_attr_setstack.texi
2925         (pthread_attr_setstack): Likewise.
2926         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2927         (pthread_attr_setstackaddr): Likewise.
2928         * doc/posix-functions/clock_getcpuclockid.texi
2929         (clock_getcpuclockid): Likewise.
2930         * doc/posix-functions/pthread_getcpuclockid.texi
2931         (pthread_getcpuclockid): Likewise.
2932         * doc/glibc-functions/error.texi (error): Likewise.
2933         * doc/glibc-functions/error_at_line.texi (error_at_line):
2934         Likewise.
2935         * doc/glibc-functions/error_message_count.texi
2936         (error_message_count): Likewise.
2937         * doc/glibc-functions/error_one_per_line.texi
2938         (error_one_per_line): Likewise.
2939         * doc/glibc-functions/error_print_progname.texi
2940         (error_print_progname): Likewise.
2941         * doc/posix-functions/pthread_condattr_getclock.texi
2942         (pthread_condattr_getclock): Likewise.
2943         * doc/posix-functions/pthread_condattr_setclock.texi
2944         (pthread_condattr_setclock): Likewise.
2945         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2946         Likewise.
2947         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2948         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2949         * doc/glibc-functions/get_current_dir_name.texi
2950         (get_current_dir_name): Likewise.
2951         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2952         Likewise.
2953         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2954         wrong return type.
2955         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2956         1.7.11.
2957
2958 2012-02-29  Bruno Haible  <bruno@clisp.org>
2959
2960         Tests for module 'hypotf'.
2961         * modules/hypotf-tests: New file.
2962         * tests/test-hypotf.c: New file.
2963
2964         New module 'hypotf'.
2965         * lib/math.in.h (hypotf): New declaration.
2966         * lib/hypotf.c: New file.
2967         * m4/hypotf.m4: New file.
2968         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2969         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2970         REPLACE_HYPOTF.
2971         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2972         REPLACE_HYPOTF.
2973         * modules/hypotf: New file.
2974         * tests/test-math-c++.cc: Check the hypotf declaration.
2975         * doc/posix-functions/hypotf.texi: Mention the new module.
2976
2977         hypot: Prepare for hypotf module.
2978         * m4/hypot.m4: New file.
2979         * modules/hypot (Files): Add m4/hypot.m4.
2980         (configure.ac): Invoke gl_FUNC_HYPOT.
2981
2982 2012-02-29  Bruno Haible  <bruno@clisp.org>
2983
2984         hypot tests: More tests.
2985         * tests/test-hypot.c: Include <float.h>.
2986         (main): Add tests about overflow and underflow.
2987
2988 2012-02-29  Bruno Haible  <bruno@clisp.org>
2989
2990         math code: Add comments.
2991         * lib/acosl.c: Add comment about related glibc source files.
2992         * lib/asinl.c: Likewise.
2993         * lib/atanl.c: Likewise.
2994         * lib/expl.c: Likewise.
2995         * lib/logl.c: Likewise.
2996         * lib/sincosl.c: Likewise.
2997         * lib/sinl.c: Likewise.
2998         * lib/tanl.c: Likewise.
2999         * lib/trigl.c: Likewise.
3000         * lib/cosl.c: Likewise. Fix comments.
3001
3002 2012-02-28  Bruno Haible  <bruno@clisp.org>
3003
3004         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3005         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3006         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3007         HUGE_VALL are defined.
3008         (numeric_equald): Renamed from numeric_equal.
3009         (numeric_equalf, numeric_equall): New functions.
3010         (main): Check also HUGE_VALF, HUGE_VALL.
3011         * modules/math-tests (Files): Add tests/macros.h.
3012         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3013         HUGE_VALL.
3014
3015 2012-02-28  Bruno Haible  <bruno@clisp.org>
3016
3017         doc: Move ISO C11 feature notes into POSIX chapters.
3018         * doc/posix-functions/aligned_alloc.texi: Renamed from
3019         doc/glibc-functions/aligned_alloc.texi.
3020         * doc/posix-functions/quick_exit.texi: Renamed from
3021         doc/glibc-functions/quick_exit.texi.
3022         * doc/posix-headers/uchar.texi: Renamed from
3023         doc/glibc-headers/uchar.texi.
3024         * doc/posix-functions/c16rtomb.texi: Renamed from
3025         doc/glibc-functions/c16rtomb.texi.
3026         * doc/posix-functions/c32rtomb.texi: Renamed from
3027         doc/glibc-functions/c32rtomb.texi.
3028         * doc/posix-functions/mbrtoc16.texi: Renamed from
3029         doc/glibc-functions/mbrtoc16.texi.
3030         * doc/posix-functions/mbrtoc32.texi: Renamed from
3031         doc/glibc-functions/mbrtoc32.texi.
3032         * doc/gnulib.texi: Update.
3033         (Glibc uchar.h): Remove section.
3034         Suggested by Eric Blake.
3035
3036 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3037
3038         stdnoreturn: port to MSVC better
3039         MSVC standard headers use __declspec(noreturn), so #define noreturn
3040         to empty on that platform.  Reported by Bruno Haible in
3041         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3042         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3043         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3044
3045 2012-02-28  Bruno Haible  <bruno@clisp.org>
3046
3047         doc: Mention new glibc headers and functions.
3048         * doc/glibc-headers/uchar.texi: New file.
3049         * doc/glibc-functions/aligned_alloc.texi: New file.
3050         * doc/glibc-functions/c16rtomb.texi: New file.
3051         * doc/glibc-functions/c32rtomb.texi: New file.
3052         * doc/glibc-functions/clock_adjtime.texi: New file.
3053         * doc/glibc-functions/fanotify_init.texi: New file.
3054         * doc/glibc-functions/fanotify_mark.texi: New file.
3055         * doc/glibc-functions/inet6_opt_append.texi: New file.
3056         * doc/glibc-functions/inet6_opt_find.texi: New file.
3057         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3058         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3059         * doc/glibc-functions/inet6_opt_init.texi: New file.
3060         * doc/glibc-functions/inet6_opt_next.texi: New file.
3061         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3062         * doc/glibc-functions/inet6_rth_add.texi: New file.
3063         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3064         * doc/glibc-functions/inet6_rth_init.texi: New file.
3065         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3066         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3067         * doc/glibc-functions/inet6_rth_space.texi: New file.
3068         * doc/glibc-functions/login.texi: New file.
3069         * doc/glibc-functions/mbrtoc16.texi: New file.
3070         * doc/glibc-functions/mbrtoc32.texi: New file.
3071         * doc/glibc-functions/name_to_handle_at.texi: New file.
3072         * doc/glibc-functions/ntp_gettimex.texi: New file.
3073         * doc/glibc-functions/open_by_handle_at.texi: New file.
3074         * doc/glibc-functions/prlimit.texi: New file.
3075         * doc/glibc-functions/process_vm_readv.texi: New file.
3076         * doc/glibc-functions/process_vm_writev.texi: New file.
3077         * doc/glibc-functions/recvmmsg.texi: New file.
3078         * doc/glibc-functions/scandirat.texi: New file.
3079         * doc/glibc-functions/sendmmsg.texi: New file.
3080         * doc/glibc-functions/setns.texi: New file.
3081         * doc/glibc-functions/timespec_get.texi: New file.
3082         * doc/gnulib.texi: Include them.
3083         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3084         sections.
3085         Reported by Eric Blake.
3086
3087 2012-02-28  Bruno Haible  <bruno@clisp.org>
3088
3089         Avoid compilation errors with MSVC option -fp:strict.
3090         * lib/floor.c: Use MSVC specific pragma fenv_access.
3091         * lib/ceil.c: Likewise.
3092         * lib/trunc.c: Likewise.
3093         * lib/round.c: Likewise.
3094         * lib/rint.c: Likewise.
3095         * lib/fma.c: Likewise.
3096         * lib/integer_length.c: Likewise.
3097         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3098         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3099         * tests/test-floor2.c: Likewise.
3100         * tests/test-floorf2.c: Likewise.
3101         * tests/test-ceil2.c: Likewise.
3102         * tests/test-ceilf2.c: Likewise.
3103         * tests/test-trunc2.c: Likewise.
3104         * tests/test-truncf2.c: Likewise.
3105         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3106
3107 2012-02-27  Bruno Haible  <bruno@clisp.org>
3108
3109         Tests for module 'sqrtl-ieee'.
3110         * modules/sqrtl-ieee-tests: New file.
3111         * tests/test-sqrtl-ieee.c: New file.
3112
3113         New module 'sqrtl-ieee'.
3114         * modules/sqrtl-ieee: New file.
3115
3116         Tests for module 'sqrt-ieee'.
3117         * modules/sqrt-ieee-tests: New file.
3118         * tests/test-sqrt-ieee.c: New file.
3119
3120         New module 'sqrt-ieee'.
3121         * modules/sqrt-ieee: New file.
3122
3123         Tests for module 'sqrtf-ieee'.
3124         * modules/sqrtf-ieee-tests: New file.
3125         * tests/test-sqrtf-ieee.c: New file.
3126         * tests/test-sqrt-ieee.h: New file.
3127
3128         New module 'sqrtf-ieee'.
3129         * modules/sqrtf-ieee: New file.
3130
3131 2012-02-27  Bruno Haible  <bruno@clisp.org>
3132
3133         remainderl-ieee: Work around test failure on OSF/1.
3134         * m4/remainderl-ieee.m4: New file.
3135         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3136         present, test whether remainderl works with a zero second argument.
3137         Replace it if not.
3138         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3140         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3141         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3142         (Depends-on): Update conditions.
3143         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3144         (Depends-on): Add remainder-ieee.
3145         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3146         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3147         module.
3148
3149         remainderf-ieee: Work around test failure on OSF/1.
3150         * m4/remainderf-ieee.m4: New file.
3151         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3152         present, test whether remainderf works with a zero second argument.
3153         Replace it if not.
3154         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3156         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3157         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3158         (Depends-on): Update conditions.
3159         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3160         (Depends-on): Add remainder-ieee.
3161         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3162         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3163         module.
3164
3165         remainder-ieee: Work around test failure on OSF/1.
3166         * m4/remainder-ieee.m4: New file.
3167         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3168         present, test whether remainder works with a zero second argument.
3169         Replace it if not.
3170         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3172         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3173         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3174         (Depends-on): Update dependencies.
3175         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3176         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3177         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3178
3179         Tests for module 'remainderl-ieee'.
3180         * modules/remainderl-ieee-tests: New file.
3181         * tests/test-remainderl-ieee.c: New file.
3182
3183         New module 'remainderl-ieee'.
3184         * modules/remainderl-ieee: New file.
3185
3186         Tests for module 'remainder-ieee'.
3187         * modules/remainder-ieee-tests: New file.
3188         * tests/test-remainder-ieee.c: New file.
3189
3190         New module 'remainder-ieee'.
3191         * modules/remainder-ieee: New file.
3192
3193         Tests for module 'remainderf-ieee'.
3194         * modules/remainderf-ieee-tests: New file.
3195         * tests/test-remainderf-ieee.c: New file.
3196         * tests/test-remainder-ieee.h: New file.
3197
3198         New module 'remainderf-ieee'.
3199         * modules/remainderf-ieee: New file.
3200
3201 2012-02-27  Bruno Haible  <bruno@clisp.org>
3202
3203         modff, modfl: Fix configure syntax error.
3204         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3205         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3206
3207 2012-02-27  Bruno Haible  <bruno@clisp.org>
3208
3209         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3210         * m4/fmodl-ieee.m4: New file.
3211         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3212         whether fmodl works with zero arguments. Replace it if not.
3213         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3214         (Depends-on): Add fmod-ieee.
3215         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3216         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3217
3218         fmodf-ieee: Work around test failure on OSF/1.
3219         * m4/fmodf-ieee.m4: New file.
3220         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3221         whether fmodf works with zero arguments. Replace it if not.
3222         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3224         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3225         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3226         (Depends-on): Update dependencies.
3227         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3228         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3229         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3230
3231         fmodf-ieee: Work around test failure on MSVC 9.
3232         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3233         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3234
3235         fmod-ieee: Work around test failures on OSF/1, mingw.
3236         * m4/fmod-ieee.m4: New file.
3237         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3238         whether fmod works with zero arguments. Replace it if not.
3239         * lib/math.in.h (fmod): New declaration.
3240         * lib/fmod.c: New file.
3241         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3243         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3244         * modules/fmod (Files): Add lib/fmod.c.
3245         (Depends-on): Add math, isinf, trunc, fma.
3246         (configure.ac): Arrange to compile lib/fmod.c if needed.
3247         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3248         m4/signbit.m4.
3249         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3250         * tests/test-math-c++.cc: Check the declaration of fmod.
3251         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3252
3253         fmodl-ieee: Fix test failures.
3254         * lib/fmodl.c (fmodl): Treat Inf specially.
3255         * modules/fmodl (Depends-on): Add isinf.
3256
3257         Tests for module 'fmodl-ieee'.
3258         * modules/fmodl-ieee-tests: New file.
3259         * tests/test-fmodl-ieee.c: New file.
3260
3261         New module 'fmodl-ieee'.
3262         * modules/fmodl-ieee: New file.
3263
3264         Tests for module 'fmod-ieee'.
3265         * modules/fmod-ieee-tests: New file.
3266         * tests/test-fmod-ieee.c: New file.
3267
3268         New module 'fmod-ieee'.
3269         * modules/fmod-ieee: New file.
3270
3271         Tests for module 'fmodf-ieee'.
3272         * modules/fmodf-ieee-tests: New file.
3273         * tests/test-fmodf-ieee.c: New file.
3274         * tests/test-fmod-ieee.h: New file.
3275
3276         New module 'fmodf-ieee'.
3277         * modules/fmodf-ieee: New file.
3278
3279 2012-02-27  Bruno Haible  <bruno@clisp.org>
3280
3281         Tests for module 'rintl-ieee'.
3282         * modules/rintl-ieee-tests: New file.
3283         * tests/test-rintl-ieee.c: New file.
3284
3285         New module 'rintl-ieee'.
3286         * modules/rintl-ieee: New file.
3287
3288         Tests for module 'rint-ieee'.
3289         * modules/rint-ieee-tests: New file.
3290         * tests/test-rint-ieee.c: New file.
3291
3292         New module 'rint-ieee'.
3293         * modules/rint-ieee: New file.
3294
3295         Tests for module 'rintf-ieee'.
3296         * modules/rintf-ieee-tests: New file.
3297         * tests/test-rintf-ieee.c: New file.
3298         * tests/test-rint-ieee.h: New file.
3299
3300         New module 'rintf-ieee'.
3301         * modules/rintf-ieee: New file.
3302
3303 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3304
3305         regex: re_search etc. should return -2 when memory exhausted
3306         This bug was uncovered when testing 'grep'.  Without the fix,
3307         re_search and friends return -1 when memory is exhausted, but -1
3308         means no match, and this causes grep to falsely report no-match
3309         instead of memory-exhaustion.  See
3310         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3311         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3312         trouble; this can occur if re_search_internal ran out of memory.
3313
3314 2012-02-26  Bruno Haible  <bruno@clisp.org>
3315
3316         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3317         * m4/modfl-ieee.m4: New file.
3318         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3319         whether modfl works with Inf. Replace it if not.
3320         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3322         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3323         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3324         (Depends-on): Update dependencies.
3325         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3326         m4/signbit.m4.
3327         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3328         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3329
3330         modfl-ieee: Fix dependencies.
3331         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3332
3333         modfl-ieee: Fix test failures.
3334         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3335         * modules/modfl (Depends-on): Add isfinite, isinf.
3336
3337         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3338         * m4/modff-ieee.m4: New file.
3339         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3340         whether modff works with NaN and Inf. Replace it if not.
3341         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3343         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3344         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3345         (Depends-on): Update dependencies.
3346         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3347         m4/signbit.m4.
3348         (Depends-on): Add modf-ieee.
3349         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3350         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3351
3352         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3353         * m4/modf-ieee.m4: New file.
3354         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3355         whether modf works with NaN and Inf. Replace it if not.
3356         * lib/math.in.h (modf): New declaration.
3357         * lib/modf.c: New file.
3358         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3360         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3361         * modules/modf (Files): Add lib/modf.c.
3362         (Depends-on): Add math, isfinite, trunc, isinf.
3363         (configure.ac): Addrange to compile lib/modf.c if needed.
3364         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3365         m4/signbit.m4.
3366         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3367         * tests/test-math-c++.cc: Check the declaration of modf.
3368         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3369
3370         Tests for module 'modfl-ieee'.
3371         * modules/modfl-ieee-tests: New file.
3372         * tests/test-modfl-ieee.c: New file.
3373
3374         New module 'modfl-ieee'.
3375         * modules/modfl-ieee: New file.
3376
3377         Tests for module 'modf-ieee'.
3378         * modules/modf-ieee-tests: New file.
3379         * tests/test-modf-ieee.c: New file.
3380
3381         New module 'modf-ieee'.
3382         * modules/modf-ieee: New file.
3383
3384         Tests for module 'modff-ieee'.
3385         * modules/modff-ieee-tests: New file.
3386         * tests/test-modff-ieee.c: New file.
3387         * tests/test-modf-ieee.h: New file.
3388
3389         New module 'modff-ieee'.
3390         * modules/modff-ieee: New file.
3391
3392 2012-02-26  Bruno Haible  <bruno@clisp.org>
3393
3394         Tests for module 'fabsl-ieee'.
3395         * modules/fabsl-ieee-tests: New file.
3396         * tests/test-fabsl-ieee.c: New file.
3397
3398         New module 'fabsl-ieee'.
3399         * modules/fabsl-ieee: New file.
3400
3401         Tests for module 'fabs-ieee'.
3402         * modules/fabs-ieee-tests: New file.
3403         * tests/test-fabs-ieee.c: New file.
3404
3405         New module 'fabs-ieee'.
3406         * modules/fabs-ieee: New file.
3407
3408         Tests for module 'fabsf-ieee'.
3409         * modules/fabsf-ieee-tests: New file.
3410         * tests/test-fabsf-ieee.c: New file.
3411         * tests/test-fabs-ieee.h: New file.
3412
3413         New module 'fabsf-ieee'.
3414         * modules/fabsf-ieee: New file.
3415
3416 2012-02-26  Bruno Haible  <bruno@clisp.org>
3417
3418         Tests for module 'fmal-ieee'.
3419         * modules/fmal-ieee-tests: New file.
3420         * tests/test-fmal-ieee.c: New file.
3421
3422         New module 'fmal-ieee'.
3423         * modules/fmal-ieee: New file.
3424
3425         Tests for module 'fma-ieee'.
3426         * modules/fma-ieee-tests: New file.
3427         * tests/test-fma-ieee.c: New file.
3428
3429         New module 'fma-ieee'.
3430         * modules/fma-ieee: New file.
3431
3432         Tests for module 'fmaf-ieee'.
3433         * modules/fmaf-ieee-tests: New file.
3434         * tests/test-fmaf-ieee.c: New file.
3435         * tests/test-fma-ieee.h: New file.
3436
3437         New module 'fmaf-ieee'.
3438         * modules/fmaf-ieee: New file.
3439
3440 2012-02-26  Bruno Haible  <bruno@clisp.org>
3441
3442         Tests for module 'ldexpl-ieee'.
3443         * modules/ldexpl-ieee-tests: New file.
3444         * tests/test-ldexpl-ieee.c: New file.
3445
3446         New module 'ldexpl-ieee'.
3447         * modules/ldexpl-ieee: New file.
3448
3449         Tests for module 'ldexp-ieee'.
3450         * modules/ldexp-ieee-tests: New file.
3451         * tests/test-ldexp-ieee.c: New file.
3452
3453         New module 'ldexp-ieee'.
3454         * modules/ldexp-ieee: New file.
3455
3456         Tests for module 'ldexpf-ieee'.
3457         * modules/ldexpf-ieee-tests: New file.
3458         * tests/test-ldexpf-ieee.c: New file.
3459         * tests/test-ldexp-ieee.h: New file.
3460
3461         New module 'ldexpf-ieee'.
3462         * modules/ldexpf-ieee: New file.
3463
3464 2012-02-26  Bruno Haible  <bruno@clisp.org>
3465
3466         Refactor frexp*-ieee tests.
3467         * tests/test-frexp-ieee.h: New file.
3468         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3469         (main): Just call test_function.
3470         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3471         (main): Just call test_function.
3472         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3473         (main): Just call test_function.
3474         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3475         * modules/frexp-ieee-tests (Files): Likewise.
3476         * modules/frexpl-ieee-tests (Files): Likewise.
3477
3478         Tests for module 'frexpl-ieee'.
3479         * modules/frexpl-ieee-tests: New file.
3480         * tests/test-frexpl-ieee.c: New file.
3481
3482         New module 'frexpl-ieee'.
3483         * modules/frexpl-ieee: New file.
3484
3485         Tests for module 'frexp-ieee'.
3486         * modules/frexp-ieee-tests: New file.
3487         * tests/test-frexp-ieee.c: New file.
3488
3489         New module 'frexp-ieee'.
3490         * modules/frexp-ieee: New file.
3491
3492         Tests for module 'frexpf-ieee'.
3493         * modules/frexpf-ieee-tests: New file.
3494         * tests/test-frexpf-ieee.c: New file.
3495
3496         New module 'frexpf-ieee'.
3497         * modules/frexpf-ieee: New file.
3498
3499 2012-02-26  Bruno Haible  <bruno@clisp.org>
3500
3501         roundl-ieee tests: More tests.
3502         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3503         (main): Add tests for [MX] shaded specification in POSIX.
3504         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3505         (Depends-on): Add isnanl-nolibm.
3506
3507         round-ieee tests: More tests.
3508         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3509         (main): Add tests for [MX] shaded specification in POSIX.
3510         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3511         (Depends-on): Add isnand-nolibm.
3512
3513         roundf-ieee tests: More tests.
3514         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3515         (main): Add tests for [MX] shaded specification in POSIX.
3516         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3517         (Depends-on): Add isnanf-nolibm.
3518
3519         truncl-ieee tests: More tests.
3520         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3521         (main): Add tests for [MX] shaded specification in POSIX.
3522         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3523         (Depends-on): Add isnanl-nolibm.
3524
3525         trunc-ieee tests: More tests.
3526         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3527         (main): Add tests for [MX] shaded specification in POSIX.
3528         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3529         (Depends-on): Add isnand-nolibm.
3530
3531         truncf-ieee tests: More tests.
3532         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3533         (main): Add tests for [MX] shaded specification in POSIX.
3534         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3535         (Depends-on): Add isnanf-nolibm.
3536
3537         ceill-ieee tests: More tests.
3538         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3539         (main): Add tests for [MX] shaded specification in POSIX.
3540         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3541         (Depends-on): Add isnanl-nolibm.
3542
3543         ceil-ieee tests: More tests.
3544         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3545         (main): Add tests for [MX] shaded specification in POSIX.
3546         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3547         (Depends-on): Add isnand-nolibm.
3548
3549         ceilf-ieee tests: More tests.
3550         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3551         (main): Add tests for [MX] shaded specification in POSIX.
3552         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3553         (Depends-on): Add isnanf-nolibm.
3554
3555         floorl-ieee tests: More tests.
3556         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3557         (main): Add tests for [MX] shaded specification in POSIX.
3558         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3559         (Depends-on): Add isnanl-nolibm.
3560
3561         floor-ieee tests: More tests.
3562         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3563         (main): Add tests for [MX] shaded specification in POSIX.
3564         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3565         (Depends-on): Add isnand-nolibm.
3566
3567         floorf-ieee tests: More tests.
3568         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3569         (main): Add tests for [MX] shaded specification in POSIX.
3570         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3571         (Depends-on): Add isnanf-nolibm.
3572
3573 2012-02-26  Bruno Haible  <bruno@clisp.org>
3574
3575         fpieee: More comments.
3576         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3577
3578 2012-02-25  Bruno Haible  <bruno@clisp.org>
3579
3580         Tests for module 'log10l'.
3581         * modules/log10l-tests: New file.
3582         * tests/test-log10l.c: New file.
3583         * tests/test-math-c++.cc: Check the declaration of log10l.
3584
3585         New module 'log10l'.
3586         * lib/math.in.h (log10l): New declaration.
3587         * lib/log10l.c: New file.
3588         * m4/log10l.m4: New file.
3589         * modules/log10l: New file.
3590         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3592         HAVE_DECL_LOG10L.
3593         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3594         HAVE_DECL_LOG10L.
3595         * doc/posix-functions/log10l.texi: Mention the new module.
3596
3597 2012-02-25  Bruno Haible  <bruno@clisp.org>
3598
3599         fmodl, remainder*: Avoid wrong results due to rounding errors.
3600         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3601         expected bounds.
3602         * lib/remainderf.c (remainderf): Likewise.
3603         * lib/remainder.c (remainder): Likewise.
3604         * lib/remainderl.c (remainderl): Likewise.
3605
3606 2012-02-25  Bruno Haible  <bruno@clisp.org>
3607
3608         Tests for module 'remainderl'.
3609         * modules/remainderl-tests: New file.
3610         * tests/test-remainderl.c: New file.
3611         * tests/test-math-c++.cc: Check the declaration of remainderl.
3612
3613         New module 'remainderl'.
3614         * lib/math.in.h (remainderl): New declaration.
3615         * lib/remainderl.c: New file.
3616         * m4/remainderl.m4: New file.
3617         * modules/remainderl: New file.
3618         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3620         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3621         HAVE_REMAINDERL.
3622         * doc/posix-functions/remainderl.texi: Mention the new module.
3623
3624 2012-02-25  Bruno Haible  <bruno@clisp.org>
3625
3626         Tests for module 'remainderf'.
3627         * modules/remainderf-tests: New file.
3628         * tests/test-remainderf.c: New file.
3629         * tests/test-math-c++.cc: Check the declaration of remainderf.
3630
3631         New module 'remainderf'.
3632         * lib/math.in.h (remainderf): New declaration.
3633         * lib/remainderf.c: New file.
3634         * m4/remainderf.m4: New file.
3635         * modules/remainderf: New file.
3636         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3638         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3639         HAVE_REMAINDERF.
3640         * doc/posix-functions/remainderf.texi: Mention the new module.
3641
3642 2012-02-25  Bruno Haible  <bruno@clisp.org>
3643
3644         remainder: Support for MSVC.
3645         * lib/math.in.h (remainder): New declaration.
3646         * lib/remainder.c: New file.
3647         * m4/remainder.m4: New file.
3648         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3649         (Depends-on): Add math, round, fma.
3650         (configure.ac): Use results of gl_FUNC_REMAINDER.
3651         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3653         HAVE_DECL_REMAINDER.
3654         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3655         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3656         * tests/test-math-c++.cc: Check the declaration of remainder.
3657         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3658         problems are fixed.
3659
3660 2012-02-25  Bruno Haible  <bruno@clisp.org>
3661
3662         Tests for module 'fmodl'.
3663         * modules/fmodl-tests: New file.
3664         * tests/test-fmodl.c: New file.
3665         * tests/test-math-c++.cc: Check the declaration of fmodl.
3666
3667         New module 'fmodl'.
3668         * lib/math.in.h (fmodl): New declaration.
3669         * lib/fmodl.c: New file.
3670         * m4/fmodl.m4: New file.
3671         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3673         REPLACE_FMODL.
3674         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3675         REPLACE_FMODL.
3676         * modules/fmodl: New file.
3677         * doc/posix-functions/fmodl.texi: Mention the new module.
3678
3679 2012-02-25  Bruno Haible  <bruno@clisp.org>
3680
3681         Tests for module 'modfl'.
3682         * modules/modfl-tests: New file.
3683         * tests/test-modfl.c: New file.
3684         * tests/test-math-c++.cc: Check the declaration of modfl.
3685
3686         New module 'modfl'.
3687         * lib/math.in.h (modfl): New declaration.
3688         * lib/modfl.c: New file.
3689         * m4/modfl.m4: New file.
3690         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3692         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3693         * modules/modfl: New file.
3694         * doc/posix-functions/modfl.texi: Mention the new module.
3695
3696 2012-02-25  Bruno Haible  <bruno@clisp.org>
3697
3698         Tests for module 'fabsl'.
3699         * modules/fabsl-tests: New file.
3700         * tests/test-fabsl.c: New file.
3701         * tests/test-math-c++.cc: Check the declaration of fabsl.
3702
3703         New module 'fabsl'.
3704         * lib/math.in.h (fabsl): New declaration.
3705         * lib/fabsl.c: New file.
3706         * m4/fabsl.m4: New file.
3707         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3709         REPLACE_FABSL.
3710         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3711         REPLACE_FABSL.
3712         * modules/fabsl: New file.
3713         * doc/posix-functions/fabsl.texi: Mention the new module.
3714
3715 2012-02-25  Bruno Haible  <bruno@clisp.org>
3716
3717         fabs tests: More tests.
3718         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3719         (zero): New variable.
3720         (main): Add tests for signed zero.
3721         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3722
3723         fabsf tests: More tests.
3724         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3725         (zero): New variable.
3726         (main): Add tests for signed zero.
3727         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3728
3729 2012-02-24  Bruno Haible  <bruno@clisp.org>
3730
3731         atanl: Provide function definition on MSVC.
3732         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3733         function pointer.
3734         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3735
3736 2012-02-24  Bruno Haible  <bruno@clisp.org>
3737
3738         acosl: Provide function definition on MSVC.
3739         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3740         function pointer.
3741         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3742
3743 2012-02-24  Bruno Haible  <bruno@clisp.org>
3744
3745         asinl: Provide function definition on MSVC.
3746         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3747         function pointer.
3748         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3749
3750 2012-02-24  Bruno Haible  <bruno@clisp.org>
3751
3752         tanl: Provide function definition on MSVC.
3753         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3754         function pointer.
3755         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3756
3757 2012-02-24  Bruno Haible  <bruno@clisp.org>
3758
3759         cosl: Provide function definition on MSVC.
3760         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3761         function pointer.
3762         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3763
3764 2012-02-24  Bruno Haible  <bruno@clisp.org>
3765
3766         sinl: Provide function definition on MSVC.
3767         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3768         function pointer.
3769         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3770
3771 2012-02-24  Bruno Haible  <bruno@clisp.org>
3772
3773         logl: Provide function definition on MSVC.
3774         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3775         function pointer.
3776         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3777
3778 2012-02-24  Bruno Haible  <bruno@clisp.org>
3779
3780         expl: Provide function definition on MSVC.
3781         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3782         function pointer.
3783         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3784
3785 2012-02-24  Bruno Haible  <bruno@clisp.org>
3786
3787         sqrtl: Provide function definition on MSVC.
3788         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3789         a function pointer.
3790         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3791
3792 2012-02-24  Bruno Haible  <bruno@clisp.org>
3793
3794         ceill: Provide function definition on MSVC.
3795         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3796         used as a function pointer.
3797         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3798
3799 2012-02-24  Bruno Haible  <bruno@clisp.org>
3800
3801         floorl: Provide function definition on MSVC.
3802         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3803         used as a function pointer.
3804         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3805
3806 2012-02-24  Bruno Haible  <bruno@clisp.org>
3807
3808         ceilf: Provide function definition on MSVC.
3809         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3810         used as a function pointer.
3811         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3812
3813 2012-02-24  Bruno Haible  <bruno@clisp.org>
3814
3815         floorf: Provide function definition on MSVC.
3816         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3817         used as a function pointer.
3818         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3819
3820 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3821
3822         stdnoreturn: new module
3823         This implements a replacement for C11's <stdnoreturn.h>.
3824         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3825         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3826         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3827         * tests/test-stdnoreturn.c: New files.
3828
3829 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3830
3831         regex: fix false multibyte matches in some regular expressions
3832         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3833         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3834         * lib/regex_internal.c (re_string_skip_chars):
3835         Fix miscomputation of remain_len that may cause incomplete
3836         multi-byte character and false match.
3837
3838 2012-02-24  Jim Meyering  <meyering@redhat.com>
3839
3840         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3841         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3842         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3843         Remove now-unnecessary str''cmp obfuscation.
3844         Suggested by Akim Demaille.
3845
3846 2012-02-24  Bruno Haible  <bruno@clisp.org>
3847
3848         streq: Rename macro.
3849         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3850         * NEWS: Mention the change.
3851         * lib/mbrtowc.c (mbrtowc): Update.
3852         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3853         * lib/wcwidth.c (wcwidth): Update.
3854         Suggested by Akim Demaille and Jim Meyering.
3855
3856 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3857
3858         regex: fix typo in definition of MIN
3859         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3860         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3861
3862 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3863             Bruno Haible  <bruno@clisp.org>
3864
3865         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3866         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3867         entries into a stack-allocated buffer directly.
3868         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3869
3870 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3871             Bruno Haible  <bruno@clisp.org>
3872
3873         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3874
3875          - There were several instances of this pattern:
3876
3877              for (;;) {
3878                n = acl (f, GETACLCNT, 0, NULL);
3879                [ allocate an array A of size N ]
3880                if (acl (f, GETACL, n, a) == n)
3881                  break;
3882              }
3883
3884            This loop might never terminate if some other process is constantly
3885            manipulating the file's ACL.  The loop should be rewritten to
3886            terminate.
3887
3888          - The acl (... GETACLNT ...) call is merely an optimization; its value
3889            is merely a hint as to how big to make the array.  A better
3890            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3891            and just guess a reasonably-big size, growing the size and trying
3892            again if it's not large enough.  This guarantees termination, and
3893            saves a system call.
3894
3895         * lib/acl-internal.h: Include <limits.h>.
3896         (MIN, SIZE_MAX): New macros.
3897         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3898         a stack-allocated buffer, and use malloc if it does not fit. Don't
3899         use GETACLCNT.
3900         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3901
3902 2012-02-19  Bruno Haible  <bruno@clisp.org>
3903
3904         acl: Fix endless loop on Solaris with vxfs.
3905         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3906         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3907         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3908         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3909         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3910         Reported by Bill Jones in
3911         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3912
3913 2012-02-19  Bruno Haible  <bruno@clisp.org>
3914
3915         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3916         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3917         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3918         that this function returns 0 in some more cases.
3919
3920 2012-02-19  Bruno Haible  <bruno@clisp.org>
3921
3922         acl: Update doc references.
3923         * doc/acl-resources.txt: Update links to Solaris documentation.
3924
3925 2012-02-19  Bruno Haible  <bruno@clisp.org>
3926
3927         Fix test failure in many locales on Solaris 11.
3928         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3929         'tr' arguments.
3930         * tests/test-pipe-filter-ii1.c (main): Likewise.
3931         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3932         expressions in the C locale.
3933         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3934         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3935
3936 2012-02-19  Bruno Haible  <bruno@clisp.org>
3937
3938         gnulib-tool: Improve usage message.
3939         * gnulib-tool (func_usage): Move doc of --help and --version to the
3940         section "Operation modes".
3941
3942 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3943
3944         README-release: make it easier to execute commands
3945         * top/README-release: break commands out on to separate lines.
3946
3947 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3948
3949         GNUmakefile: simplify detection of unconfigured trees
3950         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3951         whether the tree make is being run from is already configured or
3952         not.  Related simplifications.
3953
3954 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3955
3956         * gnulib-tool (func_usage): Document --help and --version.
3957
3958 2012-02-11  Jim Meyering  <meyering@redhat.com>
3959
3960         bootstrap: don't exit 0 upon gnulib-tool failure
3961         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3962         its exit status, not 0.
3963
3964 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3965
3966         README-release: various improvements
3967         * top/README-release: Give a command to push changes for the
3968         release.  Add "distcheck" to list of other pre-release checks.
3969         Fix instance of "make stable" which should be "make TYPE".
3970
3971 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3972
3973         maint: replace FSF snail-mail addresses with URLs
3974         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3975         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3976         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3977         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3978         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3979         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3980         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3981         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3982         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3983         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3984         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3985         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3986         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3987         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3988         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3989         * lib/glthread/thread.c, lib/glthread/thread.h:
3990         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3991         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3992         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3993         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3994         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3995         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3996         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3997         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3998         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3999         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4000         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4001         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4002         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4003         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4004         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4005         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4006         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4007         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4008         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4009         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4010         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4011         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4012         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4013         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4014         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4015         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4016         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4017         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4018         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4019         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4020         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4021         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4022         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4023         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4024         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4025         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4026         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4027         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4028         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4029         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4030         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4031         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4032         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4033         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4034         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4035         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4036         * tests/test-poll.c, tests/test-quotearg-simple.c:
4037         * tests/test-quotearg.c, tests/test-quotearg.h:
4038         * tests/test-round-ieee.c, tests/test-round1.c:
4039         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4040         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4041         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4042         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4043         * tests/test-strerror.c, tests/test-strerror_r.c:
4044         * tests/test-strsignal.c, tests/test-strverscmp.c:
4045         * tests/test-xmemdup0.c:
4046         Replace FSF snail mail addresses with URLs, as per GNU coding
4047         standards.  See glibc bug
4048         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4049
4050 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4051
4052         README-release: capitalize a word and split a line
4053         * top/README-release: Fix punctuation and spacing.
4054
4055 2012-02-08  Akim Demaille  <demaille@gostai.com>
4056
4057         fatal-signal: use C prototypes (with explicit void).
4058         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4059         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4060
4061 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4062
4063         regex: spelling fix
4064         * lib/regexec.c: spelling fix
4065
4066         regex: rely on stdint.h for SIZE_MAX
4067         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4068
4069 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4070
4071         regex: merge glibc changes
4072
4073         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4074         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4075         (init_word_char): Work even if bitset words are not exactly 32 or
4076         64 bits wide.  Don't assume there are no padding bits.
4077         * lib/regex.c [_LIBC]: Do not include <config.h>.
4078         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4079         and -Wtype-limits.
4080         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4081         needless disagreement with glibc.  All uses changed.  Define it to
4082         1 only if _GNU_SOURCE, to match glibc.
4083         (_REG_RM_NAME): Remove; no longer needed, since the names in
4084         question are now all protected by __USE_GNU.
4085         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4086         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4087         * lib/regex_internal.h (MIN): New macro.
4088
4089         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4090         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4091
4092         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4093         * lib/regex_internal.c (re_string_fetch_byte_case):
4094         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4095         is miscompiled, and it turns out it is because of an incorrect
4096         attribute on re_string_fetch_byte_case.  Unlike
4097         re_string_peek_byte_case, this one is really not pure, it modifies
4098         memory (increments pstr->cur_idx), and with the pure attribute GCC
4099         assumed it doesn't and it cached the presumed value of
4100         regexp->cur_idx in a variable across the
4101          for (;; ++i)
4102            {
4103              if (i >= BRACKET_NAME_BUF_SIZE)
4104                return REG_EBRACK;
4105              if (token->type == OP_OPEN_CHAR_CLASS)
4106                ch = re_string_fetch_byte_case (regexp);
4107              else
4108                ch = re_string_fetch_byte (regexp);
4109              if (re_string_eoi(regexp))
4110                return REG_EBRACK;
4111              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4112                break;
4113              elem->opr.name[i] = ch;
4114            }
4115
4116         2011-11-29 Andreas Schwab <schwab@redhat.com>
4117         * lib/regcomp.c (build_equiv_class):
4118         Fix access after end of search string in regex matcher.
4119
4120         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4121         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4122
4123         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4124         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4125
4126         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4127         * lib/regcomp.c (parse_branch, parse_sub_exp):
4128         More regex memory leak fixes and tests.
4129         (parse_sub_exp, parse_bracket_exp):
4130         Fix memory leak for some invalid regular expressions.
4131
4132         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4133         * lib/regex_internal.c, lib/regexec.c:
4134         Fix unnecessary overallocation due to incomplete character.  When
4135         incomplete characters are found at the end of a string the code
4136         ran amok and allocated lots of memory.  Stricter limits are now in
4137         place.
4138
4139         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4140         * lib/regex.h: Update documentation.
4141
4142         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4143         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4144
4145         2010-05-05 Andreas Schwab <schwab@redhat.com>
4146         * lib/regexec.c (find_collation_sequence_value):
4147         Fix lookup of collation sequence value during regexp matching.
4148
4149         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4150         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4151
4152         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4153         * lib/regex.h: Cleanup namespace.
4154
4155         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4156         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4157
4158         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4159         * lib/regex_internal.h: Prevent some declarations and definitions
4160         to be seen when used in tests.
4161
4162         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4163         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4164         __libc_lock_* macros if not _LIBC.
4165         (struct re_dfa_t): Add lock.
4166
4167 2012-02-07  Eric Blake  <eblake@redhat.com>
4168
4169         maint.mk: also prohibit lower-case @var@
4170         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4171         lower case, like @top_srcdir@.
4172
4173 2012-02-04  Eric Blake  <eblake@redhat.com>
4174
4175         canonicalize: avoid uninitialized memory use
4176         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4177         random '/' left in dest.
4178         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4179
4180 2012-02-04  Bruno Haible  <bruno@clisp.org>
4181
4182         isatty: Fix test failure of ptsname_r on native Windows.
4183         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4184         and don't set errno.
4185         (isatty): Test first whether fd is valid. Set errno when returning 0.
4186
4187 2012-02-04  Bruno Haible  <bruno@clisp.org>
4188
4189         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4190         * tests/test-spawn-pipe-main.c: Include progname.h.
4191         (main): Invoke set_program_name.
4192         * modules/spawn-pipe-tests (Depends-on): Add progname.
4193
4194         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4195         * tests/test-nonblocking-socket-main.c: Include progname.h.
4196         (main): Invoke set_program_name.
4197         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4198
4199         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4200         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4201         (main): Invoke set_program_name.
4202         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4203
4204 2012-02-04  Eric Blake  <eblake@redhat.com>
4205
4206         canonicalize-lgpl: fix // handling
4207         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4208
4209         canonicalize: fix // handling
4210         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4211         /// to //, since only // is special.
4212
4213 2012-02-04  Bruno Haible  <bruno@clisp.org>
4214
4215         ioctl: Fix test failure on native Windows.
4216         * lib/ioctl.c: Include msvc-nothrow.h.
4217         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4218
4219 2012-02-04  Bruno Haible  <bruno@clisp.org>
4220
4221         fsync: Avoid test failure on native Windows.
4222         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4223         read-only.
4224
4225 2012-02-04  Bruno Haible  <bruno@clisp.org>
4226
4227         sys_select: Avoid syntax error on OpenBSD 5.0.
4228         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4229         currently being included, just include the system's <sys/select.h>.
4230
4231 2012-02-04  Bruno Haible  <bruno@clisp.org>
4232
4233         sys_select: Avoid syntax error on OpenBSD 5.0.
4234         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4235         <sys/select.h>, not before.
4236         Reported by Jiri B <jirib@devio.us>.
4237
4238 2012-02-04  Bruno Haible  <bruno@clisp.org>
4239
4240         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4241         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4242         global variables.
4243         * tests/test-get-rusage-data.c (main): Likewise.
4244         Reported by Jim Meyering.
4245
4246 2012-02-04  Bruno Haible  <bruno@clisp.org>
4247
4248         stdioext: Fix last commit.
4249         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4250
4251 2012-02-03  Bruno Haible  <bruno@clisp.org>
4252
4253         stdioext: Add tentative support for Plan9.
4254         * lib/stdio-impl.h: Include <errno.h>.
4255         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4256         * lib/freadable.c (freadable): Likewise.
4257         * lib/fwritable.c (fwritable): Likewise.
4258         * lib/fbufmode.c (fbufmode): Likewise.
4259         * lib/freading.c (freading): Likewise.
4260         * lib/fwriting.c (fwriting): Likewise.
4261         * lib/freadptr.c (freadptr): Likewise.
4262         * lib/freadseek.c (freadptrinc): Likewise.
4263         * lib/freadahead.c (freadahead): Likewise.
4264         * lib/fpurge.c (fpurge): Likewise.
4265         * lib/fseeko.c (rpl_fseeko): Likewise.
4266         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4267         Reported by Jens Staal <staal1978@gmail.com>.
4268
4269 2012-02-02  Jim Meyering  <meyering@redhat.com>
4270
4271         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4272         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4273         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4274         not even to try to add the attribute.  Instead, add a pragma to suppress
4275         the suggestion/warning.
4276
4277 2012-01-31  Karl Berry  <karl@gnu.org>
4278
4279         setstate doc: typo.
4280         * doc/posix-functions/setstate.texi (setstate): { not (.
4281
4282 2012-01-31  Bruno Haible  <bruno@clisp.org>
4283
4284         popen: Make more robust on Windows.
4285         * lib/popen.c: On native Windows, use the _popen based code even if
4286         HAVE_POPEN is set.
4287         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4288         environment variable on native Windows.
4289
4290 2012-01-30  Bruno Haible  <bruno@clisp.org>
4291
4292         pclose: Fix typo.
4293         * lib/stdio.in.h (pclose): Fix typo in warning message.
4294
4295 2012-01-30  Bruno Haible  <bruno@clisp.org>
4296
4297         doc about getlogin_r, setstate.
4298         * doc/posix-functions/getlogin_r.texi: List the incompatible
4299         declaration problem under "not fixed by gnulib".
4300         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4301         problem on Solaris 11 and other platforms.
4302
4303 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4304             Bruno Haible  <bruno@clisp.org>
4305
4306         poll tests: Make test more robust.
4307         * tests/test-poll.c: Include macros.h.
4308         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4309         return value of various I/O operations.
4310         * modules/poll-tests (Files): Add tests/macros.h.
4311
4312 2012-01-30  Bruno Haible  <bruno@clisp.org>
4313
4314         sys_stat: Fix support for mingw64 and MSVC.
4315         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4316         header files already do it.
4317         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4318         stat itself.
4319         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4320
4321 2012-01-30  Bruno Haible  <bruno@clisp.org>
4322
4323         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4325         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4326
4327 2012-01-29  Bruno Haible  <bruno@clisp.org>
4328
4329         quotearg: Fix test failure on MacOS X 10.5.
4330         * tests/test-quotearg-simple.c: Include localcharset.h.
4331         (main): If the locale encoding is not ASCII, bypass the tests of
4332         locale_quoting_style and clocale_quoting_style.
4333         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4334
4335 2012-01-29  Jim Meyering  <meyering@redhat.com>
4336
4337         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4338         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4339         detect uses of canonicalize_file_name.
4340
4341 2012-01-28  Bruno Haible  <bruno@clisp.org>
4342
4343         test-framework-sh: Fix test failure with AIX 7.1 diff.
4344         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4345         in column 1, like 'diff -c' does.
4346         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4347         whether 'diff -u' is used. Instead, test whether the output contains
4348         some '@' character.
4349
4350 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4351
4352         strtoimax: eliminate need for stdint.h, inttypes.h checks
4353         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4354         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4355         the prerequisites for a recently-introduced strtoimax test.
4356         I guess this might cause strtoimax to be replaced when not
4357         strictly necessary on older hosts, but this shouldn't introduce
4358         any bugs and it should make Emacs 'configure' faster on typical
4359         modern hosts.  Problem discovered when importing the latest gnulib
4360         to an Emacs test version.
4361         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4362
4363 2012-01-28  Bruno Haible  <bruno@clisp.org>
4364
4365         sys_time: Override 'struct timeval' on some native Windows platforms.
4366         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4367         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4368         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4369         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4370         needs to be overridden.
4371         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4372         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4373         * tests/test-sys_select.c: Check that the tv_sec member has the same
4374         size as a 'time_t'.
4375         * tests/test-sys_time.c: Likewise.
4376         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4377         is set, set also REPLACE_GETTIMEOFDAY.
4378         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4379         convert the resulting 'struct timeval' before returning.
4380         * lib/select.c: Include <sys/time.h>.
4381         (select, timeval): Undefine at the right place.
4382         * modules/select (Depends-on): Add sys_time.
4383         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4384         some Windows platforms.
4385         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4386
4387 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4388
4389         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4390         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4391         an integer.
4392         * lib/fcntl.c (dupfd): Likewise.
4393         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4394
4395 2012-01-28  Bruno Haible  <bruno@clisp.org>
4396
4397         fcntl: Avoid compilation error on native Windows.
4398         * modules/fcntl (Depends-on): Add 'close'.
4399
4400 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4401
4402         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4403         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4404         pointer to an integer.
4405         * lib/poll.c (IsConsoleHandle): Likewise.
4406         * lib/isatty.c (IsConsoleHandle): Likewise.
4407
4408 2012-01-28  Jim Meyering  <meyering@redhat.com>
4409
4410         doc: clarify README-release
4411         * top/README-release: Clarify: you should make a point to have
4412         the latest stable versions of build tools in your PATH, and the
4413         reference to buildreq is solely for its list of tool names, not
4414         for its minimal-functional version numbers.
4415         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4416
4417         maint.mk: use more readable (yet functionally equivalent) quoting
4418         It is common to quote a single quote in a single quoted string like
4419         this:  '...'\''...'.  Unless you know the idiom, that looks like
4420         gibberish, so prefer to double-quote the string when possible.
4421         Then you can use a more readable, lone single quote: "...'..."
4422         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4423         "don't" is more readable than the equivalent 'don'\''t'.
4424         (sc_cast_of_x_alloc_return_value): Likewise.
4425         (sc_cast_of_alloca_return_value): Likewise.
4426         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4427         rather than '\'':'\''.
4428
4429 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4430
4431         stdalign: relax _Alignof and tighten _Alignas test
4432         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4433         as it was too strict: alignof must divide offsetof, but it need
4434         not equal offsetof.  Inspired by Joseph S. Myers's comment
4435         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4436         Conversely, tighten the _Alignas test a bit, as the resulting
4437         alignment must be exactly 8.
4438
4439 2012-01-27  Bruno Haible  <bruno@clisp.org>
4440
4441         stdalign: Document the last change.
4442         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4443
4444 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4445
4446         stdalign: check that alignof and offsetof are consistent
4447         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4448         Problem reported for gnulib by Richard W.M. Jones in
4449         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4450
4451 2012-01-27  Jim Meyering  <meyering@redhat.com>
4452
4453         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4454         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4455         convert a sequence with gaps to the minimal containing range.
4456         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4457         * tests/test-update-copyright.sh: Test for this.
4458         The FSF confirmed it is ok to do this, assuming there is at
4459         least one significant change per year in the affected range:
4460         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4461
4462 2012-01-26  Bruno Haible  <bruno@clisp.org>
4463
4464         pipe2: refine doc about thread-safety
4465         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4466         multithread-safety problem.
4467         * doc/glibc-functions/accept4.texi: Likewise.
4468
4469 2012-01-26  Bruno Haible  <bruno@clisp.org>
4470
4471         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4472         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4473         In the test program, include <fcntl.h>, for O_RDONLY.
4474
4475 2012-01-26  Eric Blake  <eblake@redhat.com>
4476
4477         pipe2: document lack of thread-safety in replacement
4478         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4479         issue in replacement.
4480         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4481         Based on a report by Eric Wong.
4482
4483 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4484             Bruno Haible  <bruno@clisp.org>
4485
4486         malloca: Avoid warnings on x86_64 mingw64.
4487         * lib/malloca.c: Include <stdint.h>.
4488         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4489         * modules/malloca (Depends-on): Add stdint.
4490         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4491
4492 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4493
4494         obstack: remove __STDC__ conditionals
4495         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4496         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4497         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4498         m4/include_next.m4 as the only gnulib-maintained places that still
4499         refer to __STDC__.
4500
4501 2012-01-24  Bruno Haible  <bruno@clisp.org>
4502
4503         havelib: Modern quoting.
4504         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4505         the recent change to the GNU coding standards.
4506
4507 2012-01-24  Bruno Haible  <bruno@clisp.org>
4508
4509         stdint: Improve support for Android.
4510         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4511         Reported by Simon Josefsson <simon@josefsson.org>.
4512
4513 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4514
4515         doc: omit trailing empty lines from INSTALL etc.
4516         * doc/Makefile (INSTALL): Omit trailing empty lines.
4517         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4518         omit trailing empty lines.  This simplifies the build procedure.
4519
4520 2012-01-23  Jim Meyering  <meyering@redhat.com>
4521
4522         tests: avoid spurious warnings about gl_sockets_startup
4523         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4524         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4525         reporting a "statement with no effect".
4526         * tests/test-accept.c (main): Mark as "(void)".
4527         * tests/test-accept4.c (main): Likewise.
4528         * tests/test-bind.c (main): Likewise.
4529         * tests/test-connect.c (main): Likewise.
4530         * tests/test-getpeername.c (main): Likewise.
4531         * tests/test-getsockname.c (main): Likewise.
4532         * tests/test-getsockopt.c (main): Likewise.
4533         * tests/test-listen.c (main): Likewise.
4534         * tests/test-recv.c (main): Likewise.
4535         * tests/test-recvfrom.c (main): Likewise.
4536         * tests/test-send.c (main): Likewise.
4537         * tests/test-sendto.c (main): Likewise.
4538         * tests/test-setsockopt.c (main): Likewise.
4539         * tests/test-shutdown.c (main): Likewise.
4540
4541 2012-01-21  Bruno Haible  <bruno@clisp.org>
4542
4543         locale-fr.m4: Fix for Android.
4544         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4545         failure of the test program on Bionic libc.
4546
4547 2012-01-21  Jim Meyering  <meyering@redhat.com>
4548
4549         bootstrap: fail when bootstrap_post_import_hook fails
4550         Otherwise, it's far too easy to miss diagnostics emitted
4551         between gnulib-tool's output and that of running configure.
4552         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4553
4554 2012-01-17  Jim Meyering  <meyering@redhat.com>
4555
4556         maint: enable sc_trailing_blank
4557         * build-aux/pmccabe.css: Remove trailing blanks.
4558         * doc/acl-cygwin.txt: Likewise.
4559         * doc/gnu-oids.texi: Likewise
4560         * cfg.mk: Enable sc_trailing_blank.
4561         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4562
4563 2012-01-17  Jim Meyering  <meyering@redhat.com>
4564
4565         maint: enable sc_prohibit_openat_without_use
4566         * cfg.mk: Enable sc_prohibit_openat_without_use.
4567         Exempt lib/selinux-at.c.
4568
4569 2012-01-17  Jim Meyering  <meyering@redhat.com>
4570
4571         maint: enable sc_prohibit_cloexec_without_use
4572         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4573         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4574
4575 2012-01-17  Jim Meyering  <meyering@redhat.com>
4576
4577         maint: enable sc_prohibit_intprops_without_use
4578         * cfg.mk: Enable sc_prohibit_intprops_without_use
4579         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4580
4581 2012-01-17  Jim Meyering  <meyering@redhat.com>
4582
4583         maint: enable sc_prohibit_hash_pjw_without_use
4584         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4585         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4586         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4587         following " (".
4588
4589 2012-01-17  Jim Meyering  <meyering@redhat.com>
4590
4591         maint: enable double-word-prohibiting rule
4592         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4593         Exempt three files.
4594
4595 2012-01-17  Jim Meyering  <meyering@redhat.com>
4596
4597         maint: remove empty lines at EOF, but excluding modules/*
4598         Apply syntax rules at home as well as abroad.  Most changes
4599         were induced by running this:
4600           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4601             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4602             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4603         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4604         Exempt modules/* and two binary files.
4605         Also exempt doc/INSTALL*, per request from Bruno Haible.
4606         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4607         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4608         * doc/Copyright/request-assign.future: Likewise.
4609         * doc/Copyright/request-disclaim.changes: Likewise.
4610         * doc/INSTALL: Likewise.
4611         * doc/INSTALL.ISO: Likewise.
4612         * doc/INSTALL.UTF-8: Likewise.
4613         * doc/acl-cygwin.txt: Likewise.
4614         * doc/acl-resources.txt: Likewise.
4615         * doc/fdl-1.2.texi: Likewise.
4616         * doc/fdl-1.3.texi: Likewise.
4617         * doc/fdl.texi: Likewise.
4618         * lib/argp-pin.c: Likewise.
4619         * lib/round.c: Likewise.
4620         * lib/unicase/u16-totitle.c: Likewise.
4621         * lib/unictype/block_test.c: Likewise.
4622         * lib/uninorm/canonical-decomposition.c: Likewise.
4623         * m4/README: Likewise.
4624         * m4/relocatable-lib.m4: Likewise.
4625         * tests/test-isnand-nolibm.c: Likewise.
4626         * tests/test-isnand.c: Likewise.
4627         * tests/uninorm/NormalizationTest.txt: Likewise.
4628
4629 2012-01-17  Jim Meyering  <meyering@redhat.com>
4630
4631         maint: add framework to run syntax-check rules against gnulib sources
4632         * cfg.mk: New file, to disable all currently-failing tests.
4633         We'll enable them one by one, as they are made to pass.
4634         * Makefile (sc_maint): New rule.
4635
4636 2012-01-21  Bruno Haible  <bruno@clisp.org>
4637
4638         stdint: Add support for Android.
4639         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4640         include the system's <stdint.h>.
4641         Reported by Simon Josefsson <simon@josefsson.org>.
4642
4643 2012-01-19  Jim Meyering  <meyering@redhat.com>
4644
4645         bootstrap: add bootstrap_post_import_hook
4646         Bison does still need something like the gnulib_mk_hook whose
4647         invocation I had to remove along with slurp in commit 767ccd40.
4648         Technically, we could get along without it, but doing so would
4649         have required living with a warning and a mandatory post-bootstrap
4650         automake rerun.
4651         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4652         (bootstrap_post_import_hook): New function.
4653         Invoke it after gnulib-tool --import and before autoreconf.
4654
4655 2012-01-18  Jim Meyering  <meyering@redhat.com>
4656
4657         gitlog-to-changelog: don't use "no_"-prefixed variable name
4658         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4659         to enable both --cluster and --no-cluster.  Change variable name,
4660         s/\$no_cluster/$cluster/, and reverse usage to match.
4661
4662         gitlog-to-changelog: use "||", not "or" in expressions
4663         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4664         expressions.
4665
4666 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4667
4668         gitlog-to-changelog: new option --no-cluster
4669         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4670         clustering of adjacent commit messages.
4671
4672 2012-01-17  Jim Meyering  <meyering@redhat.com>
4673
4674         maint: spell file systems with two words, not one
4675         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4676         two words, not one.
4677
4678 2012-01-16  Jim Meyering  <meyering@redhat.com>
4679
4680         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4681         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4682
4683 2012-01-16  Eric Blake  <eblake@redhat.com>
4684
4685         bootstrap: cater to autoconf 2.59
4686         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4687         is not available.
4688
4689         bootstrap: properly check for libtool
4690         * build-aux/bootstrap (libtoolize): Also run libtool when older
4691         usage is detected.
4692
4693 2012-01-15  Bruno Haible  <bruno@clisp.org>
4694
4695         Improve support for MSVC 9.
4696         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4697         clashes on MSVC.
4698         * lib/fcntl.in.h: Likewise.
4699         * lib/stdlib.in.h: Likewise.
4700         * lib/sys_stat.in.h: Likewise.
4701
4702 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4703
4704         gnupload: we hold the master copy of this script now
4705         For motivation and more information, see:
4706         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4707         * build-aux/gnupload: Make it clear in the heading comments that the
4708         master copy of this file is maintained by gnulib.  Since we are at
4709         it, bump its copyright year and ...
4710         ($scriptversion): ... the date in its version.
4711         ($usage): Patches and bug reports should be sent to the gnulib list,
4712         not the automake one.
4713         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4714         anymore.
4715
4716 2012-01-15  Bruno Haible  <bruno@clisp.org>
4717
4718         Fix module 'random'.
4719         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4720         initstate, setstate are declared.
4721
4722 2012-01-14  Bruno Haible  <bruno@clisp.org>
4723
4724         Tests for module 'random'.
4725         * modules/random-tests: New file.
4726         * tests/test-random.c: New file, based on tests/test-random_r.c.
4727
4728         New module 'random'.
4729         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4730         declarations.
4731         * lib/random.c: New file, based on glibc/stdlib/random.c.
4732         * m4/random.m4: New file.
4733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4734         HAVE_RANDOM.
4735         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4736         * modules/random: New file.
4737         * config/srclist.txt: Add an entry for random.c.
4738         * doc/posix-functions/random.texi: Mention the 'random' module.
4739         * doc/posix-functions/initstate.texi: Likewise.
4740         * doc/posix-functions/setstate.texi: Likewise.
4741         * doc/posix-functions/srandom.texi: Likewise.
4742
4743 2012-01-12  Bruno Haible  <bruno@clisp.org>
4744
4745         random_r: Use common idioms.
4746         * lib/random_r.c: Include <stdlib.h> first.
4747
4748         random_r: Override incompatible API on AIX, OSF/1.
4749         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4750         Override the system function if REPLACE_RANDOM_R is 1.
4751         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4752         and OSF/1, set REPLACE_RANDOM_R.
4753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4754         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4755         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4756         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4757         * doc/glibc-functions/random_r.texi: Likewise.
4758         * doc/glibc-functions/setstate_r.texi: Likewise.
4759
4760         random_r: Support for MSVC 9.
4761         * lib/random_r.c: Include stdint.h, not inttypes.h.
4762
4763 2012-01-12  Eric Blake  <eblake@redhat.com>
4764
4765         inet_ntop: guard extra work by IF_LINT
4766         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4767         better code generation when not checking for warnings.
4768         Suggested by Paul Eggert and Jim Meyering.
4769
4770         strptime: fix regression on mingw
4771         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4772         Fix regression.  Reported by Bruno Haible.
4773
4774 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4775             Bruno Haible  <bruno@clisp.org>
4776
4777         copy-file: add error-code-returning variant.
4778         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4779         (qcopy_file_preserving): New declaration.
4780         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4781         copy_file_preserving. Change return type to 'int'. Don't emit an error
4782         message here.
4783         (copy_file_preserving): New function.
4784         * tests/test-copy-file.c: Include <stdlib.h>.
4785         (main): Test qcopy_file_preserving if the environment variable
4786         NO_STDERR_OUTPUT is set.
4787         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4788         with NO_STDERR_OUTPUT
4789         * tests/test-copy-file-2.sh: Likewise.
4790
4791 2012-01-10  Bruno Haible  <bruno@clisp.org>
4792
4793         copy-file: Use 'quote' module consistently.
4794         * lib/copy-file.c (copy_file_preserving): Use quote().
4795
4796         copy-file: Refactor.
4797         * lib/copy-file.c: Include quote.h.
4798         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4799         message here.
4800         * modules/copy-file (Depends-on): Add quote.
4801
4802         acl: Export qcopy_acl.
4803         * lib/acl.h (qcopy_acl): New declaration.
4804         * lib/copy-acl.c (qcopy_acl): Make non-static.
4805
4806         acl: Rename a local variable.
4807         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4808
4809         acl: Align return values of copy_acl and qcopy_acl.
4810         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4811         maybe < -1.
4812
4813 2012-01-11  Eric Blake  <eblake@redhat.com>
4814
4815         strptime: silence gcc warnings
4816         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4817         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4818         Reported by Daniel P. Berrange.
4819
4820         inet_ntop: silence gcc warning
4821         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4822         Reported by Daniel P. Berrange.
4823
4824 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4825
4826         getloadavg test: skip the test on GNU/Linux without /proc mounted
4827         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4828         file.  When /proc is not mounted, it always fails with ENOENT.
4829         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4830         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4831
4832 2012-01-10  Bruno Haible  <bruno@clisp.org>
4833
4834         regex: Avoid link error on MSVC 9.
4835         * modules/regex (Depends-on): Add wctype.
4836
4837 2012-01-10  Bruno Haible  <bruno@clisp.org>
4838
4839         doc: Mention --with-tests option.
4840         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4841         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4842         --with-tests.
4843         Reported by Reuben Thomas.
4844
4845 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4846
4847         users.txt: order package names lexicographically.
4848         * users.txt: Order package names lexicographically.
4849
4850 2012-01-10  Jim Meyering  <meyering@redhat.com>
4851
4852         maint.mk: fix description in comment
4853         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4854
4855         ignore-value: remove deprecated ignore_ptr function
4856         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4857         * NEWS: Note this.
4858
4859 2012-01-09  Jim Meyering  <meyering@redhat.com>
4860
4861         test-init.sh: avoid a subshell
4862         * tests/test-init.sh: Remove protective subshell.
4863         Suggested by Bernhard Voelker.  While a subshell is normally
4864         required to protect against older shells (Solaris, FreeBSD) that
4865         warn about a missing program before performing redirection, the
4866         shell-selection tests performed by init.sh probably exclude any
4867         offending shell.
4868
4869 2012-01-08  Bruno Haible  <bruno@clisp.org>
4870
4871         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4872         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4873         variable.
4874
4875 2012-01-08  Bruno Haible  <bruno@clisp.org>
4876
4877         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4878         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4879         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4880         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4881         macro.
4882         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4883         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4884         * lib/spawn_faction_addopen.c: Add workaround implementation if
4885         HAVE_WORKING_POSIX_SPAWN.
4886         * modules/spawn (Makefile): Substitute
4887         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4888         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4889         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4890         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4891         (Depends-on): Update conditions.
4892         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4893         the Solaris 11 bug.
4894
4895 2012-01-08  Bruno Haible  <bruno@clisp.org>
4896
4897         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4898         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4899         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4900         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4901         macro.
4902         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4903         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4904         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4905         HAVE_WORKING_POSIX_SPAWN.
4906         * modules/spawn (Makefile): Substitute
4907         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4908         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4909         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4910         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4911         (Depends-on): Update conditions.
4912         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4913         the Solaris 11 bug.
4914
4915 2012-01-08  Bruno Haible  <bruno@clisp.org>
4916
4917         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4918         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4919         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4920         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4921         HAVE_WORKING_POSIX_SPAWN.
4922         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4923         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4924         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4925         * lib/spawn_faction_addclose.c: Add workaround implementation if
4926         HAVE_WORKING_POSIX_SPAWN.
4927         * modules/spawn (Makefile): Substitute
4928         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4929         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4930         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4931         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4932         (Depends-on): Update conditions.
4933         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4934         the Solaris 11 bug.
4935
4936 2012-01-08  Bruno Haible  <bruno@clisp.org>
4937
4938         doc: Update for Solaris 11 2011-11.
4939         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4940         * m4/printf.m4: Update comments.
4941
4942 2012-01-08  Bruno Haible  <bruno@clisp.org>
4943
4944         mktime: Avoid compilation error on Solaris 11.
4945         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4946
4947 2012-01-08  Bruno Haible  <bruno@clisp.org>
4948
4949         doc: Small fix.
4950         * doc/posix-headers/nl_types.texi: Correct platforms list.
4951
4952 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4953
4954         Add lgpl-3.0 module.
4955         * MODULES.html.sh (Support for building documentation): Add
4956         lgpl-3.0.
4957         * modules/lgpl-3.0: New file.
4958
4959 2012-01-08  Jim Meyering  <meyering@redhat.com>
4960
4961         select.c: indent with spaces, not TABs
4962         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4963
4964 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4965
4966         quotearg: do not use grave accent for left quote
4967         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4968         locale_quoting_style.
4969         (quotearg_buffer_restyled): Fix example.
4970         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4971
4972 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4973
4974         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4975         Most programs do not have translation catalogs for English and much
4976         less separate catalogs for British and American English.  Drop the
4977         suggestion to translators about these two, and provide it
4978         automatically for Unicode locales.  Like most programs, even those
4979         using American English, we use single quotation marks.  This conflicts
4980         with the American typographic convention, but works better when you
4981         cite the entire error message within double quotes.  It also tries not
4982         to clash with established practice and with what non-gnulib programs
4983         will usually do.
4984         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4985         using an UTF-8 or GB-18030 locale.  The list of other locales with
4986         quotes was provided by Bruno Haible.
4987         (quotearg_buffer_restyled): Adjust instructions to translators.
4988         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4989         text, since this would be wrong when using Unicode.
4990         * modules/quotearg: Depend on c-strcaseeq.
4991
4992 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4993
4994         quotearg: fix Wikipedia link
4995         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4996
4997 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4998
4999         Fix for mingw with MSVC9.
5000         * m4/ld-version-script.m4: Check that compiler rejects version
5001         scripts with syntax errors.  Reported by Bruno Haible
5002         <bruno@clisp.org>.
5003
5004 2012-01-06  Bruno Haible  <bruno@clisp.org>
5005
5006         Talk about "native Windows API", not "Woe32".
5007         * lib/accept4.c: Update comments to mention native Windows.
5008         * lib/execute.c: Likewise.
5009         * lib/fatal-signal.c: Likewise.
5010         * lib/localcharset.c: Likewise.
5011         * lib/nanosleep.c: Likewise.
5012         * lib/nl_langinfo.c: Likewise.
5013         * lib/pclose.c: Likewise.
5014         * lib/pipe-filter-gi.c: Likewise.
5015         * lib/pipe-filter-ii.c: Likewise.
5016         * lib/pipe.c: Likewise.
5017         * lib/pipe2.c: Likewise.
5018         * lib/popen.c: Likewise.
5019         * lib/progreloc.c: Likewise.
5020         * lib/relocatable.c: Likewise.
5021         * lib/sigaction.c: Likewise.
5022         * lib/sigprocmask.c: Likewise.
5023         * lib/spawn-pipe.h: Likewise.
5024         * lib/spawn-pipe.c: Likewise.
5025         * lib/spawni.c: Likewise.
5026         * lib/stat-time.h: Likewise.
5027         * lib/w32spawn.h: Likewise.
5028         * tests/test-isatty.c: Likewise.
5029         * lib/config.charset: More comments.
5030         * doc/gnulib-intro.texi: Mention native Windows.
5031         * doc/posix-functions/_Exit_C99.texi: Likewise.
5032         * doc/posix-headers/fcntl.texi: Likewise.
5033
5034 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5035
5036         argp: Avoid crash if translator uses % characters in a translation.
5037         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5038         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5039
5040 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5041
5042         doc: C11 and C++11 are now official
5043         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5044         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5045         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5046         * modules/stdalign:
5047         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5048
5049 2012-01-06  Bruno Haible  <bruno@clisp.org>
5050
5051         uc-is-grapheme-break tests: Tweak.
5052         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5053         message.
5054
5055 2012-01-06  Bruno Haible  <bruno@clisp.org>
5056
5057         test-init.sh: correct the test for diff -u
5058         * tests/test-init.sh: Also redirect stdout to /dev/null.
5059
5060 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5061
5062         Use ', not `, for quoting output.
5063         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5064         (print_changelog_deltas, get_tool_versions, main program):
5065         * build-aux/git-version-gen:
5066         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5067         * build-aux/move-if-change (help):
5068         * build-aux/useless-if-before-free (usage, main program):
5069         * check-module (parse_module_file, usage)
5070         (find_included_lib_files, check_module):
5071         * lib/argmatch.c (main) [TEST]:
5072         * lib/argp-help.c (_help):
5073         * lib/getopt1.c (main) [TEST]:
5074         * lib/git-merge-changelog.c (usage):
5075         * lib/xstrtol-error.c (xstrtol_error):
5076         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5077         * m4/argz.m4 (gl_FUNC_ARGZ):
5078         * m4/bison.m4 (gl_BISON):
5079         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5080         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5081         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5082         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5083         * m4/gc-random.m4 (gl_GC_RANDOM):
5084         * m4/intl.m4 (gt_CHECK_DECL):
5085         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5086         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5087         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5088         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5089         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5090         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5091         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5092         * tests/test-dirname.c (main):
5093         * tests/test-getpass.c (main):
5094         * tests/test-iconvme.c (main):
5095         * tests/test-parse-datetime.c (LOG):
5096         * tests/test-xstrtoimax.sh:
5097         * tests/test-xstrtol.sh:
5098         * tests/test-xstrtoll.sh:
5099         * tests/test-xstrtoumax.sh:
5100         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5101         * top/GNUmakefile (abort-due-to-no-makefile):
5102         Quote 'like this', not `like this', as per the recent change to
5103         the GNU coding standards.
5104
5105 2012-01-05  Bruno Haible  <bruno@clisp.org>
5106
5107         strtoimax: Don't force a replacement on systems where intmax_t is int.
5108         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5109         'intmax_t' is not larger than 'int'.
5110         Reported by Pádraig Brady <P@draigBrady.com>.
5111
5112 2012-01-05  Bruno Haible  <bruno@clisp.org>
5113
5114         doc: Mention NetBSD bugs.
5115         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5116         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5117
5118 2012-01-05  Bruno Haible  <bruno@clisp.org>
5119
5120         strtoumax tests: Enhance tests.
5121         * tests/test-strtoumax.c (main): Add tests for large values.
5122
5123 2012-01-05  Bruno Haible  <bruno@clisp.org>
5124
5125         strtoimax: Work around AIX 5.1 bug.
5126         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5127         definition.
5128         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5129         Set HAVE_STRTOIMAX.
5130         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5131         REPLACE_STRTOIMAX.
5132         * modules/inttypes-incomplete (Makefile.am): Substitute
5133         REPLACE_STRTOIMAX.
5134         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5135         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5136         (Depends-on): Update conditions.
5137         * tests/test-strtoimax.c (main): Add tests for large values.
5138         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5139
5140 2012-01-05  Bruno Haible  <bruno@clisp.org>
5141
5142         inttypes: Modernize.
5143         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5144         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5145         (Makefile.am): Update inttypes.h rule.
5146
5147 2012-01-05  Jim Meyering  <meyering@redhat.com>
5148
5149         init.sh: don't waste a subshell just to redirect stderr
5150         * tests/init.sh: In testing for diff -u and diff -c, use a
5151         stderr-redirecting exec inside `...` rather than a subshell.
5152
5153         test-init.sh: avoid failure on HP-UX 11.00
5154         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5155         resolves to diff -c or cmp.  Reported by Bruno Haible.
5156
5157 2012-01-05  Bruno Haible  <bruno@clisp.org>
5158
5159         Tests for module 'strtoull'.
5160         * modules/strtoull-tests: New file.
5161         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5162
5163 2012-01-05  Bruno Haible  <bruno@clisp.org>
5164
5165         Tests for module 'strtoll'.
5166         * modules/strtoll-tests: New file.
5167         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5168
5169 2012-01-05  Bruno Haible  <bruno@clisp.org>
5170
5171         Tests for module 'strtoul'.
5172         * modules/strtoul-tests: New file.
5173         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5174
5175 2012-01-05  Bruno Haible  <bruno@clisp.org>
5176
5177         Tests for module 'strtol'.
5178         * modules/strtol-tests: New file.
5179         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5180
5181 2012-01-04  Jim Meyering  <meyering@redhat.com>
5182
5183         test-init.sh: accommodate Solaris 5.10's different diff -u output
5184         * tests/test-init.sh: Also exempt @@ lines from the comparison
5185         of diff output, since Solaris 5.10 and GNU diff formats differ.
5186         Reported by Stefano Lattarini.
5187
5188 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5189
5190         test-posixtm: don't assume signed integer wraparound
5191         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5192         after signed integer overflow.  Inspired by (though it may not
5193         fix) Bruno Haible's bug report in
5194         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5195
5196         Spell out "Windows 9x" and "Windows XP".
5197         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5198         "Windows 9x" and "WinXP" with "Windows XP".
5199
5200 2012-01-04  Jim Meyering  <meyering@redhat.com>
5201
5202         test-vc-list-files-cvs.sh: remove obsolete comment
5203         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5204         double exit.  Now that's all encapsulated via skip_ and Exit.
5205
5206 2012-01-04  Bruno Haible  <bruno@clisp.org>
5207
5208         Talk about "native Windows API", not "Win32".
5209         * lib/classpath.c: Update comments to mention native Windows.
5210         * lib/csharpexec.c: Likewise.
5211         * lib/dup2.c: Likewise.
5212         * lib/error.c: Likewise.
5213         * lib/fcntl.c: Likewise.
5214         * lib/filename.h: Likewise.
5215         * lib/findprog.c: Likewise.
5216         * lib/get-rusage-as.c: Likewise.
5217         * lib/get-rusage-data.c: Likewise.
5218         * lib/getpagesize.c: Likewise.
5219         * lib/javaexec.c: Likewise.
5220         * lib/msvc-inval.c: Likewise.
5221         * lib/msvc-nothrow.c: Likewise.
5222         * lib/nanosleep.c: Likewise.
5223         * lib/nonblocking.c: Likewise.
5224         * lib/printf-parse.c: Likewise.
5225         * lib/setlocale.c: Likewise.
5226         * lib/sigaction.c: Likewise.
5227         * lib/strerror_r.c: Likewise.
5228         * lib/tmpdir.c: Likewise.
5229         * lib/vasnprintf.c: Likewise.
5230         * lib/w32spawn.h: Likewise.
5231         * lib/waitpid.c: Likewise.
5232         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5233         * m4/locale-ar.m4: Likewise.
5234         * m4/locale-fr.m4: Likewise.
5235         * m4/locale-ja.m4: Likewise.
5236         * m4/locale-tr.m4: Likewise.
5237         * m4/locale-zh.m4: Likewise.
5238         * m4/printf.m4: Likewise.
5239         * tests/test-cloexec.c: Likewise.
5240         * tests/test-copy-acl.sh: Likewise.
5241         * tests/test-copy-file.sh: Likewise.
5242         * tests/test-file-has-acl.sh: Likewise.
5243         * tests/test-set-mode-acl.sh: Likewise.
5244         * tests/test-dup-safer.c: Likewise.
5245         * tests/test-dup2.c: Likewise.
5246         * tests/test-dup3.c: Likewise.
5247         * tests/test-fcntl.c: Likewise.
5248         * tests/test-nonblocking-pipe.h: Likewise.
5249         * tests/test-nonblocking-socket.h: Likewise.
5250         * tests/test-pipe.c: Likewise.
5251         * tests/test-pipe2.c: Likewise.
5252         * tests/test-spawn-pipe-child.c: Likewise.
5253         * doc/acl-resources.txt: Likewise.
5254         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5255         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5256         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5257         * lib/localcharset.c: Update comments to mention native Windows.
5258         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5259         * lib/localename.c: Likewise.
5260         * lib/progreloc.c: Likewise.
5261         * lib/relocatable.c: Likewise.
5262         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5263         (windows_compute_revents): Renamed from win32_compute_revents.
5264         (windows_compute_revents_socket): Renamed from
5265         win32_compute_revents_socket.
5266         * lib/select.c: Update comments to mention native Windows.
5267         (windows_poll_handle): Renamed from win32_poll_handle.
5268         * m4/threadlib.m4: Update comments to mention native Windows.
5269         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5270         --enable-threads=windows instead of --enable-threads=win32. Set
5271         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5272         * lib/glthread/lock.h: Update comments to mention native Windows.
5273         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5274         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5275         USE_WIN32_THREADS.
5276         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5277         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5278         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5279         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5280         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5281         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5282         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5283         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5284         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5285         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5286         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5287         * tests/test-tls.c: Likewise.
5288         Rationale:
5289         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5290         on both 32-bit and 64-bit Windows systems.
5291         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5292         line of distinction is between "native Windows" on one side and Unix/
5293         POSIX systems on the other side. More details in
5294         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5295         Suggested by Paul Eggert.
5296
5297 2012-01-03  Bruno Haible  <bruno@clisp.org>
5298
5299         isatty: Support for MSVC 9.
5300         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5301         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5302         (_isatty_nothrow): New function.
5303         (isatty): Use it instead of _isatty.
5304         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5305         * lib/poll.c (IsConsoleHandle): Likewise.
5306         * lib/select.c (IsConsoleHandle): Likewise.
5307         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5308         (gl_PREREQ_ISATTY): New macro.
5309         * modules/isatty (Depends-on): Add msvc-inval.
5310         (configure.ac): Invoke gl_PREREQ_ISATTY.
5311
5312 2012-01-03  Jim Meyering  <meyering@redhat.com>
5313
5314         maint.mk: remove temporary transition aid from over 1.5 years ago
5315         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5316         purpose was to aid in the transition (avoiding silent malfunction)
5317         from that old name to the new _sc_search_regexp.  This shim was
5318         added by commit 219c504b.
5319
5320         init.sh: do not try to accommodate compare arguments starting with "-"
5321         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5322         compare arguments that start with "-".  Besides, we do not worry
5323         about this when invoking diff or cmp; why start now with sed?
5324         Using "--" to separate options from argument would trigger sed
5325         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5326         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5327
5328 2012-01-02  Bruno Haible  <bruno@clisp.org>
5329
5330         Enhance tests for module 'isatty'.
5331         * modules/isatty-tests (Depends-on): Add pipe-posix.
5332         * tests/test-isatty.c: Include <fcntl.h>.
5333         (DEV_NULL): New macro.
5334         (main): Test the resut of isatty() also on regular files, pipes, and
5335         /dev/null.
5336
5337         New module 'isatty'.
5338         * lib/unistd.in.h (isatty): New declaration.
5339         * lib/isatty.c: New file, based on an idea of
5340         Bastien Roucariès <roucaries.bastien@gmail.com>.
5341         * m4/isatty.m4: New file.
5342         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5343         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5344         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5345         REPLACE_ISATTY.
5346         * modules/isatty: New file.
5347         * doc/posix-functions/isatty.texi: Mention the new module.
5348         Suggested by Paolo Bonzini.
5349
5350 2012-01-02  Bruno Haible  <bruno@clisp.org>
5351
5352         canonicalize: Tweak 2011-12-29 commit.
5353         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5354         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5355
5356 2012-01-02  Jim Meyering  <meyering@redhat.com>
5357
5358         gitlog-to-changelog: describe input syntax in --help output
5359         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5360
5361         gitlog-to-changelog: fix typo in --help: show backslash before email @
5362         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5363         in sources, but not in actual output.
5364
5365 2011-12-30  Jim Meyering  <meyering@redhat.com>
5366
5367         gitlog-to-changelog: don't malfunction when name contains %-directive
5368         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5369         in a name string cause trouble.  E.g., with a user name of "%s",
5370         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5371
5372 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5373
5374         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5375         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5376         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5377         the "  (tiny change)" notation that is appended to the standard
5378         ChangeLog "date  name  email" header line.
5379
5380 2012-01-01  Jim Meyering  <meyering@redhat.com>
5381
5382         test-framework-sh: init.sh: fix "make dist" failure
5383         When using gnulib-tool's --with-tests option and any module that
5384         depends on test-framework-sh, "make dist" would fail due to the
5385         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5386         in the gltests directory, and not in the gllib/ directory.
5387         One way to work around that is to move the EXTRA_DIST += init.sh
5388         from the primary module to the -tests one:
5389         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5390         * modules/test-framework-sh (Makefile.am): ...not here.
5391         Reported by Tom G. Christensen in
5392         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5393
5394         version-etc: update copyright year reported by --version
5395         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5396
5397 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5398
5399         canonicalize: only stat() if required
5400         * lib/canonicalize.c (canonicalize_filename_mode):
5401         Avoid calling l?stat() when both CAN_MISSING,
5402         and CAN_NOLINKS are set, as we neither need
5403         to resolve symlinks or test component existence.
5404
5405 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5406
5407         doc: cover st_ino issues once; add OpenVMS etc.
5408         * doc/posix-functions/stat.texi (stat):
5409         * doc/posix-functions/lstat.texi (lstat):
5410         * doc/posix-functions/fstatat.texi (fstatat):
5411         * doc/posix-functions/fstat.texi (fstat):
5412         Move general 'struct stat' stuff to sys_stat.texi,
5413         leaving behind a pointer.
5414         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5415         Merge duplicate info about 'struct stat' problems into here.
5416         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5417         and suggest partial workarounds.
5418
5419         same-inode: port to OpenVMS
5420         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5421         three st_ino values.
5422
5423 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5424
5425         canonicalize: fix references to stat() and lstat()
5426         * lib/canonicalize.c (canonicalize_filename_mode):
5427         Ensure references always resolve to a replacement
5428         function if required (even via a macro).
5429
5430 2011-12-30  Jim Meyering  <meyering@redhat.com>
5431
5432         gitlog-to-changelog: remove a little duplication
5433         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5434         rather than twice.
5435
5436 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5437
5438         canonicalize: add support for not resolving symlinks
5439         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5440         indicate we don't want to follow symlinks.  Also
5441         provide CAN_MODE_MASK to aid setting these existing
5442         mutually exclusive values.
5443         * lib/canonicalize.c (canonicalize_filename_mode):
5444         Extract the flags from can_mode parameter, which
5445         are currently just used to select between stat()
5446         and lstat().  Also ensure that mutually exclusive
5447         values are flagged immediately as invalid.
5448         * tests/test-canonicalize.c: Verify symlinks are
5449         not followed, and that invalid flag combinations
5450         are diagnosed.
5451
5452 2011-12-25  Jim Meyering  <meyering@redhat.com>
5453
5454         gitlog-to-changelog: do not clump multi-paragraph entries
5455         Identical header lines (date,name,email+coauthors) are suppressed,
5456         thus putting all entries with those same characteristics under
5457         a single header.  However, when a log entry consists of two or
5458         more paragraphs, it may not be clear where it starts and ends.
5459         This change makes it so that such an entry is always separated
5460         from others by a header line, even when that header would
5461         otherwise be suppressed.
5462         * build-aux/gitlog-to-changelog: Implement the above.
5463         Inspired by a related request from Stefano Lattarini in
5464         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5465
5466 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5467
5468         announce-gen: fix `cmd' typo in diagnostic
5469         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5470         diagnostic: a missing '$' meant that the command was not output.
5471
5472 2011-12-23  Jim Meyering  <meyering@redhat.com>
5473
5474         test-framework-sh: distribute init.sh
5475         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5476         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5477         fail due to the lack of init.sh.
5478
5479         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5480         * modules/atexit-tests: Rather than listing tests/init.sh,
5481         now that there's a module for it, simply depend on that new module.
5482         * modules/closein-tests: Likewise.
5483         * modules/exclude-tests: Likewise.
5484         * modules/getcwd-tests: Likewise.
5485         * modules/perror-tests: Likewise.
5486         * modules/pread-tests: Likewise.
5487         * modules/pwrite-tests: Likewise.
5488         * modules/vc-list-files-tests: Likewise.
5489         * modules/verify-tests: Likewise.
5490         * modules/xalloc-die-tests: Likewise.
5491         * modules/xstrtoimax-tests: Likewise.
5492         * modules/xstrtol-tests: Likewise.
5493         * modules/xstrtoll-tests: Likewise.
5494         * modules/xstrtoumax-tests: Likewise.
5495         * modules/yesno-tests: Likewise.
5496
5497 2011-12-22  Jim Meyering  <meyering@redhat.com>
5498
5499         test-framework-sh: add minimal tests of init.sh's compare function
5500         * modules/test-framework-sh-tests: New file.
5501         * tests/test-init.sh: New file.
5502
5503         test-framework-sh: new module
5504         * modules/test-framework-sh: New file.
5505         * MODULES.html.sh (Support for maintaining and releasing projects):
5506         List it.
5507
5508         init.sh: do not emit simulated diff output to stderr
5509         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5510
5511 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5512
5513         .gitignore: ignore gnulib.dvi and regex.info
5514         * doc/.gitignore:add gnulib.dvi and regex.info
5515
5516 2011-12-22  Jim Meyering  <meyering@redhat.com>
5517
5518         init.sh: correct previous change
5519         * tests/init.sh (compare): My previous change was wrong.
5520         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5521
5522         init.sh: avoid unwarranted test failure when using "set -e"
5523         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5524         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5525         a use like "compare exp out" would get evoke an unconditional failure.
5526
5527 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5528
5529         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5530         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5531         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5532         autoreconf that did not.
5533         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5534         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5535
5536 2011-12-17  Jim Meyering  <meyering@redhat.com>
5537
5538         bootstrap: remove some now-unneeded code
5539         This script arose back when gnulib-tool was young.
5540         Since then, it has seen improvements that render much of this
5541         script unnecessary.  In particular, it can now make symlinks
5542         to the files it uses.  Also, I no longer see as much value in
5543         marking files as read-only via comments.
5544         If you relied on the symlink-creation feature of the preceding
5545         version of this script, you can get most of that functionality
5546         by adding the --symlink option to the definition of
5547         gnulib_tool_option_extras in your bootstrap.conf file.
5548         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5549         Run autopoint and libtoolize *before* gnulib-tool.
5550         After it, run an abbreviated autoreconf, rather than a loop around
5551         all tools.
5552         (slirp, bt_mark_as_generated): Remove functions.
5553
5554 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5555
5556         ftoastr: fix typo
5557         * lib/ftoastr.h: Fix misspelling in comment.
5558
5559 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5560
5561         * top/README-release: fix punctuation.
5562
5563 2011-12-17  Jim Meyering  <meyering@redhat.com>
5564
5565         bootstrap: correct the recent buildreq change
5566         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5567         had no effect.
5568         * build-aux/bootstrap (buildreq): Bracket each search term with
5569         "*...*", so that the shell "case" statement works as intended.
5570         Add comments.
5571
5572 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5573
5574         build: let bootstrap resort to wget when downloading .po files
5575         * build-aux/bootstrap (download_po_files): Fallback to wget when
5576         downloading the .po files via rsync fails.  This is necessary to
5577         bootstrap from behind a strict firewall.
5578
5579 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5580
5581         stdint: don't assume C++11 when compiling with g++
5582         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5584         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5585         work also in C++ before C++11, as that improperly inhibits
5586         generating a substitute stdint.h for that case.
5587
5588 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5589
5590         alloca: protect comment from gnulib-tool
5591         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5592         that gnulib-tool doesn't think it's a license, and munge it to
5593         say "GCC version 3".
5594
5595 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5596
5597         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5598         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5599         $(abs_top_builddir) instead of $(top_builddir).
5600
5601 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5602
5603         strftime-tests: also test nanoseconds
5604         * tests/test-strftime.c (T): Add a test of %N.
5605
5606 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5607
5608         inttypes, stdint: add C++11 support
5609         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5610         when including inttypes.h and stdint.h.  Support this change to
5611         the standard.
5612         * doc/posix-headers/inttypes.texi (inttypes.h):
5613         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5614         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5615         Define if not defined already, for the benefit of pre-C++11 hosts.
5616         Define the standard format macros (e.g., PRId8) always.
5617         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5618         Likewise, if __cpluspus.  Define the standard constant and limit
5619         macros (e.g., INT8_C, INT8_MAX) always.
5620         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5621         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5622         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5623         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5624         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5625         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5626         Likewise.
5627
5628 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5629
5630         nonblocking tests: Fix test failure on Linux/PPC.
5631         Suggested by Prerna Saxena in
5632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5633         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5634         Set to 1100000.
5635
5636 2011-12-12  Jim Meyering  <meyering@redhat.com>
5637
5638         argmatch: don't hard-code `' when listing valid option arguments
5639         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5640         use the quote function to add quotes.  Use fputs rather than
5641         fprintf for the format string with no format directive.
5642
5643 2011-12-07  Eric Blake  <eblake@redhat.com>
5644
5645         bootstrap: detect tools required by gnulib-tool
5646         * build-aux/bootstrap (buildreq): Provide minimum implicit
5647         dependencies.
5648         * DEPENDENCIES: Mention patch as a prereq.
5649
5650 2011-12-04  Bruno Haible  <bruno@clisp.org>
5651
5652         sethostname: Port to Windows platforms.
5653         * lib/sethostname.c: Provide an alternate implementation for Windows
5654         platforms.
5655         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5656         (main): Skip the test if sethostname() fails with EPERM. On Windows
5657         platforms, don't check the result of gethostname().
5658
5659 2011-12-04  Bruno Haible  <bruno@clisp.org>
5660             Jim Meyering  <meyering@redhat.com>
5661
5662         tests: Avoid spurious error message on platforms without mktemp program.
5663         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5664
5665 2011-12-04  Bruno Haible  <bruno@clisp.org>
5666
5667         sethostname: Fix documentation.
5668         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5669         "not fixed" section.
5670
5671 2011-12-03  Bruno Haible  <bruno@clisp.org>
5672
5673         gnulib-tool: Verify that the License field is present and non-empty.
5674         * gnulib-tool (func_get_license_raw): New function, extracted from
5675         func_get_license.
5676         (func_get_license): Use it. Warn if the module is not a test module and
5677         has no license.
5678         Suggested by Jim Meyering.
5679
5680 2011-12-03  Bruno Haible  <bruno@clisp.org>
5681
5682         sethostname tests: Fix link error on mingw.
5683         * tests/test-sethostname1.c: New file, extracted from
5684         tests/test-sethostname.c.
5685         * tests/test-sethostname2.c: New file, extracted from
5686         tests/test-sethostname.c.
5687         * tests/test-sethostname.c: Remove file.
5688         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5689         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5690         (Depends-on): Add gethostname.
5691         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5692         Link the latter with $(GETHOSTNAME_LIB).
5693
5694         sethostname tests: Fix compilation error on mingw.
5695         * tests/test-sethostname.c: Don't include <sys/types.h>.
5696         (geteuid): Use a dummy value without uid_t.
5697         * modules/sethostname-tests (Depends-on): Remove sys_types.
5698
5699         sethostname tests: Avoid a gcc warning.
5700         * tests/test-sethostname.c (main): Remove an unused variable.
5701
5702         Tweak last commit.
5703         * modules/sethostname-tests (Files): Sort by decreasing importance.
5704         (configure.ac): Check for geteuid.
5705         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5706         the test when there's nothing to test. Drop an unnecessary cast.
5707         Improve an error message. Verify that the final sethostname() call
5708         succeeds.
5709
5710 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5711
5712         Add a test suite for the sethostname module.
5713         * modules/sethostname-tests: New file.  A test program
5714         for the sethostname module.
5715         * tests/test-sethostname.c: Likewise.
5716
5717 2011-12-03  Bruno Haible  <bruno@clisp.org>
5718
5719         Tweak last commit.
5720         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5721         Fix preprocessor directives indentation. Fix typos.
5722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5723         * modules/unistd (Makefile): Likewise.
5724
5725 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5726
5727         Integrate the sethostname module into unistd.
5728         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5729         into the unistd.h header.
5730         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5731         preprocessor directives.
5732         * modules/unistd: Setup the Makefile substitutions of the
5733         SETHOSTNAME preprocessor directives.
5734
5735 2011-12-03  Bruno Haible  <bruno@clisp.org>
5736
5737         Tweak last commit.
5738         * lib/sethostname.c: Don't include <string.h>.
5739         (sethostname): No need to copy the argument string to the stack. Don't
5740         call clearerr. Preserve errno when fprintf failed.
5741         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5742         Don't invoke AC_REPLACE_FUNCS.
5743         * modules/sethostname (Link): Remove empty section.
5744         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5745         failure problem.
5746
5747 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5748
5749         New module 'sethostname'.
5750         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5751         for systems that lack it.
5752         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5753         sethostname declaration and function.
5754         * modules/sethostname: New file.  Define the sethostname module.
5755
5756 2011-12-03  Bruno Haible  <bruno@clisp.org>
5757
5758         Tweak last commit.
5759         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5760
5761 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5762
5763         Split the HOST_NAME_MAX detection into a separate m4 macro.
5764         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5765         macro so it can be used by the pending sethostname module.
5766
5767 2011-12-03  Bruno Haible  <bruno@clisp.org>
5768
5769         Fix module descriptions syntax.
5770         * modules/argv-iter (License): Fix syntax.
5771         * modules/di-set (License): Likewise.
5772         * modules/ino-map (License): Likewise.
5773         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5774
5775 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5776
5777         stdalign: port to Clang 3.0
5778         Problem reported by Simon Josefsson in
5779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5780         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5781         which has <stdalign.h> but which does not define alignof.
5782         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5783
5784 2011-12-01  Eric Blake  <eblake@redhat.com>
5785
5786         mktempd: silence dd usage
5787         * build-aux/mktempd (rand_bytes): Silence dd.
5788
5789 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5790
5791         manywarnings: Don't mention gcc version in docstring.
5792         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5793         Jim Meyering <meyering@redhat.com>.
5794
5795 2011-11-30  Jim Meyering  <meyering@redhat.com>
5796
5797         hash: mark a few floating point constants with "f" suffix
5798         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5799         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5800         floating point constants with "f", since they're destined to be
5801         saved/used as "float"s.
5802
5803 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5804
5805         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5806         * tests/test-float.c (test_long_double): Correct and re-enable the
5807         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5808
5809 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5810
5811         Avoid subtracting two pointers that don't point into the same block.
5812         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5813         only pointers into the same memory block are subtracted. We cannot
5814         assume that sizeof (ptrdiff_t) == sizeof (void *).
5815
5816 2011-11-29  Eric Blake  <eblake@redhat.com>
5817
5818         maint.mk: add syntax check for use of compare from init.sh
5819         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5820         moved here from coreutils.
5821
5822         manywarnings: drop -Wunsuffixed-float-constants
5823         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5824         '1.0D', which is the only way to silence this warning for 'double'.
5825
5826 2011-11-29  Jim Meyering  <meyering@redhat.com>
5827
5828         hash: mark compute_bucket_size with the pure attribute
5829         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5830
5831         quotearg, propername: correct pragma guard expression
5832         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5833         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5834
5835 2011-11-28  Jim Meyering  <meyering@redhat.com>
5836
5837         propername: do not mark proper_name with the const attribute
5838         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5839         since it examines data pointed to by its parameter.
5840         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5841         the suggestion from -Wsuggest-attribute=const.
5842
5843         propername: mark one more function as const
5844         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5845
5846 2011-11-27  Jim Meyering  <meyering@redhat.com>
5847
5848         mark functions with const and pure attributes
5849
5850         Mark functions per suggestions from gcc-4.6 when using these options:
5851         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5852         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5853         Follow these guidelines: when possible, apply the attribute to
5854         an extern declaration, not to its definition.  Apply it to the
5855         definition only when the definition is static.
5856         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5857         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5858         * lib/base64.h (isbase64): Likewise.
5859         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5860         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5861         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5862         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5863         (c_tolower, c_toupper): Likewise.
5864         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5865         * lib/chdir-long.c (find_non_slash): Likewise.
5866         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5867         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5868         * lib/file-type.h (file_type): Likewise.
5869         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5870         * lib/filevercmp.c (verrevcmp): Likewise.
5871         * lib/freadahead.h (freadahead): Likewise.
5872         * lib/fts.c (fts_maxarglen): Likewise.
5873         * lib/hash-pjw.h (hash_pjw): Likewise.
5874         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5875         * lib/hash.c (is_prime, next_prime): Likewise.
5876         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5877         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5878         (hash_table_ok, hash_get_first, hash_string): Likewise.
5879         (compute_bucket_size): Likewise.
5880         * lib/i-ring.h (i_ring_empty): Likewise.
5881         * lib/isnan.c (isnanl): Likewise.
5882         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5883         * lib/memcasecmp.h (memcasecmp): Likewise.
5884         * lib/memchr2.h (memchr2): Likewise.
5885         * lib/memcmp2.h (memcmp2): Likewise.
5886         * lib/parse-datetime.y (lookup_zone): Likewise.
5887         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5888         [!WINDOWS_SOCKETS]: Likewise.
5889         * lib/strnlen1.h (strnlen1): Likewise.
5890         * lib/uniwidth.in.h (uc_width): Likewise.
5891         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5892         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5893         (quoting_options_from_style): Add a comment.
5894         * lib/propername.h (proper_name): Add a comment.
5895
5896 2011-11-27  Bruno Haible  <bruno@clisp.org>
5897
5898         Remove unused macros from !_LIBC code in glibc-borrowed files.
5899         * lib/fnmatch.c (STRCOLL): Remove macro.
5900         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5901         * lib/glob.c (__stat, __readdir64): Remove macros.
5902         * lib/tempname.c (__open64, __xstat64): Remove macros.
5903         Suggested by Paul Eggert.
5904
5905 2011-11-27  Bruno Haible  <bruno@clisp.org>
5906
5907         getcwd: Fix link error on MSVC 9.
5908         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5909
5910 2011-11-27  Bruno Haible  <bruno@clisp.org>
5911
5912         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5913         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5914         HAVE_OPENDIR is 0.
5915         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5916         HAVE_CLOSEDIR is 0.
5917         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5918         is 0.
5919         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5920
5921 2011-11-27  Bruno Haible  <bruno@clisp.org>
5922
5923         getcwd: Fix bug from 2011-08-17.
5924         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5925         platforms that need it.
5926         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5927         code of 4 to be a failure, not a success. This ensures that
5928         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5929
5930 2011-11-27  Bruno Haible  <bruno@clisp.org>
5931
5932         binary-io tests: Avoid test failure on mingw when libtool is used.
5933         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5934         Don't verify the size of t-bin-out1.tmp here.
5935         * tests/test-binary-io.sh: Verify it here.
5936         Reported by Simon Josefsson.
5937
5938 2011-11-26  Bruno Haible  <bruno@clisp.org>
5939
5940         Fix conflict between two instantiations of module 'unistd'.
5941         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5942         ${include_guard_prefix} also in the autoconf snippet.
5943         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5945         GNULIB_UNISTD_H_GETOPT.
5946         * modules/getopt-posix (configure.ac): Set the
5947         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5948         * modules/getopt-gnu (configure.ac): Likewise.
5949         * modules/unistd (Makefile.am): Change the substitution value of
5950         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5951         Reported by Simon Josefsson.
5952
5953 2011-11-25  Bruno Haible  <bruno@clisp.org>
5954
5955         pagealign_alloc: Doc and comments.
5956         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5957         module.
5958         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5959
5960 2011-11-25  Jim Meyering  <meyering@redhat.com>
5961
5962         test-update-copyright.sh: avoid false-positive failure
5963         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5964         around false positive failure on Cygwin/Windows.  The latter was
5965         matching erroneously-created files with names like
5966         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5967
5968 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5969
5970         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5971         * m4/valgrind-tests.m4: Check that the parameters that will be
5972         used works, not just a subset of them.  Reported by Bruno Haible
5973         <bruno@clisp.org>.
5974
5975 2011-11-24  Jim Meyering  <meyering@redhat.com>
5976
5977         test-stdalign.c: comment out long double tests
5978         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5979         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5980         error: '_Alignas' specifiers cannot reduce alignment of \
5981         'static_longdouble_alignas'.
5982
5983 2011-11-22  Jim Meyering  <meyering@redhat.com>
5984
5985         init.sh: make "compare /dev/null FILE" output more readable
5986         * tests/init.sh (compare_): Document the preferred order of arguments.
5987         (emit_diff_u_header_): New function.
5988         (compare_dev_null_): Emit a simulated diff, rather than just the
5989         contents of the unexpected file.  Suggestion from Bruno Haible.
5990
5991 2011-11-21  Jim Meyering  <meyering@redhat.com>
5992             Eric Blake  <eblake@redhat.com>
5993
5994         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5995         * tests/init.sh: Make our compare function slightly more portable.
5996         Reported by Bruno Haible in
5997         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5998
5999 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6000
6001         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6002         before using it, in code that ends up in config.h.
6003
6004 2011-11-20  Bruno Haible  <bruno@clisp.org>
6005
6006         getcwd: Work around getcwd bug on AIX 5..7.
6007         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6008         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6009         Use a different value for gl_cv_func_getcwd_path_max. Move the
6010         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6011         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6012         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6013         Define HAVE_MINIMALLY_WORKING_GETCWD.
6014         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6015         where it is not even minimally working, that is, on AIX.
6016         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6017         m4/getcwd-path-max.m4.
6018         (main): Update exit code computation.
6019         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6020         getcwd does not handle long file names.
6021
6022 2011-11-20  Bruno Haible  <bruno@clisp.org>
6023
6024         getcwd: Fix bug from 2009-09-10.
6025         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6026         like "no".
6027
6028 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6029
6030         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6031
6032 2011-11-20  Bruno Haible  <bruno@clisp.org>
6033
6034         fma tests: Avoid shadowing local variables.
6035         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6036         expected.
6037
6038 2011-11-20  Bruno Haible  <bruno@clisp.org>
6039
6040         copysignf tests: Fix.
6041         * tests/test-copysignf.c: Fix signature check.
6042
6043 2011-11-20  Bruno Haible  <bruno@clisp.org>
6044
6045         fma: Remove unused code.
6046         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6047         unused macros.
6048
6049 2011-11-20  Bruno Haible  <bruno@clisp.org>
6050
6051         sethostname: Fix doc about AIX.
6052         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6053         sethostname; it has it.
6054
6055         sethostname: Mention more portability problems.
6056         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6057         problem.
6058         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6059
6060 2011-11-19  Bruno Haible  <bruno@clisp.org>
6061
6062         Depend on module fcntl-h when AT_FDCWD is used.
6063         * modules/utimens (Depends-on): Add fcntl-h.
6064         * modules/areadlinkat (Depends-on): Likewise.
6065         * modules/areadlinkat-with-size (Depends-on): Likewise.
6066         * modules/faccessat (Depends-on): Likewise.
6067         * modules/fchmodat (Depends-on): Likewise.
6068         * modules/fchownat (Depends-on): Likewise.
6069         * modules/getcwd (Depends-on): Likewise.
6070         * modules/mkdirat (Depends-on): Likewise.
6071         * modules/mkfifoat (Depends-on): Likewise.
6072         * modules/readlinkat (Depends-on): Likewise.
6073         * modules/symlinkat (Depends-on): Likewise.
6074         * modules/dup2-tests (Depends-on): Likewise.
6075         * modules/fdutimensat-tests (Depends-on): Likewise.
6076         * modules/futimens-tests (Depends-on): Likewise.
6077
6078 2011-11-19  Bruno Haible  <bruno@clisp.org>
6079
6080         euidaccess: Update a comment.
6081         * lib/euidaccess.c: Update comment about platforms with faccessat.
6082
6083 2011-11-19  Bruno Haible  <bruno@clisp.org>
6084
6085         openat: Fix file list.
6086         * modules/openat (Files): Remove lib/at-func.c.
6087
6088 2011-11-19  Bruno Haible  <bruno@clisp.org>
6089
6090         fstatat: Simplify.
6091         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6092         gnulib should define rpl_fstatat, there is a
6093         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6094
6095 2011-11-19  Bruno Haible  <bruno@clisp.org>
6096
6097         Ensure 'inline' can be used in tests/test-utimens-common.h.
6098         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6099         * modules/futimens-tests (configure.ac): Likewise.
6100         * modules/utimens-tests (configure.ac): Likewise.
6101         * modules/utimensat-tests (configure.ac): Likewise.
6102
6103 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6104
6105         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6106         not hash_insert0.
6107         (hash_insert_if_absent): Doc fix.
6108
6109 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6110
6111         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6112
6113 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6114
6115         test-getcwd: disambiguate exit status
6116         * tests/test-getcwd.c (test_long_name): Return 0..7.
6117         (main): Exit with an unambiguous exit status.  The old
6118         code yielded a mysterious mixture of two failure codes.
6119
6120         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6121         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6122         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6123         rpl_fstatat or fstatat.  This should fix the other problem
6124         reported by Kai Habel in
6125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6126         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6128         and I reproduced it on a Solaris 8 host we still have in production.
6129
6130 2011-11-18  Jim Meyering  <meyering@redhat.com>
6131
6132         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6133         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6134         Add a sentence to the comment.
6135         (hash_insert0): New function that simply calls hash_insert_if_absent.
6136         * lib/hash.h (hash_insert_if_absent): Declare it.
6137         (hash_insert0): Add deprecation attribute.
6138         (_GL_ATTRIBUTE_DEPRECATED): Define.
6139         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6140         not hash_insert0.
6141         * NEWS: Mention it, even though it's not really an incompatible change.
6142
6143 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6144
6145         openat: avoid compilation failure due to lack of <errno.h> inclusion
6146         * lib/openat.c: Include <errno.h>.
6147
6148 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6149
6150         * modules/getcwd (Depends-on): Add fdopendir.
6151         This fixes one of the two problems reported by Kai Habel in
6152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6153
6154         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6155         stdalign problem reported by Ian Beckwith in
6156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6157         * modules/crypto/gc-arcfour (Depends-on):
6158         Depend conditionally on crypto/arcfour.
6159         * modules/crypto/gc-arctwo (Depends-on):
6160         Depend conditionally on crypto/arctwo.
6161         * modules/crypto/gc-des (Depends-on):
6162         Depend conditionally on crypto/des.
6163         * modules/crypto/gc-hmac-md5 (Depends-on):
6164         Depend conditionally on crypto/hmac-md5.
6165         * modules/crypto/gc-hmac-sha1 (Depends-on):
6166         Depend conditionally on crypto/hmac-sha1.
6167         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6168         * modules/crypto/gc-md4 (Depends-on):
6169         Depend conditionally on crypto/md4.
6170         * modules/crypto/gc-md5 (Depends-on):
6171         Depend conditionally on crypto/md5.
6172         * modules/crypto/gc-rijndael (Depends-on):
6173         Depend conditionally on crypto/rijndael.
6174         * modules/crypto/gc-sha1 (Depends-on):
6175         Depend conditionally on crypto/sha1.
6176         * modules/crypto/gc-arcfour:
6177         * modules/crypto/gc-arctwo:
6178         * modules/crypto/gc-des:
6179         * modules/crypto/gc-hmac-md5:
6180         * modules/crypto/gc-hmac-sha1:
6181         * modules/crypto/gc-md2:
6182         * modules/crypto/gc-md4:
6183         * modules/crypto/gc-md5:
6184         * modules/crypto/gc-rijndael:
6185         * modules/crypto/gc-sha1:
6186         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6187         now that the conditional dependencies do the work for us.
6188
6189 2011-11-17  Jim Meyering  <meyering@redhat.com>
6190
6191         tests: factor st_ctime-comparison out of two headers
6192         * tests/test-utimens-common.h (ctime_compare): Define.
6193         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6194         * tests/test-lutimens.h (test_lutimens): Likewise.
6195         * tests/test-utimens.h (test_utimens): Likewise.
6196
6197         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6198         Invoke the test program via an init.sh-using wrapper.
6199         * tests/test-getcwd.sh: New file.
6200         * modules/getcwd-tests (Files): Add it.
6201         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6202
6203 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6204
6205         gitlog-to-changelog: support multi-author commits.
6206         The FSF cares about keeping track of all authors of patches to its
6207         projects, but Git doesn't provide obvious support for multi-author
6208         changesets. Consensus seems to be forming around the use of extra
6209         Signed-off-by inspired lines in the log message formatted as
6210         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6211         multi-author commits between version control systems.
6212         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6213         log message and output in standard ChangeLog multi-author format.
6214         Reported by Peter Rosin <peda@lysator.liu.se>
6215
6216 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6217             Bruno Haible  <bruno@clisp.org>
6218
6219         Fix some modules' file list.
6220         * modules/fstatat (Files): Add m4/lstat.m4.
6221         * modules/openat (Files): Likewise.
6222         * modules/unlinkat (Files): Likewise.
6223
6224 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6225
6226         maint.mk: fix tight-scope.mk generation in VPATH builds.
6227         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6228         reference with $(srcdir) so that the file is found correctly even
6229         when running `make syntax-check' in a VPATH build.
6230
6231 2011-11-13  Bruno Haible  <bruno@clisp.org>
6232             Jim Meyering  <meyering@redhat.com>
6233
6234         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6235         * tests/init.sh (compare): Remove "No differences encountered" or
6236         synonymous output from the 'diff' program.
6237
6238 2011-11-13  Bruno Haible  <bruno@clisp.org>
6239
6240         Makefile: Tweak indentation.
6241         * Makefile: Use tab as first character in every line that contains rule
6242         commands.
6243
6244 2011-11-13  Bruno Haible  <bruno@clisp.org>
6245
6246         Syntax check for copyright statements.
6247         * check-copyright: New file.
6248         * Makefile (sc_check_copyright): New rule.
6249
6250 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6251
6252         * build-aux/git-version-gen: Add --prefix to configure the tag
6253         match string.
6254
6255 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6256
6257         * build-aux/git-version-gen: Add --help and --version.
6258
6259 2011-11-12  Jim Meyering  <meyering@redhat.com>
6260
6261         revamp the other test-exclude?.sh scripts to use init.sh, too
6262         * tests/test-exclude1.sh: Use init.sh.
6263         * tests/test-exclude2.sh: Likewise.
6264         * tests/test-exclude3.sh: Likewise.
6265         * tests/test-exclude4.sh: Likewise.
6266         * tests/test-exclude5.sh: Likewise.
6267         * tests/test-exclude6.sh: Likewise.
6268         * tests/test-exclude7.sh: Likewise.
6269         * tests/test-exclude8.sh: Likewise.
6270         * modules/exclude-tests (Files): List init.sh.
6271
6272         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6273         These shell scripts ignored failure of the binary test-exclude,
6274         so making the latter return 77 didn't cause them to be skipped.
6275         * tests/test-exclude5.sh: Exit with test-exclude's error status
6276         when that program fails.  Revamp to use init.sh.
6277         * tests/test-exclude2.sh: Likewise.
6278
6279         test-exclude: fix a typo
6280         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6281
6282 2011-11-11  Bruno Haible  <bruno@clisp.org>
6283
6284         obstack: Fix compilation error on MSVC 9.
6285         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6286
6287 2011-11-11  Jim Meyering  <meyering@redhat.com>
6288
6289         test-exclude: skip tests rather than failing on deficient systems
6290         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6291         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6292         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6293         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6294
6295 2011-11-10  Bruno Haible  <bruno@clisp.org>
6296
6297         ptsname_r test: Avoid gcc warning on glibc systems.
6298         * tests/test-ptsname_r.c (null_ptr): New function.
6299         (test_errors): Use it.
6300
6301 2011-11-10  Bruno Haible  <bruno@clisp.org>
6302
6303         ptsname_r: Avoid compilation error on OSF/1 5.1.
6304         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6306         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6307         function is not declared or incompatibly declared.
6308         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6309         * modules/ptsname_r (Depends-on, configure.ac): Update.
6310         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6311
6312 2011-11-10  Bruno Haible  <bruno@clisp.org>
6313
6314         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6315         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6316         When cross-compiling, guess yes on all platforms except AIX.
6317         Reported by Ludovic Courtès <ludo@gnu.org>.
6318
6319 2011-11-09  Bruno Haible  <bruno@clisp.org>
6320
6321         ptsname_r tests: Fix bugs.
6322         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6323         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6324
6325 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6326
6327         fstatat: work with cross-compilation
6328         Problem reported by Ludovic Courtès in
6329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6330         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6331         "cross-compiling" and assume the bug is present.  Replace
6332         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6333         an inverted sense, to be more conservative about our assumptions.
6334         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6335
6336 2011-11-09  Bruno Haible  <bruno@clisp.org>
6337
6338         Improve MODULES.html output.
6339         * modules/mkfifoat (Description): Use the word "function".
6340         * modules/readlinkat (Description): Likewise.
6341         * modules/symlinkat (Description): Likewise.
6342
6343 2011-11-09  Eric Blake  <eblake@redhat.com>
6344
6345         ptsname_r-tests: new test module
6346         * modules/ptsname_r-tests: New module.
6347         * tests/test-ptsname_r.c: New file.
6348
6349         ptsname_r: new module
6350         * modules/ptsname_r: New module.
6351         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6352         * lib/ptsname.c (__ptsname_r): Split...
6353         * lib/ptsname_r.c: ...into new file.
6354         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6355         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6356         * modules/stdlib (Makefile.am): Substitute witnesses.
6357         * lib/stdlib.in.h (ptsname_r): Declare it.
6358         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6359         * MODULES.html.sh (Misc): Likewise.
6360         * modules/ptsname (Depends-on): Alter dependency.
6361         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6362
6363 2011-11-09  Jim Meyering  <meyering@redhat.com>
6364
6365         announce-gen: be more concise when there's only one URL+tarball
6366         * build-aux/announce-gen (get_tool_versions): When you distribute
6367         only one type of tarball, combine the first two "Here are..."
6368         sections and make the key-checking grammar independent of
6369         how many tarballs there are.
6370
6371 2011-11-09  Eric Blake  <eblake@redhat.com>
6372
6373         openpty: provide a stub on mingw
6374         * lib/pty.in.h (includes): Provide forward declarations.
6375         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6376
6377         raise: fix mingw handling of SIGPIPE
6378         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6379
6380 2011-11-08  Bruno Haible  <bruno@clisp.org>
6381
6382         More conditional dependencies.
6383         * modules/faccessat (Depends-on): Add conditions.
6384         * modules/fchmodat (Depends-on): Likewise.
6385         * modules/fchownat (Depends-on): Likewise.
6386         * modules/fstatat (Depends-on): Likewise.
6387         * modules/mkfifoat (Depends-on): Likewise.
6388         * modules/readlinkat (Depends-on): Likewise.
6389         * modules/symlinkat (Depends-on): Likewise.
6390         * modules/unlinkat (Depends-on): Likewise.
6391         * modules/utimensat (Depends-on): Likewise.
6392         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6393         * modules/linkat (Depends-on): Refine the conditions.
6394         * modules/renameat (Depends-on): Likewise.
6395
6396 2011-11-08  Bruno Haible  <bruno@clisp.org>
6397
6398         faccessat: Move AC_LIBOBJ invocation to module description.
6399         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6400         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6401         invocation from here...
6402         * modules/faccessat (configure.ac): ... to here. Invoke
6403         gl_PREREQ_FACCESSAT.
6404
6405 2011-11-08  Bruno Haible  <bruno@clisp.org>
6406
6407         faccessat: Simplify autoconf macro.
6408         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6409         gl_FUNC_EUIDACCESS.
6410
6411 2011-11-08  Bruno Haible  <bruno@clisp.org>
6412
6413         renameat: Fix dependencies.
6414         * modules/renameat (Depends-on): Add stdbool.
6415
6416 2011-11-08  Bruno Haible  <bruno@clisp.org>
6417
6418         mkfifoat: Fix module description.
6419         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6420         not gl_UNISTD_MODULE_INDICATOR.
6421
6422 2011-11-08  Bruno Haible  <bruno@clisp.org>
6423
6424         fstatat: Remove unused dependency.
6425         * modules/fstatat (Depends-on): Remove fstat.
6426
6427 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6428
6429         GNUmakefile: behave when Makefile is missing.
6430         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6431
6432 2011-11-08  Bruno Haible  <bruno@clisp.org>
6433
6434         openat: Conditionalize dependencies.
6435         * lib/openat.c: Reduce the scope of some #includes.
6436         * modules/openat (Depends-on): Add conditions.
6437
6438 2011-11-07  Jim Meyering  <meyering@redhat.com>
6439
6440         maint.mk: extract GPG key ID without using a temporary file
6441         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6442         without using a temporary file.  Based on a suggestion from Werner Koch
6443         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6444
6445 2011-11-07  Eric Blake  <eblake@redhat.com>
6446
6447         grantpt: fix typo
6448         * lib/stdlib.in.h (grantpt): Check correct function.
6449
6450         maint.mk: silence new syntax check
6451         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6452
6453 2011-11-06  Bruno Haible  <bruno@clisp.org>
6454
6455         Doc about floating-point and math API.
6456         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6457         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6458
6459 2011-11-06  Bruno Haible  <bruno@clisp.org>
6460
6461         stdalign tests: Skip the test when compiled by Sun C.
6462         * tests/test-stdalign.c (main): Skip the test on Sun C.
6463
6464 2011-11-06  Bruno Haible  <bruno@clisp.org>
6465
6466         ansi-c++-opt: Complete the 2011-06-05 change.
6467         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6468         does not support namespaces, set the variable to "no", not to ":".
6469
6470 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6471
6472         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6473
6474 2011-11-06  Bruno Haible  <bruno@clisp.org>
6475
6476         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6477         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6478         (minus_zerol) [HP-UX]: New macro.
6479         (unary_minus) [HP-UX]: New function.
6480         (copysignl) [HP-UX]: Use unary_minus function.
6481
6482 2011-11-06  Bruno Haible  <bruno@clisp.org>
6483
6484         ldexp, ldexpf, ldexpl: Enhance tests.
6485         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6486         and tests/test-ldexpl.c.
6487         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6488         LDEXP, MIN_EXP, MAX_EXP): New macros.
6489         Include test-ldexp.h.
6490         (main): Just call test_function.
6491         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6492         infinity.h, nan.h.
6493         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6494         MAX_EXP): New macros.
6495         Include test-ldexp.h.
6496         (x, y): Remove variables.
6497         (main): Just call test_function.
6498         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6499         infinity.h, nan.h.
6500         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6501         MAX_EXP): New macros.
6502         Include test-ldexp.h.
6503         (x, y): Remove variables.
6504         (main): Just call test_function.
6505         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6506         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6507         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6508         (Depends-on): Add isnand-nolibm, signbit, float.
6509         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6510         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6511         (Depends-on): Add isnanf-nolibm, signbit, float.
6512
6513 2011-11-06  Bruno Haible  <bruno@clisp.org>
6514
6515         math tests: Cosmetics.
6516         * tests/test-math-c++.cc: Reorder declarations.
6517
6518 2011-11-05  Bruno Haible  <bruno@clisp.org>
6519
6520         fma*: Simplify test.
6521         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6522         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6523
6524         Tests for module 'fmal'.
6525         * modules/fmal-tests: New file.
6526         * tests/test-fmal1.c: New file.
6527         * tests/test-fmal2.c: New file.
6528
6529         New module 'fmal'.
6530         * lib/math.in.h (fmal): New declaration.
6531         * lib/fmal.c: New file.
6532         * m4/fmal.m4: New file.
6533         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6535         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6536         REPLACE_FMAL.
6537         * modules/fmal: New file.
6538         * doc/posix-functions/fmal.texi: Mention the new module and the various
6539         bugs.
6540
6541         Tests for module 'fmaf'.
6542         * modules/fmaf-tests: New file.
6543         * tests/test-fmaf1.c: New file.
6544         * tests/test-fmaf2.c: New file.
6545
6546         New module 'fmaf'.
6547         * lib/math.in.h (fmaf): New declaration.
6548         * lib/fmaf.c: New file.
6549         * m4/fmaf.m4: New file.
6550         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6552         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6553         REPLACE_FMAF.
6554         * modules/fmaf: New file.
6555         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6556         bugs.
6557
6558         Tests for module 'fma'.
6559         * modules/fma-tests: New file.
6560         * tests/test-fma1.c: New file.
6561         * tests/test-fma1.h: New file.
6562         * tests/test-fma2.c: New file.
6563         * tests/test-fma2.h: New file.
6564
6565         New module 'fma'.
6566         * lib/math.in.h (fma): New declaration.
6567         * lib/fma.c: New file.
6568         * m4/fma.m4: New file.
6569         * m4/fegetround.m4: New file.
6570         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6572         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6573         REPLACE_FMA.
6574         * modules/fma: New file.
6575         * doc/posix-functions/fma.texi: Mention the new module and the various
6576         bugs.
6577
6578         Extend gl_MATHFUNC.
6579         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6580         Support 'void' as argument type.
6581         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6582
6583 2011-11-05  Jim Meyering  <meyering@redhat.com>
6584
6585         maint.mk: also prohibit inclusion of dirent.h without use
6586         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6587
6588 2011-11-05  Bruno Haible  <bruno@clisp.org>
6589
6590         ldexpl tests: Avoid test failure on MSVC 9.
6591         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6592         value. Needed in order to enforce the conversion from a value greater
6593         than LDBL_MAX to Infinity.
6594
6595 2011-11-05  Bruno Haible  <bruno@clisp.org>
6596
6597         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6598         * modules/at-internal: New file, extracted from modules/openat.
6599         * modules/openat-h: New file.
6600         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6601         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6602         * modules/openat (Description): Add reference to POSIX function.
6603         (Files): Remove lib/openat.h, lib/openat-proc.c.
6604         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6605         intprops, unistd.
6606         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6607         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6608         gl_FCNTL_MODULE_INDICATOR.
6609         (Include): Remove unistd.h, openat.h.
6610         * modules/areadlinkat (Files): Add lib/at-func.c.
6611         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6612         openat-die, openat-h, save-cwd.
6613         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6614         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6615         openat-die, openat-h, save-cwd, unistd.
6616         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6617         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6618         openat-h, save-cwd. Remove fcntl-h, openat.
6619         * modules/fchmodat (Files): Remove lib/openat.h.
6620         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6621         openat, stdbool, unistd.
6622         * modules/fchownat (Files): Remove lib/openat.h.
6623         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6624         openat, stdbool, sys_stat.
6625         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6626         lib/openat-proc.c.
6627         (Depends-on): Add at-internal.
6628         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6629         * modules/fstatat (Files): Remove lib/openat.h.
6630         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6631         stdbool, unistd.
6632         * modules/fts (Depends-on): Add openat-h.
6633         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6634         openat.
6635         * modules/mkdirat (Files): Remove lib/openat.h.
6636         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6637         openat, stdbool, sys_stat.
6638         * modules/mkfifoat (Files): Add lib/at-func.c.
6639         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6640         openat-h, save-cwd. Remove fcntl-h, openat.
6641         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6642         * modules/readlinkat (Files): Add lib/at-func.c.
6643         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6644         openat-h, save-cwd. Remove fcntl-h, openat.
6645         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6646         openat.
6647         * modules/selinux-at (Files): Add lib/at-func.c.
6648         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6649         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6650         * modules/symlinkat (Files): Add lib/at-func.c.
6651         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6652         openat-h, save-cwd. Remove fcntl-h, openat.
6653         * modules/unlinkat (Files): Remove lib/openat.h.
6654         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6655         stdbool.
6656         * modules/utimensat (Files): Add lib/at-func.c.
6657         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6658         openat-die, openat-h, save-cwd.
6659         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6660         * modules/fdutimensat-tests (Depends-on): Add openat.
6661         * modules/fstatat-tests (Depends-on): Add openat-h.
6662         * modules/readlinkat-tests (Depends-on): Add openat.
6663         * modules/symlinkat-tests (Depends-on): Add openat.
6664
6665 2011-11-05  Bruno Haible  <bruno@clisp.org>
6666
6667         openat: Include <stdbool.h>.
6668         * lib/openat.c: Include <stdbool.h>.
6669
6670 2011-11-04  Bruno Haible  <bruno@clisp.org>
6671
6672         fchownat, renameat, unlinkat: Fix dependencies.
6673         * modules/fchownat (Depends-on): Add fstatat.
6674         * modules/renameat (Depends-on): Likewise.
6675         * modules/unlinkat (Depends-on): Likewise.
6676
6677 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6678
6679         openat: remove direct dependency on dirent
6680         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6681         and hasn't been needed ever since fdopendir was split into its own
6682         module on 2009-08-31.
6683         * modules/openat (Depends-on): Remove dirent.
6684
6685 2011-11-04  Bruno Haible  <bruno@clisp.org>
6686
6687         renameat: Optimize code size.
6688         * modules/renameat (configure.ac): Don't compile at-func2.c if
6689         REPLACE_RENAMEAT is 1.
6690
6691 2011-11-04  Bruno Haible  <bruno@clisp.org>
6692
6693         openat tests: Fix file list.
6694         * modules/openat-tests (Files): Add tests/test-open.h.
6695
6696 2011-11-04  Bruno Haible  <bruno@clisp.org>
6697
6698         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6699         * modules/fchmodat (Depends-on): Add openat-die.
6700         * modules/fchownat (Depends-on): Likewise.
6701         * modules/linkat (Depends-on): Likewise.
6702         * modules/renameat (Depends-on): Likewise.
6703         * modules/openat (Depends-on): Add dirent.
6704
6705 2011-11-04  Jim Meyering  <meyering@redhat.com>
6706
6707         at-func*.c: fix comments
6708         * lib/at-func2.c: Correct/improve first-line comment.
6709         * lib/at-func.c: Correct grammar in first-line comment.
6710
6711 2011-11-04  Bruno Haible  <bruno@clisp.org>
6712
6713         New module 'mkdirat', split off from module 'openat'.
6714         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6715         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6716         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6717         * modules/mkdirat: New file, extracted from modules/openat.
6718         * modules/openat (Files): Remove lib/mkdirat.c.
6719         (Depends-on): Remove mkdir.
6720         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6721         (Include): Remove <sys/stat.h>.
6722         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6723         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6724         tests/test-mkdir.h.
6725         (Depends-on): Remove ignore-value.
6726         (Makefile.am): Remove rules for test-mkdirat.
6727         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6728         of module 'openat'.
6729         * NEWS: Mention the change.
6730
6731 2011-11-04  Bruno Haible  <bruno@clisp.org>
6732
6733         closedir: Avoid warning on mingw.
6734         * lib/closedir.c: Include <unistd.h>.
6735
6736 2011-11-04  Bruno Haible  <bruno@clisp.org>
6737
6738         New module 'fstatat', split off from module 'openat'.
6739         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6740         defined.
6741         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6742         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6743         gl_FUNC_FSTATAT.
6744         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6745         * modules/fstatat: New file, extracted from modules/openat.
6746         * modules/openat (Files): Remove lib/fstatat.c.
6747         (Depends-on): Remove lstat.
6748         (configure.ac): Remove AC_LIBOBJ of fstatat.
6749         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6750         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6751         tests/test-lstat.h, tests/test-stat.h.
6752         (Depends-on): Remove getcwd-lgpl.
6753         (Makefile.am): Remove rules for test-fstatat.
6754         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6755         of module 'openat'.
6756         * NEWS: Mention the change.
6757         * modules/getcwd (Depends-on): Add fstatat.
6758         * modules/linkat (Depends-on): Likewise.
6759         * modules/mkfifoat-tests (Depends-on): Likewise.
6760         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6761
6762 2011-11-03  Bruno Haible  <bruno@clisp.org>
6763
6764         New module 'unlinkat', split off from module 'openat'.
6765         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6766         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6767         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6768         * modules/unlinkat: New file, extracted from modules/openat. Correct
6769         the dependency conditions.
6770         * modules/openat (Files): Remove lib/unlinkat.c.
6771         (Depends-on): Remove rmdir, unlink.
6772         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6773         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6774         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6775         tests/test-rmdir.h, tests/test-unlink.h.
6776         (Depends-on): Remove unlinkdir.
6777         (Makefile.am): Remove rules for test-unlinkat.
6778         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6779         of module 'openat'.
6780         * NEWS: Mention the change.
6781         * modules/linkat-tests (Depends-on): Add unlinkat.
6782         * modules/mkfifoat-tests (Depends-on): Likewise.
6783         * modules/readlinkat-tests (Depends-on): Likewise.
6784
6785 2011-11-02  Bruno Haible  <bruno@clisp.org>
6786
6787         New module 'fchmodat', split off from module 'openat'.
6788         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6789         defined.
6790         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6791         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6792         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6793         * modules/fchmodat: New file, extracted from modules/openat.
6794         * modules/openat (Files): Remove lib/fchmodat.c.
6795         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6796         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6797         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6798         (Makefile.am): Remove rules for test-fchmodat.
6799         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6800         of module 'openat'.
6801         * NEWS: Mention the change.
6802
6803 2011-11-02  Jim Meyering  <meyering@redhat.com>
6804
6805         putenv: indent #definition of "environ" to placate cppi
6806         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6807
6808         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6809         Git logs are often treated as immutable, because editing them
6810         changes the SHA1 checksums of all descendants.  Thus, errors in
6811         git logs tend to stay there forever.  However, when we generate
6812         a ChangeLog file -- typically for distribution -- from that git log,
6813         we can actually make corrections in the generated file.  The key
6814         lies in recording in machine-readable/applicable form the desired
6815         corrections.  See --help for description and an example.
6816         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6817         (usage): Describe it; alphabetize option descriptions.
6818         (main): Honor the new option, carefully.
6819
6820 2011-11-01  Jim Meyering  <meyering@redhat.com>
6821
6822         gitlog-to-changelog: avoid an infloop
6823         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6824         that ends up being empty.
6825
6826 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6827
6828         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6829         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6830         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6831         contains (possibly-quoted) backslashes.  This should avoid
6832         all-too-common shell bugs if COMPLICATED contains backslashes in
6833         the "wrong" places.  Reported by David Evans in
6834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6835         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6836         because we want ASCII ranges.  Is there some reason we don't use
6837         the C locale everywhere in this script?
6838         (func_module, top level): Avoid unwanted pathname expansion when
6839         $repo_url_prefix or $repo_url_suffix_repl contain shell
6840         metacharacters like '?' and '*'.
6841
6842 2011-11-01  Bruno Haible  <bruno@clisp.org>
6843
6844         fchownat: Improve description.
6845         * modules/fchownat (Description): Add link to function.
6846
6847 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6848
6849         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6850         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6852         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6853
6854 2011-11-01  Bruno Haible  <bruno@clisp.org>
6855
6856         alignof: Avoid collision with stdalign module.
6857         * lib/alignof.h (alignof): Remove macro.
6858         * NEWS: Mention the change.
6859         Reported by Paul Eggert.
6860
6861 2011-11-01  Bruno Haible  <bruno@clisp.org>
6862
6863         New module 'fchownat', split off from module 'openat'.
6864         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6865         defined.
6866         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6867         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6868         invoke gl_FUNC_FCHOWNAT.
6869         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6870         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6871         * modules/fchownat: New file, extracted from modules/openat.
6872         * modules/openat (Files): Remove lib/fchownat.c.
6873         (Depends-on): Remove lchown.
6874         (configure.ac): Remove AC_LIBOBJ of fchownat.
6875         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6876         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6877         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6878         (Depends-on): Remove mgetgroups, usleep, stat-time.
6879         (configure.ac): Remove test for getegid.
6880         (Makefile.am): Remove rules for test-fchownat.
6881         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6882         of module 'openat'.
6883         * NEWS: Mention the change.
6884
6885 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6886
6887         stdalign: port better to MSVC and to Sun C 5.11
6888         This fixes some of the problems reported by Bruno Haible in
6889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6890         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6891         shortcomings of MSVC and of Sun C 5.11.
6892         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6893         around __declspec arg.
6894         * modules/stdalign-tests (Files): Add tests/macros.h.
6895         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6896         Include macros.h, for ASSERT.
6897         (DECLARE_ALIGNED): Remove.
6898         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6899         to catch bug), and to 1 if not (simplifies the rest of the code).
6900         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6901         (CHECK_AUTO): Remove.
6902         (CHECK_ALIGNED): Check only the alignment of the static vars,
6903         since auto var alignment isn't supported by Sun C 5.11.
6904         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6905         ASSERT failures are easier to diagnose.
6906
6907 2011-10-31  Bruno Haible  <bruno@clisp.org>
6908
6909         doc about some IRIX 5.3 problems.
6910         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6911         on IRIX 5.3.
6912         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6913         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6914         5.3.
6915         * doc/posix-functions/grantpt.texi: Likewise.
6916         * doc/posix-functions/unlockpt.texi: Likewise.
6917         * doc/posix-functions/lgamma.texi: Likewise.
6918         * doc/posix-functions/nextafter.texi: Likewise.
6919         * doc/posix-functions/remainder.texi: Likewise.
6920         * doc/posix-functions/select.texi: Mention misplaced declaration on
6921         IRIX 5.3.
6922         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6923
6924 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6925
6926         gitlog-to-changelog: fix git-log invocation.
6927         git-log mishandles date strings before 1970-01-01 UTC, and there is
6928         no use to specify --since=1970-01-01 by default anyway.
6929         * build-aux/gitlog-to-changelog: By default, when no --since option
6930         was given, do not specify explicit --since option to git-log.
6931
6932 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6933
6934         gitlog-to-changelog: new option --append-dot.
6935         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6936         first non-blank line of each commit message terminated with a dot.
6937
6938 2011-10-30  Bruno Haible  <bruno@clisp.org>
6939
6940         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6941         * lib/ffsl.h: Include <config.h>.
6942         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6943
6944 2011-10-30  Jim Meyering  <meyering@redhat.com>
6945
6946         GNUmakefile: reenable "make syntax-check" for most projects
6947         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6948         build-aux variable", "syntax-check" would do nothing but succeed with
6949         the "No version control files detected..." diagnostic (unless you
6950         happened to override _build-aux via cfg.mk).
6951         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6952         to precede inclusion of maint.mk.  Otherwise, these variables would
6953         be used undefined in any project that does not override the default.
6954
6955 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6956
6957         gitlog-to-changelog: treat a message with only blank lines as empty.
6958         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6959         trailing blank lines before the code that issues a warning about an
6960         empty commit message.
6961
6962 2011-10-30  Jim Meyering  <meyering@redhat.com>
6963
6964         test-parse-datetime.c: avoid new DST-related false positive test failure
6965         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6966         based on the time/date we'll convert, not the current time.
6967         Otherwise, the moment we cross a DST boundary like today's in
6968         Europe, (CEST to CET), that offset ends up being one hour off.
6969
6970 2011-10-27  Bruno Haible  <bruno@clisp.org>
6971
6972         fstat: Tweak documentation.
6973         * modules/fstat (Description): More precise description.
6974
6975 2011-10-27  Bruno Haible  <bruno@clisp.org>
6976
6977         Update documentation regarding 'largefile' module.
6978         * doc/posix-functions/fstat.texi: Tweak wording.
6979         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6980         problems with huge directories and/or small ino_t types.
6981         * doc/posix-functions/readdir.texi: Likewise.
6982         * doc/posix-functions/rewinddir.texi: Likewise.
6983
6984 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6985
6986         maint.mk: don't maintain a second build-aux variable.
6987         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6988         depends on GNUmakefile, which already maintains a cfg.mk
6989         overridable $(_build-aux) for projects with a non-standard
6990         build-aux directory location, although without the $(srcdir)
6991         prefix.  Use that variable consistently instead of introducing a
6992         second one.  Adjust all call sites.
6993
6994 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6995
6996         Add stdalign module and use it in other modules.
6997         This is based on a previous proposal by Bruno Haible
6998         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6999
7000         stdalign: new module
7001         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7002         * modules/stdalign: New files.
7003         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7004         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7005
7006         stdalign-tests: new module
7007         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7008
7009         argp: use stdalign
7010         * lib/argp-parse.c: Include <stdalign.h>.
7011         (alignof): Remove.
7012         * modules/argp (Depends-on): Add stdalign.
7013
7014         crypto libraries: use stdalign
7015         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7016         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7017         Do not include <stdlib.h> twice, in md4.c.
7018         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7019         because we are accessing a pointer's bit-pattern, not a size.
7020         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7021         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7022         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7023         * modules/crypto/sha512: Likewise.
7024
7025         sys_socket: use stdalign, not alignof
7026         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7027         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7028
7029 2011-10-27  Bruno Haible  <bruno@clisp.org>
7030
7031         raise test: Avoid a test failure on Linux/MIPS.
7032         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7033         because 99 is a valid signal on Linux/MIPS.
7034
7035 2011-10-27  Bruno Haible  <bruno@clisp.org>
7036
7037         nonblocking tests: Fix test failure on Linux/MIPS.
7038         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7039         Set to 270000.
7040
7041 2011-10-27  Bruno Haible  <bruno@clisp.org>
7042
7043         utimensat: Work around problem on Linux/hppa.
7044         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7045         values.
7046         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7047
7048 2011-10-25  Jim Meyering  <meyering@redhat.com>
7049
7050         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7051         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7052         after symbols like NULL, size_t, etc.
7053         Reported by Alfred M. Szmidt.
7054
7055         maint.mk: exempt ENODATA from a syntax-check rule
7056         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7057         from the sc_prohibit_always-defined_macros syntax-check rule.
7058         Add a comment.  See this for more details:
7059         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7060
7061 2011-10-23  Jim Meyering  <meyering@redhat.com>
7062
7063         fts: close parent dir FD before returning from post-traversal fts_read
7064         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7065         unlink A, even though an FD open on A remained.  This is suboptimal
7066         (holding a file descriptor open longer than needed), but otherwise not
7067         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7068         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7069         that represents a real problem: it causes the removal of A to fail
7070         with e.g., "rm: cannot remove `A': Device or resource busy"
7071
7072         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7073         directory file descriptors.  After completing the final, FTS_DP,
7074         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7075         cache, but then proceeded to add a new FD to it via the subsequent
7076         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7077         final file descriptor would be closed only via fts_close's call to
7078         fd_ring_clear.  Now, it is usually closed earlier, via the final
7079         FTS_DP-returning fts_read call.
7080         * lib/fts.c (restore_initial_cwd): New function, converted from
7081         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7082         Update callers.
7083         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7084         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7085
7086 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7087             Bruno Haible  <bruno@clisp.org>
7088             Jim Meyering  <jim@meyering.net>
7089
7090         readme-release: improve safety of release prep instructions.
7091         * README-release: Don't git pull all branches when only master
7092         is needed for the release process.
7093         Run make maintainer-clean before changing trees and merging.
7094         Don't try to run ./configure right after git pull in case files
7095         that influence the bootstrap process have changed, move the
7096         ./configure step to after running ./bootstrap.
7097         Don't bootstrap "one last time"... it's the first time!
7098
7099 2011-10-22  Bruno Haible  <bruno@clisp.org>
7100
7101         errno, strerror-override: Support for MSVC 10.
7102         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7103         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7104         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7105         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7106         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7107         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7108         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7109         Assign values compatible with MSVC 10.
7110         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7111         New macros.
7112         (GNULIB_defined_EWINSOCK): New macro.
7113         * lib/strerror-override.c (strerror_override): Update accordingly.
7114         * lib/strerror-override.h: Likewise.
7115         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7116         longer equal to the corresponding errno value.
7117         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7118
7119 2011-10-22  Bruno Haible  <bruno@clisp.org>
7120
7121         perror: Recognize when test program crashes.
7122         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7123         strerror, set gl_cv_func_perror_works to no.
7124         Reported by Daniel Richard G. <skunk@iskunk.org>.
7125
7126         perror: Fix indentation.
7127         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7128
7129 2011-10-22  Bruno Haible  <bruno@clisp.org>
7130
7131         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7132         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7133         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7134         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7135         functions, not as a macro.
7136         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7137         macros.
7138         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7139         absence of macro.
7140         Suggested by Eric Blake.
7141         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7142
7143 2011-10-21  Bruno Haible  <bruno@clisp.org>
7144
7145         relocatable-prog-wrapper: Don't leave object files behind.
7146         * build-aux/install-reloc: Re-synchronize list of .o files to be
7147         removed with list of compilation units.
7148
7149 2011-10-20  Bruno Haible  <bruno@clisp.org>
7150
7151         openpty, posix_openpt: Remove code duplication.
7152         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7153         * lib/openpty.c: Include <stdlib.h>.
7154         (openpty): Use posix_openpt on all platforms except IRIX.
7155         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7156
7157 2011-10-20  Bruno Haible  <bruno@clisp.org>
7158
7159         unlockpt: Detect invalid argument.
7160         * lib/unlockpt.c: Include <fcntl.h>.
7161         (unlockpt): Check whether fd is valid, using fcntl().
7162         * modules/unlockpt (Depends-on): Add fcntl-h.
7163
7164 2011-10-20  Bruno Haible  <bruno@clisp.org>
7165
7166         openpty: Avoid compilation error on AIX 6.1.
7167         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7168
7169 2011-10-20  Bruno Haible  <bruno@clisp.org>
7170
7171         posix_openpt: Support for OpenBSD.
7172         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7173         (posix_openpt) [OpenBSD]: New code.
7174         * lib/grantpt.c: Include <fcntl.h>.
7175         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7176         * modules/grantpt (Depends-on): Add fcntl-h.
7177
7178 2011-10-20  Bruno Haible  <bruno@clisp.org>
7179
7180         posix_openpt test: Coding style.
7181         * tests/test-posix_openpt.c: Use GNU coding style.
7182
7183 2011-10-20  Bruno Haible  <bruno@clisp.org>
7184
7185         grantpt: Support --avoid=pt_chown.
7186         * modules/grantpt (Files): Add lib/pty-private.h.
7187
7188 2011-10-20  Bruno Haible  <bruno@clisp.org>
7189
7190         posix_openpt: Fix autoconf macro.
7191         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7192         unneeded check for _getpty.
7193
7194 2011-10-20  Bruno Haible  <bruno@clisp.org>
7195
7196         openpty: Update comments.
7197         * lib/openpty.c: Add comments about Minix.
7198
7199 2011-10-19  Eric Blake  <eblake@redhat.com>
7200
7201         openpty: relax license
7202         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7203
7204         pt_chown: use configmake to simplify build
7205         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7206
7207         ptsname and others: relax license
7208         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7209         * modules/unlockpt (License): Likewise.
7210         * modules/pt_chown (License): Likewise.
7211         * modules/ptsname (License): Likewise.
7212         * modules/ttyname_r (License): Likewise.
7213
7214 2011-10-19  Jim Meyering  <meyering@redhat.com>
7215
7216         posix_openpt: remove spurious #endif
7217         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7218
7219 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7220
7221         maint.mk: Respect $(build_aux) in web-manual rule.
7222         * top/maint.mk (web-manual): Find gen-announce script in user's
7223         $(build_aux) directory instead of hard-coding 'build-aux'.
7224
7225 2011-10-19  Bruno Haible  <bruno@clisp.org>
7226
7227         posix_openpt: Fix compilation error.
7228         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7229         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7230         Mention the openpty module as an alternative.
7231
7232 2011-10-19  Bruno Haible  <bruno@clisp.org>
7233
7234         Support for old NeXTstep 3.3 frexp().
7235         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7236         execution time of the test to 5 seconds.
7237         Reported by Daniel Richard G. <skunk@iskunk.org>.
7238
7239 2011-10-19  Bruno Haible  <bruno@clisp.org>
7240
7241         Support for old NeXTstep 3.3 sed.
7242         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7243         part, use /.../, not \|...|. Escape periods in the header file name.
7244         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7245         Reported by Daniel Richard G. <skunk@iskunk.org>.
7246
7247 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7248
7249         Support for old NeXTstep 3.3 gcc.
7250         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7251         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7252         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7253         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7254         * lib/regex.h (_Restrict_arr_): Likewise.
7255         * lib/regex_internal.h (re_token_t): Likewise.
7256         * lib/regexec.c (check_node_accept_bytes): Likewise.
7257         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7258
7259 2011-10-18  Eric Blake  <eblake@redhat.com>
7260
7261         posix_openpt: new module
7262         * modules/posix_openpt: New module.
7263         * m4/posix_openpt.m4: New file.
7264         * lib/posix_openpt.c: Likewise.
7265         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7266         (gl_STDLIB_H_DEFAULTS): Set defaults.
7267         * modules/stdlib (Makefile.am): Substitute macros.
7268         * lib/stdlib.in.h (posix_openpt): Declare.
7269         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7270         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7271         * modules/posix_openpt-tests: New test module.
7272         * tests/test-posix_openpt.c: New test.
7273
7274 2011-10-15  Bruno Haible  <bruno@clisp.org>
7275
7276         xstrtoll: Fix compilation failure.
7277         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7278         from lib/strtol.c.
7279         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7280         some platforms.
7281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7282
7283 2011-10-15  Bruno Haible  <bruno@clisp.org>
7284
7285         vasnprintf: Optimize bit search operation.
7286         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7288         gl_DOUBLE_EXPONENT_LOCATION.
7289         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7290         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7291         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7292         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7293         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7294         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7295         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7296         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7297         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7298
7299 2011-10-15  Bruno Haible  <bruno@clisp.org>
7300
7301         vasnprintf: Fix comments.
7302         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7303
7304 2011-10-14  Bruno Haible  <bruno@clisp.org>
7305
7306         Tests for module 'integer_length_ll'.
7307         * modules/integer_length_ll-tests: New file.
7308         * tests/test-integer_length_ll.c: New file.
7309
7310         New module 'integer_length_ll'.
7311         * lib/integer_length_ll.c: New file.
7312         * modules/integer_length_ll: New file.
7313
7314 2011-10-14  Bruno Haible  <bruno@clisp.org>
7315
7316         Tests for module 'integer_length_l'.
7317         * modules/integer_length_l-tests: New file.
7318         * tests/test-integer_length_l.c: New file.
7319
7320         New module 'integer_length_l'.
7321         * lib/integer_length_l.c: New file.
7322         * modules/integer_length_l: New file.
7323
7324 2011-10-14  Bruno Haible  <bruno@clisp.org>
7325
7326         Tests for module 'integer_length'.
7327         * modules/integer_length-tests: New file.
7328         * tests/test-integer_length.c: New file.
7329
7330         New module 'integer_length'.
7331         * lib/integer_length.h: New file.
7332         * lib/integer_length.c: New file.
7333         * modules/integer_length: New file.
7334
7335 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7336
7337         popen: Fix dependency conditions.
7338         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7339
7340 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7341
7342         perror: Fix autoconf test.
7343         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7344         <stdlib.h> and <string.h>.
7345
7346 2011-10-14  Bruno Haible  <bruno@clisp.org>
7347
7348         ffsl: Optimize on 64-bit platforms.
7349         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7350         unrolling.
7351
7352 2011-10-13  Bruno Haible  <bruno@clisp.org>
7353
7354         ffsl: Optimize on 32-bit platforms.
7355         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7356         use ffs() without a loop.
7357
7358         ffsl, ffsll: Optimize for GCC.
7359         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7360         * lib/ffsl.c (GCC_BUILTIN): New macro.
7361         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7362
7363 2011-10-13  Bruno Haible  <bruno@clisp.org>
7364
7365         ffs, bcopy, memset: Support symbol renaming via config.h.
7366         * lib/ffs.c: Include <config.h>.
7367         * lib/bcopy.c: Likewise.
7368         * lib/memset.c: Likewise.
7369
7370 2011-10-10  Bruno Haible  <bruno@clisp.org>
7371
7372         atanl: Simplify for platforms where 'long double' == 'double'.
7373         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7374         alternative implementation.
7375         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7376         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7377         * modules/atanl (Depends-on): Add atan. Update conditions.
7378
7379 2011-10-10  Bruno Haible  <bruno@clisp.org>
7380
7381         acosl: Simplify for platforms where 'long double' == 'double'.
7382         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7383         alternative implementation.
7384         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7385         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7386         * modules/acosl (Depends-on): Add acos. Update conditions.
7387
7388 2011-10-10  Bruno Haible  <bruno@clisp.org>
7389
7390         asinl: Simplify for platforms where 'long double' == 'double'.
7391         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7392         alternative implementation.
7393         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7394         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7395         * modules/asinl (Depends-on): Add asin. Update conditions.
7396
7397 2011-10-10  Bruno Haible  <bruno@clisp.org>
7398
7399         tanl: Simplify for platforms where 'long double' == 'double'.
7400         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7401         implementation.
7402         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7403         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7404         * modules/tanl (Depends-on): Add tan. Update conditions.
7405         (configure.ac): Don't compile trigl.c if
7406         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7407
7408 2011-10-10  Bruno Haible  <bruno@clisp.org>
7409
7410         cosl: Simplify for platforms where 'long double' == 'double'.
7411         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7412         implementation.
7413         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7414         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7415         * modules/cosl (Depends-on): Add cos. Update conditions.
7416         (configure.ac): Don't compile sincosl.c and trigl.c if
7417         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7418
7419 2011-10-10  Bruno Haible  <bruno@clisp.org>
7420
7421         sinl: Simplify for platforms where 'long double' == 'double'.
7422         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7423         implementation.
7424         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7425         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7426         * modules/sinl (Depends-on): Add sin. Update conditions.
7427         (configure.ac): Don't compile sincosl.c and trigl.c if
7428         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7429
7430 2011-10-10  Bruno Haible  <bruno@clisp.org>
7431
7432         logl: Simplify for platforms where 'long double' == 'double'.
7433         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7434         implementation.
7435         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7436         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7437         * modules/logl (Depends-on): Add log. Update conditions.
7438
7439 2011-10-10  Bruno Haible  <bruno@clisp.org>
7440
7441         expl: Simplify for platforms where 'long double' == 'double'.
7442         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7443         implementation.
7444         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7445         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7446         * modules/expl (Depends-on): Add exp. Update conditions.
7447
7448 2011-10-10  Bruno Haible  <bruno@clisp.org>
7449
7450         sqrtl: Simplify for platforms where 'long double' == 'double'.
7451         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7452         alternative implementation.
7453         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7454         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7455         * modules/sqrtl (Depends-on): Update conditions.
7456
7457 2011-10-10  Bruno Haible  <bruno@clisp.org>
7458
7459         ldexpl: Simplify for platforms where 'long double' == 'double'.
7460         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7461         alternative implementation.
7462         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7463         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7464         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7465
7466 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7467
7468         ffsll: set correct witness
7469         * modules/ffsll (configure.ac): Fix typo.
7470
7471 2011-10-10  Bruno Haible  <bruno@clisp.org>
7472
7473         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7474         * lib/printf-frexpl.c: Include <config.h>.
7475         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7476         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7477         second time.
7478         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7479         gl_LONG_DOUBLE_VS_DOUBLE.
7480         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7481         conditions.
7482
7483 2011-10-10  Bruno Haible  <bruno@clisp.org>
7484
7485         frexpl: Simplify for platforms where 'long double' == 'double'.
7486         * lib/frexpl.c: Include <config.h>.
7487         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7488         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7489         time.
7490         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7491         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7492         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7493         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7494         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7495         conditions.
7496
7497 2011-10-10  Jim Meyering  <meyering@redhat.com>
7498
7499         test-renameat: don't leave behind a temporary file
7500         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7501           ERROR: files left in build directory after distclean:
7502           ./gltests/test-renameat.too
7503           make[1]: *** [distcleancheck] Error 1
7504         Reported by Tom G. Christensen.
7505
7506 2011-10-09  Bruno Haible  <bruno@clisp.org>
7507
7508         rint: Determine RINT_LIBM correctly on AIX 7.
7509         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7510         directly, not only through a function pointer. Also accept an optional
7511         4th argument with extra code.
7512         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7513         rintf() call by gcc when optimizing.
7514
7515         mathfunc.m4: Refactor.
7516         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7517         m4 variable.
7518
7519 2011-10-09  Bruno Haible  <bruno@clisp.org>
7520
7521         rintl: Simplify for platforms where 'long double' == 'double'.
7522         * lib/rintl.c: Include <config.h>.
7523         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7524         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7525         time.
7526         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7527         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7528         * modules/rintl (Depends-on): Add rint. Update conditions.
7529
7530 2011-10-09  Bruno Haible  <bruno@clisp.org>
7531
7532         roundl: Simplify for platforms where 'long double' == 'double'.
7533         * lib/roundl.c: Include <config.h>.
7534         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7535         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7536         time.
7537         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7538         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7539         * modules/roundl (Depends-on): Add round. Update conditions.
7540
7541 2011-10-09  Bruno Haible  <bruno@clisp.org>
7542
7543         truncl: Simplify for platforms where 'long double' == 'double'.
7544         * lib/truncl.c: Include <config.h>.
7545         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7546         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7547         time.
7548         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7549         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7550         * modules/truncl (Depends-on): Add trunc. Update conditions.
7551
7552 2011-10-09  Bruno Haible  <bruno@clisp.org>
7553
7554         ceill: Simplify for platforms where 'long double' == 'double'.
7555         * lib/ceill.c: Include <config.h>.
7556         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7557         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7558         time.
7559         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7560         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7561         * modules/ceill (Depends-on): Add ceil. Update conditions.
7562
7563 2011-10-09  Bruno Haible  <bruno@clisp.org>
7564
7565         floorl: Simplify for platforms where 'long double' == 'double'.
7566         * lib/floorl.c: Include <config.h>.
7567         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7568         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7569         time.
7570         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7571         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7572         * modules/floorl (Depends-on): Add floor. Update conditions.
7573
7574 2011-10-09  Bruno Haible  <bruno@clisp.org>
7575
7576         rint: Fix ordering constraints.
7577         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7578         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7579         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7580
7581 2011-10-09  Bruno Haible  <bruno@clisp.org>
7582
7583         copysignl: Simplify for platforms where 'long double' == 'double'.
7584         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7585         alternative.
7586         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7587         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7588         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7589
7590 2011-10-09  Bruno Haible  <bruno@clisp.org>
7591
7592         Tests for module 'rintl'.
7593         * modules/rintl-tests: New file.
7594         * tests/test-rintl.c: New file.
7595
7596         New module 'rintl'.
7597         * lib/math.in.h (rintl): New declaration.
7598         * lib/rintl.c: New file.
7599         * m4/rintl.m4: New file.
7600         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7602         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7603         * modules/rintl: New file.
7604         * tests/test-math-c++.cc: Check the declaration of rintl.
7605         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7606         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7607         * doc/posix-functions/rintl.texi: Mention the new module.
7608
7609 2011-10-09  Bruno Haible  <bruno@clisp.org>
7610
7611         Tests for module 'rintf'.
7612         * modules/rintf-tests: New file.
7613         * tests/test-rintf.c: New file.
7614
7615         New module 'rintf'.
7616         * lib/math.in.h (rintf): New declaration.
7617         * lib/rintf.c: New file.
7618         * m4/rintf.m4: New file.
7619         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7621         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7622         * modules/rintf: New file.
7623         * tests/test-math-c++.cc: Check the declaration of rintf.
7624         * doc/posix-functions/rintf.texi: Mention the new module.
7625
7626 2011-10-09  Bruno Haible  <bruno@clisp.org>
7627
7628         rint: Support for MSVC.
7629         * lib/math.in.h (rint): New declaration.
7630         * lib/rint.c: New file.
7631         * m4/rint.m4: New file.
7632         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7634         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7635         * modules/rint (Description): Fix.
7636         (Files): Add lib/rint.c, m4/rint.m4.
7637         (Depends-on): Add math.
7638         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7639         gl_MATH_MODULE_INDICATOR.
7640         * tests/test-math-c++.cc: Check the declaration of rint.
7641         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7642         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7643         * doc/posix-functions/rint.texi: Mention the replacement provided by
7644         the module.
7645
7646         rint tests: More tests.
7647         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7648         minus-zero.h, infinity.h, nan.h.
7649         (main): Skip the test if the current rounding mode is not standard. Add
7650         tests for negative numbers, minus zero, infinity, NaN.
7651         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7652         tests/nan.h.
7653         (Depends-on): Add isnand-nolibm.
7654
7655 2011-10-09  Bruno Haible  <bruno@clisp.org>
7656
7657         Tests for module 'copysignl'.
7658         * modules/copysignl-tests: New file.
7659         * tests/test-copysignl.c: New file.
7660
7661         New module 'copysignl'.
7662         * lib/math.in.h (copysignl): New declaration.
7663         * lib/copysignl.c: New file.
7664         * m4/copysignl.m4: New file.
7665         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7667         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7668         HAVE_COPYSIGNL.
7669         * modules/copysignl: New file.
7670         * tests/test-math-c++.cc: Check the declaration of copysignl.
7671         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7672         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7673         * doc/posix-functions/copysignl.texi: Mention the new module.
7674
7675 2011-10-09  Bruno Haible  <bruno@clisp.org>
7676
7677         Tests for module 'copysignf'.
7678         * modules/copysignf-tests: New file.
7679         * tests/test-copysignf.c: New file.
7680
7681         New module 'copysignf'.
7682         * lib/math.in.h (copysignf): New declaration.
7683         * lib/copysignf.c: New file.
7684         * m4/copysignf.m4: New file.
7685         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7687         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7688         HAVE_COPYSIGNF.
7689         * modules/copysignf: New file.
7690         * tests/test-math-c++.cc: Check the declaration of copysignf.
7691         * doc/posix-functions/copysignf.texi: Mention the new module.
7692
7693 2011-10-09  Bruno Haible  <bruno@clisp.org>
7694
7695         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7696         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7697         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7698         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7699         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7700         gl_SIGNAL_H_DEFAULTS.
7701
7702 2011-10-09  Bruno Haible  <bruno@clisp.org>
7703
7704         poll: Make macro safer.
7705         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7706         ac_cv_header_poll_h is not set.
7707
7708 2011-10-09  Bruno Haible  <bruno@clisp.org>
7709
7710         copysign: Provide replacement.
7711         * lib/math.in.h (copysign): New declaration.
7712         * lib/copysign.c: New file.
7713         * m4/copysign.m4: New file.
7714         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7716         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7717         HAVE_COPYSIGN.
7718         * modules/copysign (Description): Clarify.
7719         (Files): Add lib/copysign.c, m4/copysign.m4.
7720         (Depends-on): Add math, signbit.
7721         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7722         gl_MATH_MODULE_INDICATOR.
7723         * tests/test-math-c++.cc: Check the declaration of copysign.
7724         * doc/posix-functions/copysign.texi: Mention the effects of the module
7725         on Minix and MSVC.
7726
7727 2011-10-09  Bruno Haible  <bruno@clisp.org>
7728
7729         isinf: Ensure macro on AIX 5.1.
7730         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7731         macro.
7732         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7733
7734 2011-10-09  Bruno Haible  <bruno@clisp.org>
7735
7736         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7737         * modules/snprintf-posix-tests (configure.ac): Require
7738         gl_LONG_DOUBLE_VS_DOUBLE.
7739         * modules/sprintf-posix-tests (configure.ac): Likewise.
7740         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7741         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7742         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7743         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7744         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7745         tests on platforms where 'long double' is the same as 'double'.
7746         * tests/test-sprintf-posix.h (test_function): Likewise.
7747         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7748         * tests/test-vasprintf-posix.c (test_function): Likewise.
7749
7750         *printf: Fix for platforms where 'long double' == 'double'.
7751         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7752         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7753         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7754         * modules/fprintf-posix (Files): Likewise.
7755         * modules/obstack-printf-posix (Files): Likewise.
7756         * modules/snprintf-posix (Files): Likewise.
7757         * modules/sprintf-posix (Files): Likewise.
7758         * modules/vasnprintf (Files): Likewise.
7759         * modules/vasnprintf-posix (Files): Likewise.
7760         * modules/vasprintf-posix (Files): Likewise.
7761         * modules/vdprintf-posix (Files): Likewise.
7762         * modules/vfprintf-posix (Files): Likewise.
7763         * modules/vsnprintf-posix (Files): Likewise.
7764         * modules/vsprintf-posix (Files): Likewise.
7765         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7766         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7767         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7768         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7769         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7770         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7771         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7772
7773         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7774         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7775         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7776         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7777         'long double'.
7778         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7779
7780         isinf: Fix for platforms where 'long double' == 'double'.
7781         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7782         Don't blindly assume 80-bit 'long double'.
7783
7784         isfinite: Fix for platforms where 'long double' == 'double'.
7785         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7786         Don't blindly assume 80-bit 'long double'.
7787
7788         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7789         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7790         * modules/isfinite-tests (configure.ac): Require
7791         gl_LONG_DOUBLE_VS_DOUBLE.
7792         * modules/isinf-tests (configure.ac): Likewise.
7793         * modules/isnan-tests (configure.ac): Likewise.
7794         * modules/isnanl-tests (configure.ac): Likewise.
7795         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7796         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7797         tests on platforms where 'long double' is the same as 'double'.
7798         * tests/test-isinf.c (test_isinfl): Likewise.
7799         * tests/test-isnan.c (test_long_double): Likewise.
7800         * tests/test-isnanl.h (main): Likewise.
7801
7802 2011-10-08  Bruno Haible  <bruno@clisp.org>
7803
7804         Tests for module 'tanhf'.
7805         * modules/tanhf-tests: New file.
7806         * tests/test-tanhf.c: New file.
7807
7808         New module 'tanhf'.
7809         * lib/math.in.h (tanhf): New declaration.
7810         * lib/tanhf.c: New file.
7811         * m4/tanhf.m4: New file.
7812         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7814         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7815         * modules/tanhf: New file.
7816         * tests/test-math-c++.cc: Check the declaration of tanhf.
7817         * doc/posix-functions/tanhf.texi: Mention the new module.
7818
7819         tanh: Use a .m4 file.
7820         * m4/tanh.m4: New file.
7821         * modules/tanh (Files): Add it.
7822         (configure.ac): Just invoke gl_FUNC_TANH.
7823
7824 2011-10-08  Bruno Haible  <bruno@clisp.org>
7825
7826         Tests for module 'coshf'.
7827         * modules/coshf-tests: New file.
7828         * tests/test-coshf.c: New file.
7829
7830         New module 'coshf'.
7831         * lib/math.in.h (coshf): New declaration.
7832         * lib/coshf.c: New file.
7833         * m4/coshf.m4: New file.
7834         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7836         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7837         * modules/coshf: New file.
7838         * tests/test-math-c++.cc: Check the declaration of coshf.
7839         * doc/posix-functions/coshf.texi: Mention the new module.
7840
7841         cosh: Use a .m4 file.
7842         * m4/cosh.m4: New file.
7843         * modules/cosh (Files): Add it.
7844         (configure.ac): Just invoke gl_FUNC_COSH.
7845
7846 2011-10-08  Bruno Haible  <bruno@clisp.org>
7847
7848         Tests for module 'sinhf'.
7849         * modules/sinhf-tests: New file.
7850         * tests/test-sinhf.c: New file.
7851
7852         New module 'sinhf'.
7853         * lib/math.in.h (sinhf): New declaration.
7854         * lib/sinhf.c: New file.
7855         * m4/sinhf.m4: New file.
7856         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7858         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7859         * modules/sinhf: New file.
7860         * tests/test-math-c++.cc: Check the declaration of sinhf.
7861         * doc/posix-functions/sinhf.texi: Mention the new module.
7862
7863         sinh: Use a .m4 file.
7864         * m4/sinh.m4: New file.
7865         * modules/sinh (Files): Add it.
7866         (configure.ac): Just invoke gl_FUNC_SINH.
7867
7868 2011-10-08  Bruno Haible  <bruno@clisp.org>
7869
7870         Tests for module 'atan2f'.
7871         * modules/atan2f-tests: New file.
7872         * tests/test-atan2f.c: New file.
7873
7874         New module 'atan2f'.
7875         * lib/math.in.h (atan2f): New declaration.
7876         * lib/atan2f.c: New file.
7877         * m4/atan2f.m4: New file.
7878         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7880         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7881         * modules/atan2f: New file.
7882         * tests/test-math-c++.cc: Check the declaration of atan2f.
7883         * doc/posix-functions/atan2f.texi: Mention the new module.
7884
7885         atan2: Use a .m4 file.
7886         * m4/atan2.m4: New file.
7887         * modules/atan2 (Files): Add it.
7888         (configure.ac): Just invoke gl_FUNC_ATAN2.
7889
7890 2011-10-08  Bruno Haible  <bruno@clisp.org>
7891
7892         Tests for module 'atanf'.
7893         * modules/atanf-tests: New file.
7894         * tests/test-atanf.c: New file.
7895
7896         New module 'atanf'.
7897         * lib/math.in.h (atanf): New declaration.
7898         * lib/atanf.c: New file.
7899         * m4/atanf.m4: New file.
7900         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7902         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7903         * modules/atanf: New file.
7904         * tests/test-math-c++.cc: Check the declaration of atanf.
7905         * doc/posix-functions/atanf.texi: Mention the new module.
7906
7907         atan: Use a .m4 file.
7908         * m4/atan.m4: New file.
7909         * modules/atan (Files): Add it.
7910         (configure.ac): Just invoke gl_FUNC_ATAN.
7911
7912 2011-10-08  Bruno Haible  <bruno@clisp.org>
7913
7914         Tests for module 'acosf'.
7915         * modules/acosf-tests: New file.
7916         * tests/test-acosf.c: New file.
7917
7918         New module 'acosf'.
7919         * lib/math.in.h (acosf): New declaration.
7920         * lib/acosf.c: New file.
7921         * m4/acosf.m4: New file.
7922         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7924         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7925         * modules/acosf: New file.
7926         * tests/test-math-c++.cc: Check the declaration of acosf.
7927         * doc/posix-functions/acosf.texi: Mention the new module.
7928
7929         acos: Use a .m4 file.
7930         * m4/acos.m4: New file.
7931         * modules/acos (Files): Add it.
7932         (configure.ac): Just invoke gl_FUNC_ACOS.
7933
7934 2011-10-08  Bruno Haible  <bruno@clisp.org>
7935
7936         Tests for module 'asinf'.
7937         * modules/asinf-tests: New file.
7938         * tests/test-asinf.c: New file.
7939
7940         New module 'asinf'.
7941         * lib/math.in.h (asinf): New declaration.
7942         * lib/asinf.c: New file.
7943         * m4/asinf.m4: New file.
7944         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7946         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7947         * modules/asinf: New file.
7948         * tests/test-math-c++.cc: Check the declaration of asinf.
7949         * doc/posix-functions/asinf.texi: Mention the new module.
7950
7951         asin: Use a .m4 file.
7952         * m4/asin.m4: New file.
7953         * modules/asin (Files): Add it.
7954         (configure.ac): Just invoke gl_FUNC_ASIN.
7955
7956 2011-10-08  Bruno Haible  <bruno@clisp.org>
7957
7958         Tests for module 'tanf'.
7959         * modules/tanf-tests: New file.
7960         * tests/test-tanf.c: New file.
7961
7962         New module 'tanf'.
7963         * lib/math.in.h (tanf): New declaration.
7964         * lib/tanf.c: New file.
7965         * m4/tanf.m4: New file.
7966         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7968         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7969         * modules/tanf: New file.
7970         * tests/test-math-c++.cc: Check the declaration of tanf.
7971         * doc/posix-functions/tanf.texi: Mention the new module.
7972
7973         tan: Use a .m4 file.
7974         * m4/tan.m4: New file.
7975         * modules/tan (Files): Add it.
7976         (configure.ac): Just invoke gl_FUNC_TAN.
7977
7978 2011-10-08  Bruno Haible  <bruno@clisp.org>
7979
7980         Tests for module 'cosf'.
7981         * modules/cosf-tests: New file.
7982         * tests/test-cosf.c: New file.
7983
7984         New module 'cosf'.
7985         * lib/math.in.h (cosf): New declaration.
7986         * lib/cosf.c: New file.
7987         * m4/cosf.m4: New file.
7988         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7990         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7991         * modules/cosf: New file.
7992         * tests/test-math-c++.cc: Check the declaration of cosf.
7993         * doc/posix-functions/cosf.texi: Mention the new module.
7994
7995         cos: Use a .m4 file.
7996         * m4/cos.m4: New file.
7997         * modules/cos (Files): Add it.
7998         (configure.ac): Just invoke gl_FUNC_COS.
7999
8000 2011-10-08  Bruno Haible  <bruno@clisp.org>
8001
8002         Tests for module 'sinf'.
8003         * modules/sinf-tests: New file.
8004         * tests/test-sinf.c: New file.
8005
8006         New module 'sinf'.
8007         * lib/math.in.h (sinf): New declaration.
8008         * lib/sinf.c: New file.
8009         * m4/sinf.m4: New file.
8010         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8012         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8013         * modules/sinf: New file.
8014         * tests/test-math-c++.cc: Check the declaration of sinf.
8015         * doc/posix-functions/sinf.texi: Mention the new module.
8016
8017         sin: Use a .m4 file.
8018         * m4/sin.m4: New file.
8019         * modules/sin (Files): Add it.
8020         (configure.ac): Just invoke gl_FUNC_SIN.
8021
8022 2011-10-08  Bruno Haible  <bruno@clisp.org>
8023
8024         Tests for module 'powf'.
8025         * modules/powf-tests: New file.
8026         * tests/test-powf.c: New file.
8027
8028         New module 'powf'.
8029         * lib/math.in.h (powf): New declaration.
8030         * lib/powf.c: New file.
8031         * m4/powf.m4: New file.
8032         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8034         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8035         * modules/powf: New file.
8036         * tests/test-math-c++.cc: Check the declaration of powf.
8037         * doc/posix-functions/powf.texi: Mention the new module.
8038
8039         pow: Use a .m4 file.
8040         * m4/pow.m4: New file.
8041         * modules/pow (Files): Add it.
8042         (configure.ac): Just invoke gl_FUNC_POW.
8043
8044 2011-10-08  Bruno Haible  <bruno@clisp.org>
8045
8046         Tests for module 'log10f'.
8047         * modules/log10f-tests: New file.
8048         * tests/test-log10f.c: New file.
8049
8050         New module 'log10f'.
8051         * lib/math.in.h (log10f): New declaration.
8052         * lib/log10f.c: New file.
8053         * m4/log10f.m4: New file.
8054         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8056         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8057         * modules/log10f: New file.
8058         * tests/test-math-c++.cc: Check the declaration of log10f.
8059         * doc/posix-functions/log10f.texi: Mention the new module.
8060
8061         log10: Use a .m4 file.
8062         * m4/log10.m4: New file.
8063         * modules/log10 (Files): Add it.
8064         (configure.ac): Just invoke gl_FUNC_LOG10.
8065
8066 2011-10-08  Bruno Haible  <bruno@clisp.org>
8067
8068         Tests for module 'logf'.
8069         * modules/logf-tests: New file.
8070         * tests/test-logf.c: New file.
8071
8072         New module 'logf'.
8073         * lib/math.in.h (logf): New declaration.
8074         * lib/logf.c: New file.
8075         * m4/logf.m4: New file.
8076         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8078         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8079         * modules/logf: New file.
8080         * tests/test-math-c++.cc: Check the declaration of logf.
8081         * doc/posix-functions/logf.texi: Mention the new module.
8082
8083         log: Use a .m4 file.
8084         * m4/log.m4: New file.
8085         * modules/log (Files): Add it.
8086         (configure.ac): Just invoke gl_FUNC_LOG.
8087
8088 2011-10-08  Bruno Haible  <bruno@clisp.org>
8089
8090         Tests for module 'expf'.
8091         * modules/expf-tests: New file.
8092         * tests/test-expf.c: New file.
8093
8094         New module 'expf'.
8095         * lib/math.in.h (expf): New declaration.
8096         * lib/expf.c: New file.
8097         * m4/expf.m4: New file.
8098         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8100         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8101         * modules/expf: New file.
8102         * tests/test-math-c++.cc: Check the declaration of expf.
8103         * doc/posix-functions/expf.texi: Mention the new module.
8104
8105         exp: Use a .m4 file.
8106         * m4/exp.m4: New file.
8107         * modules/exp (Files): Add it.
8108         (configure.ac): Just invoke gl_FUNC_EXP.
8109
8110 2011-10-08  Bruno Haible  <bruno@clisp.org>
8111
8112         Tests for module 'sqrtf'.
8113         * modules/sqrtf-tests: New file.
8114         * tests/test-sqrtf.c: New file.
8115
8116         New module 'sqrtf'.
8117         * lib/math.in.h (sqrtf): New declaration.
8118         * lib/sqrtf.c: New file.
8119         * m4/sqrtf.m4: New file.
8120         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8122         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8123         * modules/sqrtf: New file.
8124         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8125         * doc/posix-functions/sqrtf.texi: Mention the new module.
8126
8127 2011-10-08  Bruno Haible  <bruno@clisp.org>
8128
8129         Tests: Avoid link failures w.r.t. libintl.
8130         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8131         $(LIBINTL).
8132         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8133         $(LIBINTL).
8134         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8135         against $(LIBINTL).
8136         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8137         $(LIBINTL).
8138         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8139         $(LIBINTL).
8140         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8141
8142 2011-10-08  Bruno Haible  <bruno@clisp.org>
8143
8144         pow tests: Defeat compiler optimizations.
8145         * tests/test-pow.c (main): Assign arguments to x and y before use.
8146
8147 2011-10-08  Bruno Haible  <bruno@clisp.org>
8148
8149         gnulib-tool: Improve last commit.
8150         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8151         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8152         ignore dependencies that are not among the modules list.
8153
8154 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8155
8156         gnulib-tool: don't follow dependencies to avoided modules
8157         This fixes a bug that is related to the previous one.
8158         * gnulib-tool (func_modules_transitive_closure)
8159         (func_emit_autoconf_snippets):
8160         Check whether a dependency is acceptable before using it.
8161         (--extract-dependencies): Report an error if --avoid is also used,
8162         since this combination of options is not yet supported.
8163
8164         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8165         Problem reported by Peter Dyballa in
8166         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8167         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8168         when echoing "$condition".
8169
8170 2011-10-07  Bruno Haible  <bruno@clisp.org>
8171
8172         Fix documentation about math functions on MacOS X.
8173         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8174         MacOS X 10.5.
8175         * doc/posix-functions/fdim.texi: Likewise.
8176         * doc/posix-functions/feclearexcept.texi: Likewise.
8177         * doc/posix-functions/fegetenv.texi: Likewise.
8178         * doc/posix-functions/fegetround.texi: Likewise.
8179         * doc/posix-functions/feholdexcept.texi: Likewise.
8180         * doc/posix-functions/feraiseexcept.texi: Likewise.
8181         * doc/posix-functions/fesetenv.texi: Likewise.
8182         * doc/posix-functions/fesetround.texi: Likewise.
8183         * doc/posix-functions/fetestexcept.texi: Likewise.
8184         * doc/posix-functions/feupdateenv.texi: Likewise.
8185         * doc/posix-functions/fmax.texi: Likewise.
8186         * doc/posix-functions/fmin.texi: Likewise.
8187         * doc/posix-functions/log2.texi: Likewise.
8188         * doc/posix-functions/modff.texi: Likewise.
8189         * doc/posix-functions/nan.texi: Likewise.
8190         * doc/posix-functions/nanf.texi: Likewise.
8191         * doc/posix-functions/nextafterf.texi: Likewise.
8192         * doc/posix-functions/remquo.texi: Likewise.
8193
8194 2011-10-07  Bruno Haible  <bruno@clisp.org>
8195
8196         modff: Drop assumption about library that defines modff.
8197         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8198         AC_CHECK_FUNCS.
8199         * modules/modff (Files): Add m4/mathfunc.m4.
8200
8201 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8202
8203         raise tests: Avoid a GCC warning.
8204         * tests/test-raise.c (handler): Use _Noreturn.
8205
8206 2011-10-07  Bruno Haible  <bruno@clisp.org>
8207
8208         Tests for module 'ldexpf'.
8209         * modules/ldexpf-tests: New file.
8210         * tests/test-ldexpf.c: New file.
8211
8212         New module 'ldexpf'.
8213         * lib/math.in.h (ldexpf): New declaration.
8214         * lib/ldexpf.c: New file.
8215         * m4/ldexpf.m4: New file.
8216         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8218         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8219         * modules/ldexpf: New file.
8220         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8221         * doc/posix-functions/ldexpf.texi: Mention the new module.
8222
8223 2011-10-06  Bruno Haible  <bruno@clisp.org>
8224
8225         frexpf: Work around problems on IRIX and mingw.
8226         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8228         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8229         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8230         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8231         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8232         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8233
8234 2011-10-06  Bruno Haible  <bruno@clisp.org>
8235
8236         fabsf: Drop assumption about library that defines fabsf.
8237         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8238         AC_CHECK_FUNCS.
8239         * modules/fabsf (Files): Add m4/mathfunc.m4.
8240
8241 2011-10-06  Bruno Haible  <bruno@clisp.org>
8242
8243         frexpf: Drop assumption about library that defines frexpf.
8244         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8245         'int *', 'float *', 'long double *', 'float', 'long double'.
8246         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8247         AC_CHECK_FUNCS.
8248         * modules/frexpf (Files): Add m4/mathfunc.m4.
8249
8250         Tests for module 'frexpf'.
8251         * modules/frexpf-tests: New file.
8252         * tests/test-frexpf.c: New file.
8253
8254         New module 'frexpf'.
8255         * lib/math.in.h (frexpf): New declaration.
8256         * lib/frexpf.c: New file.
8257         * m4/frexpf.m4: New file.
8258         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8260         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8261         * modules/frexpf: New file.
8262         * tests/test-math-c++.cc: Check the declaration of frexpf.
8263         * doc/posix-functions/frexpf.texi: Mention the new module.
8264
8265 2011-10-06  Bruno Haible  <bruno@clisp.org>
8266
8267         math: Sort function declarations of math.in.h.
8268         * lib/math.in.h (frexp, logb): Move declarations.
8269
8270 2011-10-05  Bruno Haible  <bruno@clisp.org>
8271
8272         Tests for module 'modff'.
8273         * modules/modff-tests: New file.
8274         * tests/test-modff.c: New file.
8275
8276         New module 'modff'.
8277         * lib/math.in.h (modff): New declaration.
8278         * lib/modff.c: New file.
8279         * m4/modff.m4: New file.
8280         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8282         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8283         * modules/modff: New file.
8284         * tests/test-math-c++.cc: Check the declaration of modff.
8285         * doc/posix-functions/modff.texi: Mention the new module.
8286
8287         modf tests: Make test sharper.
8288         * tests/test-modf.c (main): Strengthen upper bound.
8289
8290         modf: Use a .m4 file.
8291         * m4/modf.m4: New file.
8292         * modules/modf (Files): Add it.
8293         (configure.ac): Just invoke gl_FUNC_MODF.
8294
8295 2011-10-05  Bruno Haible  <bruno@clisp.org>
8296
8297         Tests for module 'fmodf'.
8298         * modules/fmodf-tests: New file.
8299         * tests/test-fmodf.c: New file.
8300
8301         New module 'fmodf'.
8302         * lib/math.in.h (fmodf): New declaration.
8303         * lib/fmodf.c: New file.
8304         * m4/fmodf.m4: New file.
8305         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8306         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8307         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8308         * modules/fmodf: New file.
8309         * tests/test-math-c++.cc: Check the declaration of fmodf.
8310         * doc/posix-functions/fmodf.texi: Mention the new module.
8311
8312         fmod: Use a .m4 file.
8313         * m4/fmod.m4: New file.
8314         * modules/fmod (Files): Add it.
8315         (configure.ac): Just invoke gl_FUNC_FMOD.
8316
8317 2011-10-05  Bruno Haible  <bruno@clisp.org>
8318
8319         Tests for module 'fabsf'.
8320         * modules/fabsf-tests: New file.
8321         * tests/test-fabsf.c: New file.
8322
8323         New module 'fabsf'.
8324         * lib/math.in.h (fabsf): New declaration.
8325         * lib/fabsf.c: New file.
8326         * m4/fabsf.m4: New file.
8327         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8329         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8330         * modules/fabsf: New file.
8331         * tests/test-math-c++.cc: Check the declaration of fabsf.
8332         * doc/posix-functions/fabsf.texi: Mention the new module.
8333
8334         fabs: Use a .m4 file.
8335         * m4/fabs.m4: New file.
8336         * modules/fabs (Files): Add it.
8337         (configure.ac): Just invoke gl_FUNC_FABS.
8338
8339 2011-10-05  Jim Meyering  <meyering@redhat.com>
8340
8341         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8342         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8343         ls -lL regression introduced in coreutils-8.12, it does so at the
8344         cost of an additional stat call in the common case.  Besides, now
8345         that the kernel change that prompted commit 95f7c57f has been reverted
8346         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8347         we have no use for commit 95f7c57f, "file-has-acl: use
8348         acl_extended_file_nofollow if available".
8349
8350 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8351
8352         file-has-acl: revert unintended change in behavior of ls -L
8353         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8354         derived from...
8355         (file_has_acl): ...code here.  Call it.
8356         This problem was introduced with 2011-07-22 commit 95f7c57f,
8357         "file-has-acl: use acl_extended_file_nofollow if available".
8358         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8359
8360 2011-10-03  Bruno Haible  <bruno@clisp.org>
8361
8362         poll: Avoid link errors on MSVC.
8363         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8364         * modules/poll (Depends-on): Add sockets.
8365         (Link): New section.
8366         * NEWS: Mention the change.
8367         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8368         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8369         $(LIB_POLL) instead of $(LIBSOCKET).
8370
8371 2011-10-03  Bruno Haible  <bruno@clisp.org>
8372
8373         sys_select tests: Fix link error on MSVC 9.
8374         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8375         with $(LIB_SELECT) instead of $(LIBSOCKET).
8376
8377 2011-10-03  Bruno Haible  <bruno@clisp.org>
8378
8379         sys_select: Fix compilation error on mingw.
8380         * lib/sys_select.in.h: On native Windows, include <io.h>.
8381
8382 2011-10-03  Bruno Haible  <bruno@clisp.org>
8383
8384         wmemset: Support for MSVC.
8385         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8386         whether wmemset() exists.
8387
8388 2011-10-03  Bruno Haible  <bruno@clisp.org>
8389
8390         wmemmove: Support for MSVC.
8391         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8392         whether wmemmove() exists.
8393
8394 2011-10-03  Bruno Haible  <bruno@clisp.org>
8395
8396         wmemcpy: Support for MSVC.
8397         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8398         whether wmemcpy() exists.
8399
8400 2011-10-03  Bruno Haible  <bruno@clisp.org>
8401
8402         wmemcmp: Support for MSVC.
8403         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8404         whether wmemcmp() exists.
8405
8406 2011-10-03  Bruno Haible  <bruno@clisp.org>
8407
8408         wmemchr: Support for MSVC.
8409         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8410         whether wmemchr() exists.
8411
8412 2011-10-03  Bruno Haible  <bruno@clisp.org>
8413
8414         glthread/*, strsignal: Support for MSVC.
8415         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8416         including <winsock.h> on MSVC 9.
8417         * lib/glthread/lock.h: Likewise.
8418         * lib/glthread/thread.h: Likewise.
8419         * lib/glthread/tls.h: Likewise.
8420         * lib/glthread/yield.h: Likewise.
8421         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8422         if HAVE_UNISTD_H is false.
8423         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8424
8425 2011-10-03  Bruno Haible  <bruno@clisp.org>
8426
8427         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8428         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8429         Set to 100000.
8430
8431 2011-10-03  Bruno Haible  <bruno@clisp.org>
8432
8433         acl: Fix specification.
8434         * lib/file-has-acl.c (file_has_acl): Fix specification.
8435
8436 2011-10-03  Bruno Haible  <bruno@clisp.org>
8437
8438         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8439         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8440         (compute_curr_prefix, shared_library_fullname,
8441         find_shared_library_fullname, get_shared_library_fullname, relocate):
8442         Use it together with PIC && INSTALLDIR.
8443         Reported by <jojelino@gmail.com>
8444         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8445
8446 2011-10-01  Jim Meyering  <meyering@redhat.com>
8447
8448         maint.mk: adjust a release-related rule not to require use of gzip
8449         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8450         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8451         projects that build only .tar.xz files.  Also fix an erroneous test.
8452
8453         test-linkat: don't leave behind a temporary file
8454         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8455         Otherwise, coreutils' "make distcheck" would fail with this:
8456           Only in /c/cu/tests/torture/coreutils/test/\
8457             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8458           make[2]: *** [my-distcheck] Error 1
8459
8460         float, math: add omitted file
8461         * lib/itold.c: Add file, required for yesterday's float change.
8462
8463 2011-10-01  Bruno Haible  <bruno@clisp.org>
8464
8465         isinf: Fix for OpenBSD/x86.
8466         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8467         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8468         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8469
8470 2011-10-01  Bruno Haible  <bruno@clisp.org>
8471
8472         isfinite: Fix syntax error in configure test.
8473         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8474
8475         isfinite: Fix typo.
8476         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8477         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8478
8479 2011-10-01  Bruno Haible  <bruno@clisp.org>
8480
8481         nonblocking tests: Fix test failure on Linux/IA-64.
8482         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8483         Set to 270000.
8484
8485 2011-10-01  Bruno Haible  <bruno@clisp.org>
8486
8487         mkfifoat tests: Fix a test failure on mingw.
8488         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8489         with error ENOSYS.
8490
8491 2011-09-30  Bruno Haible  <bruno@clisp.org>
8492
8493         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8494         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8495         'long double'. Set REPLACE_ITOLD.
8496         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8497         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8498         * lib/itold.c: New file.
8499         * modules/float (Files): Add lib/itold.c.
8500         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8501         (Makefile.am): Substitute REPLACE_ITOLD.
8502         * modules/math (Depends-on): Add float.
8503         (Makefile.am): Substitute REPLACE_ITOLD.
8504         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8505         * doc/posix-headers/math.texi: Likewise.
8506         * doc/posix-functions/logl.texi: Likewise.
8507
8508 2011-09-30  Bruno Haible  <bruno@clisp.org>
8509
8510         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8511         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8512         Set to 140000.
8513
8514 2011-09-30  Bruno Haible  <bruno@clisp.org>
8515
8516         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8517         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8518         invocation, say "right after AC_PROG_CC_STDC", not "right after
8519         AC_PROG_CC".
8520         Reported by Gary V. Vaughan <gary@gnu.org>.
8521
8522 2011-09-30  Bruno Haible  <bruno@clisp.org>
8523
8524         Centralize C99 requirement.
8525         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8526         * modules/stdarg (configure.ac-early): Invoke it instead of
8527         AC_PROG_CC_STDC.
8528         Reported by Gary V. Vaughan and Paul Eggert.
8529
8530 2011-09-29  Bruno Haible  <bruno@clisp.org>
8531
8532         float: Fix LDBL_MAX value on Linux/PowerPC.
8533         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8534         on Linux/PowerPC.
8535         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8536         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8537         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8538         platform.
8539         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8540
8541 2011-09-29  Bruno Haible  <bruno@clisp.org>
8542
8543         doc: Improve doc about gl_EARLY.
8544         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8545         AC_PROG_CC_STDC invocation.
8546         Reported by Gary V. Vaughan <gary@gnu.org>.
8547
8548 2011-09-28  Bruno Haible  <bruno@clisp.org>
8549
8550         fgetc, fputc, fread, fwrite tests: Fix link error.
8551         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8552         on non-MSVC platforms.
8553         * tests/test-fputc.c (main): Likewise.
8554         * tests/test-fread.c (main): Likewise.
8555         * tests/test-fwrite.c (main): Likewise.
8556         Reported by Jim Meyering.
8557
8558 2011-09-27  Bruno Haible  <bruno@clisp.org>
8559
8560         fputc, fwrite tests: Avoid test failure on MSVC.
8561         * tests/test-fgetc.c: Include msvc-inval.h.
8562         (main): Invoke gl_msvc_inval_ensure_handler.
8563         * tests/test-fputc.c: Include msvc-inval.h.
8564         (main): Invoke gl_msvc_inval_ensure_handler.
8565         * tests/test-fread.c: Include msvc-inval.h.
8566         (main): Invoke gl_msvc_inval_ensure_handler.
8567         * tests/test-fwrite.c: Include msvc-inval.h.
8568         (main): Invoke gl_msvc_inval_ensure_handler.
8569         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8570         * modules/fputc-tests (Depends-on): Likewise.
8571         * modules/fread-tests (Depends-on): Likewise.
8572         * modules/fwrite-tests (Depends-on): Likewise.
8573
8574 2011-09-27  Bruno Haible  <bruno@clisp.org>
8575
8576         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8577         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8578         (raise): Remove older, duplicated declaration.
8579         (_gl_raise_SIGPIPE): New declaration.
8580         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8581         (rpl_raise): Remove function.
8582         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8583         a gnulib-defined SIGPIPE here.
8584         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8585         'sigprocmask' has detected missing signal-blocking and the module
8586         'sigpipe' is enabled.
8587         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8588
8589 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8590
8591         base64-tests: avoid memory leak
8592         * tests/test-base64.c (main): Plug memory leak.
8593
8594         base32: new module
8595         * modules/base32: New module.
8596         * lib/base32.c: New file.
8597         * lib/base32.h: Likewise.
8598         * m4/base32.m4: Likewise.
8599         * modules/base32-tests: New test.
8600         * tests/test-base32.c: Likewise.
8601         * MODULES.html.sh (Misc): Mention it.
8602
8603 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8604
8605         gnulib: use more-standard license notice wording
8606         * gnulib-tool (func_emit_copyright_notice): When emitting a
8607         license notice into a file, use the standard wording as suggested
8608         by the current information for GNU maintainers, except say "file"
8609         rather than "program".  The new wording gives a license version
8610         number, which addresses an issue raised by Glenn Morris in
8611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8612         * m4/onceonly.m4: Use that same wording here, too.
8613
8614         dup2: minor simplification
8615         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8616         as lib/dup2.c no longer uses 'inline'.
8617
8618 2011-09-25  Bruno Haible  <bruno@clisp.org>
8619
8620         strings: Fix compilation error on MSVC.
8621         * lib/strings.in.h: Include <stddef.h> for size_t.
8622
8623 2011-09-25  Bruno Haible  <bruno@clisp.org>
8624
8625         fflush et al.: Document limitation on MSVC.
8626         * doc/posix-functions/fflush.texi: Document possible crash in handling
8627         mode other than DEFAULT_HANDLING.
8628         * doc/posix-functions/fgetc.texi: Likewise.
8629         * doc/posix-functions/fputc.texi: Likewise.
8630         * doc/posix-functions/fread.texi: Likewise.
8631         * doc/posix-functions/fwrite.texi: Likewise.
8632
8633 2011-09-25  Bruno Haible  <bruno@clisp.org>
8634
8635         msvc-inval: Allow three invalid parameter handling modes.
8636         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8637         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8638         macros.
8639         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8640         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8641         SANE_LIBRARY_HANDLING as a no-op.
8642         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8643         <stdlib.h>.
8644         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8645
8646 2011-09-25  Bruno Haible  <bruno@clisp.org>
8647
8648         msvc-inval: Make handler multithread-safe.
8649         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8650         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8651         declarations.
8652         (gl_msvc_inval_current): New declaration.
8653         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8654         Operate on the structure returned by gl_msvc_inval_current().
8655         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8656         Remove varaiables.
8657         (tls_index, tls_initialized): New variables.
8658         (not_per_thread): New variable.
8659         (gl_msvc_inval_current): New function.
8660         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8661         returned by gl_msvc_inval_current().
8662
8663 2011-09-25  Bruno Haible  <bruno@clisp.org>
8664
8665         msvc-inval: Install handler globally.
8666         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8667         !_MSC_VER.
8668         (gl_msvc_invalid_parameter_handler): Remove declaration.
8669         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8670         declarations.
8671         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8672         Install the handler globally, don't uninstall it.
8673         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8674         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8675         currently valid, call RaiseException instead.
8676         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8677         for !_MSC_VER.
8678
8679 2011-09-25  Bruno Haible  <bruno@clisp.org>
8680
8681         strerror_r-posix: Fix for MSVC 9.
8682         * lib/strerror_r.c (local_snprintf): New function.
8683         (snprintf): Define to local_snprintf, not to _snprintf.
8684
8685 2011-09-25  Bruno Haible  <bruno@clisp.org>
8686
8687         ftruncate: Support for MSVC 9.
8688         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8689         (chsize_nothrow): New function.
8690         (chsize): Redefine as a macro.
8691         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8692         * modules/ftruncate (Depends-on): Add msvc-inval.
8693
8694 2011-09-25  Bruno Haible  <bruno@clisp.org>
8695
8696         New module 'fstat'.
8697         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8698         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8699         * lib/fchdir.c (rpl_fstat): Remove function.
8700         * m4/fstat.m4: New file.
8701         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8702         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8703         declared.
8704         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8705         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8706         * modules/fstat: New file.
8707         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8708         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8709         is set.
8710         * doc/posix-functions/fstat.texi: Mention the new module and the
8711         problem on MSVC.
8712         * NEWS: Mention the change.
8713         * modules/acl (Depends-on): Add fstat.
8714         * modules/chdir-safer (Depends-on): Likewise.
8715         * modules/chown (Depends-on): Likewise.
8716         * modules/copy-file (Depends-on): Likewise.
8717         * modules/fchdir (Depends-on): Likewise.
8718         * modules/fdopendir (Depends-on): Likewise.
8719         * modules/fopen (Depends-on): Likewise.
8720         * modules/fts (Depends-on): Likewise.
8721         * modules/getcwd (Depends-on): Likewise.
8722         * modules/isapipe (Depends-on): Likewise.
8723         * modules/linkat (Depends-on): Likewise.
8724         * modules/lseek (Depends-on): Likewise.
8725         * modules/mkdir-p (Depends-on): Likewise.
8726         * modules/open (Depends-on): Likewise.
8727         * modules/openat (Depends-on): Likewise.
8728         * modules/read-file (Depends-on): Likewise.
8729         * modules/renameat (Depends-on): Likewise.
8730         * modules/utimens (Depends-on): Likewise.
8731
8732 2011-09-25  Bruno Haible  <bruno@clisp.org>
8733
8734         linkat: Fix compilation on MSVC 9.
8735         * lib/linkat.c: Don't include <stdint.h>.
8736
8737 2011-09-25  Bruno Haible  <bruno@clisp.org>
8738
8739         fclose: Support for MSVC 9.
8740         * lib/fclose.c: Include msvc-inval.h.
8741         (fclose_nothrow): New function.
8742         (rpl_fclose): Use it.
8743         * modules/fclose (Depends-on): Add msvc-inval.
8744         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8745
8746 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8747
8748         dup2: minor simplifications
8749         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8750         that it's a performance win.
8751         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8752         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8753
8754 2011-09-24  Jim Meyering  <meyering@redhat.com>
8755
8756         test-futimens: avoid a warning from gcc -Wshadow
8757         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8758         to avoid a shadowing warning.
8759
8760 2011-09-24  Bruno Haible  <bruno@clisp.org>
8761
8762         fdopen: Support for MSVC 9.
8763         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8764         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8765         * lib/fdopen.c: Include msvc-inval.h.
8766         (fdopen_nothrow): New function.
8767         (rpl_fdopen): Use it.
8768         * modules/fdopen (Depends-on): Add msvc-inval.
8769         * modules/fclose-tests (Depends-on): Add fdopen.
8770         * modules/fflush-tests (Depends-on): Likewise.
8771         * modules/fgetc-tests (Depends-on): Likewise.
8772         * modules/fputc-tests (Depends-on): Likewise.
8773         * modules/fread-tests (Depends-on): Likewise.
8774         * modules/freopen-tests (Depends-on): Likewise.
8775         * modules/fseeko-tests (Depends-on): Likewise.
8776         * modules/ftello-tests (Depends-on): Likewise.
8777         * modules/fwrite-tests  (Depends-on): Likewise.
8778         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8779
8780 2011-09-24  Bruno Haible  <bruno@clisp.org>
8781
8782         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8783         * modules/fgetc-tests (Depends-on): Add unistd.
8784         * modules/fputc-tests (Depends-on): Likewise.
8785         * modules/fread-tests (Depends-on): Likewise.
8786         * modules/fwrite-tests (Depends-on): Likewise.
8787
8788 2011-09-24  Bruno Haible  <bruno@clisp.org>
8789
8790         dup: Simplify autoconf test.
8791         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8792         on gl_MSVC_INVAL's result.
8793
8794 2011-09-24  Bruno Haible  <bruno@clisp.org>
8795
8796         Tests for function fwrite().
8797         * modules/fwrite-tests: New file.
8798         * tests/test-fwrite.c: New file.
8799         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8800
8801         Tests for function fread().
8802         * modules/fread-tests: New file.
8803         * tests/test-fread.c: New file.
8804         * modules/stdio-tests (Depends-on): Add fread-tests.
8805
8806         Activate fputc tests.
8807         * modules/stdio-tests (Depends-on): Add fputc-tests.
8808
8809         Enhance fgetc, fputc tests.
8810         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8811         * tests/test-fputc.c (main): Likewise.
8812
8813 2011-09-24  Bruno Haible  <bruno@clisp.org>
8814
8815         write: Support for MSVC 9.
8816         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8817         is not 1.
8818         * lib/write.c (write_nothrow): New function.
8819         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8820         not 1. Use write_nothrow.
8821         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8822         invalid parameter handler.
8823         (gl_PREREQ_WRITE): New macro.
8824         * modules/write (Depends-on): Add msvc-inval.
8825         (configure.ac): Invoke gl_PREREQ_WRITE.
8826         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8827
8828 2011-09-24  Bruno Haible  <bruno@clisp.org>
8829
8830         read: Fix last commit.
8831         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8832
8833 2011-09-24  Bruno Haible  <bruno@clisp.org>
8834
8835         dup2: Fix last commit.
8836         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8837         (rpl_dup2): Disable fcntl workaround on native Windows.
8838
8839         sigprocmask: Make code safer.
8840         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8841         section that changes macro definitions for this compilation unit.
8842
8843 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8844
8845         dup2: clarify by coalescing Windows-specific material
8846         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8847         "msvc-nothrow.h"' to the Windows-specific section, so that the
8848         Emacs source need not contain these include files.
8849         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8850         Windows-specific fixes into this function rather than just the
8851         nothrow fix, as this shortens and clarifies the code.  Always
8852         define as a function, as that's a bit cleaner than having it be
8853         sometimes a function and sometimes a macro.
8854         (rpl_dup2): Move the Windows-specific stuff out of here and into
8855         ms_windows_dup2.  Don't protect the Haiku-related fix with
8856         "#if !defined __linux__", as the same code also works around
8857         a Linux kernel bug, and it doesn't add any system calls on any
8858         platform.  Add comment about FreeBSD 6.1.
8859
8860         sigprocmask: move #include directive
8861         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8862         Windows-specific section, so that the Emacs source need not
8863         contain msvc-inval.h.
8864
8865 2011-09-23  Bruno Haible  <bruno@clisp.org>
8866
8867         read: Support for MSVC 9.
8868         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8869         is not 1.
8870         * lib/read.c (read_nothrow): New function.
8871         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8872         read_nothrow.
8873         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8874         invalid parameter handler.
8875         (gl_PREREQ_READ): New macro.
8876         * modules/read (Depends-on): Add msvc-inval.
8877         (configure.ac): Invoke gl_PREREQ_READ.
8878         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8879
8880 2011-09-23  Bruno Haible  <bruno@clisp.org>
8881
8882         close: Support for MSVC 9.
8883         * lib/close.c: Include <errno.h>, msvc-inval.h.
8884         (close_nothrow): New function.
8885         (rpl_close): Use it.
8886         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8887         invalid parameter handler.
8888         * modules/close (Depends-on): Add msvc-inval.
8889         * modules/dup2-tests (Depends-on): Add close.
8890         * modules/dup3-tests (Depends-on): Likewise.
8891         * modules/fcntl-tests (Depends-on): Likewise.
8892         * modules/spawn-pipe-tests (Depends-on): Likewise.
8893         * modules/unistd-safer-tests (Depends-on): Likewise.
8894         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8895
8896 2011-09-23  Bruno Haible  <bruno@clisp.org>
8897
8898         New module 'dup'.
8899         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8900         Allow replacement.
8901         * lib/dup.c: New file.
8902         * lib/fchdir.c (rpl_dup): Remove function.
8903         * m4/dup.m4: New file.
8904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8905         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8906         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8907         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8908         * modules/dup: New file.
8909         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8910         'dup' module is in use.
8911         * modules/fdopendir (Depends-on): Add dup.
8912         * modules/fdutimensat-tests (Depends-on): Likewise.
8913         * modules/fts (Depends-on): Likewise.
8914         * modules/futimens-tests (Depends-on): Likewise.
8915         * modules/posix_spawnp-tests (Depends-on): Likewise.
8916         * modules/unistd-safer-tests (Depends-on): Likewise.
8917         * modules/utimens-tests (Depends-on): Likewise.
8918         * doc/posix-functions/dup.texi: Mention the new module and the problem
8919         on MSVC.
8920
8921 2011-09-23  Bruno Haible  <bruno@clisp.org>
8922
8923         getdtablesize: Support for MSVC 9.
8924         * lib/getdtablesize.c: Include msvc-inval.h.
8925         (_setmaxstdio_nothrow): New function.
8926         (_setmaxstdio): Redefine it.
8927         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8928         * modules/getdtablesize (Depends-on): Add msvc-inval.
8929         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8930
8931 2011-09-23  Bruno Haible  <bruno@clisp.org>
8932
8933         signal-h: Rename from signal.
8934         * modules/signal-h: Renamed from modules/signal.
8935         * modules/pthread_sigmask (Depends-on): Update.
8936         * modules/raise (Depends-on): Likewise.
8937         * modules/sigaction (Depends-on): Likewise.
8938         * modules/sigpipe (Depends-on): Likewise.
8939         * modules/sigprocmask (Depends-on): Likewise.
8940         * modules/sys_select (Depends-on): Likewise.
8941         * modules/signal-h-tests: Renamed from modules/signal-tests.
8942         (Files, Depends-on, Makefile.am): Update.
8943         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8944         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8945         (Files, Makefile.am): Update.
8946         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8947         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8948         * modules/signal: New placeholder file.
8949         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8950         * doc/posix-headers/signal.texi: Update.
8951         * NEWS: Mention the change.
8952
8953 2011-09-23  Bruno Haible  <bruno@clisp.org>
8954
8955         sigprocmask: Avoid crashes through signal() on MSVC 9.
8956         * lib/sigprocmask.c: Include msvc-inval.h.
8957         (signal_nothrow): New function.
8958         (signal): Redefine it.
8959         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8960         * modules/sigprocmask (Depends-on): Add msvc-inval.
8961         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8962
8963 2011-09-23  Bruno Haible  <bruno@clisp.org>
8964
8965         Tests for module 'raise'.
8966         * modules/raise-tests: New file.
8967         * tests/test-raise.c: New file.
8968
8969         raise: Support for MSVC.
8970         * lib/signal.in.h (raise): New declaration.
8971         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8972         for native Windows platforms.
8973         * m4/raise.m4: New file.
8974         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8975         HAVE_RAISE, REPLACE_RAISE.
8976         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8977         REPLACE_RAISE.
8978         * modules/raise (Status, Notice): Remove fields.
8979         (Files): Add m4/raise.m4.
8980         (Depends-on): Add signal, msvc-inval.
8981         (configure.ac): Use the common idioms.
8982         (Maintainer): Add me.
8983         * tests/test-signal-c++.cc: Check the signature of raise.
8984         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8985
8986 2011-09-23  Bruno Haible  <bruno@clisp.org>
8987
8988         pipe2: Fix compilation on pre-C99 compilers.
8989         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8990
8991 2011-09-23  Bruno Haible  <bruno@clisp.org>
8992
8993         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8994         * lib/msvc-nothrow.h: New file.
8995         * lib/msvc-nothrow.c: New file.
8996         * m4/msvc-nothrow.m4: New file.
8997         * modules/msvc-nothrow: New file.
8998         * lib/dup2.c: Include msvc-nothrow.h.
8999         (rpl_dup2): No need to protect _get_osfhandle call here.
9000         * lib/accept4.c: Include msvc-nothrow.h.
9001         * lib/error.c: Likewise.
9002         * lib/fcntl.c: Likewise.
9003         * lib/lseek.c: Likewise.
9004         * lib/nonblocking.c: Likewise.
9005         * lib/poll.c: Likewise.
9006         * lib/read.c: Likewise.
9007         * lib/select.c: Likewise.
9008         * lib/sockets.h: Likewise.
9009         * lib/sockets.c: Likewise.
9010         * lib/stdio-read.c: Likewise.
9011         * lib/stdio-write.c: Likewise.
9012         * lib/write.c: Likewise.
9013         * lib/w32sock.h: Likewise.
9014         * lib/w32spawn.h: Likewise.
9015         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9016         * lib/fsync.c: Likewise.
9017         * lib/isapipe.c: Likewise.
9018         * modules/dup2 (Depends-on): Add msvc-nothrow.
9019         * modules/accept4 (Depends-on): Likewise.
9020         * modules/error (Depends-on): Likewise.
9021         * modules/fcntl (Depends-on): Likewise.
9022         * modules/lseek (Depends-on): Likewise.
9023         * modules/nonblocking (Depends-on): Likewise.
9024         * modules/poll (Depends-on): Likewise.
9025         * modules/read (Depends-on): Likewise.
9026         * modules/select (Depends-on): Likewise.
9027         * modules/sockets (Depends-on): Likewise.
9028         * modules/sigpipe (Depends-on): Likewise.
9029         * modules/write (Depends-on): Likewise.
9030         * modules/accept (Depends-on): Likewise.
9031         * modules/bind (Depends-on): Likewise.
9032         * modules/connect (Depends-on): Likewise.
9033         * modules/gethostname (Depends-on): Likewise.
9034         * modules/getpeername (Depends-on): Likewise.
9035         * modules/getsockname (Depends-on): Likewise.
9036         * modules/getsockopt (Depends-on): Likewise.
9037         * modules/ioctl (Depends-on): Likewise.
9038         * modules/listen (Depends-on): Likewise.
9039         * modules/recv (Depends-on): Likewise.
9040         * modules/recvfrom (Depends-on): Likewise.
9041         * modules/send (Depends-on): Likewise.
9042         * modules/sendto (Depends-on): Likewise.
9043         * modules/setsockopt (Depends-on): Likewise.
9044         * modules/shutdown (Depends-on): Likewise.
9045         * modules/socket (Depends-on): Likewise.
9046         * modules/execute (Depends-on): Likewise.
9047         * modules/spawn-pipe (Depends-on): Likewise.
9048         * modules/flock (Depends-on): Likewise.
9049         * modules/fsync (Depends-on): Likewise.
9050         * modules/isapipe (Depends-on): Likewise.
9051         * tests/test-cloexec.c: Include msvc-nothrow.h.
9052         * tests/test-dup-safer.c: Likewise.
9053         * tests/test-dup2.c: Likewise.
9054         * tests/test-dup3.c: Likewise.
9055         * tests/test-fcntl.c: Likewise.
9056         * tests/test-pipe.c: Likewise.
9057         * tests/test-pipe2.c: Likewise.
9058         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9059         * modules/unistd-safer-tests (Depends-on): Likewise.
9060         * modules/dup2-tests (Depends-on): Likewise.
9061         * modules/dup3-tests (Depends-on): Likewise.
9062         * modules/fcntl-tests (Depends-on): Likewise.
9063         * modules/pipe-posix-tests (Depends-on): Likewise.
9064         * modules/pipe2-tests (Depends-on): Likewise.
9065
9066 2011-09-23  Bruno Haible  <bruno@clisp.org>
9067
9068         dup2: Make code more maintainable.
9069         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9070         (rpl_dup2): Use it.
9071         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9072         * modules/dup2 (configure.ac): Invoke it.
9073         Reported by Paul Eggert.
9074
9075 2011-09-23  Bruno Haible  <bruno@clisp.org>
9076
9077         msvc-inval: Fix compilation error.
9078         * lib/msvc-inval.h: Include <excpt.h>.
9079
9080 2011-09-23  Bruno Haible  <bruno@clisp.org>
9081
9082         mkdir: Tweak for MSVC 9.
9083         * lib/sys_stat.in.h: Update comments.
9084         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9085
9086         Tests for module 'chdir'.
9087         * modules/chdir-tests: New file.
9088         * tests/test-chdir.c: New file.
9089
9090         New module 'chdir'.
9091         * modules/chdir: New file.
9092         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9093         (chdir): New declaration.
9094         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9095         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9096         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9097         * tests/test-unistd-c++.cc: Check signature of chdir.
9098         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9099         * modules/chdir-long (Depends-on): Add chdir.
9100         * modules/fchdir (Depends-on): Likewise.
9101         * modules/rename (Depends-on): Likewise.
9102         * modules/savewd (Depends-on): Likewise.
9103
9104         rmdir: Support for mingw, MSVC 9.
9105         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9106         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9107
9108         getcwd: Tweak for MSVC 9.
9109         * lib/unistd.in.h: Update comments.
9110         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9111
9112 2011-09-22  Bruno Haible  <bruno@clisp.org>
9113
9114         strerror_r-posix: Avoid a link error on MSVC.
9115         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9116         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9117
9118 2011-09-22  Bruno Haible  <bruno@clisp.org>
9119
9120         select: Avoid link errors on MSVC.
9121         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9122         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9123         * modules/pselect (Link): Likewise.
9124         * NEWS: Mention the change.
9125         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9126         test-select-stdin against $(LIB_SELECT).
9127         * modules/pselect-tests (Makefile.am): Link test-pselect against
9128         $(LIB_SELECT).
9129
9130 2011-09-22  Bruno Haible  <bruno@clisp.org>
9131
9132         select: Avoid compilation error on MSVC.
9133         * lib/select.c: Don't include <stdbool.h>.
9134
9135 2011-09-21  Bruno Haible  <bruno@clisp.org>
9136
9137         Consolidate all uses of PATH_MAX in *.m4 files.
9138         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9139         macros.
9140         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9141         and gl_PATHMAX_SNIPPET.
9142         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9143         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9144         * modules/chdir-long (Files): Add m4/pathmax.m4.
9145         * modules/getcwd (Files): Likewise.
9146
9147 2011-09-21  Bruno Haible  <bruno@clisp.org>
9148
9149         ftruncate: Un-deprecate, concentrate on Win32 support.
9150         * modules/ftruncate (Status, Notice): Remove sections.
9151         (Depends-on): Add largefile.
9152         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9153         non-mingw platforms.
9154         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9155         include <io.h>.
9156         * modules/perror-tests (Depends-on): Add ftruncate.
9157         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9158         'ftruncate' module.
9159
9160 2011-09-21  Bruno Haible  <bruno@clisp.org>
9161
9162         Add dependencies to new dirent related modules.
9163         * modules/opendir (Depends-on): Add closedir.
9164         * modules/getcwd (Depends-on): Add opendir, closedir.
9165         * modules/dirent-safer-tests (Depends-on): Likewise.
9166         * modules/fdopendir-tests (Depends-on): Likewise.
9167         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9168         * modules/renameat-tests (Depends-on): Likewise.
9169
9170 2011-09-21  Bruno Haible  <bruno@clisp.org>
9171
9172         opendir: Avoid compilation error on mingw.
9173         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9174         * modules/opendir (Depends-on): Add unistd.
9175
9176 2011-09-21  Bruno Haible  <bruno@clisp.org>
9177
9178         ftruncate tests: Avoid a test failure on mingw.
9179         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9180
9181 2011-09-21  Bruno Haible  <bruno@clisp.org>
9182
9183         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9184         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9185         native Windows.
9186
9187 2011-09-21  Bruno Haible  <bruno@clisp.org>
9188
9189         New module 'fdopen'.
9190         * lib/stdio.in.h (fdopen): New declaration.
9191         * lib/fdopen.c: New file.
9192         * m4/fdopen.m4: New file.
9193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9194         REPLACE_FDOPEN.
9195         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9196         REPLACE_FDOPEN.
9197         * modules/fdopen: New file.
9198         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9199         * tests/test-stdio-c++.cc: Check signature of fdopen.
9200         * doc/posix-functions/fdopen.texi: Mention the new module.
9201
9202 2011-09-21  Bruno Haible  <bruno@clisp.org>
9203
9204         unlockpt tests: Avoid test failure on NetBSD 5.1.
9205         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9206         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9207
9208 2011-09-21  Bruno Haible  <bruno@clisp.org>
9209
9210         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9211         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9212         * tests/test-getlogin_r.c (main): Likewise.
9213
9214 2011-09-20  Bruno Haible  <bruno@clisp.org>
9215
9216         time tests: Don't require pid_t.
9217         * doc/posix-headers/time.texi: Revert last change.
9218         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9219         * tests/test-time.c: Comment out the check for pid_t.
9220
9221 2011-09-20  Bruno Haible  <bruno@clisp.org>
9222
9223         fsync tests: Avoid a test failure on mingw.
9224         * tests/test-fsync.c (main): Allow a failure with EIO.
9225
9226 2011-09-20  Bruno Haible  <bruno@clisp.org>
9227
9228         euidaccess: Update comments.
9229         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9230
9231 2011-09-20  Bruno Haible  <bruno@clisp.org>
9232
9233         Ensure EBADF returns for socket functions on mingw.
9234         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9235         descriptor is invalid.
9236         * lib/bind.c (rpl_bind): Likewise.
9237         * lib/connect.c (rpl_connect): Likewise.
9238         * lib/getpeername.c (rpl_getpeername): Likewise.
9239         * lib/getsockname.c (rpl_getsockname): Likewise.
9240         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9241         * lib/listen.c (rpl_listen): Likewise.
9242         * lib/recv.c (rpl_recv): Likewise.
9243         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9244         * lib/send.c (rpl_send): Likewise.
9245         * lib/sendto.c (rpl_sendto): Likewise.
9246         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9247         * lib/shutdown.c (rpl_shutdown): Likewise.
9248
9249 2011-09-20  Bruno Haible  <bruno@clisp.org>
9250
9251         select tests: EBADF tests.
9252         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9253         test_bad_fd): New functions.
9254         (test_function): Invoke also test_bad_fd.
9255
9256 2011-09-20  Bruno Haible  <bruno@clisp.org>
9257
9258         Tests for module 'posix_spawn_file_actions_addopen.
9259         * modules/posix_spawn_file_actions_addopen-tests: New file.
9260         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9261
9262         Tests for module 'posix_spawn_file_actions_adddup2'.
9263         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9264         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9265
9266         Tests for module 'posix_spawn_file_actions_addclose'.
9267         * modules/posix_spawn_file_actions_addclose-tests: New file.
9268         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9269
9270 2011-09-20  Bruno Haible  <bruno@clisp.org>
9271
9272         Tests for module 'unlockpt'.
9273         * modules/unlockpt-tests: New file.
9274         * tests/test-unlockpt.c: New file.
9275         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9276
9277         Tests for module 'grantpt'.
9278         * modules/grantpt-tests: New file.
9279         * tests/test-grantpt.c: New file.
9280         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9281
9282 2011-09-20  Bruno Haible  <bruno@clisp.org>
9283
9284         freopen tests: EBADF tests.
9285         * tests/test-freopen.c: Include errno.h, unistd.h.
9286         (main): Add tests for EBADF, commented out for the moment.
9287
9288         fclose tests: EBADF tests.
9289         * tests/test-fclose.c (main): Add tests for EBADF.
9290
9291         fflush tests: EBADF tests.
9292         * tests/test-fflush.c: Include errno.h, macros.h.
9293         (main): Add tests for EBADF.
9294
9295         ftello tests: EBADF tests.
9296         * tests/test-ftello4.sh: New file.
9297         * tests/test-ftello4.c: New file.
9298         * modules/ftello-tests (Files): Add them.
9299         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9300
9301         fseeko tests: EBADF tests.
9302         * tests/test-fseeko4.sh: New file.
9303         * tests/test-fseeko4.c: New file.
9304         * modules/fseeko-tests (Files): Add them.
9305         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9306
9307         Tests for function fputc().
9308         * modules/fputc-tests: New file.
9309         * tests/test-fputc.c: New file.
9310         * modules/stdio-tests (Depends-on): Add fputc-tests.
9311
9312         Tests for function fgetc().
9313         * modules/fgetc-tests: New file.
9314         * tests/test-fgetc.c: New file.
9315         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9316
9317         Tests for function fdopen().
9318         * modules/fdopen-tests: New file.
9319         * tests/test-fdopen.c: New file.
9320         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9321
9322         Tests for module 'vdprintf'.
9323         * modules/vdprintf-tests: New file.
9324         * tests/test-vdprintf.c: New file.
9325
9326         Tests for module 'dprintf'.
9327         * modules/dprintf-tests: New file.
9328         * tests/test-dprintf.c: New file.
9329
9330 2011-09-20  Bruno Haible  <bruno@clisp.org>
9331
9332         Tests for module 'ioctl'.
9333         * modules/ioctl-tests: New file.
9334         * tests/test-ioctl.c: New file.
9335
9336 2011-09-20  Bruno Haible  <bruno@clisp.org>
9337
9338         fcntl tests: EBADF tests.
9339         * tests/test-fcntl.c (main): Add more tests for EBADF.
9340
9341 2011-09-20  Bruno Haible  <bruno@clisp.org>
9342
9343         utimensat tests: EBADF tests.
9344         * tests/test-utimensat.c (main): Add tests for EBADF.
9345
9346         renameat tests: EBADF tests.
9347         * tests/test-renameat.c (main): Add tests for EBADF.
9348
9349         mkfifoat tests: EBADF tests.
9350         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9351
9352         readlinkat tests: EBADF tests.
9353         * tests/test-readlinkat.c (main): Add tests for EBADF.
9354
9355         symlinkat tests: EBADF tests.
9356         * tests/test-symlinkat.c (main): Add tests for EBADF.
9357
9358         linkat tests: EBADF tests.
9359         * tests/test-linkat.c (main): Add tests for EBADF.
9360
9361         Tests for module 'faccessat'.
9362         * modules/faccessat-tests: New file.
9363         * tests/test-faccessat.c: New file.
9364
9365         fdopendir tests: EBADF tests.
9366         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9367
9368         openat tests: EBADF tests.
9369         * tests/test-fchownat.c (main): Add tests for EBADF.
9370         * tests/test-fstatat.c (main): Likewise.
9371         * tests/test-mkdirat.c (main): Likewise.
9372         * tests/test-openat.c (main): Likewise.
9373         * tests/test-unlinkat.c (main): Likewise.
9374         * tests/test-fchmodat.c: New file.
9375         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9376         (Makefile.am): Also run 'test-fchmodat'.
9377
9378 2011-09-20  Bruno Haible  <bruno@clisp.org>
9379
9380         utimens, futimens, fdutimensat tests: EBADF tests.
9381         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9382
9383         Tests for function fstat().
9384         * modules/fstat-tests: New file.
9385         * tests/test-fstat.c: New file.
9386         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9387
9388 2011-09-20  Bruno Haible  <bruno@clisp.org>
9389
9390         test-ttyname_r tests: EBADF tests.
9391         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9392
9393         Tests for module 'isatty'.
9394         * modules/isatty-tests: New file.
9395         * tests/test-isatty.c: New file.
9396
9397         Tests for module 'write'.
9398         * modules/write-tests: New file.
9399         * tests/test-write.c: New file.
9400
9401         Tests for module 'read'.
9402         * modules/read-tests: New file.
9403         * tests/test-read.c: New file.
9404
9405         pwrite tests: EBADF tests.
9406         * tests/test-pwrite.c (main): Add tests for EBADF.
9407
9408         pread tests: EBADF tests.
9409         * tests/test-pread.c (main): Add tests for EBADF.
9410
9411         lseek tests: EBADF tests.
9412         * tests/test-lseek.c (main): Add more tests for EBADF.
9413
9414         Tests for module 'ftruncate'.
9415         * modules/ftruncate-tests: New file.
9416         * tests/test-ftruncate.sh: New file.
9417         * tests/test-ftruncate.c: New file.
9418
9419         fsync tests: EBADF tests.
9420         * tests/test-fsync.c (main): Add more tests for EBADF.
9421
9422         fdatasync tests: EBADF tests.
9423         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9424
9425         Tests for module 'fchown'.
9426         * modules/fchown-tests: New file.
9427         * tests/test-fchown.c: New file.
9428
9429         Tests for module 'fchmod'.
9430         * modules/fchmod-tests: New file.
9431         * tests/test-fchmod.c: New file.
9432
9433         fchdir tests: EBADF tests.
9434         * tests/test-fchdir.c (main): Add more tests for EBADF.
9435
9436         dup2 tests: EBADF tests.
9437         * tests/test-dup2.c (main): Add more tests for EBADF.
9438
9439         Tests for module 'dup'.
9440         * modules/dup-tests: New file.
9441         * tests/test-dup.c: New file.
9442
9443         Tests for module 'close'.
9444         * modules/close-tests: New file.
9445         * tests/test-close.c: New file.
9446
9447 2011-09-20  Bruno Haible  <bruno@clisp.org>
9448
9449         Tests for module 'shutdown'.
9450         * modules/shutdown-tests: New file.
9451         * tests/test-shutdown.c: New file.
9452
9453         Tests for module 'setsockopt'.
9454         * modules/setsockopt-tests: New file.
9455         * tests/test-setsockopt.c: New file.
9456
9457         Tests for module 'sendto'.
9458         * modules/sendto-tests: New file.
9459         * tests/test-sendto.c: New file.
9460
9461         Tests for module 'send'.
9462         * modules/send-tests: New file.
9463         * tests/test-send.c: New file.
9464
9465         Tests for module 'recvfrom'.
9466         * modules/recvfrom-tests: New file.
9467         * tests/test-recvfrom.c: New file.
9468
9469         Tests for module 'recv'.
9470         * modules/recv-tests: New file.
9471         * tests/test-recv.c: New file.
9472
9473         Tests for module 'listen'.
9474         * modules/listen-tests: New file.
9475         * tests/test-listen.c: New file.
9476
9477         Tests for module 'getsockopt'.
9478         * modules/getsockopt-tests: New file.
9479         * tests/test-getsockopt.c: New file.
9480
9481         Tests for module 'getsockname'.
9482         * modules/getsockname-tests: New file.
9483         * tests/test-getsockname.c: New file.
9484
9485         Tests for module 'getpeername'.
9486         * modules/getpeername-tests: New file.
9487         * tests/test-getpeername.c: New file.
9488
9489         Tests for module 'connect'.
9490         * modules/connect-tests: New file.
9491         * tests/test-connect.c: New file.
9492
9493         Tests for module 'bind'.
9494         * modules/bind-tests: New file.
9495         * tests/test-bind.c: New file.
9496
9497         accept4 tests: Fix for native Windows.
9498         * tests/test-accept4.c: Include sockets.h.
9499         (main): Invoke gl_sockets_startup.
9500         * modules/accept4-tests (Depends-on): Add sockets.
9501
9502         accept tests: Fix for native Windows.
9503         * tests/test-accept.c: Include sockets.h.
9504         (main): Invoke gl_sockets_startup.
9505         * modules/accept-tests (Depends-on): Add sockets.
9506
9507 2011-09-19  Bruno Haible  <bruno@clisp.org>
9508
9509         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9510         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9511         do...while(0).
9512         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9513         Suggested by Paul Eggert.
9514
9515 2011-09-19  Bruno Haible  <bruno@clisp.org>
9516
9517         sched: Ensure pid_t is defined.
9518         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9519         not define pid_t.
9520         * lib/sched.in.h: Include <sys/types.h>.
9521         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9522         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9523
9524 2011-09-19  Bruno Haible  <bruno@clisp.org>
9525
9526         msvc-inval: Ensure the entire expansion is a single statement.
9527         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9528         of braces.
9529
9530 2011-09-19  Jim Meyering  <meyering@redhat.com>
9531
9532         tests: use printf, not echo in init.sh's warn_ function
9533         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9534         misbehave when given strings containing a backslash or starting
9535         with e.g., -n.  James Youngman suggested setting IFS.
9536
9537 2011-09-19  Eric Blake  <eblake@redhat.com>
9538
9539         futimens: enhance test
9540         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9541         closed non-negative fd.
9542
9543         date: accept 'hence' as opposite of 'ago'
9544         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9545         * tests/test-parse-datetime.c (main): Enhance test.
9546         Suggested by Jesse Wilson.
9547
9548 2011-09-19  Jim Meyering  <meyering@redhat.com>
9549
9550         getcwd: don't fail in a deep directory on a system without openat
9551         Before this change, getcwd would fail when called from a directory
9552         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9553         the non-openat implementation used "..", "../..", "../../..", etc.
9554         to access ancestor directories.  With too many, that string would
9555         be longer than PATH_MAX.
9556         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9557         using gnulib's openat replacement.
9558         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9559         we're using the replacement function.
9560
9561 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9562
9563         maint.mk: avoid warnings from perl about missing files
9564         * top/maint.mk (def_sym_regex): Ignore files listed in
9565         $(gl_other_headers_) that do not exist, say because a project
9566         does not use a corresponding module.
9567
9568 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9569
9570         stat: use pathmax.h only if needed
9571         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9572         This is better for Emacs, which does not have a mingw port and
9573         therefore can avoid the pathmax module.
9574
9575         utimens: remove dependency on dup2
9576         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9577         to work around the Linux kernel bug.
9578         * modules/utimens (Depends-on): Remove dup2.
9579
9580 2011-09-18  Bruno Haible  <bruno@clisp.org>
9581
9582         inet_ntop, inet_pton: Look for it also in libresolv.
9583         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9584         libnsl, search for it in libresolv.
9585         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9586         Needed on Solaris 7.
9587
9588 2011-09-18  Bruno Haible  <bruno@clisp.org>
9589
9590         accept, accept4 tests: Avoid link error on Solaris.
9591         * modules/accept-tests (Makefile.am): Link test-accept against
9592         $(LIBSOCKET).
9593         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9594         $(LIBSOCKET).
9595
9596         accept4: Avoid link error on Solaris.
9597         * modules/accept4 (Link): New section.
9598
9599         socket functions: Avoid link errors on Solaris.
9600         * modules/accept (Depends-on): Add socketlib.
9601         (Link): New section.
9602         * modules/bind (Depends-on): Add socketlib.
9603         (Link): New section.
9604         * modules/connect (Depends-on): Add socketlib.
9605         (Link): New section.
9606         * modules/getpeername (Depends-on): Add socketlib.
9607         (Link): New section.
9608         * modules/getsockname (Depends-on): Add socketlib.
9609         (Link): New section.
9610         * modules/getsockopt (Depends-on): Add socketlib.
9611         (Link): New section.
9612         * modules/listen (Depends-on): Add socketlib.
9613         (Link): New section.
9614         * modules/recv (Depends-on): Add socketlib.
9615         (Link): New section.
9616         * modules/recvfrom (Depends-on): Add socketlib.
9617         (Link): New section.
9618         * modules/send (Depends-on): Add socketlib.
9619         (Link): New section.
9620         * modules/sendto (Depends-on): Add socketlib.
9621         (Link): New section.
9622         * modules/setsockopt (Depends-on): Add socketlib.
9623         (Link): New section.
9624         * modules/shutdown (Depends-on): Add socketlib.
9625         (Link): New section.
9626         * modules/socket (Depends-on): Add socketlib.
9627         (Link): New section.
9628
9629 2011-09-18  Bruno Haible  <bruno@clisp.org>
9630
9631         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9632         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9633         than 5 seconds.
9634         * modules/ptsname-tests (configure.ac): Test for alarm.
9635
9636 2011-09-18  Bruno Haible  <bruno@clisp.org>
9637
9638         posix_spawn_file_actions_add*: Fix module dependencies.
9639         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9640         posix_spawn_file_actions_init.
9641         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9642         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9643
9644 2011-09-18  Bruno Haible  <bruno@clisp.org>
9645
9646         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9647         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9648         * tests/test-renameat.c (main): Likewise.
9649
9650 2011-09-18  Bruno Haible  <bruno@clisp.org>
9651
9652         Tests for module 'accept4'.
9653         * modules/accept4-tests: New file.
9654         * tests/test-accept4.c: New file.
9655
9656 2011-09-18  Bruno Haible  <bruno@clisp.org>
9657
9658         Tests for module 'accept'.
9659         * modules/accept-tests: New file.
9660         * tests/test-accept.c: New file.
9661
9662 2011-09-18  Bruno Haible  <bruno@clisp.org>
9663
9664         dup2: Support for MSVC.
9665         * lib/dup2.c: Include msvc-inval.h.
9666         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9667         _get_osfhandle calls.
9668         * modules/dup2 (Depends-on): Add msvc-inval.
9669         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9670
9671         New module 'msvc-inval'.
9672         * lib/msvc-inval.h: New file.
9673         * lib/msvc-inval.c: New file.
9674         * m4/msvc-inval.m4: New file.
9675         * modules/msvc-inval: New file.
9676
9677 2011-09-17  Bruno Haible  <bruno@clisp.org>
9678
9679         Tests for module 'pclose'.
9680         * modules/pclose-tests: New file.
9681
9682         New module 'pclose'.
9683         * lib/stdio.in.h (pclose): New declaration.
9684         * lib/pclose.c: New file.
9685         * m4/pclose.m4: New file.
9686         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9687         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9688         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9689         * modules/pclose: New file.
9690         * modules/popen-tests (Depends-on): Add pclose.
9691         * modules/popen-safer-tests (Depends-on): Likewise.
9692         * doc/posix-functions/pclose.texi: Mention the new module.
9693
9694 2011-09-17  Bruno Haible  <bruno@clisp.org>
9695
9696         popen: Support for MSVC.
9697         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9698         * lib/popen.c (popen): Provide alternate definition for native Windows.
9699         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9701         * modules/popen (Depends-on, configure.ac): Update condition.
9702         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9703         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9704         fixed.
9705
9706 2011-09-17  Bruno Haible  <bruno@clisp.org>
9707
9708         isnanl, isnand, isnanf: Work around MSVC bug.
9709         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9710
9711 2011-09-17  Bruno Haible  <bruno@clisp.org>
9712
9713         sys_socket tests: Fix recent mistake.
9714         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9715
9716 2011-09-17  Bruno Haible  <bruno@clisp.org>
9717
9718         putenv: Support for MSVC.
9719         * modules/putenv (Depends-on): Add environ.
9720         * lib/putenv.c (environ): Disable declaration.
9721         * lib/unistd.in.h: Update comment.
9722
9723 2011-09-17  Bruno Haible  <bruno@clisp.org>
9724
9725         math: Avoid macro redefinition warnings on MSVC.
9726         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9727         Undefine before redefining.
9728
9729 2011-09-17  Bruno Haible  <bruno@clisp.org>
9730
9731         doc: Mention functions which are declared as macros.
9732         * doc/posix-functions/*[fl].texi: Mention that some functions are
9733         defined as macros with arguments only.
9734
9735 2011-09-17  Bruno Haible  <bruno@clisp.org>
9736
9737         Add dependencies to new dirent related modules.
9738         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9739         * modules/fts (Depends-on): Likewise.
9740         * modules/glob (Depends-on): Likewise.
9741         * modules/savedir (Depends-on): Likewise.
9742         * modules/scandir (Depends-on): Likewise.
9743         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9744         * modules/fdopendir (Depends-on): Add opendir.
9745
9746 2011-09-17  Bruno Haible  <bruno@clisp.org>
9747
9748         inet_pton: Support for MSVC on Windows Vista or newer.
9749         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9750         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9751         HAVE_DECL_INET_PTON is defined.
9752         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9753         On platforms with <winsock2.h>, test whether inet_pton is declared in
9754         <ws2tcpip.h>. If so, arrange to replace it.
9755         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9756         REPLACE_INET_PTON.
9757         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9758         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9759         (Depends-on, configure.ac): Update condition.
9760         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9761
9762 2011-09-17  Bruno Haible  <bruno@clisp.org>
9763
9764         inet_ntop: Support for MSVC on Windows Vista or newer.
9765         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9766         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9767         HAVE_DECL_INET_NTOP is defined.
9768         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9769         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9770         <ws2tcpip.h>. If so, arrange to replace it.
9771         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9772         REPLACE_INET_NTOP.
9773         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9774         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9775         (Depends-on, configure.ac): Update condition.
9776         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9777
9778 2011-09-16  Eric Blake  <eblake@redhat.com>
9779
9780         test-fsync: yet another enhancement
9781         * tests/test-fsync.c (main): Also test behavior on read-only text
9782         file.
9783
9784 2011-09-16  Bruno Haible  <bruno@clisp.org>
9785
9786         Enhance fsync, fdatasync tests.
9787         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9788         * tests/test-fdatasync.c (main): Likewise.
9789
9790 2011-09-16  Bruno Haible  <bruno@clisp.org>
9791
9792         Support for MSVC compiler: Ensure mode_t gets defined.
9793         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9794         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9796         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9797         * tests/test-fcntl-h.c: Check that mode_t is defined.
9798         * tests/test-sys_stat.c: Likewise.
9799         * tests/test-sys_types.c: Likewise.
9800         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9801         * doc/posix-headers/sys_stat.texi: Likewise.
9802         * doc/posix-headers/sys_types.texi: Likewise.
9803
9804 2011-09-16  Bruno Haible  <bruno@clisp.org>
9805
9806         sys_stat: Support for MSVC.
9807         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9808         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9809         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9810         MSVC.
9811
9812 2011-09-16  Bruno Haible  <bruno@clisp.org>
9813
9814         Support for MSVC compiler: Ensure off_t gets defined.
9815         * lib/unistd.in.h: Include <sys/types.h>.
9816         * tests/test-fcntl-h.c: Check that off_t is defined.
9817         * tests/test-sys_stat.c: Likewise.
9818         * tests/test-sys_types.c: Likewise.
9819
9820 2011-09-16  Eric Blake  <eblake@redhat.com>
9821
9822         fdatasync: port to Solaris
9823         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9824         * modules/fdatasync (Link): Document it.
9825         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9826
9827         fdatasync: port to MacOS X 10.7
9828         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9829         declared.
9830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9831         * modules/unistd (Makefile.am): Substitute it.
9832         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9833         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9834
9835         fdatasync: minor improvements
9836         * modules/fdatasync (Depends-on): Add condition for fsync.
9837         * lib/fdatasync.c (fdatasync): Add comment.
9838         * tests/test-unistd-c++.cc: Test fdatasync.
9839
9840         unistd: update refs to newer POSIX
9841         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9842         Suggested by Bruno Haible.
9843
9844         fdatasync: new module
9845         * modules/fsync (Description): Document difference to fdatasync.
9846         * modules/fdatasync: New module.
9847         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9848         * lib/fdatasync.c (fdatasync): Likewise.
9849         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9850         defaults.
9851         * modules/unistd (Makefile.am): Set witnesses.
9852         * lib/unistd.in.h (fdatasync): Declare.
9853         * MODULES.html.sh: Document it.
9854         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9855         * modules/fdatasync-tests: New test.
9856         * tests/test-fdatasync.c: Likewise.
9857
9858 2011-09-16  Eric Blake  <eblake@redhat.com>
9859
9860         test-fsync: enhance tests
9861         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9862         * tests/test-fsync.c (main): Enhance test.
9863
9864 2011-09-15  Bruno Haible  <bruno@clisp.org>
9865
9866         Support for MSVC compiler: Ensure ssize_t gets defined.
9867         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9868         * doc/posix-headers/stdio.texi: Likewise.
9869         * modules/stdio (Depends-on): Add ssize_t.
9870         * modules/sys_socket (Depends-on): Likewise.
9871         * modules/sys_types (Depends-on): Likewise.
9872         * modules/sys_uio (Depends-on): Likewise.
9873         * modules/unistd (Depends-on): Likewise.
9874         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9875         * tests/test-sys_types.c: Check that ssize_t is defined.
9876
9877 2011-09-14  Bruno Haible  <bruno@clisp.org>
9878
9879         Avoid using #, the m4 comment starter character, near brackets.
9880         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9881         delimiter character in sed expressions.
9882         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9883         Suggested by Eric Blake.
9884
9885         Properly quote AC_CHECK_DECLS' 4th argument.
9886         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9887         argument.
9888         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9889         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9890         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9891         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9892         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9893         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9894         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9895         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9896         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9897         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9898         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9899         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9900         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9901         * m4/isinf.m4 (gl_ISINF): Likewise.
9902         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9903         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9904         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9905         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9906         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9907         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9908         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9909         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9910         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9911         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9912         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9913         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9915         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9917         Reported by Eric Blake.
9918
9919         Properly quote AC_CHECK_DECL's 4th argument.
9920         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9921         argument.
9922         * m4/argp.m4 (gl_ARGP): Likewise.
9923         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9924         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9925         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9926         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9927         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9928         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9929         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9930         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9931         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9932         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9933         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9934         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9935         Reported by Eric Blake.
9936
9937 2011-09-14  Eric Blake  <eblake@redhat.com>
9938
9939         opendir: avoid compile warning
9940         * lib/opendir.c (includes): Always include errno.h.
9941         Reported by Tatsuro MATSUOKA.
9942
9943 2011-09-14  Jim Meyering  <meyering@redhat.com>
9944
9945         maint.mk: sc_tight_scope: propagate failure from sub-make
9946         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9947         Reported by Martin von Gagern.
9948
9949 2011-09-13  Bruno Haible  <bruno@clisp.org>
9950
9951         tempname: Support for MSVC.
9952         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9953         MSVC.
9954         * modules/tempname (Depends-on): Add fcntl-h.
9955
9956 2011-09-13  Bruno Haible  <bruno@clisp.org>
9957
9958         sys_time: Support for MSVC.
9959         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9960         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9961         include <winsock2.h>.
9962         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9963         function declarations that collide with POSIX.
9964         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9965         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9966
9967 2011-09-13  Bruno Haible  <bruno@clisp.org>
9968
9969         stat: Support for MSVC.
9970         * lib/stat.c: Include pathmax.h.
9971         * modules/stat (Depends-on): Add pathmax.
9972
9973         pathmax: Support for native Windows.
9974         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9975
9976 2011-09-12  Bruno Haible  <bruno@clisp.org>
9977
9978         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9979         * lib/dirent.in.h (struct dirent): New type.
9980         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9981         DT_WHT): New macros.
9982         (DIR): New type.
9983         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9984         (readdir, rewinddir): New declarations.
9985         * lib/dirent-private.h: New file.
9986         * lib/opendir.c: New file.
9987         * lib/readdir.c: New file.
9988         * lib/rewinddir.c: New file.
9989         * lib/closedir.c: New file.
9990         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9991         * m4/opendir.m4: New file.
9992         * m4/readdir.m4: New file.
9993         * m4/rewinddir.m4: New file.
9994         * m4/closedir.m4: New file.
9995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9996         REPLACE_CLOSEDIR here.
9997         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9998         readdir, rewinddir are declared.
9999         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10000         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10001         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10002         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10003         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10004         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10005         * modules/opendir: New file.
10006         * modules/readdir: New file.
10007         * modules/rewinddir: New file.
10008         * modules/closedir: New file.
10009         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10010         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10011         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10012         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10013         * NEWS: Mention the 'fchdir' change.
10014
10015 2011-09-11  Bruno Haible  <bruno@clisp.org>
10016
10017         asm-underscore.m4: Support for MSVC.
10018         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10019         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10020
10021 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10022
10023         Doc about crypt functions.
10024         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10025         needing for _GNU_SOURCE to get crypt.
10026         * doc/posix-functions/encrypt.texi: Likewise.
10027         * doc/posix-functions/setkey.texi: Likewise.
10028
10029 2011-09-11  Bruno Haible  <bruno@clisp.org>
10030
10031         doc: Update regarding MSVC 9.
10032         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10033         tested".
10034         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10035         * doc/posix-headers/*.texi: Likewise.
10036         * doc/pastposix-functions/*.texi: Likewise.
10037         * doc/glibc-functions/*.texi: Likewise.
10038         * doc/glibc-headers/*.texi: Likewise.
10039
10040 2011-09-11  Bruno Haible  <bruno@clisp.org>
10041
10042         unistd et al.: Don't assume <unistd.h> exists.
10043         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10044         does not exist.
10045         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10046         exist. But include <stdlib.h>.
10047         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10048         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10049         symlink() does not exist.
10050         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10051         include <io.h> instead.
10052         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10053         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10054         include <direct.h> instead.
10055         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10056         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10057         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10058         <io.h> instead.
10059         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10060         correctly if the system does not have hard links.
10061         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10062         <direct.h> instead.
10063         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10064         it when looking for function declarations.
10065         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10066         <direct.h> and <io.h> instead.
10067         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10068
10069 2011-09-11  Bruno Haible  <bruno@clisp.org>
10070
10071         strcase: Support for MSVC.
10072         * modules/strcase (Status, Notice): Remove obsoletion mark.
10073         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10074         * doc/posix-functions/strncasecmp.texi: Likewise.
10075
10076         strings: Don't assume <strings.h> exists.
10077         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10078         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10079         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10080         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10081
10082 2011-09-11  Bruno Haible  <bruno@clisp.org>
10083
10084         dirent: Don't assume <dirent.h> exists.
10085         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10086         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10087         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10088         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10089
10090 2011-09-11  Bruno Haible  <bruno@clisp.org>
10091
10092         Fix wint_t on MSVC.
10093         * lib/wchar.in.h (wint_t): On MSVC, override it.
10094         * lib/wctype.in.h (wint_t): Likewise.
10095         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10096         MSVC.
10097         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10098         * doc/posix-headers/wctype.texi: Likewise.
10099
10100 2011-09-11  Bruno Haible  <bruno@clisp.org>
10101
10102         sys_types: Fix typo.
10103         * lib/sys_types.in.h: Fix typo in comment.
10104         Reported by Paul Eggert.
10105
10106         Support for MSVC compiler: Ensure size_t gets defined.
10107         * modules/strings (Depends-on): Add 'sys_types'.
10108         * modules/sys_uio (Depends-on): Likewise.
10109         * lib/sys_uio.in.h: Update comment.
10110
10111         C++ tests for module 'sys_types'.
10112         * modules/sys_types-c++-tests: New file.
10113         * tests/test-sys_types-c++.cc: New file.
10114
10115         Tests for module 'sys_types'.
10116         * modules/sys_types-tests: New file.
10117         * tests/test-sys_types.c: New file.
10118
10119         New module 'sys_types'.
10120         * lib/sys_types.in.h: New file.
10121         * m4/sys_types_h.m4: New file.
10122         * modules/sys_types: New file.
10123         * doc/posix-headers/sys_types.texi: Mention the new module and the
10124         size_t problem on MSVC 9.
10125
10126 2011-09-11  Bruno Haible  <bruno@clisp.org>
10127
10128         Support for MSVC compiler: Avoid division by a literal 0.
10129         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10130         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10131         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10132         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10133         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10134         * tests/infinity.h: New file.
10135         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10136         on MSVC.
10137         * tests/test-ceilf1.c: Include infinity.h.
10138         (main): Use Infinityf.
10139         * tests/test-ceil1.c: Include infinity.h.
10140         (main): Use Infinityd.
10141         * tests/test-ceill.c: Include infinity.h.
10142         (main): Use Infinityl.
10143         * tests/test-dprintf-posix.c: Include infinity.h.
10144         (test_function): Use Infinityd.
10145         * tests/test-floorf1.c: Include infinity.h.
10146         (main): Use Infinityf.
10147         * tests/test-floor1.c: Include infinity.h.
10148         (main): Use Infinityd.
10149         * tests/test-floorl.c: Include infinity.h.
10150         (main): Use Infinityl.
10151         * tests/test-fprintf-posix.c: Include infinity.h.
10152         (test_function): Use Infinityd.
10153         * tests/test-frexp.c: Include infinity.h.
10154         (main): Use Infinityd.
10155         * tests/test-frexpl.c: Include infinity.h.
10156         (main): Use Infinityl.
10157         * tests/test-isfinite.c: Include infinity.h.
10158         (test_isfinitef): Use Infinityf.
10159         (test_isfinited): Use Infinityd.
10160         (test_isfinitel): Use Infinityl.
10161         * tests/test-isinf.c: Include infinity.h.
10162         (test_isinff): Use Infinityf.
10163         (test_isinfd): Use Infinityd.
10164         (test_isinfl): Use Infinityl.
10165         * tests/test-isnan.c: Include infinity.h.
10166         (test_float): Use Infinityf.
10167         (test_double): Use Infinityd.
10168         (test_long_double): Use Infinityl.
10169         * tests/test-isnanf.h: Include infinity.h.
10170         (main): Use Infinityf.
10171         * tests/test-isnand.h: Include infinity.h.
10172         (main): Use Infinityd.
10173         * tests/test-isnanl.h: Include infinity.h.
10174         (main): Use Infinityl.
10175         * tests/test-ldexpl.c: Include infinity.h.
10176         (main): Use Infinityl.
10177         * tests/test-printf-posix.h: Include infinity.h.
10178         (test_function): Use Infinityd.
10179         * tests/test-roundf1.c: Include infinity.h.
10180         (main): Use Infinityf.
10181         * tests/test-round1.c: Include infinity.h.
10182         (main): Use Infinityd.
10183         * tests/test-roundl.c: Include infinity.h.
10184         (main): Use Infinityl.
10185         * tests/test-signbit.c: Include infinity.h.
10186         (test_signbitf): Use Infinityf.
10187         (test_signbitd): Use Infinityd.
10188         (test_signbitl): Use Infinityl.
10189         * tests/test-snprintf-posix.h: Include infinity.h.
10190         (test_function): Use Infinityd, Infinityl.
10191         * tests/test-sprintf-posix.h: Include infinity.h.
10192         (test_function): Use Infinityd, Infinityl.
10193         * tests/test-truncf1.c: Include infinity.h.
10194         (main): Use Infinityf.
10195         * tests/test-trunc1.c: Include infinity.h.
10196         (main): Use Infinityd.
10197         * tests/test-truncl.c: Include infinity.h.
10198         (main): Use Infinityl.
10199         * tests/test-vasnprintf-posix.c: Include infinity.h.
10200         (test_function): Use Infinityd, Infinityl.
10201         * tests/test-vasprintf-posix.c: Include infinity.h.
10202         (test_function): Use Infinityd, Infinityl.
10203         * modules/ceilf-tests (Files): Add tests/infinity.h.
10204         * modules/ceil-tests (Files): Likewise.
10205         * modules/ceill-tests (Files): Likewise.
10206         * modules/dprintf-posix-tests (Files): Likewise.
10207         * modules/floorf-tests (Files): Likewise.
10208         * modules/floor-tests (Files): Likewise.
10209         * modules/floorl-tests (Files): Likewise.
10210         * modules/fprintf-posix-tests (Files): Likewise.
10211         * modules/frexp-tests (Files): Likewise.
10212         * modules/frexp-nolibm-tests (Files): Likewise.
10213         * modules/frexpl-tests (Files): Likewise.
10214         * modules/frexpl-nolibm-tests (Files): Likewise.
10215         * modules/isfinite-tests (Files): Likewise.
10216         * modules/isinf-tests (Files): Likewise.
10217         * modules/isnan-tests (Files): Likewise.
10218         * modules/isnanf-tests (Files): Likewise.
10219         * modules/isnanf-nolibm-tests (Files): Likewise.
10220         * modules/isnand-tests (Files): Likewise.
10221         * modules/isnand-nolibm-tests (Files): Likewise.
10222         * modules/isnanl-tests (Files): Likewise.
10223         * modules/isnanl-nolibm-tests (Files): Likewise.
10224         * modules/ldexpl-tests (Files): Likewise.
10225         * modules/printf-posix-tests (Files): Likewise.
10226         * modules/roundf-tests (Files): Likewise.
10227         * modules/round-tests (Files): Likewise.
10228         * modules/roundl-tests (Files): Likewise.
10229         * modules/signbit-tests (Files): Likewise.
10230         * modules/snprintf-posix-tests (Files): Likewise.
10231         * modules/sprintf-posix-tests (Files): Likewise.
10232         * modules/truncf-tests (Files): Likewise.
10233         * modules/trunc-tests (Files): Likewise.
10234         * modules/truncl-tests (Files): Likewise.
10235         * modules/vasnprintf-posix-tests (Files): Likewise.
10236         * modules/vasprintf-posix-tests (Files): Likewise.
10237         * modules/vdprintf-posix-tests (Files): Likewise.
10238         * modules/vfprintf-posix-tests (Files): Likewise.
10239         * modules/vprintf-posix-tests (Files): Likewise.
10240         * modules/vsnprintf-posix-tests (Files): Likewise.
10241         * modules/vsprintf-posix-tests (Files): Likewise.
10242         * modules/xprintf-posix-tests (Files): Likewise.
10243
10244 2011-09-11  Bruno Haible  <bruno@clisp.org>
10245
10246         Ensure pid_t gets defined.
10247         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10248         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10249         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10250         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10251         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10252         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10253         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10254         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10255         * tests/test-fcntl-h.c: Check that pid_t is defined.
10256         * tests/test-sched.c: Likewise.
10257         * tests/test-termios.c: Likewise.
10258         * tests/test-time.c: Likewise.
10259         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10260         * doc/posix-headers/signal.texi: Likewise.
10261         * doc/posix-headers/sys_types.texi: Likewise.
10262         * doc/posix-headers/time.texi: Likewise.
10263
10264 2011-09-11  Bruno Haible  <bruno@clisp.org>
10265
10266         acl: Fix compilation on Solaris 10 (older version).
10267         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10268         of ACE_EVERYONE.
10269         * lib/set-mode-acl.c (qset_acl): Likewise.
10270         Reported by Christian Jullien <eligis@orange.fr>.
10271
10272 2011-09-10  Bruno Haible  <bruno@clisp.org>
10273
10274         iconv, unsetenv: Add support for MSVC compiler.
10275         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10276         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10277
10278 2011-09-10  Bruno Haible  <bruno@clisp.org>
10279
10280         *printf: Add support for MSVC compiler.
10281         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10282         handles the exception caused by the %n directive. When cross-compiling,
10283         guess no on native Windows.
10284         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10285         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10286         emulate it through vsnprintf.
10287         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10288         * doc/posix-functions/dprintf.texi: Update documentation regarding
10289         MSVC 9.
10290         * doc/posix-functions/fprintf.texi: Likewise.
10291         * doc/posix-functions/printf.texi: Likewise.
10292         * doc/posix-functions/snprintf.texi: Likewise.
10293         * doc/posix-functions/sprintf.texi: Likewise.
10294         * doc/posix-functions/swprintf.texi: Likewise.
10295         * doc/posix-functions/vdprintf.texi: Likewise.
10296         * doc/posix-functions/vfprintf.texi: Likewise.
10297         * doc/posix-functions/vprintf.texi: Likewise.
10298         * doc/posix-functions/vsnprintf.texi: Likewise.
10299         * doc/posix-functions/vsprintf.texi: Likewise.
10300         * doc/glibc-functions/asprintf.texi: Likewise.
10301         * doc/glibc-functions/obstack_printf.texi: Likewise.
10302         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10303         * doc/glibc-functions/vasprintf.texi: Likewise.
10304
10305 2011-09-10  Bruno Haible  <bruno@clisp.org>
10306
10307         nocrash: Add support for native Windows.
10308         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10309
10310 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10311             Bruno Haible  <bruno@clisp.org>
10312
10313         absolute-header, include-next: Add support for MSVC compiler.
10314         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10315         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10316         directory separator in #line directives.
10317         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10318         recognize also backslash as directory separator in #line directives.
10319
10320 2011-09-08  Jim Meyering  <meyering@redhat.com>
10321
10322         maint.mk: mark the post-release commit log with "maint: " prefix
10323         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10324         one-line commit-log summary.
10325
10326 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10327             Bruno Haible  <bruno@clisp.org>
10328
10329         Doc about crypt functions.
10330         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10331         systems.
10332         * doc/posix-functions/encrypt.texi: Likewise.
10333         * doc/posix-functions/setkey.texi: Likewise.
10334
10335 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10336
10337         * lib/gc.h: Fix copyright header.
10338
10339 2011-09-07  Bruno Haible  <bruno@clisp.org>
10340
10341         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10342         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10343         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10344
10345 2011-09-07  Bruno Haible  <bruno@clisp.org>
10346
10347         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10348         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10349         * lib/freopen.c: Likewise.
10350         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10351         * lib/lstat.c: Likewise.
10352         * lib/stat.c: Likewise.
10353         * lib/open.c: Use different syntax for include of <fcntl.h>.
10354         * lib/openat.c: Include fcntl.h again, explicitly.
10355
10356 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10357
10358         parse-datetime: document the newly accepted format
10359         * doc/parse-datetime.texi (Combined date and time of day items):
10360         New section.
10361
10362 2011-09-06  Bruno Haible  <bruno@clisp.org>
10363
10364         acl: Fix a test failure on newer Solaris 10 with ZFS.
10365         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10366         ENOSYS as no ACL.
10367         Reported by Jim Meyering.
10368
10369 2011-09-06  Bruno Haible  <bruno@clisp.org>
10370
10371         acl: Update for AIX >= 5.3 with NFS.
10372         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10373         ENOSYS as no ACL.
10374
10375         acl: Fix a test failure on AIX >= 5.3 with NFS.
10376         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10377         as no ACL.
10378
10379 2011-09-06  Bruno Haible  <bruno@clisp.org>
10380
10381         acl: Fix a test failure on IRIX 6.5 with NFS.
10382         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10383         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10384         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10385         * lib/copy-acl.c (qcopy_acl): Likewise.
10386
10387 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10388
10389         openat: port to AIX 7.1 with large files
10390         AIX 7.1 does a "#define openat open64at" if large files are in use,
10391         so we can't simply #undef openat.  Use the orig_openat trick (similar
10392         to orig_open in lib/open.c) to work around the problem.  Problem
10393         reported by Kevin Brott for GNU tar, in the thread containing
10394         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10395         * lib/openat.c (__need_system_fcntl_h): Define first.
10396         Include <fcntl.h> and <sys/types.h> before undefining.
10397         (orig_openat) [HAVE_OPENAT]: New inline function.
10398         (openat) [HAVE_OPENAT]: Do not undef.
10399         (rpl_openat): Use orig_openat, not openat.
10400
10401 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10402             Bruno Haible  <bruno@clisp.org>
10403
10404         acl: Avoid errors on NonStop Kernel.
10405         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10406         ENOTSUP errors.
10407
10408 2011-09-05  Bruno Haible  <bruno@clisp.org>
10409
10410         acl: Clean up Solaris code.
10411         * lib/acl-internal.h: Remove no-op #if.
10412         * lib/file-has-acl.c: Likewise.
10413         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10414         * lib/copy-acl.c (qcopy_acl): Likewise.
10415
10416 2011-09-05  Bruno Haible  <bruno@clisp.org>
10417
10418         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10419         binaries built on the original Solaris 10.
10420         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10421         trivial.
10422
10423 2011-09-05  Bruno Haible  <bruno@clisp.org>
10424
10425         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10426         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10427         10.
10428         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10429         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10430         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10431         instead of acl_get, facl_get, acl_set, facl_set.
10432
10433 2011-09-05  Bruno Haible  <bruno@clisp.org>
10434
10435         copy-file: Try unit tests on more file systems.
10436         * tests/test-copy-file-1.sh: New file.
10437         * tests/test-copy-file-2.sh: New file.
10438         * modules/copy-file-tests (Files): Add them.
10439         (Makefile.am): Add them to TESTS.
10440
10441         acl: Try unit tests on more file systems.
10442         * tests/test-file-has-acl-1.sh: New file.
10443         * tests/test-file-has-acl-2.sh: New file.
10444         * tests/test-set-mode-acl-1.sh: New file.
10445         * tests/test-set-mode-acl-2.sh: New file.
10446         * tests/test-copy-acl-1.sh: New file.
10447         * tests/test-copy-acl-2.sh: New file.
10448         * modules/acl-tests (Files): Add them.
10449         (Makefile.am): Add them to TESTS.
10450
10451 2011-09-04  Bruno Haible  <bruno@clisp.org>
10452
10453         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10454         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10455         10.
10456         (OLD_ALLOW, OLD_DENY): New macros.
10457         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10458         ACE_ACCESS_ALLOWED_ACE_TYPE.
10459         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10460         ACE_ACCESS_DENIED_ACE_TYPE.
10461         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10462         (NEW_ACE_EXECUTE): Fix value.
10463         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10464         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10465         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10466         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10467         NEW_ACE_SYNCHRONIZE): New macros.
10468         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10469         instead of acl_fromtext, acl_set, facl_set.
10470         Fixes a coreutils/tests/cp/perm failure.
10471
10472 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10473
10474         openat: test for fstatat (..., 0) bug
10475         Further testing with tar suggests that fstatat (..., 0)
10476         does not work in general, on AIX 7.1; see
10477         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10478         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10479         replacement fstatat (which is what older AIX releases were using
10480         anyway).
10481         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10482         use is now changed to orig_fstatat.  This was probably the right
10483         thing to do anyway.
10484         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10485         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10486         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10487         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10488         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10489         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10490         if the bug is found.
10491
10492         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10493         This tests for another fstatat bug on AIX 7.1:
10494         fstatat (AT_FDCWD, ..., 0) does not work.  See
10495         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10496         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10497         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10498         (rpl_fstatat): Adjust so that it works around either (or both)
10499         bugs if present.
10500         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10501
10502 2011-09-03  Karl Berry  <karl@gnu.org>
10503
10504         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10505         in index entries.
10506
10507 2011-09-02  Bruno Haible  <bruno@clisp.org>
10508
10509         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10510         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10511         values of AR, ARFLAGS, RANLIB.
10512         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10513
10514 2011-09-02  Bruno Haible  <bruno@clisp.org>
10515
10516         Find 'ar' program that fits with --host argument.
10517         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10518
10519 2011-09-02  Bruno Haible  <bruno@clisp.org>
10520
10521         tests: init.sh: Support any non-GNU diff.
10522         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10523         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10524         Solaris 8.
10525
10526 2011-09-02  Bruno Haible  <bruno@clisp.org>
10527
10528         tests: init.sh: work also with any non-GNU diff that supports -u
10529         * tests/init.sh: Relax check for diff -u support.
10530         Rather than checking for GNU diff via --version, simply check
10531         for support for -u itself.  Useful at least on OpenBSD 4.9,
10532         AIX 7.1, IRIX 6.5, and Solaris 10.
10533
10534 2011-09-01  Bruno Haible  <bruno@clisp.org>
10535
10536         strtoimax, strtoumax: Document problem on HP-UX 11.
10537         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10538         * doc/posix-functions/strtoumax.texi: Likewise.
10539
10540 2011-09-01  Bruno Haible  <bruno@clisp.org>
10541
10542         strtoumax: Avoid link error on OSF/1 with DTK cc.
10543         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10544         defined as a function.
10545         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10546         strtoumax is defined, not whether it is declared.
10547
10548 2011-09-01  Bruno Haible  <bruno@clisp.org>
10549
10550         strtoimax: Avoid link error on OSF/1 with DTK cc.
10551         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10552         defined as a function.
10553         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10554         strtoimax is defined, not whether it is declared.
10555
10556 2011-09-01  Bruno Haible  <bruno@clisp.org>
10557
10558         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10559         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10560         as a function.
10561         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10562         whether it is declared.
10563
10564 2011-09-01  Bruno Haible  <bruno@clisp.org>
10565
10566         imaxabs: Avoid link error on OSF/1 with DTK cc.
10567         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10568         as a function.
10569         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10570         whether it is declared.
10571
10572 2011-09-01  Bruno Haible  <bruno@clisp.org>
10573
10574         Tests for module 'strtoumax'.
10575         * modules/strtoumax-tests: New file.
10576         * tests/test-strtoumax.c: New file.
10577
10578         Tests for module 'strtoimax'.
10579         * modules/strtoimax-tests: New file.
10580         * tests/test-strtoimax.c: New file.
10581
10582         Tests for module 'imaxdiv'.
10583         * modules/imaxdiv-tests: New file.
10584         * tests/test-imaxdiv.c: New file.
10585
10586         Tests for module 'imaxabs'.
10587         * modules/imaxabs-tests: New file.
10588         * tests/test-imaxabs.c: New file.
10589
10590 2011-09-01  Bruno Haible  <bruno@clisp.org>
10591
10592         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10593         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10594         pthread_create.
10595
10596 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10597
10598         openat: work around AIX 7.1 fstatat issue
10599         This should fix the problem that was not properly fixed
10600         in the previous change, dated 2011-08-30.
10601         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10602         __need_system_stat_h defined.
10603         (orig_fstatat) [HAVE_FSTATAT]: New function.
10604         (rpl_fstatat): Go back to the old way of doing things,
10605         except call orig_fstatat instead of fstatat.
10606         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10607         Remove unnecessary check whether fstatat fills in st_size etc.
10608
10609 2011-09-01  Bruno Haible  <bruno@clisp.org>
10610
10611         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10612         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10613         just include the system's header.
10614
10615 2011-08-31  Jim Meyering  <meyering@redhat.com>
10616
10617         tests: avoid spurious assertion failure in test-float.c on ppc64
10618         * tests/test-float.c (test_long_double): Comment out an assertion,
10619         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10620         with gcc-4.4.4.
10621
10622         maint: indent with spaces, not TABs
10623         I need to get in the habit of running gnulib's "make check".
10624         Both of these would have been caught.
10625         * m4/largefile.m4: Indent with spaces, not TABs.
10626         * lib/parse-datetime.y (iso_8601_time): Likewise.
10627         Spotted by Pádraig Brady.
10628
10629         test-parse-datetime.c: accommodate a relatively strict gcc warning
10630         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10631         to avoid a warning from gcc's -Werror=missing-declarations.
10632         Insert a few spaces-before-funcall-parenthesis.
10633
10634 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10635
10636         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10637         The parser now accepts ISO 8601 date-time strings with "T" as the
10638         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10639         with a space between the date and time strings.  Now it also parses
10640         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10641         variants like "2004-02-29T16:21:42.333-07:00"
10642         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10643         of day representation using the 'T' separator character.
10644         * doc/parse-datetime.texi (General date syntax): replace use of
10645         deprecated --iso-8601 option with --rfc-3339 in example of date
10646         command output formats that can be parsed.
10647         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10648         lib/parse-datetime.y.
10649         (gmt_offset): New function.
10650         (main): Add additional test cases to validate ISO8601 extended
10651         date and time of day parsing.
10652
10653 2011-08-31  Bruno Haible  <bruno@clisp.org>
10654
10655         freopen: Documentation.
10656         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10657         name.
10658         Reported by Claudio Bley <claudio.bley@gmail.com>.
10659
10660 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10661
10662         freopen: Don't crash if the filename argument is NULL.
10663         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10664         NULL.
10665
10666 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10667
10668         openat: work around AIX 7.1 fstatat bug
10669         Problem reported by Kevin Brott for GNU tar, in the thread containing
10670         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10671         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10672         FSTATAT_ST_SIZE_ETC_BROKEN.
10673         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10674         rpl_fstatat.
10675         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10676         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10677         AC_CHECK_FUNCS_ONCE for fstatat.
10678         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10679         fchmodat, mkdirat, openat and unlinkat.
10680
10681 2011-08-30  Bruno Haible  <bruno@clisp.org>
10682
10683         Avoid endless recursions if config.h includes some header files.
10684         * lib/fopen.c (__need_FILE): Define already before including config.h.
10685         * lib/freopen.c (__need_FILE): Likewise.
10686         * lib/open.c (__need_system_fcntl_h): Likewise.
10687         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10688         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10689         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10690
10691 2011-08-25  Karl Berry  <karl@gnu.org>
10692
10693         * config/srclist.txt (ylwrap): new try.
10694         * build-aux/ylwrap: new file.
10695
10696 2011-08-23  Bruno Haible  <bruno@clisp.org>
10697
10698         tmpdir: Use a good default directory on native Windows.
10699         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10700         (P_tmpdir): Default to _P_tmpdir on native Windows.
10701         (path_search): On native Windows, try the value returned by GetTempPath
10702         before trying P_tmpdir.
10703         * modules/tmpdir (Depends-on): Add pathmax.
10704         Suggested by John Darrington <john@darrington.wattle.id.au>.
10705
10706 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10707
10708         doc: fix typo in README-release
10709         * top/README-release: Capitalize first word of a sentence.
10710
10711 2011-08-19  Jim Meyering  <meyering@redhat.com>
10712
10713         fts: do not exhaust memory when processing million-entry directories
10714         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10715         directory would require about 256*N bytes of memory.  Thus, it was
10716         easy to construct a directory too large to be processed by any of
10717         those tools.  With this change, fts' maximum memory utilization is
10718         now limited to around 30MB.
10719         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10720         (fts_read): When we've processed the final entry (i.e., when
10721         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10722         using the parent entry to read any remaining entries.  Dispatch
10723         depending on what fts_build returns:
10724         - NULL+stop, aka failure: stop
10725         - NULL otherwise: move up in the dir hierarchy
10726         - non-NULL: handle this new entry
10727         (fts_build): Declare and use new local, continue_readdir.
10728         Prepare to be called from fts_read, when the entries
10729         from a partially-read directory have just been exhausted.
10730         In that case, we'll skip the opendir and instead use the parent's
10731         fts_dirp and derive dir_fd from that.
10732         Finally, in the readdir loop, if we read max_entries entries,
10733         exit the loop ensuring *not* to call closedir.  This is required
10734         so that fts_dirp can be reused on a subsequent call.
10735         Prompted by Ben England's report of memory exhaustion in find
10736         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10737
10738         maint: fts: move decl of `dp' down into while loop; split a long line
10739         * lib/fts.c (fts_build): No semantic change.
10740
10741         fts: add/use new struct member, fts_dirp
10742         We are about to use this to manage any directory with
10743         too many entries to read all of them into memory at once.
10744         To do that, we'll need to save the DIR* pointer in each
10745         affected FTSENT struct.
10746         * lib/fts_.h: Include <dirent.h>.
10747         (struct FTSENT) [fts_dirp]: New member.
10748         * lib/fts.c (closedir_and_clear): Define.
10749         Use it in place of closedir so that we are sure to
10750         clear the new fts_dirp member when done with it.
10751         (fts_alloc): Initialize the new member.
10752         (fts_lfree): Free, if needed.
10753
10754         maint: fts: give __opendir2 a new parameter and rename
10755         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10756         than surreptitiously using sole caller's "dir_fd".
10757         (fts_opendir): Rename from __opendir2.
10758
10759         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10760         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10761
10762         maint: fts.c: correct off-by-one indentation
10763         * lib/fts.c (fts_build): Correct indentation, change style
10764         of a couple of block comments, and bracing style.
10765
10766         maint: fts.c: move __opendir2 #define "up" out of function body
10767         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10768
10769         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10770         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10771         out for a long time and besides was useful only on BSD systems.
10772
10773 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10774
10775         regex: port to Stratus OpenVOS
10776         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10777         define to empty, rather than attempting nonportable optimizations.
10778         Problem reported by Paul Green in:
10779         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10780         and fix suggested by Eric Blake in:
10781         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10782
10783 2011-08-17  Eric Blake  <eblake@redhat.com>
10784
10785         getcwd: fix test failures on mingw
10786         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10787         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10788         test if long directory cannot be created, and allow mingw errno.
10789
10790         getcwd-lgpl: fix m4 to match relaxed test for BSD
10791         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10792         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10793         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10794         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10795         signature problem.
10796
10797         getcwd: fix compilation on mingw64
10798         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10799         getcwd.
10800         Reported by Marc-André Lureau.
10801
10802         pipe2: silence compiler warning
10803         * lib/pipe2.c (pipe2): Hide label if it is not used.
10804
10805 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10806
10807         relocatable-prog: fix link error
10808         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10809         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10810         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10811         into modules/relocatable-lib without noticing that
10812         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10813         also needs to build relocatable.c.
10814
10815 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10816
10817         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10818         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10819         shell code: it contained a 'break' that was not in a loop.
10820         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10821         via a shell-language loop; this may have been true in old Autoconf
10822         versions, but it's not true in Autoconf 2.68.  I found this bug
10823         when testing coreutils git on Solaris 8, whose shell complains
10824         about the syntax error.
10825
10826 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10827
10828         * lib/base64.c: Fix comment to reference RFC 4648.
10829         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10830         <gvtulder@gmail.com>.
10831
10832 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10833
10834         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10835
10836         po/Makefile.in.in: fix make -q problem
10837         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10838         rule, since there's no file named 'check-macro-version' and its
10839         use as a file breaks make -q.
10840         (all): Don't depend on check-macro-version.
10841         (CHECK_MACRO_VERSION): New macro.
10842         (stamp-po): Use it.
10843
10844         configmake: fix make -q problem
10845         * modules/configmake (configmake.h): Update configmake.h's time stamp
10846         even if the file does not change.  Otherwise, 'make -q' fails.
10847         Problem reported by Simon Josefsson in
10848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10849
10850 2011-08-11  Jim Meyering  <meyering@redhat.com>
10851
10852         git-version-gen: correct the advice in a comment
10853         * build-aux/git-version-gen: Correct comment.
10854         Don't recommend to list .tarball-version in .gitignore.
10855
10856 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10857
10858         base64: fix off-by-one buffer size bug
10859         Problem and (trivial) fix reported by Gijs van Tulder in
10860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10861         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10862         * tests/test-base64.c (main): Catch the bug.
10863
10864 2011-08-10  Eric Blake  <eblake@redhat.com>
10865
10866         closein: correct comments
10867         * lib/closein.c (close_stdin): Improve comments.
10868
10869 2011-08-09  Bruno Haible  <bruno@clisp.org>
10870
10871         More tests for 'fseeko'.
10872         * tests/test-fseeko3.c: New file, from Eric Blake.
10873         * tests/test-fseeko3.sh: New file.
10874         * modules/fseeko-tests (Files): Add them.
10875         (TESTS): Add test-fseeko3.sh.
10876         (check_PROGRAMS): Add test-fseeko3.
10877
10878 2011-08-09  Eric Blake  <eblake@redhat.com>
10879
10880         fseeko: remove unneeded hack
10881         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10882
10883         fseeko: fix bug on glibc
10884         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10885         Reported by John W. Eaton.
10886
10887 2011-08-08  Bruno Haible  <bruno@clisp.org>
10888
10889         unictype/base: Fix interoperability with preinstalled libunistring.
10890         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10891         Reported by Simon Josefsson.
10892
10893 2011-08-08  Bruno Haible  <bruno@clisp.org>
10894
10895         iswblank: Detect declaration correctly.
10896         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10897         AC_CHECK_DECLS invocation.
10898
10899 2011-08-08  Bruno Haible  <bruno@clisp.org>
10900
10901         tcgetsid: Detect declaration correctly.
10902         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10903         AC_CHECK_DECLS invocation.
10904         Reported by Simon Josefsson.
10905
10906 2011-08-08  Eric Blake  <eblake@redhat.com>
10907
10908         largefile: fix typo that regressed large file support
10909         * modules/largefile (configure.ac-early): Fix section name.
10910
10911 2011-08-06  Karl Berry  <karl@gnu.org>
10912
10913         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10914         a separate module.
10915
10916 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10917
10918         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10919         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10920         get prototype for free.
10921
10922 2011-08-04  Bruno Haible  <bruno@clisp.org>
10923
10924         Tests for module 'pathmax'.
10925         * modules/pathmax-tests: New file.
10926         * tests/test-pathmax.c: New file.
10927
10928         canonicalize-lgpl: Support larger filenames on the Hurd.
10929         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10930         Reported by Paul Eggert.
10931
10932         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10933         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10934         * lib/chdir-long.h: Include pathmax.h.
10935         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10936         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10937         (PATH_MAX): Remove code that is done by pathmax.h.
10938         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10939         * lib/tmpfile.c: Add a comment.
10940         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10941         * modules/chdir-long (Depends-on): Add pathmax.
10942         * modules/getcwd (Depends-on): Add pathmax.
10943         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10944         is not defined.
10945         * doc/posix-headers/limits.texi: Mention the pathmax module.
10946         * NEWS: Mention the change.
10947
10948 2011-08-02  Bruno Haible  <bruno@clisp.org>
10949
10950         pthread_sigmask: Actually use results of gl_THREADLIB.
10951         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10952         gl_THREADLIB, not gl_[]THREADLIB.
10953         Reported by Eric Blake.
10954
10955 2011-08-02  Jim Meyering  <meyering@redhat.com>
10956
10957         maint.mk: relax the default _gl_TS_function_match regexp
10958         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10959         space between function name and "(" in an "extern" declaration.
10960         That would fail to match a decl with no space there: extern void foo();
10961
10962 2011-07-31  Iain Nicol  <iain@thenicols.net>
10963
10964         git-version-gen: document that EXTRA_DIST must include .version
10965         * build-aux/git-version-gen: In the how-to-use comment, document
10966         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10967         will fail when run from an unpacked distribution tarball.
10968
10969 2011-08-01  Bruno Haible  <bruno@clisp.org>
10970
10971         wctype-h: Fix last change.
10972         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10973         REPLACE_TOWLOWER to 0.
10974         Reported by Sam Steingold <sds@gnu.org>.
10975
10976 2011-07-31  Bruno Haible  <bruno@clisp.org>
10977
10978         frexpl: Update autoconf test.
10979         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10980         according to changes of 2011-06-20.
10981
10982 2011-07-31  Bruno Haible  <bruno@clisp.org>
10983
10984         sys_utsname: Add support for Minix.
10985         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10986         <sys/utsname.h>.
10987         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10988         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10989
10990 2011-07-31  Bruno Haible  <bruno@clisp.org>
10991
10992         strings: Add support for Minix.
10993         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10994         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10995         * doc/posix-headers/strings.texi: Document the Minix problem.
10996
10997 2011-07-31  Bruno Haible  <bruno@clisp.org>
10998
10999         wctype-h: Add support for Minix.
11000         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11001         REPLACE_TOWLOWER.
11002         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11003         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11004         REPLACE_ISWCNTRL.
11005
11006 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11007
11008         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11009         This is a performance improvement for 64-bit hosts: it causes the
11010         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11011
11012 2011-07-31  Bruno Haible  <bruno@clisp.org>
11013
11014         stdioext: Add support for Minix.
11015         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11016         * lib/fpurge.c (fpurge): Likewise.
11017         * lib/freadahead.c (freadahead): Likewise.
11018         * lib/freadable.c (freadable): Likewise.
11019         * lib/freading.c (freading): Likewise.
11020         * lib/freadptr.c (freadptr): Likewise.
11021         * lib/freadseek.c (freadptrinc): Likewise.
11022         * lib/fseeko.c (rpl_fseeko): Likewise.
11023         * lib/fseterr.c (fseterr): Likewise.
11024         * lib/fwritable.c (fwritable): Likewise.
11025         * lib/fwriting.c (fwriting): Likewise.
11026         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11027         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11028
11029 2011-07-31  Bruno Haible  <bruno@clisp.org>
11030
11031         errno: Port to Minix.
11032         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11033         ECONNABORTED are defined.
11034         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11035         GNULIB_defined_ECONNABORTED): New macros.
11036         * lib/strerror-override.h (strerror_override): Test also
11037         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11038         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11039         ECONNABORTED.
11040         * doc/posix-headers/errno.texi: Mention the Minix problem.
11041
11042 2011-07-31  Bruno Haible  <bruno@clisp.org>
11043
11044         Work around declaration collisions on Minix.
11045         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11046         defined, set REPLACE_MBSINIT.
11047         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11048         defined, set REPLACE_MBRTOWC.
11049         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11050         set REPLACE_MBRLEN.
11051         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11052         defined, set REPLACE_MBSRTOWCS.
11053         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11054         defined, set REPLACE_WCRTOMB.
11055         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11056         defined, set REPLACE_WCSRTOMBS.
11057
11058 2011-07-31  Bruno Haible  <bruno@clisp.org>
11059
11060         Add support for Minix with ACK compiler.
11061         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11062         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11063         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11064
11065 2011-07-31  Bruno Haible  <bruno@clisp.org>
11066
11067         Documentation about Minix.
11068         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11069         * doc/glibc-headers/*.texi: Likewise.
11070         * doc/posix-functions/*.texi: Likewise.
11071         * doc/glibc-functions/*.texi: Likewise.
11072
11073 2011-07-31  Bruno Haible  <bruno@clisp.org>
11074
11075         snippet/warn-on-use: Fix indentation.
11076         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11077
11078 2011-07-25  Jim Meyering  <meyering@redhat.com>
11079
11080         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11081         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11082         commands.
11083
11084 2011-07-27  Jim Meyering  <meyering@redhat.com>
11085
11086         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11087         * top/maint.mk (gl_extract_significant_defines_): Now that
11088         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11089         gnulib/lib/signal.in.h, and now that we recommend to
11090         define-if-undefined those two symbols in application code,
11091         we must filter them out of the "significant" list.
11092         This avoids a "make syntax-check" failure in coreutils.
11093
11094 2011-07-26  Eric Blake  <eblake@redhat.com>
11095
11096         warnings: add comments about previous patch
11097         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11098         * m4/include_next.m4: Likewise.
11099         * m4/warn-on-use.m4: Likewise.
11100         * m4/warnings.m4: Likewise, and simplify use.
11101         Suggested by Stefano Lattarini.
11102
11103         include-next, warnings: support older autoconf
11104         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11105         AS_VAR_PUSHDEF in a way that works with older autoconf.
11106         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11107         Reported by Daniel P. Berrange.
11108
11109 2011-07-25  Bruno Haible  <bruno@clisp.org>
11110
11111         fseek, ftell: Fix doc.
11112         * doc/posix-functions/fseek.texi: Reword statement about
11113         AC_SYS_LARGEFILE.
11114         * doc/posix-functions/ftell.texi: Likewise.
11115
11116 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11117             Bruno Haible  <bruno@clisp.org>
11118
11119         Add dependencies to the 'largefile' module.
11120         * modules/fopen (Depends-on): Add 'largefile'.
11121         * modules/freopen (Depends-on): Likewise.
11122         * modules/fseeko (Depends-on): Likewise.
11123         * modules/ftello (Depends-on): Likewise.
11124         * modules/glob (Depends-on): Likewise.
11125         * modules/lseek (Depends-on): Likewise.
11126         * modules/lstat (Depends-on): Likewise.
11127         * modules/mkostemp (Depends-on): Likewise.
11128         * modules/mkostemps (Depends-on): Likewise.
11129         * modules/mkstemp (Depends-on): Likewise.
11130         * modules/mkstemps (Depends-on): Likewise.
11131         * modules/open (Depends-on): Likewise.
11132         * modules/openat (Depends-on): Likewise.
11133         * modules/pread (Depends-on): Likewise.
11134         * modules/pwrite (Depends-on): Likewise.
11135         * modules/scandir (Depends-on): Likewise.
11136         * modules/stat (Depends-on): Likewise.
11137         * modules/tmpfile (Depends-on): Likewise.
11138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11139         since the containing module now depends on the largefile module.
11140         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11141         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11142         off_t is fixed by gnulib.
11143         * doc/posix-functions/freopen.texi: Likewise.
11144         * doc/posix-functions/fseeko.texi: Likewise.
11145         * doc/posix-functions/fstatat.texi: Likewise.
11146         * doc/posix-functions/ftello.texi: Likewise.
11147         * doc/posix-functions/glob.texi: Likewise.
11148         * doc/posix-functions/lseek.texi: Likewise.
11149         * doc/posix-functions/lstat.texi: Likewise.
11150         * doc/posix-functions/mkstemp.texi: Likewise.
11151         * doc/posix-functions/open.texi: Likewise.
11152         * doc/posix-functions/openat.texi: Likewise.
11153         * doc/posix-functions/pread.texi: Likewise.
11154         * doc/posix-functions/pwrite.texi: Likewise.
11155         * doc/posix-functions/scandir.texi: Likewise.
11156         * doc/posix-functions/stat.texi: Likewise.
11157         * doc/posix-functions/tmpfile.texi: Likewise.
11158         * doc/glibc-functions/mkostemp.texi: Likewise.
11159         * doc/glibc-functions/mkostemps.texi: Likewise.
11160         * doc/glibc-functions/mkstemps.texi: Likewise.
11161
11162 2011-07-25  Bruno Haible  <bruno@clisp.org>
11163
11164         fcntl: Move AC_LIBOBJ invocation to module description.
11165         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11166         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11167
11168         fcntl: Remove call-in from fchdir.m4.
11169         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11171
11172         dup3: Remove potential call-in from fchdir.m4.
11173         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11175
11176         dup2: Move AC_LIBOBJ invocation to module description.
11177         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11178         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11179         Don't invoke AC_LIBOBJ.
11180         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11181
11182         dup2: Remove call-in from fchdir.m4.
11183         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11185
11186         fclose: Move AC_LIBOBJ invocation to module description.
11187         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11188         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11189         to 1.
11190         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11191
11192         fclose: Remove call-in from close.m4.
11193         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11194         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11195
11196         close: Move AC_LIBOBJ invocation to module description.
11197         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11198         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11199         1.
11200         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11201
11202         close: Remove call-in from fchdir.m4.
11203         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11204         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11205
11206         open: Move AC_LIBOBJ invocation to module description.
11207         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11208         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11209         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11210
11211         open: Remove call-in from fchdir.m4.
11212         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11214
11215         fchdir: Start to remove gl_REPLACE_* idiom.
11216         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11217         (gl_FUNC_FCHDIR): Invoke it.
11218
11219 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11220
11221         * lib/ftell.c (ftell): Comment out cast.
11222
11223         close: use gl_REPLACE_FCLOSE only if defined
11224         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11225         is defined.  The close module doesn't depend on the fclose module
11226         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11228         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11229
11230 2011-07-24  Jim Meyering  <meyering@redhat.com>
11231
11232         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11233         * tests/test-select.h (test_function): Declare as "static".
11234
11235 2011-07-24  Bruno Haible  <bruno@clisp.org>
11236
11237         doc: Mention the effects of AC_SYS_LARGEFILE.
11238         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11239         on this function.
11240         * doc/posix-functions/aio_error.texi: Likewise.
11241         * doc/posix-functions/aio_fsync.texi: Likewise.
11242         * doc/posix-functions/aio_read.texi: Likewise.
11243         * doc/posix-functions/aio_return.texi: Likewise.
11244         * doc/posix-functions/aio_suspend.texi: Likewise.
11245         * doc/posix-functions/aio_write.texi: Likewise.
11246         * doc/posix-functions/fgetpos.texi: Likewise.
11247         * doc/posix-functions/fopen.texi: Likewise.
11248         * doc/posix-functions/freopen.texi: Likewise.
11249         * doc/posix-functions/fsetpos.texi: Likewise.
11250         * doc/posix-functions/fstatvfs.texi: Likewise.
11251         * doc/posix-functions/ftruncate.texi: Likewise.
11252         * doc/posix-functions/ftw.texi: Likewise.
11253         * doc/posix-functions/getrlimit.texi: Likewise.
11254         * doc/posix-functions/glob.texi: Likewise.
11255         * doc/posix-functions/lio_listio.texi: Likewise.
11256         * doc/posix-functions/lockf.texi: Likewise.
11257         * doc/posix-functions/mkstemp.texi: Likewise.
11258         * doc/posix-functions/mmap.texi: Likewise.
11259         * doc/posix-functions/nftw.texi: Likewise.
11260         * doc/posix-functions/openat.texi: Likewise.
11261         * doc/posix-functions/opendir.texi: Likewise.
11262         * doc/posix-functions/posix_fadvise.texi: Likewise.
11263         * doc/posix-functions/posix_fallocate.texi: Likewise.
11264         * doc/posix-functions/pread.texi: Likewise.
11265         * doc/posix-functions/pwrite.texi: Likewise.
11266         * doc/posix-functions/readdir.texi: Likewise.
11267         * doc/posix-functions/readdir_r.texi: Likewise.
11268         * doc/posix-functions/rewinddir.texi: Likewise.
11269         * doc/posix-functions/scandir.texi: Likewise.
11270         * doc/posix-functions/seekdir.texi: Likewise.
11271         * doc/posix-functions/setrlimit.texi: Likewise.
11272         * doc/posix-functions/statvfs.texi: Likewise.
11273         * doc/posix-functions/telldir.texi: Likewise.
11274         * doc/posix-functions/tmpfile.texi: Likewise.
11275         * doc/posix-functions/truncate.texi: Likewise.
11276         * doc/glibc-functions/fallocate.texi: Likewise.
11277         * doc/glibc-functions/fstatfs.texi: Likewise.
11278         * doc/glibc-functions/fts_children.texi: Likewise.
11279         * doc/glibc-functions/fts_read.texi: Likewise.
11280         * doc/glibc-functions/getdirentries.texi: Likewise.
11281         * doc/glibc-functions/mkostemp.texi: Likewise.
11282         * doc/glibc-functions/mkostemps.texi: Likewise.
11283         * doc/glibc-functions/mkstemps.texi: Likewise.
11284         * doc/glibc-functions/preadv.texi: Likewise.
11285         * doc/glibc-functions/pwritev.texi: Likewise.
11286         * doc/glibc-functions/sendfile.texi: Likewise.
11287         * doc/glibc-functions/statfs.texi: Likewise.
11288
11289 2011-07-24  Bruno Haible  <bruno@clisp.org>
11290
11291         doc: Fix typo.
11292         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11293
11294 2011-07-24  Bruno Haible  <bruno@clisp.org>
11295
11296         doc: Mention fsusage.
11297         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11298
11299 2011-07-24  Bruno Haible  <bruno@clisp.org>
11300
11301         doc: Mention new glibc headers and functions.
11302         * doc/glibc-headers/gshadow.texi: New file.
11303         * doc/glibc-functions/endsgent.texi: New file.
11304         * doc/glibc-functions/fgetsgent.texi: New file.
11305         * doc/glibc-functions/fgetsgent_r.texi: New file.
11306         * doc/glibc-functions/getsgent.texi: New file.
11307         * doc/glibc-functions/getsgent_r.texi: New file.
11308         * doc/glibc-functions/getsgnam.texi: New file.
11309         * doc/glibc-functions/getsgnam_r.texi: New file.
11310         * doc/glibc-functions/putsgent.texi: New file.
11311         * doc/glibc-functions/setsgent.texi: New file.
11312         * doc/glibc-functions/sgetsgent.texi: New file.
11313         * doc/glibc-functions/sgetsgent_r.texi: New file.
11314         * doc/glibc-functions/malloc_info.texi: New file.
11315         * doc/glibc-functions/preadv.texi: New file.
11316         * doc/glibc-functions/pwritev.texi: New file.
11317         * doc/glibc-functions/register_printf_modifier.texi: New file.
11318         * doc/glibc-functions/register_printf_specifier.texi: New file.
11319         * doc/glibc-functions/register_printf_type.texi: New file.
11320         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11321         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11322         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11323         * doc/glibc-functions/pthread_getname_np.texi: New file.
11324         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11325         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11326         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11327         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11328         * doc/glibc-functions/pthread_setname_np.texi: New file.
11329         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11330         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11331         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11332         * doc/glibc-functions/qsort_r.texi: New file.
11333         * doc/glibc-functions/quick_exit.texi: New file.
11334         * doc/glibc-functions/syncfs.texi: New file.
11335         * doc/gnulib.texi: Include them.
11336         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11337         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11338         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11339         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11340         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11341         * doc/glibc-functions/execvpe.texi: Likewise.
11342
11343 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11344
11345         ftell: don't include <unistd.h>
11346         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11347         guaranteed to define off_t, and the ftell module depends on the
11348         stdio module.
11349
11350         ftell: do not assume wraparound signed arithmetic
11351         * lib/ftell.c: Include <limits.h>.
11352         (ftell): Don't assume wraparound signed arithmetic.
11353
11354 2011-07-24  Bruno Haible  <bruno@clisp.org>
11355
11356         close: No longer depend on module 'fclose'.
11357         * modules/close (Depends-on): Remove fclose.
11358         * NEWS: Mention the change.
11359         Suggested by Sam Steingold <sds@gnu.org>.
11360
11361 2011-07-24  Bruno Haible  <bruno@clisp.org>
11362
11363         fsusage: Enable large volume support on AIX >= 5.2.
11364         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11365         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11366         instead of STAT_STATVFS.
11367         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11368
11369         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11370         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11371         f_blocks field only on MacOS X.
11372
11373         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11374         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11375         * modules/fsusage (Depends-on): Add largefile.
11376
11377 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11378
11379         * README: Modernize discussion of signed integers.
11380         Assuming overflow wraparound is no longer safe.
11381         Mention ones' complement and signed magnitude.
11382
11383 2011-07-22  Bruno Haible  <bruno@clisp.org>
11384
11385         select tests, pselect tests: Refactor.
11386         * tests/test-select.h: New file, extracted from tests/test-select.c.
11387         (select_fn): New type.
11388         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11389         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11390         test_pipe): Add my_select argument.
11391         (test_function): Renamed from main. Add my_select argument.
11392         * tests/test-select.c: Move most code to tests/test-select.h. Include
11393         test-select.h.
11394         * modules/select-tests (Files): Add tests/test-select.h.
11395         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11396         (my_select, main): New functions.
11397         * modules/pselect-tests (Files): Add tests/test-select.h,
11398         tests/macros.h, tests/signature.h.
11399         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11400         (configure.ac): Check for <sys/wait.h>.
11401
11402 2011-07-22  Bruno Haible  <bruno@clisp.org>
11403
11404         sys_select tests: Check the signature of FD_*.
11405         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11406         signature tests from here...
11407         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11408         here.
11409         * modules/sys_select-tests (Files): Add tests/signature.h.
11410
11411 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11412
11413         largefile: new module, replacing large-inode
11414         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11415         * MODULES.html.sh: Add largefile, remove large-inode.
11416         * modules/largefile, m4/largefile.m4: New files.
11417         * modules/large-inode, m4/large-inode.m4: Remove.
11418
11419         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11420         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11421         implementations that use only 32 bits to count blocks.
11422         On typical hosts with 1024-byte blocks, this fails with file
11423         systems as small as 4 TiB.  Problem reported by Herb Wartens
11424         <http://debbugs.gnu.org/9140> and this should also fix a similar
11425         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11426
11427         large-inode: New module
11428         * MODULES.html.sh: Add it.
11429         * modules/large-inode, m4/large-inode.m4: New files.
11430
11431         extensions: Enable extensions on MacOS X 10.5 and later.
11432         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11433
11434 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11435
11436         file-has-acl: use acl_extended_file_nofollow if available
11437         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11438         (acl_extended_file): New macro.
11439         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11440         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11441
11442 2011-07-21  Bruno Haible  <bruno@clisp.org>
11443
11444         Declare system functions in a way that works with C++.
11445         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11446         declare fdopendir as extern "C".
11447         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11448         declare frexpl as extern "C".
11449         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11450         declare gai_strerror as extern "C".
11451         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11452         programs, declare gai_strerror as extern "C".
11453         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11454         declare getlogin_r as extern "C".
11455         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11456         as extern "C".
11457         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11458         declare ldexpl as extern "C".
11459         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11460         as extern "C".
11461         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11462         program, declare getmntinfo as extern "C".
11463         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11464         stpncpy as extern "C".
11465         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11466         program, declare __xpg_strerror_r as extern "C".
11467         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11468         strndup as extern "C".
11469         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11470         declare memset and bzero as extern "C".
11471         Reported by Sam Steingold <sds@gnu.org>.
11472
11473 2011-07-12  Jim Meyering  <meyering@redhat.com>
11474
11475         maint.mk: prohibit inclusion of "verify.h" without use
11476         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11477
11478 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11479
11480         timer-time: A new module to check for timer_settime()
11481         * m4/timer_time.m4: Check for the posix function.
11482         * modules/timer-time: Add the new module.
11483         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11484         Mention it.
11485
11486 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11487             Bruno Haible  <bruno@clisp.org>
11488
11489         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11490         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11491         not defined, assume POSIX threads and look for pthread_sigmask in
11492         $LIBS, without changing $CPPFLAGS.
11493
11494 2011-07-19  Bruno Haible  <bruno@clisp.org>
11495
11496         strstr: Update cross-compilation guess.
11497         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11498         CPUs, guess no, in view of glibc
11499         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11500         Suggested by Eric Blake. Reported by Reuben Thomas.
11501
11502 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11503
11504         getopt-gnu: suppress core dumps from detection code
11505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11506         to suppress core dumps that may well occur on glibc systems.
11507         * modules/getopt-gnu: Depend on nocrash.
11508
11509 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11510
11511         pthread_sigmask: ensure usleep is declared
11512         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11513         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11514
11515 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11516
11517         doc: Document NonStop portability issues.
11518         * doc/posix-functions/sigaction.texi (sigaction):
11519         * doc/posix-headers/signal.texi (signal.h):
11520         Document NonStop.  See Joachim Schmitz in
11521         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11522
11523 2011-07-15  Bruno Haible  <bruno@clisp.org>
11524
11525         ffsl, ffsll: Avoid unportable behaviour.
11526         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11527
11528 2011-07-15  Bruno Haible  <bruno@clisp.org>
11529
11530         ffs: More tests.
11531         * tests/test-ffs.c (NBITS): New macro.
11532         (main): Add more tests.
11533         * tests/test-ffsl.c (NBITS): New macro.
11534         (main): Add more tests.
11535         * tests/test-ffsll.c (NBITS): New macro.
11536         (main): Add more tests.
11537
11538 2011-07-15  Eric Blake  <eblake@redhat.com>
11539
11540         ffsl, ffsll: new modules
11541         * modules/ffsl: New file.
11542         * modules/ffsll: Likewise.
11543         * m4/ffsl.m4: Likewise.
11544         * m4/ffsll.m4: Likewise.
11545         * lib/ffsl.c: Likewise.
11546         * lib/ffsl.h: Likewise.
11547         * lib/ffsll.c: Likewise.
11548         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11549         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11550         * modules/string (Makefile.am): Substitute witnesses.
11551         * lib/strings.in.h (ffsl, ffsll): Declare.
11552         * modules/ffsl-tests: New test file.
11553         * modules/ffsll-tests: Likewise.
11554         * tests/test-ffsl.c: Likewise.
11555         * tests/test-ffsll.c: Likewise.
11556         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11557         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11558         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11559
11560         ffs: fix m4 prerequisite
11561         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11562
11563         ffs: avoid undefined behavior
11564         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11565         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11566         Reported by Bruno Haible.
11567
11568 2011-07-12  Bruno Haible  <bruno@clisp.org>
11569
11570         pthread_sigmask: Rely on module 'threadlib'.
11571         * modules/pthread_sigmask (Depends-on): Add threadlib.
11572         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11573         is defined.
11574
11575 2011-07-12  Bruno Haible  <bruno@clisp.org>
11576
11577         regex: Depend on module 'strcase'.
11578         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11579
11580 2011-07-12  Jim Meyering  <meyering@redhat.com>
11581
11582         warn-on-use: fix typo in file name
11583         * modules/snippet/warn-on-use (Files): Correct file name:
11584         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11585
11586 2011-07-12  Bruno Haible  <bruno@clisp.org>
11587
11588         strings: Document module.
11589         * doc/posix-headers/strings.texi: Mention module 'strings'.
11590
11591 2011-07-12  Bruno Haible  <bruno@clisp.org>
11592
11593         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11594         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11595         (Files, Makefile.am): Update.
11596         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11597         * modules/stdlib (Depends-on): Update.
11598
11599 2011-07-12  Bruno Haible  <bruno@clisp.org>
11600
11601         * NEWS: Mention the changes.
11602
11603         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11604         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11605         (Files, Makefile.am): Update.
11606         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11607         * modules/arpa_inet (Depends-on): Update.
11608         * modules/ctype (Depends-on): Update.
11609         * modules/dirent (Depends-on): Update.
11610         * modules/fcntl-h (Depends-on): Update.
11611         * modules/glob (Depends-on): Update.
11612         * modules/iconv-h (Depends-on): Update.
11613         * modules/inttypes-incomplete (Depends-on): Update.
11614         * modules/langinfo (Depends-on): Update.
11615         * modules/locale (Depends-on): Update.
11616         * modules/math (Depends-on): Update.
11617         * modules/netdb (Depends-on): Update.
11618         * modules/poll-h (Depends-on): Update.
11619         * modules/pty (Depends-on): Update.
11620         * modules/search (Depends-on): Update.
11621         * modules/signal (Depends-on): Update.
11622         * modules/spawn (Depends-on): Update.
11623         * modules/stdio (Depends-on): Update.
11624         * modules/stdlib (Depends-on): Update.
11625         * modules/string (Depends-on): Update.
11626         * modules/strings (Depends-on): Update.
11627         * modules/sys_file (Depends-on): Update.
11628         * modules/sys_ioctl (Depends-on): Update.
11629         * modules/sys_select (Depends-on): Update.
11630         * modules/sys_socket (Depends-on): Update.
11631         * modules/sys_stat (Depends-on): Update.
11632         * modules/sys_time (Depends-on): Update.
11633         * modules/sys_times (Depends-on): Update.
11634         * modules/sys_utsname (Depends-on): Update.
11635         * modules/sys_wait (Depends-on): Update.
11636         * modules/termios (Depends-on): Update.
11637         * modules/time (Depends-on): Update.
11638         * modules/unistd (Depends-on): Update.
11639         * modules/wchar (Depends-on): Update.
11640         * modules/wctype-h (Depends-on): Update.
11641         * MODULES.html.sh (Support for building libraries and executables):
11642         Update.
11643
11644         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11645         * modules/snippet/unused-parameter: Renamed from
11646         modules/unused-parameter.
11647         (Files, Makefile.am): Update.
11648         * build-aux/snippet/unused-parameter.h: Renamed from
11649         build-aux/unused-parameter.h.
11650         * modules/selinux-h (Depends-on): Update.
11651         * modules/unistr/base (Depends-on): Update.
11652         * MODULES.html.sh (Core language properties): Update.
11653
11654         Rename module 'link-warning' to 'snippet/link-warning'.
11655         * modules/snippet/link-warning: Renamed from modules/link-warning.
11656         (Files, Makefile.am): Update.
11657         * build-aux/snippet/link-warning.h: Renamed from
11658         build-aux/link-warning.h.
11659         * MODULES.html.sh (Support for building libraries and executables):
11660         Update.
11661
11662         Rename module 'c++defs' to 'snippet/c++defs'.
11663         * modules/snippet/c++defs: Renamed from modules/c++defs.
11664         (Files, Makefile.am): Update.
11665         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11666         * modules/arpa_inet (Depends-on): Update.
11667         * modules/ctype (Depends-on): Update.
11668         * modules/dirent (Depends-on): Update.
11669         * modules/fcntl-h (Depends-on): Update.
11670         * modules/glob (Depends-on): Update.
11671         * modules/iconv-h (Depends-on): Update.
11672         * modules/langinfo (Depends-on): Update.
11673         * modules/locale (Depends-on): Update.
11674         * modules/math (Depends-on): Update.
11675         * modules/netdb (Depends-on): Update.
11676         * modules/poll-h (Depends-on): Update.
11677         * modules/pty (Depends-on): Update.
11678         * modules/search (Depends-on): Update.
11679         * modules/signal (Depends-on): Update.
11680         * modules/spawn (Depends-on): Update.
11681         * modules/stdio (Depends-on): Update.
11682         * modules/stdlib (Depends-on): Update.
11683         * modules/string (Depends-on): Update.
11684         * modules/strings (Depends-on): Update.
11685         * modules/sys_ioctl (Depends-on): Update.
11686         * modules/sys_select (Depends-on): Update.
11687         * modules/sys_socket (Depends-on): Update.
11688         * modules/sys_stat (Depends-on): Update.
11689         * modules/sys_time (Depends-on): Update.
11690         * modules/sys_wait (Depends-on): Update.
11691         * modules/termios (Depends-on): Update.
11692         * modules/time (Depends-on): Update.
11693         * modules/unistd (Depends-on): Update.
11694         * modules/wchar (Depends-on): Update.
11695         * modules/wctype-h (Depends-on): Update.
11696
11697         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11698         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11699         (Files, Makefile.am): Update.
11700         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11701         * modules/argv-iter (Depends-on): Update.
11702         * modules/arpa_inet (Depends-on): Update.
11703         * modules/dirent (Depends-on): Update.
11704         * modules/fcntl-h (Depends-on): Update.
11705         * modules/fnmatch (Depends-on): Update.
11706         * modules/getopt-posix (Depends-on): Update.
11707         * modules/glob (Depends-on): Update.
11708         * modules/iconv-h (Depends-on): Update.
11709         * modules/inttypes-incomplete (Depends-on): Update.
11710         * modules/locale (Depends-on): Update.
11711         * modules/math (Depends-on): Update.
11712         * modules/netdb (Depends-on): Update.
11713         * modules/search (Depends-on): Update.
11714         * modules/signal (Depends-on): Update.
11715         * modules/spawn (Depends-on): Update.
11716         * modules/stdio (Depends-on): Update.
11717         * modules/stdlib (Depends-on): Update.
11718         * modules/string (Depends-on): Update.
11719         * modules/strings (Depends-on): Update.
11720         * modules/sys_socket (Depends-on): Update.
11721         * modules/sys_stat (Depends-on): Update.
11722         * modules/sys_time (Depends-on): Update.
11723         * modules/sys_times (Depends-on): Update.
11724         * modules/sys_utsname (Depends-on): Update.
11725         * modules/time (Depends-on): Update.
11726         * modules/unistd (Depends-on): Update.
11727         * modules/wchar (Depends-on): Update.
11728         * MODULES.html.sh (Support for building libraries and executables):
11729         Update.
11730
11731 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11732
11733         Improvements on _Noreturn and related modules.
11734
11735         modules/_Exit-tests: test _Noreturn too
11736         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11737         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11738         (main): Use them.
11739
11740         stdnoreturn, stdnoreturn-tests: remove modules
11741         They're not needed here and a bit premature for use elsewhere.  See
11742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11743         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11744         * tests/test-stdnoreturn.c: Remove files.
11745         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11746         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11747         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11748         and using noreturn.
11749         * modules/openat, modules/sigpipe-die, modules/xalloc:
11750         * modules/xmemdup0, modules/xstrtol:
11751         Remove dependency on stdnoreturn.
11752
11753         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11754         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11755         Reparenthesize to avoid GCC warning.
11756         Support Microsoft's syntax.
11757         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11758
11759         _Noreturn-tests: remove module
11760         * modules/_Noreturn-tests: Remove.
11761         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11762         * tests/test-_Noreturn.c: Remove.
11763         * tests/test-stdnoreturn.c: Merge from the old
11764         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11765
11766 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11767
11768         _Noreturn, stdnoreturn, and related modules.
11769
11770         * top/maint.mk: Adjust to new noreturn support.
11771         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11772         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11773
11774         xalloc: use stdnoreturn.h
11775         * lib/xalloc.h: Include <stdnoreturn.h>.
11776         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11777         * modules/xalloc (Depends-on): Add stdnoreturn.
11778
11779         xstrtol: use stdnoreturn.h
11780         * lib/xstrtol.h: Include <stdnoreturn.h>.
11781         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11782         * modules/xstrtol (Depends-on): Add stdnoreturn.
11783
11784         xmemdup0: use stdnoreturn.h
11785         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11786         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11787         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11788
11789         sigpipe-die: use stdnoreturn.h
11790         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11791         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11792         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11793
11794         openat: use stdnoreturn.h
11795         * lib/openat.h: Include <stdnoreturn.h>.
11796         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11797         * modules/openat (Depends-on): Add stdnoreturn.
11798
11799         * lib/openat-die.c (openat_save_fail): Modernize comment.
11800
11801         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11802
11803         * lib/glthread/thread.h: Modernize comment.
11804
11805         obstack: use _Noreturn
11806         * lib/obstack.c (__attribute__): Remove macro.
11807         (print_and_abort): Use _Noreturn.
11808
11809         c-stack: use _Noreturn
11810         * lib/c-stack.c (die, overflow_handler, segv_handler):
11811         Use _Noreturn rather than __attribute__((noreturn)).
11812
11813         argmatch-tests, exclude_tests: use _Noreturn
11814         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11815         Remove.
11816         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11817
11818         stdlib: use _Noreturn
11819         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11820         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11821         * modules/stdlib (Depends-on): Add _Noreturn.
11822         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11823
11824         stdnoreturn-tests: new module
11825         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11826
11827         stdnoreturn: new module
11828         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11829         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11830
11831         _Noreturn-tests: new module
11832         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11833
11834         _Noreturn: new module
11835         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11836         New section, mentioning it.
11837         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11838
11839         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11840
11841 2011-07-11  Eric Blake  <eblake@redhat.com>
11842
11843         ffs: new module
11844         * modules/ffs: New file.
11845         * m4/ffs.m4: Likewise.
11846         * lib/ffs.c: Likewise.
11847         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11848         * modules/strings (Makefile.am): Substitute witness.
11849         (Depends-on): Add c++defs.
11850         * lib/strings.in.h (ffs): Declare.
11851         * modules/ffs-tests: New test file.
11852         * tests/test-ffs.c: Test new module.
11853         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11854         * doc/posix-functions/ffs.texi (ffs): Likewise.
11855
11856         regex: avoid compiler warning
11857         * lib/regex.c (includes): Include <strings.h>, for use of
11858         strcasecmp in regcomp.c.
11859         Reported by Joachim Schmitz.
11860
11861 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11862
11863         stdint: respect system's intmax_t if INTMAX_MAX
11864         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11865         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11866         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11867         long but int64_t is long long, and where we will clash with the
11868         system intmax_t if we override it.  See
11869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11870         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11871         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11872         similarly for UINTMAX_C.
11873
11874 2011-07-08  Bruno Haible  <bruno@clisp.org>
11875
11876         pthread_sigmask tests: Avoid a compiler warning.
11877         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11878         non-zero.
11879
11880         sigprocmask tests: A better way to avoid a compiler warning.
11881         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11882         (main): Complain if system() returns non-zero.
11883         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11884
11885 2011-07-08  Bruno Haible  <bruno@clisp.org>
11886
11887         pthread_sigmask: Work around IRIX bug.
11888         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11889         bug.
11890         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11891         there may be unblocked pending signals.
11892         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11893
11894 2011-07-08  Bruno Haible  <bruno@clisp.org>
11895
11896         pthread_sigmask: Work around Cygwin bug.
11897         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11898         bug.
11899         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11900         the system's pthread_sigmask function.
11901         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11902
11903 2011-07-08  Bruno Haible  <bruno@clisp.org>
11904
11905         pthread_sigmask: Work around bug in single-threaded implementation.
11906         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11907         FreeBSD, HP-UX, Solaris bug.
11908         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11909         * lib/pthread_sigmask.c: Include <stddef.h>.
11910         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11911         the system's pthread_sigmask function.
11912         * modules/pthread_sigmask (configure.ac): Invoke
11913         gl_PREREQ_PTHREAD_SIGMASK.
11914         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11915         HP-UX, Solaris.
11916
11917 2011-07-08  Eric Blake  <eblake@redhat.com>
11918
11919         test-sigprocmask: avoid compiler warning
11920         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11921         * tests/test-sigprocmask.c (main): Use it to silence warning.
11922         Reported by Jim Meyering.
11923
11924         test-snprintf: avoid compiler warning
11925         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11926         * tests/test-vsnprintf.c (main): Likewise.
11927         Reported by Jim Meyering.
11928
11929 2011-07-08  Bruno Haible  <bruno@clisp.org>
11930
11931         Tests for module 'pthread_sigmask'.
11932         * modules/pthread_sigmask-tests: New file.
11933         * tests/test-pthread_sigmask1.c: New file, based on
11934         tests/test-sigprocmask.c.
11935         * tests/test-pthread_sigmask2.c: New file.
11936
11937 2011-07-08  Jim Meyering  <meyering@redhat.com>
11938
11939         test-getopt.h: avoid warning about an unused variable
11940         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11941
11942 2011-07-07  Jim Meyering  <meyering@redhat.com>
11943
11944         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11945         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11946         now that it no longer contains leading TABs.
11947         Remove unused "url=FIXME" statement.
11948
11949 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11950
11951         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11952         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11953         When gl_THREADLIB is not in use, assume that the POSIX sematics
11954         are desired.  This is better for Emacs, which uses POSIX semantics
11955         on GNUish and/or POSIXish platforms, and does not use threads at
11956         all otherwise.
11957
11958         pthread_sigmask: fix typo when testing for libraries
11959         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11960         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11961
11962 2011-07-08  Eric Blake  <eblake@redhat.com>
11963
11964         fts: introduce FTS_NOATIME
11965         * lib/fts_.h (FTS_NOATIME): New bit flag.
11966         (FTS_OPTIONMASK): Adjust.
11967         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11968         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11969
11970 2011-07-08  Bruno Haible  <bruno@clisp.org>
11971
11972         Tests for module 'thread'.
11973         * modules/thread-tests: New file.
11974         * tests/test-thread_self.c: New file.
11975         * tests/test-thread_create.cc: New file.
11976
11977 2011-07-08  Bruno Haible  <bruno@clisp.org>
11978
11979         thread: Avoid gcc warnings when using gl_thread_self().
11980         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11981         'void *'.
11982         (gl_thread_self_pointer): Update.
11983
11984 2011-07-07  Bruno Haible  <bruno@clisp.org>
11985
11986         signal-c++-tests: Check declaration of pthread_sigmask.
11987         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11988         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11989         $(LIB_PTHREAD_SIGMASK).
11990
11991 2011-07-07  Bruno Haible  <bruno@clisp.org>
11992
11993         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11994         * lib/signal.in.h (pthread_sigmask): Override if
11995         REPLACE_PTHREAD_SIGMASK is 1.
11996         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11997         REPLACE_PTHREAD_SIGMASK.
11998         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11999         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12000         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12001         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12002         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12003
12004 2011-07-07  Bruno Haible  <bruno@clisp.org>
12005
12006         pthread_sigmask: Ensure declaration in <signal.h>.
12007         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12008         include <pthread.h>.
12009         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12010         problem.
12011
12012 2011-07-07  Bruno Haible  <bruno@clisp.org>
12013
12014         pthread_sigmask: Document the module.
12015         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12016
12017 2011-07-07  Bruno Haible  <bruno@clisp.org>
12018
12019         pthread_sigmask: Follow gnulib conventions.
12020         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12021         gl_PTHREAD_SIGMASK.
12022         * modules/pthread_sigmask (configure.ac): Update.
12023
12024 2011-07-07  Bruno Haible  <bruno@clisp.org>
12025
12026         pthread_sigmask: Make declaration C++ safe.
12027         * lib/signal.in.h: In two special conditions, just do an #include_next.
12028         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12029         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12030         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12031         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12032         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12033         not REPLACE_PTHREAD_MASK.
12034         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12035         not REPLACE_PTHREAD_MASK.
12036         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12037
12038 2011-07-07  Bruno Haible  <bruno@clisp.org>
12039
12040         pthread_sigmask: Fix return value.
12041         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12042         * lib/pthread_sigmask.c: New file.
12043         * modules/pthread_sigmask (Files): Add it.
12044         (configure.ac): Invoke AC_LIBOBJ.
12045
12046 2011-07-07  Eric Blake  <eblake@redhat.com>
12047
12048         getopt: more portable argv creation
12049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12050         const, use char arrays rather than strings.
12051         Suggested by Paul Eggert.
12052
12053 2011-07-07  Bruno Haible  <bruno@clisp.org>
12054
12055         Tests for module 'sigprocmask'.
12056         * modules/sigprocmask-tests: New file.
12057         * tests/test-sigprocmask.c: New file.
12058
12059 2011-07-07  Bruno Haible  <bruno@clisp.org>
12060
12061         float tests: Tweak.
12062         * tests/test-float.c (main): Tweak skip message.
12063
12064 2011-07-07  Eric Blake  <eblake@redhat.com>
12065
12066         getopt: avoid compiler warning during configure
12067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12068         assigning string literals to non-const pointer.
12069
12070         getopt-gnu: avoid crash in glibc getopt
12071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12072         * tests/test-getopt.h (test_getopt): Enhance test.
12073         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12074         * doc/posix-functions/getopt.texi (getopt): Document it.
12075         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12076         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12077         Likewise.
12078
12079 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12080
12081         getopt: handle W; without long options in getopt [BZ #12922]
12082         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12083         but no long options are defined, just return 'W'.
12084
12085 2011-07-07  Bruno Haible  <bruno@clisp.org>
12086
12087         Avoid literal tabs.
12088         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12089         variable containing a tab instead of a literal tab.
12090         Reported by Jim Meyering.
12091
12092 2011-07-07  Bruno Haible  <bruno@clisp.org>
12093
12094         Comments.
12095         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12096
12097 2011-07-06  Bruno Haible  <bruno@clisp.org>
12098
12099         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12100         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12101         <winsock2.h>.
12102         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12103         lib/sys_socket.in.h.
12104         (close, gethostname): Hide declarations from <winsock2.h>.
12105         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12106         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12107         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12108         (select): Don't override if gnulib's <sys/select.h> was already
12109         included.
12110         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12111         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12112         setsockopt, shutdown, select): Tweak indentation.
12113
12114 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12115
12116         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12117         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12118         in an application that does not use the sys_select module.
12119
12120 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12121
12122         poll: do not return 0 on timeout=-1
12123         * lib/poll.c: Loop with yield if no events occured
12124
12125 2011-07-06  Eric Blake  <eblake@redhat.com>
12126
12127         pthread_sigmask: always replace when not using pthread
12128         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12129         replacement when using some threading other than pthread.  Fix
12130         logic bug.
12131
12132 2011-07-06  Bruno Haible  <bruno@clisp.org>
12133
12134         Comments.
12135         * m4/printf.m4: Update comments about mingw.
12136
12137 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12138
12139         sys_select: define sigset_t more portably
12140         * lib/sys_select.in.h: Always include <sys/types.h>, since
12141         we now need sigset_t and mingw defines it there.
12142         Include <signal.h> before split inclusion guard, to avoid
12143         mishaps on Solaris, whose <signal.h> eventually includes us.
12144         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12145         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12146         which come from ...
12147         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12148         gl_CHECK_TYPE_SIGSET_T.
12149         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12150         does the real work.
12151         * modules/sys_select (Depends-on): Add 'signal'.
12152
12153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12154         Suggested by Bruno Haible.
12155
12156         pselect: Use pthread_sigmask, not sigprocmask.
12157         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12158         multithreaded apps better than sigprocmask does.
12159         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12160         sigprocmask directly.
12161
12162 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12163
12164         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12165         Don't #undef,  since we don't need any underlying pselect.
12166         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12167         (Depends-on): Add select.
12168         (Link): Add $(LIBSOCKET).
12169         These changes suggested by Bruno Haible.
12170
12171         pselect: document better
12172         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12173         * doc/posix-functions/pselect.texi (pselect): Document new module.
12174
12175         pthread_sigmask: new module
12176         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12177         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12178         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12179         This is done only as a macro; I don't know how well that'll
12180         work for C++.  Move <sys/types.h> include before the include_next,
12181         to avoid mishap on Solaris.
12182         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12183         * modules/signal (Makefile.am): Substitute the check's results.
12184         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12185
12186         test-pselect: new module
12187         * modules/pselect-tests, tests/test-pselect.c: New files.
12188         * tests/test-select.c, tests/test-sys_select-c++.cc:
12189         If TEST_PSELECT is defined, test pselect instead of testing select.
12190
12191         * tests/test-sys_select.c (sigset_t): Test for it, too.
12192         Suggested by Bruno Haible.
12193
12194 2011-07-05  Eric Blake  <eblake@redhat.com>
12195
12196         snprintf: guarantee %1$d, for libintl
12197         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12198         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12199         * doc/posix-functions/snprintf.texi (snprintf): Update.
12200         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12201         * tests/test-snprintf.c (main): Enhance test.
12202         * tests/test-vsnprintf.c (main): Likewise.
12203
12204 2011-07-05  Jim Meyering  <meyering@redhat.com>
12205
12206         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12207         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12208         per Bruno's request, to accommodate this idiom (no space after "#")
12209         even when the function is inside an #if block:
12210         char *
12211         gets (char *s)
12212         #undef gets
12213         {
12214           ...
12215         }
12216
12217 2011-07-04  Jim Meyering  <meyering@redhat.com>
12218
12219         maint: indent with spaces, not TABs, and add a rule to check this
12220         * tests/test-userspec.c: Indent with spaces, not TABs.
12221         * tests/test-argp.c: Likewise.
12222         * tests/test-c-stack2.sh: Likewise.
12223         * tests/test-parse-duration.sh: Likewise
12224         * m4/strtod.m4: Likewise.
12225         * m4/alloca.m4: Likewise.
12226         * m4/pselect.m4: Likewise.
12227         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12228
12229 2011-07-03  Jim Meyering  <meyering@redhat.com>
12230
12231         maint.mk: correct omissions in prohibit_argmatch_without_use check
12232         This rule would mistakenly report that argmatch.h is included without
12233         use even when both the argmatch and invalid_arg macro were used.
12234         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12235         of argmatch and invalid_arg.
12236
12237 2011-07-03  Bruno Haible  <bruno@clisp.org>
12238
12239         Comments about EINTR.
12240         * lib/safe-read.h: Explain the purpose of this module.
12241         * lib/safe-write.h: Likewise.
12242         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12243         module.
12244         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12245         module.
12246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12247
12248 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12249
12250         xnanosleep: Rewrite to use new dtotimespec module.
12251         It has the conversion code that used to be in xnanosleep.
12252         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12253         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12254         (TIME_T_MAX): Remove.
12255         (xnanosleep): Rewrite in terms of dtotimespec.
12256         * modules/xnanosleep (Depends-on): Add dtotimespec.
12257         Remove intprops, stdbool.
12258
12259         timespec-add, timespec-sub: new modules
12260         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12261         * lib/timespec-add.c, lib/timespec-sub.c:
12262         * modules/timespec-add, modules/timespec-sub: New files.
12263
12264         dtotimespec: new module
12265         * lib/timespec.h (dtotimespec): New decl.
12266         * lib/dtotimespec.c, modules/dtotimespec: New files.
12267
12268         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12269
12270         pselect: new module
12271         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12272         (pselect): New decls.
12273         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12274         since the standard pselect decl uses 'restrict'.
12275         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12276         HAVE_PSELECT, REPLACE_PSELECT.
12277         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12278         HAVE_PSELECT, REPLACE_PSELECT.
12279         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12280
12281         sys_select: don't depend on sys_socket
12282         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12284         This fix works on GNU and GNU-like platforms, but has not been tested
12285         on native Windows.
12286         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12287         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12288         gl_HEADER_SYS_SOCKET.
12289         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12290         gl_PREREQ_SYS_H_WINSOCK2.
12291
12292 2011-06-29  Eric Blake  <eblake@redhat.com>
12293
12294         pipe2: fix C89 compile problem
12295         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12296         Reported by Bruno Haible.
12297
12298         pipe, pipe2: don't corrupt fd on error
12299         * lib/pipe.c (pipe): Leave fd unchanged on error.
12300         * lib/pipe2.c (pipe2): Likewise.
12301         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12302         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12303
12304 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12305
12306         mmap-anon: do not use regular expressions inadvertently
12307         * m4/mmap-anon.m4: Remove trailing period from strings sought
12308         in the output.
12309
12310 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12311
12312         nanosleep: fix integer overflow problem
12313         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12314         arithmetic wraps around on overflow.
12315
12316         nanosleep: simplify carrying
12317         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12318         first call to the underyling nanosleep, not for the last one.
12319         This doesn't fix any bugs, but it simplifies the computation of
12320         the remaining delay.  Found while auditing integer overflow issues.
12321
12322         dup2: remove test for existence of fcntl
12323         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12324         "#if HAVE_FCNTL", in the configure-time test program.
12325         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12326         and therefore speeds up "configure" a bit.  Found while
12327         adding the dup2 module to Emacs.
12328
12329 2011-06-24  Eric Blake  <eblake@redhat.com>
12330
12331         maint.mk: enhance useless header checks
12332         * top/maint.mk (_sc_header_without_use): Check both include
12333         styles.
12334         (sc_prohibit_assert_without_use)
12335         (sc_prohibit_close_stream_without_use)
12336         (sc_prohibit_getopt_without_use)
12337         (sc_prohibit_quotearg_without_use)
12338         (sc_prohibit_quote_without_use)
12339         (sc_prohibit_long_options_without_use)
12340         (sc_prohibit_inttostr_without_use)
12341         (sc_prohibit_ignore_value_without_use)
12342         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12343         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12344         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12345         (sc_prohibit_hash_pjw_without_use)
12346         (sc_prohibit_safe_read_without_use)
12347         (sc_prohibit_argmatch_without_use)
12348         (sc_prohibit_canonicalize_without_use)
12349         (sc_prohibit_root_dev_ino_without_use)
12350         (sc_prohibit_openat_without_use)
12351         (sc_prohibit_c_ctype_without_use)
12352         (sc_prohibit_signal_without_use)
12353         (sc_prohibit_stdio--_without_use)
12354         (sc_prohibit_stdio-safer_without_use)
12355         (sc_prohibit_strings_without_use)
12356         (sc_prohibit_intprops_without_use)
12357         (sc_prohibit_stddef_without_use)
12358         (sc_prohibit_xfreopen_without_use): Update clients.
12359
12360 2011-06-24  Jim Meyering  <meyering@redhat.com>
12361
12362         syntax-check: keep one maint.mk rule in sync with its header
12363         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12364         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12365         I prefer to avoid temporary files here, so use <(...), but that
12366         is not supported by /bin/sh, so...
12367         (SHELL): Define to /bin/bash.
12368
12369 2011-06-24  Eric Blake  <eblake@redhat.com>
12370
12371         maint.mk: update sc_prohibit_intprops_without_use
12372         * top/maint.mk (_intprops_names): Match recent changes.
12373
12374 2011-06-24  Bruno Haible  <bruno@clisp.org>
12375
12376         strerror-override: No-op tweak.
12377         * lib/strerror-override.h (strerror_override): Reorder conditions,
12378         for consistency with lib/strerror-override.c.
12379
12380 2011-06-23  Eric Blake  <eblake@redhat.com>
12381
12382         maint.mk: test further PATH_MAX issues
12383         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12384         (sc_prohibit_path_max_allocation): ...and also test alloca.
12385         Suggested by Jim Meyering.
12386
12387 2011-06-22  Eric Blake  <eblake@redhat.com>
12388
12389         maint.mk: add syntax-check to avoid char[PATH_MAX]
12390         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12391
12392         stat: be robust to PATH_MAX definition
12393         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12394         * modules/stat (Depends-on): Add verify.
12395
12396         link: work around IRIX bug
12397         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12398         * lib/link.c (rpl_link): Work around it.
12399         * tests/test-link.h (test_link): Enhance test.
12400         * doc/posix-functions/link.texi (link): Document the bug.
12401
12402         getopt: silence clang warning
12403         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12404         dereference.
12405         Reported by Gustavo Martin Domato.
12406
12407 2011-06-22  Jim Meyering  <meyering@redhat.com>
12408
12409         bootstrap: do not insert a blank line into each .gitignore file
12410         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12411
12412 2011-06-21  Eric Blake  <eblake@redhat.com>
12413
12414         perror: test for output mismatch
12415         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12416         perror on IRIX.
12417
12418         strerror_r: fix OpenBSD behavior on out-of-range
12419         * lib/strerror_r.c (strerror_r): Always use maximal string.
12420         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12421
12422         strerror_r: fix OpenBSD behavior on 0
12423         * lib/strerror-override.c (strerror_override): Also override 0
12424         when needed.
12425         * lib/strerror-override.h (strerror_override): Likewise.
12426         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12427         earlier.
12428         * lib/strerror_r.c (strerror_r): Likewise.
12429         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12430         behavior...
12431         (gl_FUNC_STRERROR_0): ...into new macro.
12432         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12433         is overridden.
12434         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12435         * modules/strerror-override (Files): Add strerror.m4.
12436         (configure.ac): Also provide override for 0 when needed.
12437         * doc/posix-functions/strerror.texi (strerror): Document this.
12438         * doc/posix-functions/perror.texi (perror): Likewise.
12439
12440         perror: adjust array size
12441         * modules/perror (Depends-on): Add strerror-override.
12442         * lib/perror.c (perror): Use it to avoid magic number.
12443
12444         strerror-override: reduce size
12445         * lib/strerror-override.c (strerror_override): Use fewer lines.
12446
12447 2011-06-20  Bruno Haible  <bruno@clisp.org>
12448
12449         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12450         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12451
12452 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12453
12454         alloca: port to compilers that can optimize like GCC 4.6.0
12455         * lib/alloca.c (find_stack_direction): New signature, taken from
12456         Autoconf git.  This works with GCC 4.6.0.  This code should never
12457         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12458         be used with other compilers that optimize as well as GCC 4.6.0 does.
12459         (alloca): Adjust to new signature.
12460         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12461         New macro, which patches Autoconf in a similar way.
12462
12463         c-stack: stop worrying about stack direction
12464         * lib/c-stack.c (find_stack_direction): Remove.
12465         (segv_handler): Don't worry about stack direction growth, as it's
12466         too much of a pain to configure this correctly, given how compilers
12467         are optimizing-away our stack-growth detection code.  Instead, assume
12468         that any access to just before or just after the stack is OK.
12469         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12470         Don't require AC_FUNC_ALLOCA; no longer needed.
12471
12472 2011-06-20  Eric Blake  <eblake@redhat.com>
12473
12474         test-stat: don't allocate PATH_MAX bytes
12475         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12476         PATH_MAX-sized buffer.
12477         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12478         * modules/stat-tests (Depends-on): Likewise.
12479         * tests/test-fstatat.c (includes): Drop pathmax.h.
12480         * tests/test-stat.c (includes): Likewise.
12481         Reported by Bruno Haible.
12482
12483 2011-06-20  Bruno Haible  <bruno@clisp.org>
12484
12485         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12486         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12487         * lib/float.c: New file.
12488         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12489         REPLACE_FLOAT_LDBL.
12490         * modules/float (Files): Add lib/float.c.
12491         (configure.ac): Invoke AC_LIBOBJ.
12492         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12493
12494 2011-06-20  Bruno Haible  <bruno@clisp.org>
12495
12496         Tests for module 'float'.
12497         * modules/float-tests: New file.
12498         * tests/test-float.c: New file.
12499
12500 2011-06-19  Bruno Haible  <bruno@clisp.org>
12501
12502         isinf: Coding style.
12503         * lib/isinf.c: Use GNU coding style.
12504
12505 2011-06-19  Bruno Haible  <bruno@clisp.org>
12506
12507         linkat test: Avoid test failure on AIX 7.1.
12508         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12509         * tests/test-link.h (test_link): Likewise.
12510
12511 2011-06-19  Bruno Haible  <bruno@clisp.org>
12512
12513         pread test: Avoid test failure on OpenBSD 4.9.
12514         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12515
12516 2011-06-19  Bruno Haible  <bruno@clisp.org>
12517
12518         sprintf-posix: Fix test failure on AIX 7.1.
12519         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12520         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12521         on AIX.
12522         * doc/posix-functions/fprintf.texi: Likewise.
12523         * doc/posix-functions/printf.texi: Likewise.
12524         * doc/posix-functions/snprintf.texi: Likewise.
12525         * doc/posix-functions/sprintf.texi: Likewise.
12526         * doc/posix-functions/vdprintf.texi: Likewise.
12527         * doc/posix-functions/vfprintf.texi: Likewise.
12528         * doc/posix-functions/vprintf.texi: Likewise.
12529         * doc/posix-functions/vsnprintf.texi: Likewise.
12530         * doc/posix-functions/vsprintf.texi: Likewise.
12531
12532 2011-06-19  Bruno Haible  <bruno@clisp.org>
12533
12534         roundl-ieee: Fix test failure on AIX 7.1.
12535         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12536         * doc/posix-functions/roundl.texi: Mention problem with negative
12537         arguments.
12538
12539 2011-06-19  Bruno Haible  <bruno@clisp.org>
12540
12541         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12542         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12543         * doc/posix-functions/round.texi: Mention problem with negative
12544         arguments.
12545         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12546
12547 2011-06-19  Bruno Haible  <bruno@clisp.org>
12548
12549         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12550         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12551         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12552         * doc/posix-functions/roundf.texi: Mention problem with negative
12553         arguments.
12554         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12555
12556 2011-06-19  Bruno Haible  <bruno@clisp.org>
12557
12558         ceilf-ieee: Work around bug on MacOS X 10.5.
12559         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12560
12561         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12562         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12563         IEEE compliant, avoid compiler optimizations.
12564         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12565         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12566         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12567         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12568         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12569         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12570         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12571         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12572         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12573         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12574
12575 2011-06-19  Bruno Haible  <bruno@clisp.org>
12576
12577         ceilf-ieee: Work around bug on AIX 7.1.
12578         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12579         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12580
12581 2011-06-19  Bruno Haible  <bruno@clisp.org>
12582
12583         ceil-ieee: Work around bug on AIX 7.1.
12584         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12585         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12586
12587 2011-06-18  Bruno Haible  <bruno@clisp.org>
12588
12589         fsync test: Avoid test failure on MacOS X and AIX.
12590         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12591         EINVAL.
12592
12593 2011-06-18  Bruno Haible  <bruno@clisp.org>
12594
12595         openat, fdopendir tests: Fix link errors.
12596         * modules/openat-tests (Depends-on): Add progname.
12597         * modules/fdopendir-tests (Depends-on): Likewise.
12598         * tests/test-fchownat.c: Include progname.h.
12599         (main): Call set_program_name.
12600         * tests/test-fstatat.c: Include progname.h.
12601         (main): Call set_program_name.
12602         * tests/test-mkdirat.c: Include progname.h.
12603         (main): Call set_program_name.
12604         * tests/test-openat.c: Include progname.h.
12605         (main): Call set_program_name.
12606         * tests/test-unlinkat.c: Include progname.h.
12607         (main): Call set_program_name.
12608         * tests/test-fdopendir.c: Include progname.h.
12609         (main): Call set_program_name.
12610
12611 2011-06-18  Bruno Haible  <bruno@clisp.org>
12612
12613         Doc update.
12614         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12615         HP-UX.
12616         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12617
12618 2011-06-18  Bruno Haible  <bruno@clisp.org>
12619
12620         getcwd tests: Avoid compilation error on HP-UX 11.31.
12621         * modules/getcwd-tests (Depends-on): Add pathmax.
12622         * tests/test-getcwd.c: Include pathmax.h.
12623
12624 2011-06-18  Bruno Haible  <bruno@clisp.org>
12625
12626         isfinite, isinf: Fix link error on AIX 6 and 7.
12627         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12628         needed, also test the macro with a 'float' argument.
12629         * m4/isinf.m4 (gl_ISINF): Likewise.
12630
12631 2011-06-18  Bruno Haible  <bruno@clisp.org>
12632
12633         getloadavg: Don't clobber LIBS. Regression from previous commit.
12634         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12635         AC_CHECK_LIB from here...
12636         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12637         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12638         gl_func_getloadavg_done.
12639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12640
12641 2011-06-18  Bruno Haible  <bruno@clisp.org>
12642
12643         clean-temp: Improve documentation.
12644         * lib/clean-temp.h: Explain better how to use this module.
12645         Reported by John Darrington <john@darrington.wattle.id.au>.
12646
12647 2011-06-17  Bruno Haible  <bruno@clisp.org>
12648
12649         pread, pwrite: Avoid cc warning on AIX.
12650         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12651         (pwrite): Likewise.
12652
12653 2011-06-17  Bruno Haible  <bruno@clisp.org>
12654
12655         spawn-pipe tests: Fix link error.
12656         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12657         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12658
12659 2011-06-17  Bruno Haible  <bruno@clisp.org>
12660
12661         Tests: Remove unnecessary dependency.
12662         * modules/canonicalize-tests (Depends-on): Remove progname.
12663         * modules/chown-tests (Depends-on): Likewise.
12664         * modules/dirname-tests (Depends-on): Likewise.
12665         * modules/fdopendir-tests (Depends-on): Likewise.
12666         * modules/fdutimensat-tests (Depends-on): Likewise.
12667         * modules/hash-tests (Depends-on): Likewise.
12668         * modules/lchown-tests (Depends-on): Likewise.
12669         * modules/linkat-tests (Depends-on): Likewise.
12670         * modules/renameat-tests (Depends-on): Likewise.
12671         * modules/spawn-pipe-tests (Depends-on): Likewise.
12672         * modules/utimensat-tests (Depends-on): Likewise.
12673
12674 2011-06-17  Bruno Haible  <bruno@clisp.org>
12675
12676         spawn-pipe tests: Fix link error.
12677         * tests/test-spawn-pipe-child.c: Undefine fflush.
12678
12679 2011-06-17  Bruno Haible  <bruno@clisp.org>
12680
12681         Fix tests link errors.
12682         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12683         * modules/chown-tests (Makefile.am): Don't link test-chown with
12684         LIBINTL.
12685         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12686         LIBINTL.
12687         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12688         LIBINTL.
12689         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12690         LIBINTL.
12691
12692 2011-06-16  Bruno Haible  <bruno@clisp.org>
12693
12694         crypto/gc-sha1: Fix recent regression.
12695         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12696         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12697
12698         crypto/gc-md5: Fix recent regression.
12699         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12700
12701         crypto/gc-md4: Fix recent regression.
12702         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12703         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12704
12705         crypto/gc-arctwo: Fix recent regression.
12706         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12707         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12708
12709         crypto/gc-rijndael: Fix recent regression.
12710         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12711         (configure.ac): Invoke AC_LIBOBJ here.
12712         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12713         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12714
12715         crypto/gc-hmac-sha1: Fix recent regression.
12716         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12717         (configure.ac): Invoke AC_LIBOBJ here.
12718         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12719         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12720
12721         crypto/gc-hmac-md5: Fix recent regression.
12722         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12723         (configure.ac): Invoke AC_LIBOBJ here.
12724         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12725         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12726
12727         crypto/gc-des: Fix recent regression.
12728         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12729         (configure.ac): Invoke AC_LIBOBJ here.
12730         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12731         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12732
12733         crypto/gc-arcfour: Fix recent regression.
12734         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12735         (configure.ac): Invoke AC_LIBOBJ here.
12736         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12738
12739 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12740
12741         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12742         After the 2011-05-21 change, this macro requires
12743         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12744         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12745
12746 2011-06-16  Bruno Haible  <bruno@clisp.org>
12747
12748         fprintftime: Move AC_LIBOBJ invocations to module description.
12749         * m4/fprintftime.m4: Remove file.
12750         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12751         (configure.ac): Remove gl_FPRINTFTIME call.
12752         (Makefile.am): Augment lib_SOURCES.
12753         Reported by Jim Meyering.
12754
12755 2011-06-16  Bruno Haible  <bruno@clisp.org>
12756
12757         tmpfile-safer: Finish 2011-05-23 commit.
12758         * m4/stdio-safer.m4: Really remove file.
12759         Reported by Jim Meyering.
12760
12761 2011-06-16  Bruno Haible  <bruno@clisp.org>
12762
12763         syntax-check: Fix typo.
12764         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12765         printf-posix.m4.
12766         Reported by Jim Meyering.
12767
12768 2011-06-13  Jim Meyering  <meyering@redhat.com>
12769
12770         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12771         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12772
12773 2011-05-23  Bruno Haible  <bruno@clisp.org>
12774
12775         yesno: Move AC_LIBOBJ invocations to module description.
12776         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12777         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12778
12779 2011-05-23  Bruno Haible  <bruno@clisp.org>
12780
12781         xstrtol: Move AC_LIBOBJ invocations to module description.
12782         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12783         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12784
12785 2011-05-23  Bruno Haible  <bruno@clisp.org>
12786
12787         xstrtold: Move AC_LIBOBJ invocations to module description.
12788         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12789         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12790
12791 2011-05-23  Bruno Haible  <bruno@clisp.org>
12792
12793         xstrtod: Move AC_LIBOBJ invocations to module description.
12794         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12795         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12796
12797 2011-05-23  Bruno Haible  <bruno@clisp.org>
12798
12799         xnanosleep: Move AC_LIBOBJ invocations to module description.
12800         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12801         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12802
12803 2011-05-23  Bruno Haible  <bruno@clisp.org>
12804
12805         xgetcwd: Move AC_LIBOBJ invocations to module description.
12806         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12807         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12808
12809 2011-05-23  Bruno Haible  <bruno@clisp.org>
12810
12811         xalloc: Move AC_LIBOBJ invocations to module description.
12812         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12813         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12814
12815 2011-05-23  Bruno Haible  <bruno@clisp.org>
12816
12817         write-any-file: Move AC_LIBOBJ invocations to module description.
12818         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12819         invocation.
12820         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12821
12822 2011-05-23  Bruno Haible  <bruno@clisp.org>
12823
12824         utimens: Move AC_LIBOBJ invocations to module description.
12825         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12826         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12827
12828 2011-05-23  Bruno Haible  <bruno@clisp.org>
12829
12830         utimecmp: Move AC_LIBOBJ invocations to module description.
12831         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12832         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12833
12834 2011-05-23  Bruno Haible  <bruno@clisp.org>
12835
12836         userspec: Move AC_LIBOBJ invocations to module description.
12837         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12838         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12839
12840 2011-05-23  Bruno Haible  <bruno@clisp.org>
12841
12842         unlinkdir: Move AC_LIBOBJ invocations to module description.
12843         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12844         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12845
12846 2011-05-23  Bruno Haible  <bruno@clisp.org>
12847
12848         unistd-safer: Move AC_LIBOBJ invocations to module description.
12849         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12850         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12851
12852 2011-05-23  Bruno Haible  <bruno@clisp.org>
12853
12854         tempname: Move AC_LIBOBJ invocations to module description.
12855         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12856         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12857
12858 2011-05-23  Bruno Haible  <bruno@clisp.org>
12859
12860         strftime: Move AC_LIBOBJ invocations to module description.
12861         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12862         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12863
12864 2011-05-23  Bruno Haible  <bruno@clisp.org>
12865
12866         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12867         * m4/stdlib-safer.m4: Remove file.
12868         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12869         (configure.ac): Remove gl_STDLIB_SAFER call.
12870         (Makefile.am): Augment lib_SOURCES.
12871
12872 2011-05-23  Bruno Haible  <bruno@clisp.org>
12873
12874         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12875         * m4/stdio-safer.m4: Remove file.
12876         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12877         (configure.ac): Remove gl_TMPFILE_SAFER call.
12878         (Makefile.am): Augment lib_SOURCES.
12879
12880 2011-05-23  Bruno Haible  <bruno@clisp.org>
12881
12882         popen-safer: Move AC_LIBOBJ invocations to module description.
12883         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12884         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12885         (configure.ac): Remove gl_POPEN_SAFER call.
12886         (Makefile.am): Augment lib_SOURCES.
12887
12888 2011-05-23  Bruno Haible  <bruno@clisp.org>
12889
12890         freopen-safer: Move AC_LIBOBJ invocations to module description.
12891         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12892         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12893         (configure.ac): Remove gl_FREOPEN_SAFER call.
12894         (Makefile.am): Augment lib_SOURCES.
12895
12896 2011-05-23  Bruno Haible  <bruno@clisp.org>
12897
12898         fopen-safer: Move AC_LIBOBJ invocations to module description.
12899         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12900         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12901         (configure.ac): Remove gl_FOPEN_SAFER call.
12902         (Makefile.am): Augment lib_SOURCES.
12903
12904 2011-05-23  Bruno Haible  <bruno@clisp.org>
12905
12906         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12907         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12908         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12909
12910 2011-05-23  Bruno Haible  <bruno@clisp.org>
12911
12912         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12913         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12914         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12915
12916 2011-05-23  Bruno Haible  <bruno@clisp.org>
12917
12918         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12919         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12920         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12921
12922 2011-05-23  Bruno Haible  <bruno@clisp.org>
12923
12924         settime: Move AC_LIBOBJ invocations to module description.
12925         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12926         * modules/settime (Makefile.am): Augment lib_SOURCES.
12927
12928 2011-05-23  Bruno Haible  <bruno@clisp.org>
12929
12930         savedir: Move AC_LIBOBJ invocations to module description.
12931         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12932         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12933
12934 2011-05-23  Bruno Haible  <bruno@clisp.org>
12935
12936         save-cwd: Move AC_LIBOBJ invocations to module description.
12937         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12938         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12939
12940 2011-05-23  Bruno Haible  <bruno@clisp.org>
12941
12942         same: Move AC_LIBOBJ invocations to module description.
12943         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12944         * modules/same (Makefile.am): Augment lib_SOURCES.
12945
12946 2011-05-23  Bruno Haible  <bruno@clisp.org>
12947
12948         safe-write: Move AC_LIBOBJ invocations to module description.
12949         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12950         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12951         instead of gl_SAFE_WRITE.
12952         (Makefile.am): Augment lib_SOURCES.
12953
12954 2011-05-23  Bruno Haible  <bruno@clisp.org>
12955
12956         safe-read: Move AC_LIBOBJ invocations to module description.
12957         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12958         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12959         of gl_SAFE_READ.
12960         (Makefile.am): Augment lib_SOURCES.
12961
12962 2011-05-23  Bruno Haible  <bruno@clisp.org>
12963
12964         safe-alloc: Move AC_LIBOBJ invocations to module description.
12965         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12966         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12967
12968 2011-05-23  Bruno Haible  <bruno@clisp.org>
12969
12970         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12971         * m4/rijndael.m4: Remove file.
12972         * modules/crypto/rijndael (Files): Remove it.
12973         (configure.ac): Remove gl_RIJNDAEL call.
12974         (Makefile.am): Augment lib_SOURCES.
12975
12976 2011-05-23  Bruno Haible  <bruno@clisp.org>
12977
12978         readtokens: Move AC_LIBOBJ invocations to module description.
12979         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12980         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12981
12982 2011-05-23  Bruno Haible  <bruno@clisp.org>
12983
12984         read-file: Move AC_LIBOBJ invocations to module description.
12985         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12986         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12987         of gl_FUNC_READ_FILE.
12988         (Makefile.am): Augment lib_SOURCES.
12989
12990 2011-05-23  Bruno Haible  <bruno@clisp.org>
12991
12992         quotearg: Move AC_LIBOBJ invocations to module description.
12993         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12994         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12995
12996 2011-05-23  Bruno Haible  <bruno@clisp.org>
12997
12998         quote: Move AC_LIBOBJ invocations to module description.
12999         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13000         * modules/quote (Makefile.am): Augment lib_SOURCES.
13001
13002 2011-05-23  Bruno Haible  <bruno@clisp.org>
13003
13004         posixver: Move AC_LIBOBJ invocations to module description.
13005         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13006         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13007
13008 2011-05-23  Bruno Haible  <bruno@clisp.org>
13009
13010         posixtm: Move AC_LIBOBJ invocations to module description.
13011         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13012         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13013
13014 2011-05-23  Bruno Haible  <bruno@clisp.org>
13015
13016         physmem: Move AC_LIBOBJ invocations to module description.
13017         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13018         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13019
13020 2011-05-23  Bruno Haible  <bruno@clisp.org>
13021
13022         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13023         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13024         invocation.
13025         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13026
13027 2011-05-23  Bruno Haible  <bruno@clisp.org>
13028
13029         mpsort: Move AC_LIBOBJ invocations to module description.
13030         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13031         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13032
13033 2011-05-23  Bruno Haible  <bruno@clisp.org>
13034
13035         modechange: Move AC_LIBOBJ invocations to module description.
13036         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13037         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13038
13039 2011-05-23  Bruno Haible  <bruno@clisp.org>
13040
13041         mkdir-p: Move AC_LIBOBJ invocations to module description.
13042         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13043         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13044
13045 2011-05-23  Bruno Haible  <bruno@clisp.org>
13046
13047         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13048         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13049         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13050
13051 2011-05-23  Bruno Haible  <bruno@clisp.org>
13052
13053         mgetgroups: Move AC_LIBOBJ invocations to module description.
13054         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13055         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13056
13057 2011-05-23  Bruno Haible  <bruno@clisp.org>
13058
13059         memxor: Move AC_LIBOBJ invocations to module description.
13060         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13061         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13062
13063 2011-05-23  Bruno Haible  <bruno@clisp.org>
13064
13065         memcoll: Move AC_LIBOBJ invocations to module description.
13066         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13067         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13068
13069 2011-05-23  Bruno Haible  <bruno@clisp.org>
13070
13071         memcasecmp: Move AC_LIBOBJ invocations to module description.
13072         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13073         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13074
13075 2011-05-23  Bruno Haible  <bruno@clisp.org>
13076
13077         crypto/md5: Move AC_LIBOBJ invocations to module description.
13078         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13079         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13080
13081 2011-05-23  Bruno Haible  <bruno@clisp.org>
13082
13083         crypto/md4: Move AC_LIBOBJ invocations to module description.
13084         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13085         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13086
13087 2011-05-23  Bruno Haible  <bruno@clisp.org>
13088
13089         crypto/md2: Move AC_LIBOBJ invocations to module description.
13090         * m4/md2.m4: Remove file.
13091         * modules/crypto/md2 (Files): Remove it.
13092         (configure.ac): Remove gl_MD2 call.
13093         (Makefile.am): Augment lib_SOURCES.
13094
13095 2011-05-23  Bruno Haible  <bruno@clisp.org>
13096
13097         long-options: Move AC_LIBOBJ invocations to module description.
13098         * m4/long-options.m4: Remove file.
13099         * modules/long-options (Files): Remove it.
13100         (configure.ac): Remove gl_LONG_OPTIONS call.
13101         (Makefile.am): Augment lib_SOURCES.
13102
13103 2011-05-23  Bruno Haible  <bruno@clisp.org>
13104
13105         i-ring: Move AC_LIBOBJ invocations to module description.
13106         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13107         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13108
13109 2011-05-23  Bruno Haible  <bruno@clisp.org>
13110
13111         idcache: Move AC_LIBOBJ invocations to module description.
13112         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13113         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13114
13115 2011-05-23  Bruno Haible  <bruno@clisp.org>
13116
13117         human: Move AC_LIBOBJ invocations to module description.
13118         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13119         * modules/human (Makefile.am): Augment lib_SOURCES.
13120
13121 2011-05-23  Bruno Haible  <bruno@clisp.org>
13122
13123         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13124         * m4/hmac-sha1.m4: Remove file.
13125         * modules/crypto/hmac-sha1 (Files): Remove it.
13126         (configure.ac): Remove gl_HMAC_SHA1 call.
13127         (Makefile.am): Augment lib_SOURCES.
13128
13129 2011-05-23  Bruno Haible  <bruno@clisp.org>
13130
13131         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13132         * m4/hmac-md5.m4: Remove file.
13133         * modules/crypto/hmac-md5 (Files): Remove it.
13134         (configure.ac): Remove gl_HMAC_MD5 call.
13135         (Makefile.am): Augment lib_SOURCES.
13136
13137 2011-05-23  Bruno Haible  <bruno@clisp.org>
13138
13139         hash: Move AC_LIBOBJ invocations to module description.
13140         * m4/hash.m4: Remove file.
13141         * modules/hash (Files): Remove it.
13142         (configure.ac): Remove gl_HASH call.
13143         (Makefile.am): Augment lib_SOURCES.
13144
13145 2011-05-23  Bruno Haible  <bruno@clisp.org>
13146
13147         hard-locale: Move AC_LIBOBJ invocations to module description.
13148         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13149         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13150
13151 2011-05-23  Bruno Haible  <bruno@clisp.org>
13152
13153         getugroups: Move AC_LIBOBJ invocations to module description.
13154         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13155         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13156
13157 2011-05-23  Bruno Haible  <bruno@clisp.org>
13158
13159         gettime: Move AC_LIBOBJ invocations to module description.
13160         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13161         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13162
13163 2011-05-23  Bruno Haible  <bruno@clisp.org>
13164
13165         getndelim2: Move AC_LIBOBJ invocations to module description.
13166         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13167         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13168
13169 2011-05-23  Bruno Haible  <bruno@clisp.org>
13170
13171         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13172         * m4/gc-pbkdf2-sha1.m4: Remove file.
13173         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13174         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13175         (Makefile.am): Augment lib_SOURCES.
13176
13177 2011-05-23  Bruno Haible  <bruno@clisp.org>
13178
13179         fts: Move AC_LIBOBJ invocations to module description.
13180         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13181         * modules/fts (configure.ac): ... to here.
13182
13183 2011-05-23  Bruno Haible  <bruno@clisp.org>
13184
13185         file-type: Move AC_LIBOBJ invocations to module description.
13186         * m4/file-type.m4: Remove file.
13187         * modules/file-type (Files): Remove it.
13188         (configure.ac): Remove gl_FILE_TYPE call.
13189         (Makefile.am): Augment lib_SOURCES.
13190
13191 2011-05-23  Bruno Haible  <bruno@clisp.org>
13192
13193         filenamecat*: Respect rules for use of AC_LIBOBJ.
13194         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13195         Remove AC_LIBOBJ invocation.
13196         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13197         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13198
13199 2011-05-23  Bruno Haible  <bruno@clisp.org>
13200
13201         filemode: Move AC_LIBOBJ invocations to module description.
13202         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13203         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13204
13205 2011-05-23  Bruno Haible  <bruno@clisp.org>
13206
13207         openat-safer: Move AC_LIBOBJ invocations to module description.
13208         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13209         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13210
13211 2011-05-23  Bruno Haible  <bruno@clisp.org>
13212
13213         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13214         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13215         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13216
13217 2011-05-23  Bruno Haible  <bruno@clisp.org>
13218
13219         exclude: Move AC_LIBOBJ invocations to module description.
13220         * m4/exclude.m4: Remove file.
13221         * modules/exclude (Files): Remove it.
13222         (configure.ac): Remove gl_EXCLUDE call.
13223         (Makefile.am): Augment lib_SOURCES.
13224
13225 2011-05-23  Bruno Haible  <bruno@clisp.org>
13226
13227         dirname*: Respect rules for use of AC_LIBOBJ.
13228         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13229         invocations.
13230         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13231         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13232
13233 2011-05-23  Bruno Haible  <bruno@clisp.org>
13234
13235         dirent-safer: Move AC_LIBOBJ invocations to module description.
13236         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13237         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13238
13239 2011-05-23  Bruno Haible  <bruno@clisp.org>
13240
13241         crypto/des: Move AC_LIBOBJ invocations to module description.
13242         * m4/des.m4: Remove file.
13243         * modules/crypto/des (Files): Remove it.
13244         (configure.ac): Remove gl_DES call.
13245         (Makefile.am): Augment lib_SOURCES.
13246
13247 2011-05-23  Bruno Haible  <bruno@clisp.org>
13248
13249         cycle-check: Move AC_LIBOBJ invocations to module description.
13250         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13251         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13252
13253 2011-05-23  Bruno Haible  <bruno@clisp.org>
13254
13255         c-strtold: Move AC_LIBOBJ invocations to module description.
13256         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13257         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13258
13259 2011-05-23  Bruno Haible  <bruno@clisp.org>
13260
13261         c-strtod: Move AC_LIBOBJ invocations to module description.
13262         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13263         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13264
13265 2011-05-23  Bruno Haible  <bruno@clisp.org>
13266
13267         crc: Move AC_LIBOBJ invocations to module description.
13268         * m4/crc.m4: Remove file.
13269         * modules/crc (Files): Remove it.
13270         (configure.ac): Remove gl_CRC call.
13271         (Makefile.am): Augment lib_SOURCES.
13272
13273 2011-05-23  Bruno Haible  <bruno@clisp.org>
13274
13275         close-stream: Move AC_LIBOBJ invocations to module description.
13276         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13277         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13278
13279 2011-05-23  Bruno Haible  <bruno@clisp.org>
13280
13281         closeout: Move AC_LIBOBJ invocations to module description.
13282         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13283         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13284
13285 2011-05-23  Bruno Haible  <bruno@clisp.org>
13286
13287         closein: Move AC_LIBOBJ invocations to module description.
13288         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13289         * modules/closein (Makefile.am): Augment lib_SOURCES.
13290
13291 2011-05-23  Bruno Haible  <bruno@clisp.org>
13292
13293         cloexec: Move AC_LIBOBJ invocations to module description.
13294         * m4/cloexec.m4: Remove file.
13295         * modules/cloexec (Files): Remove it.
13296         (configure.ac): Remove gl_CLOEXEC call.
13297         (Makefile.am): Augment lib_SOURCES.
13298
13299 2011-05-23  Bruno Haible  <bruno@clisp.org>
13300
13301         check-version: Move AC_LIBOBJ invocations to module description.
13302         * m4/check-version.m4: Remove file.
13303         * modules/check-version (Files): Remove it.
13304         (configure.ac): Remove gl_CHECK_VERSION call.
13305         (Makefile.am): Augment lib_SOURCES.
13306
13307 2011-05-23  Bruno Haible  <bruno@clisp.org>
13308
13309         chdir-safer: Move AC_LIBOBJ invocations to module description.
13310         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13311         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13312
13313 2011-05-23  Bruno Haible  <bruno@clisp.org>
13314
13315         canonicalize: Move AC_LIBOBJ invocations to module description.
13316         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13317         AC_LIBOBJ invocation.
13318         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13319
13320 2011-05-23  Bruno Haible  <bruno@clisp.org>
13321
13322         canon-host: Move AC_LIBOBJ invocations to module description.
13323         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13324         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13325         instead of gl_CANON_HOST.
13326         (Makefile.am): Augment lib_SOURCES.
13327
13328 2011-05-23  Bruno Haible  <bruno@clisp.org>
13329
13330         backupfile: Move AC_LIBOBJ invocations to module description.
13331         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13332         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13333
13334 2011-05-23  Bruno Haible  <bruno@clisp.org>
13335
13336         argmatch: Move AC_LIBOBJ invocations to module description.
13337         * m4/argmatch.m4: Remove file.
13338         * modules/argmatch (Files): Remove it.
13339         (configure.ac): Remove gl_ARGMATCH call.
13340         (Makefile.am): Augment lib_SOURCES.
13341
13342 2011-05-23  Bruno Haible  <bruno@clisp.org>
13343
13344         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13345         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13346         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13347
13348 2011-05-23  Bruno Haible  <bruno@clisp.org>
13349
13350         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13351         * m4/arcfour.m4: Remove file.
13352         * modules/crypto/arcfour (Files): Remove it.
13353         (configure.ac): Remove gl_ARCFOUR call.
13354         (Makefile.am): Augment lib_SOURCES.
13355
13356 2011-05-22  Bruno Haible  <bruno@clisp.org>
13357
13358         write: Move AC_LIBOBJ invocations to module description.
13359         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13360         * modules/write (configure.ac): ... to here.
13361
13362 2011-05-22  Bruno Haible  <bruno@clisp.org>
13363
13364         wmemset: Move AC_LIBOBJ invocations to module description.
13365         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13366         here...
13367         * modules/wmemset (configure.ac): ... to here.
13368
13369 2011-05-22  Bruno Haible  <bruno@clisp.org>
13370
13371         wmemmove: Move AC_LIBOBJ invocations to module description.
13372         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13373         here...
13374         * modules/wmemmove (configure.ac): ... to here.
13375
13376 2011-05-22  Bruno Haible  <bruno@clisp.org>
13377
13378         wmemcpy: Move AC_LIBOBJ invocations to module description.
13379         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13380         here...
13381         * modules/wmemcpy (configure.ac): ... to here.
13382
13383 2011-05-22  Bruno Haible  <bruno@clisp.org>
13384
13385         wmemcmp: Move AC_LIBOBJ invocations to module description.
13386         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13387         here...
13388         * modules/wmemcmp (configure.ac): ... to here.
13389
13390 2011-05-22  Bruno Haible  <bruno@clisp.org>
13391
13392         wmemchr: Move AC_LIBOBJ invocations to module description.
13393         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13394         here...
13395         * modules/wmemchr (configure.ac): ... to here.
13396
13397 2011-05-22  Bruno Haible  <bruno@clisp.org>
13398
13399         wcswidth: Move AC_LIBOBJ invocations to module description.
13400         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13401         here...
13402         * modules/wcswidth (configure.ac): ... to here.
13403
13404 2011-05-22  Bruno Haible  <bruno@clisp.org>
13405
13406         wcwidth: Respect rules for use of AC_LIBOBJ.
13407         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13408         invocation from here...
13409         * modules/wcwidth (configure.ac): ... to here.
13410         (Depends-on): Update conditions.
13411
13412 2011-05-22  Bruno Haible  <bruno@clisp.org>
13413
13414         wctype: Move AC_LIBOBJ invocations to module description.
13415         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13416         invocation from here...
13417         * modules/wctype (configure.ac): ... to here.
13418         (Depends-on): Update conditions.
13419
13420 2011-05-22  Bruno Haible  <bruno@clisp.org>
13421
13422         wctrans: Move AC_LIBOBJ invocations to module description.
13423         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13424         invocation from here...
13425         * modules/wctrans (configure.ac): ... to here.
13426
13427 2011-05-22  Bruno Haible  <bruno@clisp.org>
13428
13429         wctomb: Move AC_LIBOBJ invocations to module description.
13430         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13431         invocations from here...
13432         * modules/wctomb (configure.ac): ... to here.
13433
13434 2011-05-22  Bruno Haible  <bruno@clisp.org>
13435
13436         wctob: Move AC_LIBOBJ invocations to module description.
13437         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13438         gl_PREREQ_WCTOB invocations from here...
13439         * modules/wctob (configure.ac): ... to here.
13440         (Depends-on): Update conditions.
13441
13442 2011-05-22  Bruno Haible  <bruno@clisp.org>
13443
13444         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13445         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13446         here...
13447         * modules/wcsxfrm (configure.ac): ... to here.
13448
13449 2011-05-22  Bruno Haible  <bruno@clisp.org>
13450
13451         wcstok: Move AC_LIBOBJ invocations to module description.
13452         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13453         * modules/wcstok (configure.ac): ... to here.
13454
13455 2011-05-22  Bruno Haible  <bruno@clisp.org>
13456
13457         wcsstr: Move AC_LIBOBJ invocations to module description.
13458         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13459         * modules/wcsstr (configure.ac): ... to here.
13460
13461 2011-05-22  Bruno Haible  <bruno@clisp.org>
13462
13463         wcsspn: Move AC_LIBOBJ invocations to module description.
13464         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13465         * modules/wcsspn (configure.ac): ... to here.
13466
13467 2011-05-22  Bruno Haible  <bruno@clisp.org>
13468
13469         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13470         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13471         gl_PREREQ_WCSRTOMBS invocations from here...
13472         * modules/wcsrtombs (configure.ac): ... to here.
13473
13474 2011-05-22  Bruno Haible  <bruno@clisp.org>
13475
13476         wcsrchr: Move AC_LIBOBJ invocations to module description.
13477         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13478         here...
13479         * modules/wcsrchr (configure.ac): ... to here.
13480
13481 2011-05-22  Bruno Haible  <bruno@clisp.org>
13482
13483         wcspbrk: Move AC_LIBOBJ invocations to module description.
13484         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13485         here...
13486         * modules/wcspbrk (configure.ac): ... to here.
13487
13488 2011-05-22  Bruno Haible  <bruno@clisp.org>
13489
13490         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13491         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13492         gl_PREREQ_WCSNRTOMBS invocations from here...
13493         * modules/wcsnrtombs (configure.ac): ... to here.
13494
13495 2011-05-22  Bruno Haible  <bruno@clisp.org>
13496
13497         wcsnlen: Move AC_LIBOBJ invocations to module description.
13498         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13499         here...
13500         * modules/wcsnlen (configure.ac): ... to here.
13501
13502 2011-05-22  Bruno Haible  <bruno@clisp.org>
13503
13504         wcsncpy: Move AC_LIBOBJ invocations to module description.
13505         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13506         here...
13507         * modules/wcsncpy (configure.ac): ... to here.
13508
13509 2011-05-22  Bruno Haible  <bruno@clisp.org>
13510
13511         wcsncmp: Move AC_LIBOBJ invocations to module description.
13512         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13513         here...
13514         * modules/wcsncmp (configure.ac): ... to here.
13515
13516 2011-05-22  Bruno Haible  <bruno@clisp.org>
13517
13518         wcsncat: Move AC_LIBOBJ invocations to module description.
13519         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13520         here...
13521         * modules/wcsncat (configure.ac): ... to here.
13522
13523 2011-05-22  Bruno Haible  <bruno@clisp.org>
13524
13525         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13526         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13527         from here...
13528         * modules/wcsncasecmp (configure.ac): ... to here.
13529
13530 2011-05-22  Bruno Haible  <bruno@clisp.org>
13531
13532         wcslen: Move AC_LIBOBJ invocations to module description.
13533         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13534         * modules/wcslen (configure.ac): ... to here.
13535
13536 2011-05-22  Bruno Haible  <bruno@clisp.org>
13537
13538         wcsdup: Move AC_LIBOBJ invocations to module description.
13539         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13540         * modules/wcsdup (configure.ac): ... to here.
13541
13542 2011-05-22  Bruno Haible  <bruno@clisp.org>
13543
13544         wcscspn: Move AC_LIBOBJ invocations to module description.
13545         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13546         here...
13547         * modules/wcscspn (configure.ac): ... to here.
13548
13549 2011-05-22  Bruno Haible  <bruno@clisp.org>
13550
13551         wcscpy: Move AC_LIBOBJ invocations to module description.
13552         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13553         * modules/wcscpy (configure.ac): ... to here.
13554
13555 2011-05-22  Bruno Haible  <bruno@clisp.org>
13556
13557         wcscoll: Move AC_LIBOBJ invocations to module description.
13558         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13559         here...
13560         * modules/wcscoll (configure.ac): ... to here.
13561
13562 2011-05-22  Bruno Haible  <bruno@clisp.org>
13563
13564         wcscmp: Move AC_LIBOBJ invocations to module description.
13565         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13566         * modules/wcscmp (configure.ac): ... to here.
13567
13568 2011-05-22  Bruno Haible  <bruno@clisp.org>
13569
13570         wcschr: Move AC_LIBOBJ invocations to module description.
13571         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13572         * modules/wcschr (configure.ac): ... to here.
13573
13574 2011-05-22  Bruno Haible  <bruno@clisp.org>
13575
13576         wcscat: Move AC_LIBOBJ invocations to module description.
13577         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13578         * modules/wcscat (configure.ac): ... to here.
13579
13580 2011-05-22  Bruno Haible  <bruno@clisp.org>
13581
13582         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13583         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13584         here...
13585         * modules/wcscasecmp (configure.ac): ... to here.
13586
13587 2011-05-22  Bruno Haible  <bruno@clisp.org>
13588
13589         wcrtomb: Move AC_LIBOBJ invocations to module description.
13590         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13591         invocations from here...
13592         * modules/wcrtomb (configure.ac): ... to here.
13593
13594 2011-05-22  Bruno Haible  <bruno@clisp.org>
13595
13596         wcpncpy: Move AC_LIBOBJ invocations to module description.
13597         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13598         here...
13599         * modules/wcpncpy (configure.ac): ... to here.
13600
13601 2011-05-22  Bruno Haible  <bruno@clisp.org>
13602
13603         wcpcpy: Move AC_LIBOBJ invocations to module description.
13604         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13605         * modules/wcpcpy (configure.ac): ... to here.
13606
13607 2011-05-22  Bruno Haible  <bruno@clisp.org>
13608
13609         waitpid: Move AC_LIBOBJ invocations to module description.
13610         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13611         invocation from here...
13612         * modules/waitpid (configure.ac): ... to here.
13613
13614 2011-05-22  Bruno Haible  <bruno@clisp.org>
13615
13616         utimensat: Move AC_LIBOBJ invocations to module description.
13617         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13618         here...
13619         * modules/utimensat (configure.ac): ... to here.
13620
13621 2011-05-22  Bruno Haible  <bruno@clisp.org>
13622
13623         usleep: Move AC_LIBOBJ invocations to module description.
13624         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13625         here...
13626         * modules/usleep (configure.ac): ... to here.
13627
13628 2011-05-22  Bruno Haible  <bruno@clisp.org>
13629
13630         unlockpt: Move AC_LIBOBJ invocations to module description.
13631         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13632         gl_PREREQ_UNLOCKPT invocations from here...
13633         * modules/unlockpt (configure.ac): ... to here.
13634
13635 2011-05-22  Bruno Haible  <bruno@clisp.org>
13636
13637         unlink: Respect rules for use of AC_LIBOBJ.
13638         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13639         * modules/unlink (configure.ac): ... to here.
13640
13641 2011-05-22  Bruno Haible  <bruno@clisp.org>
13642
13643         uname: Move AC_LIBOBJ invocations to module description.
13644         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13645         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13646         here...
13647         * modules/uname (configure.ac): ... to here.
13648
13649 2011-05-22  Bruno Haible  <bruno@clisp.org>
13650
13651         ttyname_r: Move AC_LIBOBJ invocations to module description.
13652         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13653         gl_PREREQ_TTYNAME_R invocations from here...
13654         * modules/ttyname_r (configure.ac): ... to here.
13655
13656 2011-05-22  Bruno Haible  <bruno@clisp.org>
13657
13658         tsearch: Move AC_LIBOBJ invocations to module description.
13659         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13660         invocations from here...
13661         * modules/tsearch (configure.ac): ... to here.
13662
13663 2011-05-22  Bruno Haible  <bruno@clisp.org>
13664
13665         towctrans: Move AC_LIBOBJ invocations to module description.
13666         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13667         AC_LIBOBJ invocation from here...
13668         * modules/towctrans (configure.ac): ... to here.
13669
13670 2011-05-22  Bruno Haible  <bruno@clisp.org>
13671
13672         tmpfile: Move AC_LIBOBJ invocations to module description.
13673         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13674         invocations from here...
13675         * modules/tmpfile (configure.ac): ... to here.
13676
13677 2011-05-22  Bruno Haible  <bruno@clisp.org>
13678
13679         times: Move AC_LIBOBJ invocations to module description.
13680         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13681         * modules/times (configure.ac): ... to here.
13682
13683 2011-05-22  Bruno Haible  <bruno@clisp.org>
13684
13685         time_r: Move AC_LIBOBJ invocations to module description.
13686         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13687         invocations from here...
13688         * modules/time_r (configure.ac): ... to here.
13689
13690 2011-05-22  Bruno Haible  <bruno@clisp.org>
13691
13692         timegm: Move AC_LIBOBJ invocations to module description.
13693         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13694         invocations from here...
13695         * modules/timegm (configure.ac): ... to here.
13696
13697 2011-05-22  Bruno Haible  <bruno@clisp.org>
13698
13699         tcgetsid: Move AC_LIBOBJ invocations to module description.
13700         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13701         and gl_PREREQ_TCGETSID invocations from here...
13702         * modules/tcgetsid (configure.ac): ... to here.
13703         (Depends-on): Update conditions.
13704
13705 2011-05-22  Bruno Haible  <bruno@clisp.org>
13706
13707         symlinkat: Move AC_LIBOBJ invocations to module description.
13708         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13709         here...
13710         * modules/symlinkat (configure.ac): ... to here.
13711
13712 2011-05-22  Bruno Haible  <bruno@clisp.org>
13713
13714         symlink: Move AC_LIBOBJ invocations to module description.
13715         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13716         here...
13717         * modules/symlink (configure.ac): ... to here.
13718
13719 2011-05-22  Bruno Haible  <bruno@clisp.org>
13720
13721         strverscmp: Move AC_LIBOBJ invocations to module description.
13722         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13723         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13724         from here...
13725         * modules/strverscmp (configure.ac): ... to here.
13726
13727 2011-05-22  Bruno Haible  <bruno@clisp.org>
13728
13729         strtok_r: Move AC_LIBOBJ invocations to module description.
13730         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13731         and gl_PREREQ_STRTOK_R invocations from here...
13732         * modules/strtok_r (configure.ac): ... to here.
13733         (Depends-on): Update conditions.
13734
13735 2011-05-22  Bruno Haible  <bruno@clisp.org>
13736
13737         strtoumax: Move AC_LIBOBJ invocations to module description.
13738         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13739         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13740         from here...
13741         * modules/strtoumax (configure.ac): ... to here.
13742
13743 2011-05-22  Bruno Haible  <bruno@clisp.org>
13744
13745         strtoimax: Move AC_LIBOBJ invocations to module description.
13746         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13747         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13748         from here...
13749         * modules/strtoimax (configure.ac): ... to here.
13750
13751 2011-05-22  Bruno Haible  <bruno@clisp.org>
13752
13753         strtoull: Move AC_LIBOBJ invocations to module description.
13754         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13755         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13756         from here...
13757         * modules/strtoull (configure.ac): ... to here.
13758
13759 2011-05-22  Bruno Haible  <bruno@clisp.org>
13760
13761         strtoll: Move AC_LIBOBJ invocations to module description.
13762         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13763         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13764         here...
13765         * modules/strtoll (configure.ac): ... to here.
13766
13767 2011-05-22  Bruno Haible  <bruno@clisp.org>
13768
13769         strtoul: Move AC_LIBOBJ invocations to module description.
13770         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13771         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13772         * modules/strtoul (configure.ac): ... to here.
13773
13774 2011-05-22  Bruno Haible  <bruno@clisp.org>
13775
13776         strtol: Move AC_LIBOBJ invocations to module description.
13777         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13778         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13779         * modules/strtol (configure.ac): ... to here.
13780
13781 2011-05-22  Bruno Haible  <bruno@clisp.org>
13782
13783         strtod: Move AC_LIBOBJ invocations to module description.
13784         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13785         invocations from here...
13786         * modules/strtod (configure.ac): ... to here.
13787
13788 2011-05-22  Bruno Haible  <bruno@clisp.org>
13789
13790         strstr*: Move AC_LIBOBJ invocations to module description.
13791         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13792         invocations from here...
13793         * modules/strstr-simple (configure.ac): ... to here.
13794         * modules/strstr (configure.ac): ... and here.
13795
13796 2011-05-22  Bruno Haible  <bruno@clisp.org>
13797
13798         strsignal: Move AC_LIBOBJ invocations to module description.
13799         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13800         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13801         * modules/strsignal (configure.ac): ... to here.
13802         (Depends-on): Update conditions.
13803
13804 2011-05-22  Bruno Haible  <bruno@clisp.org>
13805
13806         strsep: Move AC_LIBOBJ invocations to module description.
13807         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13809         here...
13810         * modules/strsep (configure.ac): ... to here.
13811
13812 2011-05-22  Bruno Haible  <bruno@clisp.org>
13813
13814         strptime: Move AC_LIBOBJ invocations to module description.
13815         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13816         gl_PREREQ_STRPTIME invocations from here...
13817         * modules/strptime (configure.ac): ... to here.
13818
13819 2011-05-22  Bruno Haible  <bruno@clisp.org>
13820
13821         strpbrk: Move AC_LIBOBJ invocations to module description.
13822         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13823         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13824         here...
13825         * modules/strpbrk (configure.ac): ... to here.
13826
13827 2011-05-22  Bruno Haible  <bruno@clisp.org>
13828
13829         strnlen: Move AC_LIBOBJ invocations to module description.
13830         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13831         invocations from here...
13832         * modules/strnlen (configure.ac): ... to here.
13833
13834 2011-05-22  Bruno Haible  <bruno@clisp.org>
13835
13836         strndup: Move AC_LIBOBJ invocations to module description.
13837         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13838         invocations from here...
13839         * modules/strndup (configure.ac): ... to here.
13840         (Depends-on): Update conditions.
13841
13842 2011-05-22  Bruno Haible  <bruno@clisp.org>
13843
13844         strncat: Move AC_LIBOBJ invocations to module description.
13845         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13846         invocations from here...
13847         * modules/strncat (configure.ac): ... to here.
13848
13849 2011-05-22  Bruno Haible  <bruno@clisp.org>
13850
13851         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13852         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13853         invocations from here...
13854         * modules/strdup (configure.ac): ... to here.
13855         * modules/strdup-posix (configure.ac): ... and here.
13856
13857 2011-05-22  Bruno Haible  <bruno@clisp.org>
13858
13859         strcspn: Move AC_LIBOBJ invocations to module description.
13860         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13861         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13862         here...
13863         * modules/strcspn (configure.ac): ... to here.
13864
13865 2011-05-22  Bruno Haible  <bruno@clisp.org>
13866
13867         strchrnul: Move AC_LIBOBJ invocations to module description.
13868         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13869         gl_PREREQ_STRCHRNUL invocations from here...
13870         * modules/strchrnul (configure.ac): ... to here.
13871
13872 2011-05-22  Bruno Haible  <bruno@clisp.org>
13873
13874         strcasestr*: Move AC_LIBOBJ invocations to module description.
13875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13876         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13877         * modules/strcasestr-simple (configure.ac): ... to here.
13878         * modules/strcasestr (configure.ac): ... and here.
13879
13880 2011-05-22  Bruno Haible  <bruno@clisp.org>
13881
13882         strcase: Move AC_LIBOBJ invocations to module description.
13883         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13884         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13885         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13886         gl_PREREQ_STRNCASECMP invocations from here...
13887         * modules/strcase (configure.ac): ... to here.
13888
13889 2011-05-22  Bruno Haible  <bruno@clisp.org>
13890
13891         stpncpy: Move AC_LIBOBJ invocations to module description.
13892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13893         here...
13894         * modules/stpncpy (configure.ac): ... to here.
13895
13896 2011-05-22  Bruno Haible  <bruno@clisp.org>
13897
13898         stpcpy: Move AC_LIBOBJ invocations to module description.
13899         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13900         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13901         here...
13902         * modules/stpcpy (configure.ac): ... to here.
13903
13904 2011-05-21  Bruno Haible  <bruno@clisp.org>
13905
13906         stat: Move AC_LIBOBJ invocations to module description.
13907         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13908         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13909         here...
13910         * modules/stat (configure.ac): ... to here.
13911
13912 2011-05-21  Bruno Haible  <bruno@clisp.org>
13913
13914         sleep: Move AC_LIBOBJ invocations to module description.
13915         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13916         * modules/sleep (configure.ac): ... to here.
13917
13918 2011-05-21  Bruno Haible  <bruno@clisp.org>
13919
13920         signbit: Move AC_LIBOBJ invocations to module description.
13921         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13922         * modules/signbit (configure.ac): ... to here.
13923
13924 2011-05-21  Bruno Haible  <bruno@clisp.org>
13925
13926         sigprocmask: Move AC_LIBOBJ invocations to module description.
13927         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13928         gl_PREREQ_SIGPROMASK invocations from here...
13929         * modules/sigprocmask (configure.ac): ... to here.
13930
13931 2011-05-21  Bruno Haible  <bruno@clisp.org>
13932
13933         sigaction: Move AC_LIBOBJ invocations to module description.
13934         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13935         gl_PREREQ_SIGACTION invocations from here...
13936         * modules/sigaction (configure.ac): ... to here.
13937
13938 2011-05-21  Bruno Haible  <bruno@clisp.org>
13939
13940         sig2str: Move AC_LIBOBJ invocations to module description.
13941         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13943         here...
13944         * modules/sig2str (configure.ac): ... to here.
13945
13946 2011-05-21  Bruno Haible  <bruno@clisp.org>
13947
13948         setlocale: Move AC_LIBOBJ invocations to module description.
13949         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13950         gl_PREREQ_SETLOCALE invocations from here...
13951         * modules/setlocale (configure.ac): ... to here.
13952
13953 2011-05-21  Bruno Haible  <bruno@clisp.org>
13954
13955         unsetenv: Move AC_LIBOBJ invocations to module description.
13956         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13957         and gl_PREREQ_UNSETENV invocations from here...
13958         * modules/unsetenv (configure.ac): ... to here.
13959         (Depends-on): Update.
13960
13961 2011-05-21  Bruno Haible  <bruno@clisp.org>
13962
13963         setenv: Move AC_LIBOBJ invocations to module description.
13964         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13965         here...
13966         * modules/setenv (configure.ac): ... to here.
13967
13968 2011-05-21  Bruno Haible  <bruno@clisp.org>
13969
13970         selinux-h: Move AC_LIBOBJ invocations to module description.
13971         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13972         AC_LIBOBJ invocation from here...
13973         * modules/selinux-h (configure.ac): ... to here.
13974
13975 2011-05-21  Bruno Haible  <bruno@clisp.org>
13976
13977         select: Respect rules for use of AC_LIBOBJ.
13978         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13979         here...
13980         * modules/select (configure.ac): ... to here.
13981
13982 2011-05-21  Bruno Haible  <bruno@clisp.org>
13983
13984         scandir: Move AC_LIBOBJ invocations to module description.
13985         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13986         invocations from here...
13987         * modules/scandir (configure.ac): ... to here.
13988
13989 2011-05-21  Bruno Haible  <bruno@clisp.org>
13990
13991         rpmatch: Move AC_LIBOBJ invocations to module description.
13992         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13993         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13994         here...
13995         * modules/rpmatch (configure.ac): ... to here.
13996
13997 2011-05-21  Bruno Haible  <bruno@clisp.org>
13998
13999         rmdir: Respect rules for use of AC_LIBOBJ.
14000         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14001         * modules/rmdir (configure.ac): ... to here.
14002
14003 2011-05-21  Bruno Haible  <bruno@clisp.org>
14004
14005         renameat: Move AC_LIBOBJ invocations to module description.
14006         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14007         here...
14008         * modules/renameat (configure.ac): ... to here.
14009
14010 2011-05-21  Bruno Haible  <bruno@clisp.org>
14011
14012         rename: Respect rules for use of AC_LIBOBJ.
14013         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14014         here...
14015         * modules/rename (configure.ac): ... to here.
14016
14017 2011-05-21  Bruno Haible  <bruno@clisp.org>
14018
14019         remove: Move AC_LIBOBJ invocations to module description.
14020         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14021         here...
14022         * modules/remove (configure.ac): ... to here.
14023
14024 2011-05-21  Bruno Haible  <bruno@clisp.org>
14025
14026         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14027         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14028         macro.
14029         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14030         * modules/relocatable-lib (configure.ac): ... to here.
14031         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14032         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14033
14034 2011-05-21  Bruno Haible  <bruno@clisp.org>
14035
14036         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14037         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14038         here...
14039         * modules/relocatable-prog (configure.ac): ... to here.
14040
14041 2011-05-21  Bruno Haible  <bruno@clisp.org>
14042
14043         regex: Move AC_LIBOBJ invocations to module description.
14044         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14045         invocations from here...
14046         * modules/regex (configure.ac): ... to here.
14047
14048 2011-05-21  Bruno Haible  <bruno@clisp.org>
14049
14050         realloc-*: Move AC_LIBOBJ invocations to module description.
14051         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14052         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14053         AC_LIBOBJ invocations from here...
14054         * modules/realloc-gnu (configure.ac): ... to here.
14055         * modules/realloc-posix (configure.ac): ... and here.
14056
14057 2011-05-21  Bruno Haible  <bruno@clisp.org>
14058
14059         readutmp: Move AC_LIBOBJ invocations to module description.
14060         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14061         * modules/readutmp (configure.ac): ... to here.
14062
14063 2011-05-21  Bruno Haible  <bruno@clisp.org>
14064
14065         readlinkat: Move AC_LIBOBJ invocations to module description.
14066         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14067         here...
14068         * modules/readlinkat (configure.ac): ... to here.
14069
14070 2011-05-21  Bruno Haible  <bruno@clisp.org>
14071
14072         readlink: Move AC_LIBOBJ invocations to module description.
14073         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14074         gl_PREREQ_READLINK invocations from here...
14075         * modules/readlink (configure.ac): ... to here.
14076
14077 2011-05-21  Bruno Haible  <bruno@clisp.org>
14078
14079         readline: Move AC_LIBOBJ invocations to module description.
14080         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14081         gl_PREREQ_READLINE invocations from here...
14082         * modules/readline (configure.ac): ... to here.
14083
14084 2011-05-21  Bruno Haible  <bruno@clisp.org>
14085
14086         read: Move AC_LIBOBJ invocations to module description.
14087         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14088         * modules/read (configure.ac): ... to here.
14089
14090 2011-05-21  Bruno Haible  <bruno@clisp.org>
14091
14092         rawmemchr: Move AC_LIBOBJ invocations to module description.
14093         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14094         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14095         from here...
14096         * modules/rawmemchr (configure.ac): ... to here.
14097
14098 2011-05-21  Bruno Haible  <bruno@clisp.org>
14099
14100         random_r: Move AC_LIBOBJ invocations to module description.
14101         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14102         gl_PREREQ_RANDOM_R invocations from here...
14103         * modules/random_r (configure.ac): ... to here.
14104
14105 2011-05-21  Bruno Haible  <bruno@clisp.org>
14106
14107         pwrite: Move AC_LIBOBJ invocations to module description.
14108         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14109         * modules/pwrite (configure.ac): ... to here.
14110
14111 2011-05-21  Bruno Haible  <bruno@clisp.org>
14112
14113         putenv: Move AC_LIBOBJ invocations to module description.
14114         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14115         * modules/putenv (configure.ac): ... to here.
14116
14117 2011-05-21  Bruno Haible  <bruno@clisp.org>
14118
14119         login_tty: Move AC_LIBOBJ invocations to module description.
14120         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14121         * modules/login_tty (configure.ac): ... to here.
14122
14123 2011-05-21  Bruno Haible  <bruno@clisp.org>
14124
14125         openpty: Move AC_LIBOBJ invocations to module description.
14126         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14127         * modules/openpty (configure.ac): ... to here.
14128
14129 2011-05-21  Bruno Haible  <bruno@clisp.org>
14130
14131         forkpty: Move AC_LIBOBJ invocations to module description.
14132         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14133         * modules/forkpty (configure.ac): ... to here.
14134
14135 2011-05-21  Bruno Haible  <bruno@clisp.org>
14136
14137         ptsname: Move AC_LIBOBJ invocations to module description.
14138         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14139         invocations from here...
14140         * modules/ptsname (configure.ac): ... to here.
14141
14142 2011-05-21  Bruno Haible  <bruno@clisp.org>
14143
14144         pread: Move AC_LIBOBJ invocations to module description.
14145         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14146         * modules/pread (configure.ac): ... to here.
14147
14148 2011-05-21  Bruno Haible  <bruno@clisp.org>
14149
14150         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14151         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14152         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14153         * modules/posix_spawn (configure.ac): ... to here.
14154         * modules/posix_spawnp (configure.ac): ... and here.
14155
14156 2011-05-21  Bruno Haible  <bruno@clisp.org>
14157
14158         popen: Move AC_LIBOBJ invocations to module description.
14159         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14160         invocations from here...
14161         * modules/popen (configure.ac): ... to here.
14162
14163 2011-05-21  Bruno Haible  <bruno@clisp.org>
14164
14165         poll: Move AC_LIBOBJ invocations to module description.
14166         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14167         invocations from here...
14168         * modules/poll (configure.ac): ... to here.
14169
14170 2011-05-21  Bruno Haible  <bruno@clisp.org>
14171
14172         pipe-posix: Move AC_LIBOBJ invocations to module description.
14173         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14174         * modules/pipe-posix (configure.ac): ... to here.
14175
14176 2011-05-21  Bruno Haible  <bruno@clisp.org>
14177
14178         openat: Respect rules for use of AC_LIBOBJ.
14179         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14180         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14181         * modules/openat (configure.ac): ... to here.
14182
14183 2011-05-21  Bruno Haible  <bruno@clisp.org>
14184
14185         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14186         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14187         invocation from here...
14188         * modules/obstack-printf (configure.ac): ... to here.
14189         * modules/obstack-printf-posix (configure.ac): ... and here.
14190
14191 2011-05-21  Bruno Haible  <bruno@clisp.org>
14192
14193         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14194         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14195         from here...
14196         * modules/nl_langinfo (configure.ac): ... to here.
14197
14198 2011-05-21  Bruno Haible  <bruno@clisp.org>
14199
14200         nanosleep: Move AC_LIBOBJ invocations to module description.
14201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14202         gl_PREREQ_NANOSLEEP invocations from here...
14203         * modules/nanosleep (configure.ac): ... to here.
14204
14205 2011-05-21  Bruno Haible  <bruno@clisp.org>
14206
14207         mountlist: Move AC_LIBOBJ invocations to module description.
14208         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14209         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14210         * modules/mountlist (configure.ac): ... to here.
14211
14212 2011-05-21  Bruno Haible  <bruno@clisp.org>
14213
14214         mktime: Respect rules for use of AC_LIBOBJ.
14215         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14216         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14217         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14218         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14219         * modules/mktime (configure.ac): ... to here.
14220         * modules/mktime-internal (configure.ac): ... and here.
14221         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14222
14223 2011-05-21  Bruno Haible  <bruno@clisp.org>
14224
14225         mkstemps: Move AC_LIBOBJ invocations to module description.
14226         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14227         here...
14228         * modules/mkstemps (configure.ac): ... to here.
14229
14230 2011-05-21  Bruno Haible  <bruno@clisp.org>
14231
14232         mkstemp: Move AC_LIBOBJ invocations to module description.
14233         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14234         gl_PREREQ_MKSTEMP invocations from here...
14235         * modules/mkstemp (configure.ac): ... to here.
14236
14237 2011-05-21  Bruno Haible  <bruno@clisp.org>
14238
14239         mkostemps: Move AC_LIBOBJ invocations to module description.
14240         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14241         here...
14242         * modules/mkostemps (configure.ac): ... to here.
14243
14244 2011-05-21  Bruno Haible  <bruno@clisp.org>
14245
14246         mkostemp: Move AC_LIBOBJ invocations to module description.
14247         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14248         gl_PREREQ_MKOSTEMP invocations from here...
14249         * modules/mkostemp (configure.ac): ... to here.
14250
14251 2011-05-21  Bruno Haible  <bruno@clisp.org>
14252
14253         mknod: Move AC_LIBOBJ invocations to module description.
14254         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14255         * modules/mknod (configure.ac): ... to here.
14256
14257 2011-05-21  Bruno Haible  <bruno@clisp.org>
14258
14259         mkfifoat: Move AC_LIBOBJ invocations to module description.
14260         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14261         here...
14262         * modules/mkfifoat (configure.ac): ... to here.
14263
14264 2011-05-21  Bruno Haible  <bruno@clisp.org>
14265
14266         mkfifo: Respect rules for use of AC_LIBOBJ.
14267         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14268         here...
14269         * modules/mkfifo (configure.ac): ... to here.
14270
14271 2011-05-21  Bruno Haible  <bruno@clisp.org>
14272
14273         mkdtemp: Move AC_LIBOBJ invocations to module description.
14274         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14275         invocations from here...
14276         * modules/mkdtemp (configure.ac): ... to here.
14277
14278 2011-05-21  Bruno Haible  <bruno@clisp.org>
14279
14280         mkdir: Move AC_LIBOBJ invocations to module description.
14281         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14282         * modules/mkdir (configure.ac): ... to here.
14283
14284 2011-05-21  Bruno Haible  <bruno@clisp.org>
14285
14286         memset: Move AC_LIBOBJ invocations to module description.
14287         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14289         here...
14290         * modules/memset (configure.ac): ... to here.
14291
14292 2011-05-21  Bruno Haible  <bruno@clisp.org>
14293
14294         memrchr: Move AC_LIBOBJ invocations to module description.
14295         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14297         here...
14298         * modules/memrchr (configure.ac): ... to here.
14299
14300 2011-05-21  Bruno Haible  <bruno@clisp.org>
14301
14302         mempcpy: Move AC_LIBOBJ invocations to module description.
14303         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14304         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14305         here...
14306         * modules/mempcpy (configure.ac): ... to here.
14307
14308 2011-05-21  Bruno Haible  <bruno@clisp.org>
14309
14310         memmove: Move AC_LIBOBJ invocations to module description.
14311         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14313         here...
14314         * modules/memmove (configure.ac): ... to here.
14315
14316 2011-05-21  Bruno Haible  <bruno@clisp.org>
14317
14318         memmem*: Move AC_LIBOBJ invocations to module description.
14319         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14320         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14321         here...
14322         (gl_FUNC_MEMMEM): ... and here...
14323         * modules/memmem-simple (configure.ac): ... to here.
14324         * modules/memmem (configure.ac): ... and here.
14325
14326 2011-05-21  Bruno Haible  <bruno@clisp.org>
14327
14328         memcpy: Move AC_LIBOBJ invocations to module description.
14329         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14330         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14331         here...
14332         * modules/memcpy (configure.ac): ... to here.
14333
14334 2011-05-21  Bruno Haible  <bruno@clisp.org>
14335
14336         memcmp: Simplify autoconf macro.
14337         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14338         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14339         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14340
14341 2011-05-21  Bruno Haible  <bruno@clisp.org>
14342
14343         memcmp: Move AC_LIBOBJ invocations to module description.
14344         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14345         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14346         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14347         * modules/memcmp (configure.ac): ... to here.
14348         (Depends-on): Update conditions.
14349
14350 2011-05-21  Bruno Haible  <bruno@clisp.org>
14351
14352         memchr: Respect rules for use of AC_LIBOBJ.
14353         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14354         invocations from here...
14355         * modules/memchr (configure.ac): ... to here.
14356
14357 2011-05-21  Bruno Haible  <bruno@clisp.org>
14358
14359         mbtowc: Move AC_LIBOBJ invocations to module description.
14360         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14361         invocations from here...
14362         * modules/mbtowc (configure.ac): ... to here.
14363
14364 2011-05-21  Bruno Haible  <bruno@clisp.org>
14365
14366         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14367         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14368         gl_PREREQ_MBSRTOWCS invocations from here...
14369         * modules/mbsrtowcs (configure.ac): ... to here.
14370
14371 2011-05-21  Bruno Haible  <bruno@clisp.org>
14372
14373         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14374         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14375         gl_PREREQ_MBSNRTOWCS invocations from here...
14376         * modules/mbsnrtowcs (configure.ac): ... to here.
14377
14378 2011-05-21  Bruno Haible  <bruno@clisp.org>
14379
14380         mbsinit: Move AC_LIBOBJ invocations to module description.
14381         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14382         invocations from here...
14383         * modules/mbsinit (configure.ac): ... to here.
14384
14385 2011-05-21  Bruno Haible  <bruno@clisp.org>
14386
14387         mbrlen: Move AC_LIBOBJ invocations to module description.
14388         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14389         invocations from here...
14390         * modules/mbrlen (configure.ac): ... to here.
14391
14392 2011-05-21  Bruno Haible  <bruno@clisp.org>
14393
14394         mbrtowc: Respect rules for use of AC_LIBOBJ.
14395         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14396         invocations from here...
14397         * modules/mbrtowc (configure.ac): ... to here.
14398
14399 2011-05-21  Bruno Haible  <bruno@clisp.org>
14400
14401         malloc-*: Move AC_LIBOBJ invocations to module description.
14402         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14403         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14404         AC_LIBOBJ invocations from here...
14405         * modules/malloc-gnu (configure.ac): ... to here.
14406         * modules/malloc-posix (configure.ac): ... and here.
14407
14408 2011-05-21  Bruno Haible  <bruno@clisp.org>
14409
14410         lstat, openat: Respect rules for use of AC_LIBOBJ.
14411         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14412         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14413         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14414         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14415         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14416         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14417         here.
14418         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14419
14420 2011-05-21  Bruno Haible  <bruno@clisp.org>
14421
14422         lseek: Move AC_LIBOBJ invocations to module description.
14423         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14424         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14425         * modules/lseek (configure.ac): ... to here.
14426
14427 2011-05-21  Bruno Haible  <bruno@clisp.org>
14428
14429         linkat: Move AC_LIBOBJ invocations to module description.
14430         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14431         here...
14432         * modules/linkat (configure.ac): ... to here.
14433
14434 2011-05-21  Bruno Haible  <bruno@clisp.org>
14435
14436         link: Respect rules for use of AC_LIBOBJ.
14437         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14438         * modules/link (configure.ac): ... to here.
14439
14440 2011-05-21  Bruno Haible  <bruno@clisp.org>
14441
14442         lchown: Move AC_LIBOBJ invocations to module description.
14443         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14444         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14445         * modules/lchown (configure.ac): ... to here.
14446
14447 2011-05-21  Bruno Haible  <bruno@clisp.org>
14448
14449         iswctype: Move AC_LIBOBJ invocations to module description.
14450         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14451         here...
14452         * modules/iswctype (configure.ac): ... to here.
14453
14454 2011-05-21  Bruno Haible  <bruno@clisp.org>
14455
14456         iswblank: Move AC_LIBOBJ invocations to module description.
14457         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14458         here...
14459         * modules/iswblank (configure.ac): ... to here.
14460
14461 2011-05-21  Bruno Haible  <bruno@clisp.org>
14462
14463         atanl: Move AC_LIBOBJ invocations to module description.
14464         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14465         * modules/atanl (configure.ac): ... to here.
14466
14467 2011-05-21  Bruno Haible  <bruno@clisp.org>
14468
14469         acosl: Move AC_LIBOBJ invocations to module description.
14470         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14471         * modules/acosl (configure.ac): ... to here.
14472
14473 2011-05-21  Bruno Haible  <bruno@clisp.org>
14474
14475         asinl: Respect rules for use of AC_LIBOBJ.
14476         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14477         * modules/asinl (configure.ac): ... to here.
14478
14479 2011-05-21  Bruno Haible  <bruno@clisp.org>
14480
14481         tanl: Move AC_LIBOBJ invocations to module description.
14482         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14483         * modules/tanl (configure.ac): ... to here.
14484
14485 2011-05-21  Bruno Haible  <bruno@clisp.org>
14486
14487         cosl: Move AC_LIBOBJ invocations to module description.
14488         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14489         * modules/cosl (configure.ac): ... to here.
14490
14491 2011-05-21  Bruno Haible  <bruno@clisp.org>
14492
14493         sinl: Move AC_LIBOBJ invocations to module description.
14494         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14495         * modules/sinl (configure.ac): ... to here.
14496
14497 2011-05-21  Bruno Haible  <bruno@clisp.org>
14498
14499         logl: Move AC_LIBOBJ invocations to module description.
14500         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14501         * modules/logl (configure.ac): ... to here.
14502
14503 2011-05-21  Bruno Haible  <bruno@clisp.org>
14504
14505         expl: Move AC_LIBOBJ invocations to module description.
14506         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14507         * modules/expl (configure.ac): ... to here.
14508
14509 2011-05-21  Bruno Haible  <bruno@clisp.org>
14510
14511         roundl: Move AC_LIBOBJ invocations to module description.
14512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14513         * modules/roundl (configure.ac): ... to here.
14514
14515 2011-05-21  Bruno Haible  <bruno@clisp.org>
14516
14517         round: Move AC_LIBOBJ invocations to module description.
14518         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14519         * modules/round (configure.ac): ... to here.
14520
14521 2011-05-21  Bruno Haible  <bruno@clisp.org>
14522
14523         roundf: Move AC_LIBOBJ invocations to module description.
14524         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14525         * modules/roundf (configure.ac): ... to here.
14526
14527 2011-05-21  Bruno Haible  <bruno@clisp.org>
14528
14529         truncl: Move AC_LIBOBJ invocations to module description.
14530         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14531         * modules/truncl (configure.ac): ... to here.
14532
14533 2011-05-21  Bruno Haible  <bruno@clisp.org>
14534
14535         trunc: Move AC_LIBOBJ invocations to module description.
14536         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14537         * modules/trunc (configure.ac): ... to here.
14538
14539 2011-05-21  Bruno Haible  <bruno@clisp.org>
14540
14541         truncf: Move AC_LIBOBJ invocations to module description.
14542         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14543         * modules/truncf (configure.ac): ... to here.
14544
14545 2011-05-21  Bruno Haible  <bruno@clisp.org>
14546
14547         ceill: Move AC_LIBOBJ invocations to module description.
14548         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14549         * modules/ceill (configure.ac): ... to here.
14550
14551 2011-05-21  Bruno Haible  <bruno@clisp.org>
14552
14553         ceil: Move AC_LIBOBJ invocations to module description.
14554         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14555         * modules/ceil (configure.ac): ... to here.
14556
14557 2011-05-21  Bruno Haible  <bruno@clisp.org>
14558
14559         ceilf: Move AC_LIBOBJ invocations to module description.
14560         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14561         * modules/ceilf (configure.ac): ... to here.
14562
14563 2011-05-21  Bruno Haible  <bruno@clisp.org>
14564
14565         floorl: Respect rules for use of AC_LIBOBJ.
14566         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14567         * modules/floorl (configure.ac): ... to here.
14568
14569 2011-05-21  Bruno Haible  <bruno@clisp.org>
14570
14571         floor: Respect rules for use of AC_LIBOBJ.
14572         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14573         * modules/floor (configure.ac): ... to here.
14574
14575 2011-05-21  Bruno Haible  <bruno@clisp.org>
14576
14577         floorf: Move AC_LIBOBJ invocations to module description.
14578         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14579         * modules/floorf (configure.ac): ... to here.
14580
14581 2011-05-20  Bruno Haible  <bruno@clisp.org>
14582
14583         sqrtl: Respect rules for use of AC_LIBOBJ.
14584         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14585         * modules/sqrtl (configure.ac): ... to here.
14586
14587 2011-05-20  Bruno Haible  <bruno@clisp.org>
14588
14589         ldexpl: Respect rules for use of AC_LIBOBJ.
14590         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14591         * modules/ldexpl (configure.ac): ... to here.
14592
14593 2011-05-20  Bruno Haible  <bruno@clisp.org>
14594
14595         frexpl*: Respect rules for use of AC_LIBOBJ.
14596         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14597         invocation from here...
14598         * modules/frexpl (configure.ac): ... to here.
14599         * modules/frexpl-nolibm (configure.ac): ... and here.
14600
14601 2011-05-20  Bruno Haible  <bruno@clisp.org>
14602
14603         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14604         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14605         invocation from here...
14606         * modules/frexp (configure.ac): ... to here.
14607         * modules/frexp-nolibm (configure.ac): ... and here.
14608
14609 2011-05-20  Bruno Haible  <bruno@clisp.org>
14610
14611         isnan: Respect rules for use of AC_LIBOBJ.
14612         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14613         invocations here.
14614         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14615         REPLACE_ISNAN.
14616         * modules/isnand (configure.ac): Likewise.
14617         * modules/isnanl (configure.ac): Likewise.
14618
14619 2011-05-20  Bruno Haible  <bruno@clisp.org>
14620
14621         isnanl*: Respect rules for use of AC_LIBOBJ.
14622         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14623         invocation from here...
14624         * modules/isnanl (configure.ac): ... to here.
14625         * modules/isnanl-nolibm (configure.ac): ... and here.
14626
14627 2011-05-20  Bruno Haible  <bruno@clisp.org>
14628
14629         isnand*: Move AC_LIBOBJ invocations to module description.
14630         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14631         invocation from here...
14632         * modules/isnand (configure.ac): ... to here.
14633         * modules/isnand-nolibm (configure.ac): ... and here.
14634
14635 2011-05-20  Bruno Haible  <bruno@clisp.org>
14636
14637         isnanf*: Move AC_LIBOBJ invocations to module description.
14638         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14639         invocation from here...
14640         * modules/isnanf (configure.ac): ... to here.
14641         * modules/isnanf-nolibm (configure.ac): ... and here.
14642
14643 2011-05-20  Bruno Haible  <bruno@clisp.org>
14644
14645         isnan*: Separate the AC_LIBOBJ invocations.
14646         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14647         AC_LIBOBJ invocation.
14648         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14649         here.
14650         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14651         AC_LIBOBJ invocation.
14652         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14653         here.
14654         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14655         AC_LIBOBJ invocation.
14656         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14657         here.
14658         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14659
14660 2011-05-08  Bruno Haible  <bruno@clisp.org>
14661
14662         isinf: Move AC_LIBOBJ invocations to module description.
14663         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14664         * modules/isinf (configure.ac): ... to here.
14665
14666 2011-05-08  Bruno Haible  <bruno@clisp.org>
14667
14668         isfinite: Move AC_LIBOBJ invocations to module description.
14669         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14670         * modules/isfinite (configure.ac): ... to here.
14671
14672 2011-05-08  Bruno Haible  <bruno@clisp.org>
14673
14674         isblank: Move AC_LIBOBJ invocations to module description.
14675         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14676         here...
14677         * modules/isblank (configure.ac): ... to here.
14678
14679 2011-05-08  Bruno Haible  <bruno@clisp.org>
14680
14681         isapipe: Move AC_LIBOBJ invocations to module description.
14682         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14683         gl_PREREQ_ISAPIPE invocations from here...
14684         * modules/isapipe (configure.ac): ... to here.
14685         (Depends-on): Update condition.
14686
14687 2011-05-08  Bruno Haible  <bruno@clisp.org>
14688
14689         ioctl: Move AC_LIBOBJ invocations to module description.
14690         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14691         invocations from here...
14692         * modules/ioctl (configure.ac): ... to here.
14693         (Depends-on): Update condition.
14694
14695 2011-05-08  Bruno Haible  <bruno@clisp.org>
14696
14697         imaxdiv: Move AC_LIBOBJ invocations to module description.
14698         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14699         invocations from here...
14700         * modules/imaxdiv (configure.ac): ... to here.
14701
14702 2011-05-08  Bruno Haible  <bruno@clisp.org>
14703
14704         imaxabs: Move AC_LIBOBJ invocations to module description.
14705         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14706         invocations from here...
14707         * modules/imaxabs (configure.ac): ... to here.
14708
14709 2011-05-08  Bruno Haible  <bruno@clisp.org>
14710
14711         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14712         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14713         AC_LIBOBJ invocations from here...
14714         * modules/getaddrinfo (configure.ac): ... to here.
14715         (Depends-on): Add conditions.
14716
14717 2011-05-08  Bruno Haible  <bruno@clisp.org>
14718
14719         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14720         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14721         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14722         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14723         (gl_PREREQ_INET_PTON): ... from here.
14724         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14725         gl_PREREQ_INET_PTON here.
14726         (Depends-on): Update condition.
14727
14728 2011-05-08  Bruno Haible  <bruno@clisp.org>
14729
14730         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14731         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14732         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14733         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14734         (gl_PREREQ_INET_NTOP): ... from here.
14735         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14736         gl_PREREQ_INET_NTOP here.
14737         (Depends-on): Update condition.
14738
14739 2011-05-08  Bruno Haible  <bruno@clisp.org>
14740
14741         iconv_open: Move AC_LIBOBJ invocations to module description.
14742         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14743         AC_LIBOBJ invocations from here...
14744         * modules/iconv_open (configure.ac): ... to here.
14745
14746 2011-05-08  Bruno Haible  <bruno@clisp.org>
14747
14748         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14749         If module 'iconv_open' is among the main modules and module
14750         'iconv_open-utf' is among the tests dependencies, then
14751         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14752         return the special iconv_t values. Therefore iconv() and iconv_close()
14753         must support these special iconv_t values, already in lib, not only in
14754         tests.
14755         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14756         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14757         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14758         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14759         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14760         (Depends-on): Add the dependencies of iconv_open-utf.
14761         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14762         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14763         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14764
14765 2011-05-08  Bruno Haible  <bruno@clisp.org>
14766
14767         group-member: Move AC_LIBOBJ invocations to module description.
14768         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14769         gl_PREREQ_GROUP_MEMBER invocations from here...
14770         * modules/group-member (configure.ac): ... to here.
14771
14772 2011-05-08  Bruno Haible  <bruno@clisp.org>
14773
14774         grantpt: Move AC_LIBOBJ invocations to module description.
14775         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14776         invocations from here...
14777         * modules/grantpt (configure.ac): ... to here.
14778
14779 2011-05-08  Bruno Haible  <bruno@clisp.org>
14780
14781         glob: Move AC_LIBOBJ invocations to module description.
14782         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14783         from here...
14784         * modules/glob (configure.ac): ... to here.
14785
14786 2011-05-08  Bruno Haible  <bruno@clisp.org>
14787
14788         getusershell: Move AC_LIBOBJ invocations to module description.
14789         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14790         Move AC_LIBOBJ invocation from here...
14791         * modules/getusershell (configure.ac): ... to here.
14792         (Depends-on): Update condition.
14793
14794 2011-05-08  Bruno Haible  <bruno@clisp.org>
14795
14796         gettimeofday: Move AC_LIBOBJ invocations to module description.
14797         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14798         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14799         gl_PREREQ_GETTIMEOFDAY invocations from here...
14800         * modules/gettimeofday (configure.ac): ... to here.
14801
14802 2011-05-08  Bruno Haible  <bruno@clisp.org>
14803
14804         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14805         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14806         just gl_FUNC_TZSET.
14807         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14808         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14809         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14810         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14811
14812 2011-05-08  Bruno Haible  <bruno@clisp.org>
14813
14814         getsubopt: Move AC_LIBOBJ invocations to module description.
14815         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14816         gl_PREREQ_GETSUBOPT invocations from here...
14817         * modules/getsubopt (configure.ac): ... to here.
14818
14819 2011-05-08  Bruno Haible  <bruno@clisp.org>
14820
14821         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14822         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14823         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14824         * modules/getpass-gnu (configure.ac): ... to here.
14825
14826 2011-05-08  Bruno Haible  <bruno@clisp.org>
14827
14828         getpass: Move AC_LIBOBJ invocations to module description.
14829         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14830         gl_PREREQ_GETPASS invocations from here...
14831         * modules/getpass (configure.ac): ... to here.
14832
14833 2011-05-08  Bruno Haible  <bruno@clisp.org>
14834
14835         getpagesize: Move AC_LIBOBJ invocations to module description.
14836         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14837         from here...
14838         * modules/getpagesize (configure.ac): ... to here.
14839
14840 2011-05-08  Bruno Haible  <bruno@clisp.org>
14841
14842         getopt: Move AC_LIBOBJ invocations to module description.
14843         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14844         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14845         invocations from here...
14846         * modules/getopt-gnu (configure.ac): ... to here.
14847         * modules/getopt-posix (configure.ac): ... and here.
14848         (Depends-on): Update condition.
14849
14850 2011-05-08  Bruno Haible  <bruno@clisp.org>
14851
14852         getopt, argp: Respect rules for use of AC_LIBOBJ.
14853         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14854         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14855         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14856         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14857
14858 2011-05-08  Bruno Haible  <bruno@clisp.org>
14859
14860         getlogin_r: Move AC_LIBOBJ invocations to module description.
14861         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14862         gl_PREREQ_GETLOGIN_R invocations from here...
14863         * modules/getlogin_r (configure.ac): ... to here.
14864
14865 2011-05-08  Bruno Haible  <bruno@clisp.org>
14866
14867         getlogin: Move AC_LIBOBJ invocations to module description.
14868         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14869         here...
14870         * modules/getlogin (configure.ac): ... to here.
14871
14872 2011-05-08  Bruno Haible  <bruno@clisp.org>
14873
14874         getloadavg: Move AC_LIBOBJ invocations to module description.
14875         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14876         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14877         * modules/getloadavg (configure.ac): ... to here.
14878
14879 2011-05-08  Bruno Haible  <bruno@clisp.org>
14880
14881         gethrxtime: Move AC_LIBOBJ invocations to module description.
14882         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14883         LIB_GETHRXTIME from here...
14884         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14885         invocations from here...
14886         * modules/gethrxtime (configure.ac): ... to here.
14887
14888 2011-05-08  Bruno Haible  <bruno@clisp.org>
14889
14890         gethostname: Move AC_LIBOBJ invocations to module description.
14891         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14892         gl_PREREQ_GETHOSTNAME invocations from here...
14893         * modules/gethostname (configure.ac): ... to here.
14894
14895 2011-05-08  Bruno Haible  <bruno@clisp.org>
14896
14897         getgroups: Move AC_LIBOBJ invocations to module description.
14898         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14899         here...
14900         * modules/getgroups (configure.ac): ... to here.
14901
14902 2011-05-08  Bruno Haible  <bruno@clisp.org>
14903
14904         getdtablesize: Move AC_LIBOBJ invocations to module description.
14905         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14906         invocation from here...
14907         * modules/getdtablesize (configure.ac): ... to here.
14908
14909 2011-05-08  Bruno Haible  <bruno@clisp.org>
14910
14911         getdomainname: Move AC_LIBOBJ invocations to module description.
14912         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14913         gl_PREREQ_GETDOMAINNAME invocations from here...
14914         * modules/getdomainname (configure.ac): ... to here.
14915
14916 2011-05-08  Bruno Haible  <bruno@clisp.org>
14917
14918         getline: Move AC_LIBOBJ invocations to module description.
14919         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14920         invocations from here...
14921         * modules/getline (configure.ac): ... to here.
14922
14923 2011-05-08  Bruno Haible  <bruno@clisp.org>
14924
14925         getline: Simplify.
14926         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14927         It's already handled through the module dependency.
14928
14929 2011-05-08  Bruno Haible  <bruno@clisp.org>
14930
14931         getdelim: Move AC_LIBOBJ invocations to module description.
14932         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14933         and gl_PREREQ_GETDELIM invocations from here...
14934         * modules/getdelim (configure.ac): ... to here.
14935         (Depends-on): Fix condition.
14936
14937 2011-05-08  Bruno Haible  <bruno@clisp.org>
14938
14939         getcwd: Move AC_LIBOBJ invocations to module description.
14940         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14941         invocations from here...
14942         * modules/getcwd (configure.ac): ... to here.
14943
14944 2011-05-08  Bruno Haible  <bruno@clisp.org>
14945
14946         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14947         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14948         here...
14949         * modules/getcwd-lgpl (configure.ac): ... to here.
14950
14951 2011-05-07  Bruno Haible  <bruno@clisp.org>
14952
14953         crypto/gc: Move AC_LIBOBJ invocations to module description.
14954         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14955         * modules/crypto/gc (configure.ac): ... to here.
14956
14957 2011-05-07  Bruno Haible  <bruno@clisp.org>
14958
14959         fwriting: Move AC_LIBOBJ invocations to module description.
14960         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14961         here...
14962         * modules/fwriting (configure.ac): ... to here.
14963
14964 2011-05-07  Bruno Haible  <bruno@clisp.org>
14965
14966         fwritable: Move AC_LIBOBJ invocations to module description.
14967         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14968         here...
14969         * modules/fwritable (configure.ac): ... to here.
14970
14971 2011-05-07  Bruno Haible  <bruno@clisp.org>
14972
14973         futimens: Move AC_LIBOBJ invocations to module description.
14974         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14975         here...
14976         * modules/futimens (configure.ac): ... to here.
14977
14978 2011-05-07  Bruno Haible  <bruno@clisp.org>
14979
14980         ftruncate: Move AC_LIBOBJ invocations to module description.
14981         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14982         gl_PREREQ_FTRUNCATE invocations from here...
14983         * modules/ftruncate (configure.ac): ... to here.
14984
14985 2011-05-07  Bruno Haible  <bruno@clisp.org>
14986
14987         fsync: Move AC_LIBOBJ invocations to module description.
14988         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14989         invocations from here...
14990         * modules/fsync (configure.ac): ... to here.
14991
14992 2011-05-07  Bruno Haible  <bruno@clisp.org>
14993
14994         fsusage: Move AC_LIBOBJ invocations to module description.
14995         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14996         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14997         * modules/fsusage (configure.ac): ... to here.
14998
14999 2011-05-07  Bruno Haible  <bruno@clisp.org>
15000
15001         freopen: Move AC_LIBOBJ invocations to module description.
15002         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15003         invocations from here...
15004         * modules/freopen (configure.ac): ... to here.
15005
15006 2011-05-07  Bruno Haible  <bruno@clisp.org>
15007
15008         free: Move AC_LIBOBJ invocations to module description.
15009         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15010         invocations from here...
15011         * modules/free (configure.ac): ... to here.
15012
15013 2011-05-07  Bruno Haible  <bruno@clisp.org>
15014
15015         freadable: Move AC_LIBOBJ invocations to module description.
15016         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15017         here...
15018         * modules/freadable (configure.ac): ... to here.
15019
15020 2011-05-07  Bruno Haible  <bruno@clisp.org>
15021
15022         fpurge: Move AC_LIBOBJ invocations to module description.
15023         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15024         invocations from here...
15025         * modules/fpurge (configure.ac): ... to here.
15026
15027 2011-05-07  Bruno Haible  <bruno@clisp.org>
15028
15029         fpending: Move AC_LIBOBJ invocations to module description.
15030         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15031         gl_FUNC_FPENDING.
15032         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15033         invocations from here...
15034         * modules/fpending (configure.ac): ... to here.
15035
15036 2011-05-07  Bruno Haible  <bruno@clisp.org>
15037
15038         fopen: Move AC_LIBOBJ invocations to module description.
15039         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15040         invocations from here...
15041         * modules/fopen (configure.ac): ... to here.
15042
15043 2011-05-07  Bruno Haible  <bruno@clisp.org>
15044
15045         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15046         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15047         gl_FUNC_FNMATCH_POSIX.
15048         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15049         invocations from here...
15050         * modules/fnmatch (configure.ac): ... to here.
15051         * modules/fnmatch-gnu (configure.ac): ... and here.
15052
15053 2011-05-07  Bruno Haible  <bruno@clisp.org>
15054
15055         flock: Move AC_LIBOBJ invocations to module description.
15056         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15057         invocations from here...
15058         * modules/flock (configure.ac): ... to here.
15059
15060 2011-05-07  Bruno Haible  <bruno@clisp.org>
15061
15062         fileblocks: Move AC_LIBOBJ invocations to module description.
15063         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15064         gl_PREREQ_FILEBLOCKS invocations from here...
15065         * modules/fileblocks (configure.ac): ... to here.
15066
15067 2011-05-06  Bruno Haible  <bruno@clisp.org>
15068
15069         fflush: Move AC_LIBOBJ invocations to module description.
15070         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15071         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15072         invocations from here...
15073         * modules/fflush (configure.ac): ... to here.
15074
15075 2011-05-06  Bruno Haible  <bruno@clisp.org>
15076
15077         fdopendir: Move AC_LIBOBJ invocations to module description.
15078         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15079         here...
15080         * modules/fdopendir (configure.ac): ... to here.
15081         (Depends-on): Improve conditions.
15082
15083 2011-05-06  Bruno Haible  <bruno@clisp.org>
15084
15085         _Exit: Move AC_LIBOBJ invocations to module description.
15086         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15087         invocations from here...
15088         * modules/_Exit (configure.ac): ... to here.
15089
15090 2011-05-21  Bruno Haible  <bruno@clisp.org>
15091
15092         euidaccess: Respect rules for use of AC_LIBOBJ.
15093         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15094         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15095         from here...
15096         * modules/euidaccess (configure.ac): ... to here.
15097
15098 2011-05-06  Bruno Haible  <bruno@clisp.org>
15099
15100         error: Move AC_LIBOBJ invocations to module description.
15101         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15102         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15103         invocations from here...
15104         * modules/error (configure.ac): ... to here.
15105
15106 2011-05-06  Bruno Haible  <bruno@clisp.org>
15107
15108         duplocale: Move AC_LIBOBJ invocations to module description.
15109         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15110         gl_PREREQ_DUPLOCALE invocations from here...
15111         * modules/duplocale (configure.ac): ... to here.
15112
15113 2011-05-05  Bruno Haible  <bruno@clisp.org>
15114
15115         dirfd: Move AC_LIBOBJ invocations to module description.
15116         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15117         gl_FUNC_DIRFD.
15118         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15119         here...
15120         * modules/dirfd (configure.ac): ... to here.
15121         (Depends-on): Fix condition.
15122
15123 2011-05-05  Bruno Haible  <bruno@clisp.org>
15124
15125         chown: Respect rules for use of AC_LIBOBJ.
15126         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15127         * modules/chown (configure.ac): ... to here.
15128
15129 2011-05-05  Bruno Haible  <bruno@clisp.org>
15130
15131         chdir-long: Move AC_LIBOBJ invocations to module description.
15132         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15133         gl_PREREQ_CHDIR_LONG invocations from here...
15134         * modules/chdir-long (configure.ac): ... to here.
15135
15136 2011-05-05  Bruno Haible  <bruno@clisp.org>
15137
15138         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15139         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15140         from here...
15141         * modules/canonicalize-lgpl (configure.ac): ... to here.
15142
15143 2011-05-05  Bruno Haible  <bruno@clisp.org>
15144
15145         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15146         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15147         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15148         REPLACE_CALLOC.
15149         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15150         * modules/calloc-gnu (configure.ac): Likewise.
15151
15152 2011-05-05  Bruno Haible  <bruno@clisp.org>
15153
15154         btowc: Move AC_LIBOBJ invocations to module description.
15155         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15156         invocations from here...
15157         * modules/btowc (configure.ac): ... to here.
15158
15159 2011-05-21  Bruno Haible  <bruno@clisp.org>
15160
15161         atexit: Move AC_LIBOBJ invocations to module description.
15162         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15163         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15164         here...
15165         * modules/atexit (configure.ac): ... to here.
15166
15167 2011-05-05  Bruno Haible  <bruno@clisp.org>
15168
15169         atoll: Move AC_LIBOBJ invocations to module description.
15170         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15171         invocations from here...
15172         * modules/atoll (configure.ac): ... to here.
15173
15174 2011-05-05  Bruno Haible  <bruno@clisp.org>
15175
15176         argz: Move AC_LIBOBJ invocations to module description.
15177         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15178         * modules/argz (configure.ac): ... to here.
15179
15180 2011-05-05  Bruno Haible  <bruno@clisp.org>
15181
15182         alphasort: Move AC_LIBOBJ invocations to module description.
15183         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15184         gl_PREREQ_ALPHASORT invocations from here...
15185         * modules/alphasort (configure.ac): ... to here.
15186
15187 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15188
15189         verify: new macro verify_expr; verify_true deprecated
15190         * NEWS: Mention this.
15191         * doc/verify.texi (Compile-time Assertions): Document this.
15192         * lib/verify.h (verify_true): Deprecate.
15193         (verify_expr): New macro.
15194         * tests/test-verify.c (function): Test verify_expr.
15195
15196 2011-06-14  Jim Meyering  <meyering@redhat.com>
15197
15198         init.sh: give more portable redirection-related advice in a comment
15199         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15200         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15201         for lots of discussion.  Stefano Lattarini suggested the solution
15202         of putting "9>&2" after the command.  Reported by Bruno Haible.
15203
15204 2011-06-13  Bruno Haible  <bruno@clisp.org>
15205
15206         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15207         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15208         'none'.
15209
15210 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15211
15212         ftoastr: use strtof only if HAVE_STRTOF
15213         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15215         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15216         * modules/ftoastr (configure.ac): Check for strtof.
15217
15218 2011-06-13  Bruno Haible  <bruno@clisp.org>
15219
15220         gnulib-tool: Addendum to 2011-06-08 commit.
15221         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15222         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15223
15224 2011-06-13  Bruno Haible  <bruno@clisp.org>
15225
15226         fseeko: Provide a non-inline replacement of fseek().
15227         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15228         * modules/fseeko (Depends-on): Add fseek.
15229         * modules/fseek (License): Change to LGPLv2+.
15230
15231 2011-06-13  Bruno Haible  <bruno@clisp.org>
15232
15233         ftello: Provide a non-inline replacement of ftell().
15234         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15235         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15236         not have ftello() (such as on mingw).
15237         * modules/ftello (Depends-on): Add ftell.
15238         * modules/ftell (License): Change to LGPLv2+.
15239
15240 2011-05-07  Bruno Haible  <bruno@clisp.org>
15241
15242         ftell: Move AC_LIBOBJ invocations to module description.
15243         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15244         * modules/ftell (configure.ac): ... to here.
15245
15246 2011-05-07  Bruno Haible  <bruno@clisp.org>
15247
15248         ftello: Respect rules for use of AC_LIBOBJ.
15249         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15250         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15251         here...
15252         * modules/ftello (configure.ac): ... to here.
15253
15254 2011-05-07  Bruno Haible  <bruno@clisp.org>
15255
15256         fseeko: Simplify.
15257         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15258         (gl_FUNC_FSEEKO): Inline it here.
15259
15260 2011-05-07  Bruno Haible  <bruno@clisp.org>
15261
15262         fseek: Move AC_LIBOBJ invocations to module description.
15263         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15264         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15265         * modules/fseek (configure.ac): ... to here.
15266
15267 2011-05-07  Bruno Haible  <bruno@clisp.org>
15268
15269         fseek: Respect rules for use of AC_LIBOBJ.
15270         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15271         here...
15272         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15273
15274 2011-05-07  Bruno Haible  <bruno@clisp.org>
15275
15276         fseeko: Respect rules for use of AC_LIBOBJ.
15277         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15278         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15279         here...
15280         * modules/fseeko (configure.ac): ... to here.
15281
15282 2011-06-13  Bruno Haible  <bruno@clisp.org>
15283
15284         gnulib-tool: Allow comments in the 'Depends-on' section.
15285         * doc/gnulib.texi (Module description): Mention comment syntax in the
15286         Depends-on section.
15287         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15288
15289 2011-06-13  Bruno Haible  <bruno@clisp.org>
15290
15291         file-set.h: guard __attibute__ use, now that it's not always defined
15292         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15293         versions that support it.  This fixes a coreutils build failure with
15294         the vendor cc on HP-UX 11.31.
15295
15296 2011-06-12  Bruno Haible  <bruno@clisp.org>
15297
15298         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15299         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15300         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15301         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15302         (acl, aclsort): New declarations.
15303         (aclv_nontrivial): New declaration.
15304         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15305         (file_has_acl): Read also the second kind of HP-UX ACLs.
15306         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15307         kind of HP-UX ACLs if the first kind fails.
15308         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15309         second kind of HP-UX ACLs.
15310         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15311         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15312         agree.
15313         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15314         hpuxjfs.
15315         Handle hpuxjfs.
15316         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15317         hpuxjfs.
15318         Handle hpuxjfs.
15319         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15320         (func_test_same_acls): Use both lsacl and getacl.
15321         Handle hpuxjfs.
15322         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15323         (func_test_same_acls): Use both lsacl and getacl.
15324         Handle hpuxjfs.
15325
15326 2011-06-12  Bruno Haible  <bruno@clisp.org>
15327
15328         acl: Complete the 2010-08-10 fix.
15329         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15330         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15331         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15332         explicitly.
15333         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15334         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15335
15336 2011-06-12  Bruno Haible  <bruno@clisp.org>
15337
15338         spawn-pipe tests: Comments.
15339         * tests/test-spawn-pipe-child.c (main): Update comment.
15340         Reported by James Youngman <jay@gnu.org>.
15341
15342 2011-06-11  James Youngman  <jay@gnu.org>
15343
15344         New module 'stat-size'.
15345         * modules/stat-size: New module.  Provides macros for accessing
15346         file size information in instances of struct stat.  Depends on the
15347         fileblocks module because it calls st_blocks.
15348         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15349         * doc/gnulib.texi: Include stat-size.texi.
15350         * doc/stat-size.texi: Documentation for this module.
15351         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15352         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15353         AC_STRUCT_ST_BLOCKS.
15354
15355 2011-06-09  Bruno Haible  <bruno@clisp.org>
15356
15357         thread: Support pthreads-win32.
15358         * lib/glthread/thread.h (gl_thread_self): Define differently on
15359         pthreads-win32.
15360         (gl_null_thread): New declaration.
15361         (gl_thread_self_pointer): New macro.
15362         * lib/glthread/thread.c (gl_null_thread): New constant.
15363         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15364         gl_thread_self.
15365         * tests/test-tls.c: Likewise.
15366         Suggested by Paul Eggert. Reported by Eric Blake.
15367
15368 2011-06-09  Bruno Haible  <bruno@clisp.org>
15369
15370         thread: Fix confusion between NULL and 0.
15371         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15372         Reported by Paul Eggert.
15373
15374 2011-06-09  Bruno Haible  <bruno@clisp.org>
15375
15376         spawn-pipe tests: Avoid test failure on HP-UX 11.
15377         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15378         is closed.
15379
15380 2011-06-09  Bruno Haible  <bruno@clisp.org>
15381
15382         acl tests: Fix compilation error on HP-UX 11.
15383         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15384
15385 2011-06-09  Bruno Haible  <bruno@clisp.org>
15386
15387         rmdir: Avoid test failure on HP-UX 10.20.
15388         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15389         EEXIST.
15390
15391 2011-06-08  Eric Blake  <eblake@redhat.com>
15392
15393         perror: fix test on mingw
15394         * modules/perror-tests (Depends-on): Add dup2.
15395
15396         strerror_r-posix: fix on MacOS
15397         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15398         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15399         logic bug.
15400         * lib/strerror_r.c (strerror_r): Fix the bug.
15401         * lib/strerror.c (strerror): Likewise.
15402         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15403         problem.
15404         * doc/posix-functions/strerror.texi (strerror): Likewise.
15405         * doc/posix-functions/perror.texi (perror): Likewise.
15406         * tests/test-strerror.c (main): Enhance test.
15407         * tests/test-strerror_r.c (main): Likewise.
15408
15409 2011-06-08  Bruno Haible  <bruno@clisp.org>
15410
15411         gnulib-tool: Better isolation between different gnulib-tool invocations.
15412         * gnulib-tool: New option --witness-c-macro.
15413         (witness_c_macro): New variable.
15414         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15415         AM_CPPFLAGS define it as a C macro.
15416         (func_emit_tests_Makefile_am): Likewise.
15417         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15418         read it from there.
15419         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15420         m4_define, not AC_DEFUN.
15421         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15422         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15423         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15424         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15425         s|...|...|, to substitute the values of the GNULIB_* module indicator
15426         variables.
15427         * modules/dirent (Makefile.am): Likewise.
15428         * modules/fcntl-h (Makefile.am): Likewise.
15429         * modules/iconv-h (Makefile.am): Likewise.
15430         * modules/langinfo (Makefile.am): Likewise.
15431         * modules/locale (Makefile.am): Likewise.
15432         * modules/math (Makefile.am): Likewise.
15433         * modules/netdb (Makefile.am): Likewise.
15434         * modules/poll-h (Makefile.am): Likewise.
15435         * modules/pty (Makefile.am): Likewise.
15436         * modules/search (Makefile.am): Likewise.
15437         * modules/signal (Makefile.am): Likewise.
15438         * modules/spawn (Makefile.am): Likewise.
15439         * modules/stdio (Makefile.am): Likewise.
15440         * modules/stdlib (Makefile.am): Likewise.
15441         * modules/string (Makefile.am): Likewise.
15442         * modules/sys_ioctl (Makefile.am): Likewise.
15443         * modules/sys_select (Makefile.am): Likewise.
15444         * modules/sys_socket (Makefile.am): Likewise.
15445         * modules/sys_stat (Makefile.am): Likewise.
15446         * modules/sys_times (Makefile.am): Likewise.
15447         * modules/sys_utsname (Makefile.am): Likewise.
15448         * modules/sys_wait (Makefile.am): Likewise.
15449         * modules/termios (Makefile.am): Likewise.
15450         * modules/time (Makefile.am): Likewise.
15451         * modules/unistd (Makefile.am): Likewise.
15452         * modules/wchar (Makefile.am): Likewise.
15453
15454 2011-06-08  Eric Blake  <eblake@redhat.com>
15455
15456         strerror: simplify replacement
15457         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15458         * modules/strerror (configure.ac): No prereqs needed here...
15459         * modules/strerror-override (configure.ac): ...but this needs it.
15460         (Files): Add file for needed prereq macro.
15461
15462 2011-06-08  Bruno Haible  <bruno@clisp.org>
15463
15464         strerror_r-posix: Tweaks.
15465         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15466         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15467         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15468         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15469         (gl_FUNC_STRERROR_R): ... to here.
15470         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15471
15472 2011-06-07  Eric Blake  <eblake@redhat.com>
15473
15474         perror: document fixed bugs
15475         * doc/posix-functions/perror.texi (perror): Document recent
15476         patches.
15477
15478 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15479
15480         stat-time: get_stat_birthtime failure is better-defined
15481         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15482         return a timestamp whose tv_sec and tv_nsec values are both -1.
15483         Previously, the spec said only that the tv_nsec value was negative.
15484         This upward-compatible change simplifies GNU tar a bit.
15485
15486 2011-06-07  Eric Blake  <eblake@redhat.com>
15487
15488         strerror_r-posix: work around cygwin 1.7.9
15489         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15490         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15491         bug without replacing strerror_r.
15492         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15493         strerror_r is buggy, but without requiring strerror_r compilation.
15494         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15495
15496         test-perror: relax test to ignore cygwin bug
15497         * tests/test-perror2.c (main): Relax test on requiring detection
15498         of stream errors, and use unbuffered stream.
15499         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15500         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15501         * doc/posix-functions/fputc.texi (fputc): Likewise.
15502         * doc/posix-functions/fputs.texi (fputs): Likewise.
15503         * doc/posix-functions/fputws.texi (fputws): Likewise.
15504         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15505         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15506         * doc/posix-functions/getopt.texi (getopt): Likewise.
15507         * doc/posix-functions/perror.texi (perror): Likewise.
15508         * doc/posix-functions/printf.texi (printf): Likewise.
15509         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15510         * doc/posix-functions/psignal.texi (psignal): Likewise.
15511         * doc/posix-functions/putc.texi (putc): Likewise.
15512         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15513         Likewise.
15514         * doc/posix-functions/putchar.texi (putchar): Likewise.
15515         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15516         Likewise.
15517         * doc/posix-functions/puts.texi (puts): Likewise.
15518         * doc/posix-functions/putwc.texi (putwc): Likewise.
15519         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15520         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15521         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15522         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15523         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15524         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15525         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15526         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15527
15528 2011-05-22  Bruno Haible  <bruno@clisp.org>
15529
15530         strerror: Move AC_LIBOBJ invocations to module description.
15531         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15532         gl_PREREQ_STRERROR invocations from here...
15533         * modules/strerror (configure.ac): ... to here.
15534
15535 2011-05-21  Bruno Haible  <bruno@clisp.org>
15536
15537         perror: Use common idiom.
15538         * modules/perror (configure.ac): Reorder statements.
15539
15540 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15541
15542         tests: fix usage message in 'mktempd_'
15543         * tests/init.sh (mktempd_): In the usage message, use literal
15544         'mktempd_', not '$ME' (which is even undefined), as the name of
15545         the subroutine.
15546
15547 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15548
15549         tests init: new function 'fatal_', for hard errors
15550         Before this patch, the only way offered by tests/init.sh to
15551         properly signal a hard error was the `framework_failure_'
15552         function.  But the error message issued by that function,
15553         as its name would suggest, refers to a set-up failure in the
15554         testsuite, while hard errors can obviously also be due to
15555         other reasons.  The best way to fix this inconsistency is to
15556         introduce a new function with a more general error message.
15557         * tests/init.sh (fatal_): New function.
15558
15559 2011-06-06  Eric Blake  <eblake@redhat.com>
15560
15561         canonicalize-lgpl: use common idiom
15562         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15563         over newer POSIX -Rf.
15564         Reported by Bruno Haible.
15565
15566         canonicalize-lgpl: work around AIX realpath bug
15567         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15568         * doc/posix-functions/realpath.texi (realpath): Document it.
15569         Reported by Bruno Haible.
15570
15571         strerror: work around FreeBSD bug
15572         * lib/strerror.c (strerror): Special case 0.
15573         Reported by Bruno Haible.
15574
15575         strerror-override: avoid bloating errno module
15576         * modules/errno (Files, configure.ac): Move replacement strings...
15577         * modules/strerror-override: ...to new module.
15578         * modules/strerror (Depends-on): Add strerror-override.
15579         * modules/strerror_r-posix (Depends-on): Likewise.
15580         * MODULES.html.sh: Document new module.
15581         Reported by Bruno Haible.
15582
15583 2011-06-06  Bruno Haible  <bruno@clisp.org>
15584
15585         spawn-pipe tests: Rename program.
15586         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15587         * tests/test-spawn-pipe-child.c: Update comment.
15588         * tests/test-spawn-pipe.sh: Update.
15589         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15590
15591         spawn-pipe tests: Link the child program only against libc.
15592         * tests/test-spawn-pipe-child.c: New file, extracted from
15593         tests/test-spawn-pipe.c.
15594         (main): Expect only one argument.
15595         (is_open): New function, copied from tests/test-pipe.c.
15596         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15597         (child_main): Remove function.
15598         (test_pipe): Pass only one argument to the child program.
15599         (main): Remove child process code. Expect the child program's name as
15600         first argument.
15601         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15602         argument.
15603         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15604         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15605         test-spawn-pipe-child against no libraries.
15606
15607 2011-06-06  Bruno Haible  <bruno@clisp.org>
15608
15609         careadlinkat: Avoid mismatch between ssize_t and int.
15610         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15611         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15612
15613 2011-06-06  Jim Meyering  <meyering@redhat.com>
15614
15615         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15616         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15617         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15618
15619 2011-06-05  Bruno Haible  <bruno@clisp.org>
15620
15621         ansi-c++-opt: Interoperability with libtool.
15622         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15623         set the variable to "no", not to ":".
15624         * NEWS: Mention the change.
15625
15626 2011-06-05  Bruno Haible  <bruno@clisp.org>
15627
15628         acl: Fix test failure on AIX 7.
15629         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15630         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15631
15632 2011-06-05  Bruno Haible  <bruno@clisp.org>
15633
15634         pipe-filter-ii: Fix test failure on AIX and IRIX.
15635         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15636         with EAGAIN, retry with a smaller buffer size.
15637
15638 2011-06-05  Bruno Haible  <bruno@clisp.org>
15639
15640         localename: Fix link dependencies.
15641         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15642         * modules/localename-tests (Makefile.am): Link test-localename with
15643         $(LIBTHREAD).
15644
15645 2011-06-05  Bruno Haible  <bruno@clisp.org>
15646
15647         error: Avoid gcc warning.
15648         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15649
15650 2011-06-05  Bruno Haible  <bruno@clisp.org>
15651
15652         unsetenv: Avoid gcc warning.
15653         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15654
15655 2011-06-05  Bruno Haible  <bruno@clisp.org>
15656
15657         setenv: Avoid gcc warning.
15658         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15659
15660 2011-06-05  Bruno Haible  <bruno@clisp.org>
15661
15662         sys_select: Ensure memset is declared also on AIX 7.
15663         * lib/sys_select.in.h: Include <string.h> also on AIX.
15664         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15665         self-contained also on AIX 7.1.
15666
15667 2011-06-04  Jim Meyering  <meyering@redhat.com>
15668
15669         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15670         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15671         function name, "error".
15672         (_gl_translatable_diag_func_re): New configurable variable.
15673
15674 2011-06-04  Bruno Haible  <bruno@clisp.org>
15675
15676         getopt: Avoid gcc warning.
15677         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15678
15679 2011-06-04  Bruno Haible  <bruno@clisp.org>
15680
15681         strerror_r: Fix comments.
15682         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15683         commit.
15684
15685 2011-06-04  Bruno Haible  <bruno@clisp.org>
15686
15687         perror: Fix compilation error.
15688         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15689         Undefine fprintf, not sprintf.
15690         * modules/perror (Depends-on): Remove intprops, verify.
15691
15692 2011-06-04  Bruno Haible  <bruno@clisp.org>
15693
15694         setlocale: Enable replacement on Cygwin 1.5.
15695         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15696         Cygwin 1.5.x.
15697         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15698         LC_CTYPE category also exists on Cygwin 1.5.x.
15699
15700 2011-06-04  Bruno Haible  <bruno@clisp.org>
15701
15702         strerror-override: Don't disable symbol renamings.
15703         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15704         * lib/strerror-override.c: Include config.h.
15705         (strerror_override): Don't undefine.
15706
15707 2011-06-03  Bruno Haible  <bruno@clisp.org>
15708
15709         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15710         * lib/localename.h: Update copyright header.
15711         * lib/localename.c: Likewise.
15712         * lib/relocatable.h: Likewise.
15713         * lib/relocatable.c: Likewise.
15714
15715 2011-06-02  Bruno Haible  <bruno@clisp.org>
15716
15717         doc: Fix a module name.
15718         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15719
15720 2011-06-02  Bruno Haible  <bruno@clisp.org>
15721
15722         pipe2: Remove dependency on 'nonblocking' module.
15723         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15724         O_NONBLOCK is defined by gnulib.
15725         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15726         is zero.
15727         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15728         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15729         defined by gnulib.
15730         (get_nonblocking_flag): New function.
15731         (main): Test O_NONBLOCK flag only if it is nonzero.
15732         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15733
15734 2011-06-03  Jim Meyering  <meyering@redhat.com>
15735
15736         maint: three new prohibit-header-without-use rules
15737         Prohibit use of cloexec.h, posixver.h, same.h without use.
15738         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15739         (sc_prohibit_posixver_without_use): Likewise.
15740         (sc_prohibit_same_without_use): Likewise.
15741
15742 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15743
15744         allocator: 'die' routine is now given requested size
15745         * lib/allocator.h (struct allocator.die): New size arg.
15746         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15747         If the actual problem is an ssize_t limitation, not a size_t or
15748         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15749
15750 2011-06-01  Eric Blake  <eblake@redhat.com>
15751
15752         strerror: drop strerror_r dependency
15753         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15754         * lib/strerror-override.c (strerror_override): ...to new file.
15755         * lib/strerror-override.h: Add prototype.
15756         * lib/strerror-impl.h: Delete.
15757         * lib/strerror.c (strerror): New implementation.
15758         * modules/errno (Files): Add new files.
15759         (configure.ac): Compile new file as appropriate.
15760         * modules/strerror (Files): Drop unused file.
15761         (Depends-on): Drop strerror_r-posix.
15762         * MODULES.html.sh: Document strerror_r-posix.
15763         Requested by Sam Steingold.
15764
15765         perror: call strerror_r directly
15766         * modules/perror (Files): Drop strerror-impl.h.
15767         * lib/perror.c (perror): Use our own stack buffer, rather than
15768         calling a wrapper that uses static storage.
15769         * doc/posix-functions/perror.texi (perror): Document a limitation
15770         of our replacement.
15771
15772         strerror_r: fix includes for FreeBSD
15773         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15774         since we use abort on some platforms.
15775         Reported by Matthias Bolte.
15776
15777 2011-05-31  Bruno Haible  <bruno@clisp.org>
15778
15779         Fix link errors in tests: openat-die uses gettext-h.
15780         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15781         against $(LIBINTL).
15782         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15783         against $(LIBINTL).
15784         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15785         $(LIBINTL).
15786         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15787         against $(LIBINTL).
15788         * modules/linkat-tests (Makefile.am): Link test-linkat against
15789         $(LIBINTL).
15790         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15791         $(LIBINTL).
15792         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15793         against $(LIBINTL).
15794         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15795         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15796         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15797         $(LIBINTL).
15798         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15799         $(LIBINTL).
15800         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15801         $(LIBINTL).
15802         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15803
15804 2011-05-31  Bruno Haible  <bruno@clisp.org>
15805
15806         Fix link errors in tests: wait-process uses gettext-h.
15807         * modules/nonblocking-pipe-tests (Makefile.am): Set
15808         test_nonblocking_pipe_main_LDADD.
15809         * modules/nonblocking-socket-tests (Makefile.am): Link
15810         test-nonblocking-socket-main against $(LIBINTL).
15811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15812
15813 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15814
15815         assert-h: work around 'verify' incompatibility
15816         * lib/verify.h: Use @...@ directives, not ifdef.
15817         * modules/assert-h (assert.h): Implement the directives.
15818         (assert.h): Substitute the symbol-prefix more consistently.
15819
15820 2011-05-29  Jim Meyering  <meyering@redhat.com>
15821
15822         trim: remove three superfluous assignments
15823         * lib/trim.c (trim2): Remove three superfluous assignments
15824         and correct brace positioning.
15825
15826 2011-05-29  Bruno Haible  <bruno@clisp.org>
15827
15828         wctype-h: Avoid namespace pollution on Solaris 2.6.
15829         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15830         identifiers.
15831         * doc/posix-headers/wctype.texi: Mention the problem.
15832         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15833
15834 2011-05-28  Jim Meyering  <meyering@redhat.com>
15835
15836         parse-datetime.y: accommodate -Wstrict-overflow
15837         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15838         placate -Wstrict-overflow.
15839
15840         trim: avoid a warning from -O2 -Wstrict-overflow
15841         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15842
15843 2011-05-29  Bruno Haible  <bruno@clisp.org>
15844
15845         gnulib-tool: Fix bug in yesterday's commit.
15846         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15847         twice.
15848
15849 2011-05-29  Bruno Haible  <bruno@clisp.org>
15850
15851         Allow multiple gnulib generated include files to be combined.
15852         * gnulib-tool (func_compute_include_guard_prefix): New function.
15853         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15854         ${gl_include_guard_prefix} references.
15855         (func_import, func_create_testdir): Invoke
15856         func_compute_include_guard_prefix.
15857         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15858         * lib/ctype.in.h: Likewise.
15859         * lib/dirent.in.h: Likewise.
15860         * lib/errno.in.h: Likewise.
15861         * lib/fcntl.in.h: Likewise.
15862         * lib/float.in.h: Likewise.
15863         * lib/getopt.in.h: Likewise.
15864         * lib/iconv.in.h: Likewise.
15865         * lib/langinfo.in.h: Likewise.
15866         * lib/locale.in.h: Likewise.
15867         * lib/math.in.h: Likewise.
15868         * lib/netdb.in.h: Likewise.
15869         * lib/netinet_in.in.h: Likewise.
15870         * lib/poll.in.h: Likewise.
15871         * lib/pthread.in.h: Likewise.
15872         * lib/pty.in.h: Likewise.
15873         * lib/sched.in.h: Likewise.
15874         * lib/se-selinux.in.h: Likewise.
15875         * lib/search.in.h: Likewise.
15876         * lib/signal.in.h: Likewise.
15877         * lib/spawn.in.h: Likewise.
15878         * lib/stdarg.in.h: Likewise.
15879         * lib/stddef.in.h: Likewise.
15880         * lib/stdint.in.h: Likewise.
15881         * lib/stdio.in.h: Likewise.
15882         * lib/stdlib.in.h: Likewise.
15883         * lib/string.in.h: Likewise.
15884         * lib/strings.in.h: Likewise.
15885         * lib/sys_file.in.h: Likewise.
15886         * lib/sys_ioctl.in.h: Likewise.
15887         * lib/sys_select.in.h: Likewise.
15888         * lib/sys_socket.in.h: Likewise.
15889         * lib/sys_stat.in.h: Likewise.
15890         * lib/sys_time.in.h: Likewise.
15891         * lib/sys_times.in.h: Likewise.
15892         * lib/sys_uio.in.h: Likewise.
15893         * lib/sys_utsname.in.h: Likewise.
15894         * lib/sys_wait.in.h: Likewise.
15895         * lib/sysexits.in.h: Likewise.
15896         * lib/termios.in.h: Likewise.
15897         * lib/time.in.h: Likewise.
15898         * lib/unistd.in.h: Likewise.
15899         * lib/wchar.in.h: Likewise.
15900         * lib/wctype.in.h: Likewise.
15901         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15902         * modules/ctype (Makefile.am): Likewise.
15903         * modules/dirent (Makefile.am): Likewise.
15904         * modules/errno (Makefile.am): Likewise.
15905         * modules/fcntl-h (Makefile.am): Likewise.
15906         * modules/float (Makefile.am): Likewise.
15907         * modules/getopt-posix (Makefile.am): Likewise.
15908         * modules/iconv-h (Makefile.am): Likewise.
15909         * modules/langinfo (Makefile.am): Likewise.
15910         * modules/locale (Makefile.am): Likewise.
15911         * modules/math (Makefile.am): Likewise.
15912         * modules/netdb (Makefile.am): Likewise.
15913         * modules/netinet_in (Makefile.am): Likewise.
15914         * modules/poll-h (Makefile.am): Likewise.
15915         * modules/pthread (Makefile.am): Likewise.
15916         * modules/pty (Makefile.am): Likewise.
15917         * modules/sched (Makefile.am): Likewise.
15918         * modules/search (Makefile.am): Likewise.
15919         * modules/selinux-h (Makefile.am): Likewise.
15920         * modules/signal (Makefile.am): Likewise.
15921         * modules/spawn (Makefile.am): Likewise.
15922         * modules/stdarg (Makefile.am): Likewise.
15923         * modules/stddef (Makefile.am): Likewise.
15924         * modules/stdint (Makefile.am): Likewise.
15925         * modules/stdio (Makefile.am): Likewise.
15926         * modules/stdlib (Makefile.am): Likewise.
15927         * modules/string (Makefile.am): Likewise.
15928         * modules/strings (Makefile.am): Likewise.
15929         * modules/sys_file (Makefile.am): Likewise.
15930         * modules/sys_ioctl (Makefile.am): Likewise.
15931         * modules/sys_select (Makefile.am): Likewise.
15932         * modules/sys_socket (Makefile.am): Likewise.
15933         * modules/sys_stat (Makefile.am): Likewise.
15934         * modules/sys_time (Makefile.am): Likewise.
15935         * modules/sys_times (Makefile.am): Likewise.
15936         * modules/sys_uio (Makefile.am): Likewise.
15937         * modules/sys_utsname (Makefile.am): Likewise.
15938         * modules/sys_wait (Makefile.am): Likewise.
15939         * modules/sysexits (Makefile.am): Likewise.
15940         * modules/termios (Makefile.am): Likewise.
15941         * modules/time (Makefile.am): Likewise.
15942         * modules/unistd (Makefile.am): Likewise.
15943         * modules/wchar (Makefile.am): Likewise.
15944         * modules/wctype-h (Makefile.am): Likewise.
15945         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15946
15947 2011-05-29  Bruno Haible  <bruno@clisp.org>
15948
15949         assert-h: Allow multiple gnulib generated replacements to coexist.
15950         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15951
15952 2011-05-29  Bruno Haible  <bruno@clisp.org>
15953
15954         argp: Allow coexistence with strerror_r-posix module.
15955         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15956         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15957         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15958         not the glibc signature.
15959
15960 2011-05-28  Bruno Haible  <bruno@clisp.org>
15961
15962         gnulib-tool: Alternative structure of testdirs, similar to --import.
15963         * gnulib-tool: New option --single-configure.
15964         (func_usage): Document it.
15965         (single_configure): New variable.
15966         (func_modules_transitive_closure_separately,
15967         func_modules_transitive_closure_separately,
15968         func_determine_use_libtests, func_modules_add_dummy_separately,
15969         func_modules_to_filelist_separately): New functions, extracted from
15970         func_import.
15971         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15972         (func_import): Use the new functions.
15973         (func_create_testdir): Set final_modules. Handle $single_configure =
15974         true case.
15975
15976 2011-05-28  Bruno Haible  <bruno@clisp.org>
15977
15978         getloadavg: Remove an unreliable safety check.
15979         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15980         getloadavg.c is in place.
15981         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15982         Reported by Sam Steingold <sds@gnu.org>.
15983
15984 2011-05-28  Bruno Haible  <bruno@clisp.org>
15985
15986         doc: Cleanup yet another file produced by texinfo.tex.
15987         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15988
15989 2011-05-28  Bruno Haible  <bruno@clisp.org>
15990
15991         Finish the conditional dependencies mechanism.
15992         * gnulib-tool: New option --no-conditional-dependencies.
15993         (func_usage): Document it. Don't mark --conditional-dependencies as
15994         experimental.
15995         (cond_dependencies): The possible values can now be true, false, empty.
15996         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15997         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15998         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15999
16000 2011-05-28  Bruno Haible  <bruno@clisp.org>
16001
16002         doc: Use a recent texinfo.tex.
16003         * doc/Makefile (tex_opts): New variable.
16004         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16005
16006 2011-05-28  Jim Meyering  <meyering@redhat.com>
16007
16008         intprops.h: adjust comment to match code change
16009         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16010         only once, it *may* have side effects.  Also fix an unrelated typo.
16011         (_GL_INT_SIGNED): Likewise.
16012
16013 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16014
16015         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16016
16017 2011-05-26  Bruno Haible  <bruno@clisp.org>
16018
16019         mbsrchr: Avoid collision with system function on Interix.
16020         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16021         Reported by Markus Duft <mduft@gentoo.org>.
16022
16023 2011-05-15  James Youngman  <jay@gnu.org>
16024
16025         getopt: for ambiguous options, enumerate the possibilities.
16026         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16027         the ambiguous options when an ambiguous prefix is given. This was
16028         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16029         glibc change was
16030         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16031
16032 2011-05-25  Eric Blake  <eblake@redhat.com>
16033
16034         getcwd: work around mingw bug
16035         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16036         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16037         Reported by Matthias Bolte.
16038
16039 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16040
16041         test-intprops: disable -Wtype-limits diagnostics
16042         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16043         diagnostics.  Otherwise, the integer overflow macros generate many
16044         diagnostics.  Reported by Jim Meyering in
16045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16046
16047         intprops: shorten, to pacify gcc -Woverlength-strings
16048         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16049         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16050         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16051         likely to run afoul of C compiler limits for string constant lengths.
16052         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16053
16054 2011-05-24  Eric Blake  <eblake@redhat.com>
16055
16056         docs: document recently fixed glibc printf bug
16057         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16058         * doc/posix-functions/printf.texi (printf): Likewise.
16059         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16060         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16061
16062         closein-tests: convert to init.sh
16063         * modules/closein-tests (Files): Add init.sh
16064         * tests/test-closein.sh Use it.
16065
16066         yesno-tests: convert to init.sh
16067         * modules/yesno-tests (Files): Add init.sh.
16068         * tests/test-yesno.sh: Use it.
16069
16070         atexit-tests: ensure reliable exit status
16071         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16072         Reported by Bruno Haible.
16073
16074 2011-05-24  Bruno Haible  <bruno@clisp.org>
16075
16076         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16077         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16078         gl_PREREQ_STRERROR_R invocations from here...
16079         * modules/strerror_r-posix (configure.ac): ... to here.
16080
16081 2011-05-24  Eric Blake  <eblake@redhat.com>
16082
16083         strerror_r: fix missing header
16084         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16085
16086         strerror_r: fix AIX test failures
16087         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16088         ERANGE failure.
16089
16090         strerror_r: fix Solaris test failures
16091         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16092         failures.
16093         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16094
16095         strerror_r: enforce POSIX recommendations
16096         * lib/strerror_r.c (safe_copy): New helper method.
16097         (strerror_r): Guarantee a non-empty string.
16098         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16099         recent POSIX rulings and to match our strerror guarantees.
16100         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16101
16102 2011-05-24  Jim Meyering  <meyering@redhat.com>
16103
16104         test-perror2.c: avoid warning about unused variable
16105         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16106
16107 2011-05-24  Eric Blake  <eblake@redhat.com>
16108
16109         perror: avoid spurious test failure on HP-UX
16110         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16111
16112         tests: fix logic bug in init.sh
16113         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16114         shell.
16115
16116 2011-05-24  Jim Meyering  <meyering@redhat.com>
16117
16118         utimensat: do not reference an out-of-scope buffer
16119         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16120         declared in an inner scope, yet "times" would be dereferenced outside
16121         the scope in which "ts" was valid.
16122         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16123         of ts[2] "out/up", so that the use of aliased "times" (via
16124         "times = ts;") does not end up referencing an out-of-scope "ts"
16125
16126         opendir-safer.c: don't clobber errno; don't close negative FD
16127         * lib/opendir-safer.c (opendir_safer):
16128         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16129         file descriptor, and more importantly, don't clobber the
16130         offending errno value with EINVAL.  Before, upon failure
16131         of dup_safer, we would pass the negative file descriptor to
16132         fdopendir, which would clobber errno.
16133
16134 2011-05-23  Bruno Haible  <bruno@clisp.org>
16135
16136         idcache: Fix module description.
16137         * modules/idcache (Include): Set to "idcache.h".
16138
16139 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16140
16141         gnulib-tool: fix portability problem with MacOS sed
16142         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16143         before the "}".  Problem reported by Leo in
16144         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16145         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16146         sed_extract_condition1, sed_extract_condition2.
16147
16148 2011-05-23  Bruno Haible  <bruno@clisp.org>
16149
16150         hash: Simplify autoconf macro.
16151         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16152
16153 2011-05-23  Bruno Haible  <bruno@clisp.org>
16154
16155         getugroups: Fix module description.
16156         * modules/getugroups (Include): Set to "getugroups.h".
16157
16158 2011-05-23  Bruno Haible  <bruno@clisp.org>
16159
16160         linkat: Simplify autoconf macro.
16161         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16162
16163 2011-05-23  Bruno Haible  <bruno@clisp.org>
16164             Eric Blake  <eblake@redhat.com>
16165
16166         linkat, renameat: Update dependencies.
16167         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16168         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16169         symlinkat.
16170
16171 2011-05-23  Jim Meyering  <meyering@redhat.com>
16172
16173         maint.mk: more tight_scope improvements
16174         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16175         (_gl_TS_headers): Define only in if-0'd block.
16176         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16177         sometimes we must *not* use it.  Adjust uses accordingly.
16178         (sc_tight_scope): Use much simpler grep-based test to determine
16179         whether we skip this rule.
16180
16181         maint.mk: generalize/improve the tight-scope rule
16182         * top/maint.mk: Emit a warning when the test is skipped.
16183         (_gl_TS_dir): Add $(srcdir)/ prefix.
16184         (_gl_TS_function_match): Simplify, rather than trying
16185         to enumerate common types.  Otherwise, it would fail to match an
16186         "extern unsigned char const *" declaration in idutils.
16187         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16188         a way to support use of that type of macro.
16189         (_gl_TS_var_match): Simplify regexp.
16190         (_gl_TS_obj_files): New configurable variable.
16191         (_gl_TS_headers): Likewise.
16192
16193 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16194
16195         verify: fix bug when gnulib <assert.h> is also included
16196         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16197         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16198         Perhaps there's a better way, but this fixes the immediate problem.
16199         Problem reported by Bruno Haible in
16200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16201
16202 2011-05-22  Bruno Haible  <bruno@clisp.org>
16203
16204         xgetcwd: Simplify autoconf macro.
16205         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16206
16207 2011-05-22  Bruno Haible  <bruno@clisp.org>
16208
16209         New module 'mktime-internal'.
16210         * modules/mktime-internal: New file.
16211         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16212         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16213         mktime_internal as a C macro if libc has __mktime_internal.
16214         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16215         conditions.
16216         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16217
16218 2011-05-22  Bruno Haible  <bruno@clisp.org>
16219
16220         timegm: Correct mktime replacement statements.
16221         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16222         defining mktime as a C macro. This completes a 2009-07-28 commit.
16223
16224 2011-05-22  Bruno Haible  <bruno@clisp.org>
16225
16226         timegm: Simplify autoconf macro.
16227         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16228
16229 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16230
16231         clock-time: change to LGPLv2+.
16232         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16233         BSD-like but we have no mark for that; this is good enough for now.
16234
16235 2011-05-21  Bruno Haible  <bruno@clisp.org>
16236
16237         strerror_r: Fix comments.
16238         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16239
16240 2011-05-21  Bruno Haible  <bruno@clisp.org>
16241
16242         relocatable-prog-wrapper: Fix possible link error.
16243         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16244         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16245         (gl_FUNC_SETENV): ... to here.
16246         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16247         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16248
16249 2011-05-21  Bruno Haible  <bruno@clisp.org>
16250
16251         relocatable-prog-wrapper: Assume strerror() exists.
16252         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16253         m4/strerror.m4.
16254         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16255         * lib/relocwrapper.c: Remove mention of strerror module.
16256         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16257         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16258         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16259         C macro.
16260
16261 2011-05-21  Bruno Haible  <bruno@clisp.org>
16262
16263         select: Simplify replacement idiom.
16264         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16265         Win32 platforms.
16266         * lib/sys_select.in.h (select): Simplify accordingly.
16267         * modules/select (Depends-on): Likewise.
16268
16269 2011-05-21  Bruno Haible  <bruno@clisp.org>
16270
16271         mkdir-p: Simplify autoconf macro.
16272         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16273         gl_FUNC_LCHOWN.
16274
16275 2011-05-21  Eric Blake  <eblake@redhat.com>
16276
16277         strerror_r: avoid clobbering strerror on cygwin
16278         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16279         fall back instead to sys_errlist.
16280         * modules/strerror (configure.ac): Add witness.
16281         * tests/test-strerror_r.c (main): Enhance test.
16282         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16283         * tests/test-perror2.c (main): Free memory before exit.
16284
16285 2011-05-21  Bruno Haible  <bruno@clisp.org>
16286
16287         mkdtemp: Use gnulib naming conventions.
16288         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16289         * modules/mkdtemp (configure.ac): Update.
16290
16291 2011-05-20  Eric Blake  <eblake@redhat.com>
16292
16293         strerror_r: avoid corrupting errno on Solaris
16294         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16295         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16296
16297         strerror_r: avoid compiler warning
16298         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16299
16300         strerror_r: simplify AIX code
16301         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16302
16303         test-perror: avoid spurious failure on FreeBSD
16304         * modules/perror-tests (Depends-on): Add strerror, now that
16305         strerror_r no longer pulls it in.
16306
16307 2011-05-20  Bruno Haible  <bruno@clisp.org>
16308
16309         strerror_r-posix: Remove unused dependencies.
16310         * modules/strerror_r-posix (Depends-on): Remove strerror.
16311         Reported by Eric Blake.
16312
16313 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16314
16315         intprops: remove assumption about A|B representation
16316         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16317         is a valid integer if both A and B are.  Although this is true for
16318         all known practical hosts, the C standard doesn't guarantee it,
16319         and the code need not assume it.  Also, this change may work around
16320         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16322
16323 2011-05-20  Eric Blake  <eblake@redhat.com>
16324
16325         perror: work around FreeBSD bug
16326         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16327         is broken.  Move AC_LIBOBJ...
16328         * modules/perror (configure.ac): Here.
16329         * doc/posix-functions/perror.texi (perror): Document this.
16330         * tests/test-perror2.c (main): Enhance test.
16331
16332         test-perror: check for strerror interactions
16333         * tests/macros.h (STREQ): Add macro.
16334         * modules/perror-tests (Files): Add second test.
16335         * tests/test-perror2.c (main): New file.
16336         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16337
16338         test-perror: rewrite to use init script
16339         * modules/perror-tests (Files): Add init.sh.
16340         * tests/test-perror.sh: Use temporary directory.
16341
16342 2011-05-20  Jim Meyering  <meyering@redhat.com>
16343
16344         maint: replace misused "a" with "an"
16345         * doc/intprops.texi: "a integer"
16346         * doc/regex.texi: "a explanation"
16347         * lib/alignof.h: "a object"
16348         * lib/argmatch.h: "a explanation"
16349         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16350         * lib/stdint.in.h: "a integer"
16351         * lib/userspec.c: "a owner"
16352         * doc/gnulib.texi: Fix "a idea", and reword.
16353
16354 2011-05-19  Jim Meyering  <meyering@redhat.com>
16355
16356         maint: correct misuse of "a" and "an"
16357         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16358         * lib/argp-help.c: "an docum...": s/an/a/
16359         * lib/argp-parse.c: "An vector": s/An/A/
16360         * lib/execute.c: "an native": s/an/a/
16361         * lib/spawn-pipe.c: Likewise.
16362         * lib/gc.h: "an Gc_rc": s/an/a/
16363         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16364         * lib/fts.c: "an stat.st_dev": s/an/a/
16365
16366 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16367
16368         intprops-tests: work around HP-UX 11.23 cc bug with constants
16369         * tests/test-intprops.c (VERIFY): New macro.
16370         (main): Use it, instead of verify, to work around the compiler bug; see
16371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16372
16373         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16374         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16375         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16376         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16377         (_GL_REMAINDER_OVERFLOW): Use it.
16378
16379         intprops-tests: revert unsigned part of previous change
16380         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16381         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16382         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16384
16385 2011-05-19  Bruno Haible  <bruno@clisp.org>
16386
16387         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16388         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16389         strerror_r() returned without filling the buffer.
16390         Reported by Eric Blake.
16391
16392 2011-05-19  Eric Blake  <eblake@redhat.com>
16393
16394         strerror_r: guarantee unchanged errno
16395         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16396         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16397         failure.
16398         * tests/test-strerror_r.c (main): Enhance test.
16399
16400 2011-05-19  Bruno Haible  <bruno@clisp.org>
16401
16402         strerror_r: Reorder #if blocks.
16403         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16404         for consistency with the previous commit.
16405
16406 2011-05-19  Bruno Haible  <bruno@clisp.org>
16407
16408         perror: Avoid clobbering the strerror buffer when possible.
16409         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16410         * lib/strerror.c: Include it.
16411         * modules/strerror (Files): Add lib/strerror-impl.h.
16412         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16413         (my_strerror): New function, defined through lib/strerror-impl.h.
16414         (perror): Use it instead of strerror.
16415         * modules/perror (Files): Add lib/strerror-impl.h.
16416         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16417
16418 2011-05-19  Eric Blake  <eblake@redhat.com>
16419
16420         strerror_r: fix on newer cygwin
16421         * lib/strerror_r.c (strerror_r): Cygwin now has
16422         __xpg_strerror_r, use it.
16423
16424 2011-05-19  Bruno Haible  <bruno@clisp.org>
16425
16426         strerror_r: Avoid clobbering the strerror buffer when possible.
16427         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16428         (sys_nerr, sys_errlist): New declarations.
16429         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16430         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16431         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16432
16433 2011-05-19  Bruno Haible  <bruno@clisp.org>
16434
16435         strerror_r: Fix test failure on mingw.
16436         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16437         EXTEND_STRERROR_R.
16438         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16439         macros from errno.in.h instead.
16440
16441 2011-05-19  Eric Blake  <eblake@redhat.com>
16442
16443         strerror: relax test for Solaris
16444         * tests/test-strerror.c (main): Permit Solaris behavior.
16445         * tests/test-strerror_r.c (main): Likewise.
16446
16447         strerror: enforce POSIX ruling on strerror(0)
16448         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16449         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16450         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16451         * doc/posix-functions/strerror.texi (strerror): Document it.
16452         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16453         * tests/test-strerror.c (main): Strengthen test.
16454         * tests/test-strerror_r.c (main): Likewise.
16455
16456 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16457
16458         intprop-tests: port to older and more-pedantic compilers
16459         * modules/intprops-tests (Files): Add tests/macros.h.
16460         * tests/test-intprops.c: Include macros.h.
16461         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16462         it's no longer documented to expand to an integer constant expression.
16463         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16464         argument is floating point, as it's no longer documented to expand
16465         to an integer constant expression in that case.
16466         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16467         compiler bugs reported by Bruno Haible.  See
16468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16469         (U0, U1): New constants, to work around the same bugs.  Also,
16470         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16471
16472         intprops: work around C compiler bugs
16473         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16474         bug in Sun C 5.11 2010/08/13 and other compilers; see
16475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16476
16477         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16478         * doc/intprops.texi (Integer Type Determination): Fix
16479         documentation for TYPE_IS_INTEGER: it returns an constant
16480         expression, not an integer constant expression.  Fix doc for
16481         TYPE_SIGNED: it returns an integer constant expression only if its
16482         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16483         hardly worth documented that way....)
16484
16485 2011-05-18  Bruno Haible  <bruno@clisp.org>
16486
16487         strerror_r: Avoid clobbering the strerror buffer when possible.
16488         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16489         Handle gnulib defined errno values here. When strerror() returns NULL
16490         or an empty string, return EINVAL.
16491         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16492         gnulib defined errno values here.
16493         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16494
16495 2011-05-18  Eric Blake  <eblake@redhat.com>
16496
16497         fnmatch: avoid compiler warning
16498         * lib/fnmatch_loop.c (FCT): Use correct type.
16499         Reported by Matthias Bolte.
16500
16501 2011-05-13  Jim Meyering  <meyering@redhat.com>
16502
16503         maint.mk: three new prohibit_<HDR>_without_use rules
16504         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16505         (sc_prohibit_stdio-safer_without_use): Likewise.
16506         (sc_prohibit_xfreopen_without_use): Likewise.
16507
16508 2011-05-17  Jim Meyering  <meyering@redhat.com>
16509
16510         announce-gen: fail if the NEWS delta is empty
16511         If there's nothing noteworthy in NEWS, then either you forgot
16512         or you shouldn't be releasing.
16513         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16514
16515 2011-05-17  Pádraig Brady <P@draigBrady.com>
16516
16517         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16518         reserved symbols starting with double underscore from the check.
16519
16520 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         intprops: add doc
16523         * doc/intprops.texi: New file, documenting intprops.
16524         * doc/gnulib.texi (Particular Modules): Include it.
16525
16526         verify: add doc to gnulib manual and fix example
16527         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16528         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16529         (Compile-time Assertions): Fix example so it can't overflow.
16530
16531 2011-05-17  Jim Meyering  <meyering@redhat.com>
16532
16533         warnings.m4: don't usurp save_CPPFLAGS variable name
16534         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16535
16536         doc: fix typo
16537         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16538
16539 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16540             Bruno Haible  <bruno@clisp.org>
16541
16542         doc: Tweak recent change.
16543         * README (Portability guidelines): Tweak new text.
16544         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16545         Interix 6.1.
16546
16547 2011-05-16  Eric Blake  <eblake@redhat.com>
16548
16549         inttypes: avoid autoconf warning
16550         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16551         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16552
16553 2011-05-16  Sam Steingold <sds@gnu.org>
16554         and Eric Blake  <eblake@redhat.com>
16555
16556         vc-list-files: accept multiple directory operands
16557         * build-aux/vc-list-files: Iterate over all remaining operands.
16558
16559 2011-05-16  Bruno Haible  <bruno@clisp.org>
16560
16561         Fix confusion regarding deprecated modules.
16562         * modules/calloc (Status, Notice): Mark module as deprecated, not
16563         obsolete.
16564         * modules/fnmatch-posix (Status, Notice): Likewise.
16565         * modules/getdate (Status, Notice): Likewise.
16566         * modules/getopt (Status, Notice): Likewise.
16567         * modules/malloc (Status, Notice): Likewise.
16568         * modules/pipe (Status, Notice): Likewise.
16569         * modules/realloc (Status, Notice): Likewise.
16570         * modules/rename-dest-slash (Status, Notice): Likewise.
16571         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16572         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16573         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16574         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16575         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16576
16577 2011-05-16  Bruno Haible  <bruno@clisp.org>
16578
16579         doc: List the target platforms.
16580         * doc/gnulib-intro.texi (Target Platforms): New section.
16581         * doc/gnulib.texi (Introduction): Update menu.
16582         * README (Portability guidelines): Refer to the new section. Update
16583         statement about oldest supported environment. Remove rationale why
16584         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16585         unportable C89 function.
16586         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16587         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16588
16589 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16590
16591         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16592
16593 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16594
16595         intprops-tests: new module
16596         * modules/intprops-tests, tests/test-intprops.c: New files.
16597
16598         intprops: add safe, portable integer overflow checking
16599         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16600         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16601         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16602         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16603         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16604         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16605         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16606         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16607         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16608         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16609         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16610
16611 2011-05-12  James Youngman  <jay@gnu.org>
16612
16613         Add a test for glibc's Bugzilla bug #12378.
16614         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16615         doesn't allow the literal matching of a lone "[" (which is
16616         required by POSIX).
16617         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16618
16619 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16620
16621         Sync glibc change fixing Bugzilla bug #12378.
16622         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16623         beginning and fall back to matching as normal character if the
16624         string ends before the matching ']' is found.  This is what POSIX
16625         requires.
16626
16627 2011-05-13  Eric Blake  <eblake@redhat.com>
16628
16629         getcwd-lgpl: relax test for FreeBSD
16630         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16631         issue.
16632         * tests/test-getcwd-lgpl.c (main): Relax test.
16633         Reported by Matthias Bolte.
16634
16635 2011-05-11  Eric Blake  <eblake@redhat.com>
16636
16637         test-fflush: silence compiler warning
16638         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16639
16640 2011-05-11  Bruno Haible  <bruno@clisp.org>
16641
16642         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16643         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16644         * modules/canonicalize (Depends-on): Add 'nocrash'.
16645         * modules/canonicalize-lgpl (Depends-on): Likewise.
16646         * doc/posix-functions/realpath.texi: Update platforms list.
16647         Reported by Ryan Schmidt <ryandesign@macports.org>.
16648
16649 2011-05-11  Bruno Haible  <bruno@clisp.org>
16650
16651         group-member: Declare function in <unistd.h>.
16652         * lib/unistd.in.h (group_member): New declaration.
16653         * lib/group-member.h: Remove file.
16654         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16655         * tests/test-unistd-c++.cc: Check signature of group_member.
16656         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16657         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16658         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16659         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16660         HAVE_GROUP_MEMBER.
16661         * modules/group-member (Files): Remove lib/group-member.h.
16662         (Depends-on): Add unistd. Specify conditions.
16663         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16664         (Include): Change to <unistd.h>.
16665         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16666         HAVE_GROUP_MEMBER.
16667         * NEWS: Mention the change.
16668         * lib/euidaccess.c: Don't include group-member.h.
16669
16670 2011-05-11  Bruno Haible  <bruno@clisp.org>
16671
16672         group-member: Document module.
16673         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16674         module.
16675
16676 2011-05-11  Bruno Haible  <bruno@clisp.org>
16677
16678         fclose: Fix mistake earlier today.
16679         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16680
16681 2011-05-11  Eric Blake  <eblake@redhat.com>
16682
16683         fclose: preserve fflush errors
16684         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16685         Reported by Jim Meyering.
16686
16687         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16688         * build-aux/bootstrap (check_versions): When no specific version
16689         is required, merely check that the app produces an exit status
16690         that indicates its existence.
16691
16692         maint.mk: drop redundant check
16693         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16694         the same but better.
16695
16696 2011-05-11  Bruno Haible  <bruno@clisp.org>
16697
16698         fclose: Fix possible link error.
16699         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16700         unregister_shadow_fd. Improve comments.
16701         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16702         Eric Blake.
16703
16704 2011-05-11  Jim Meyering  <meyering@redhat.com>
16705
16706         maint.mk: improve "can not" detection and generalize rule name
16707         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16708         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16709         Use the same technique as in sc_prohibit_doubled_word, so that
16710         we recognize "can not" also when the words are separated by a newline.
16711         Suggested by Eric Blake.
16712         (perl_filename_lineno_text_): Define.  Factored out of...
16713         (prohibit_doubled_word_): ...here.  Use the new definition.
16714         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16715         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16716         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16717
16718 2011-05-10  Eric Blake  <eblake@redhat.com>
16719
16720         fclose: avoid double close race when possible
16721         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16722         all but WINDOWS_SOCKETS.
16723
16724 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16725
16726         openat: correct new comment
16727         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16728
16729 2011-05-10  Jim Meyering  <meyering@redhat.com>
16730
16731         openat: add comments
16732         * lib/openat-proc.c (openat_proc_name): Add comments,
16733         mostly from Eric Blake.
16734
16735 2011-05-09  Eric Blake  <eblake@redhat.com>
16736
16737         openat: reduce syscalls in first probe of /proc
16738         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16739         be a directory.  Simplify the probe for .. bugs.
16740         * modules/openat (Depends-on): Drop same-inode.
16741         Reported by Bastien ROUCARIES.
16742
16743 2011-05-09  Jim Meyering  <meyering@redhat.com>
16744
16745         maint.mk: change semantics/name of tight_scope variables
16746         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16747         Rename variables to align with semantics that make them more useful.
16748
16749         maint.mk: tweak new rule's name not to impinge
16750         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16751         (sc_tight_scope): Use new rule name rather than $@-0.
16752
16753         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16754         * top/maint.mk (sc_tight_scope): New rule.
16755         (sc_tight_scope-0): New rule, ifdef'd out.
16756         (_gl_TS_dir): Default.
16757         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16758         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16759
16760 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16761
16762         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16763         Haible <bruno@clisp.org>.
16764
16765 2011-05-08  Bruno Haible  <bruno@clisp.org>
16766
16767         Comments.
16768         * m4/isnanf.m4: Add comment.
16769         * m4/isnanl.m4: Likewise.
16770
16771 2011-05-08  Bruno Haible  <bruno@clisp.org>
16772
16773         glob: Remove obsolete macro.
16774         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16775
16776 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16777
16778         intprops: Sun C 5.11 supports __typeof__
16779         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16780         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16781         which is new.
16782         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16783
16784         intprops: switch to usual gnulib indenting and naming
16785         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16786         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16787
16788         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16789
16790 2011-05-08  Jim Meyering  <meyering@redhat.com>
16791
16792         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16793         * top/maint.mk (release-prep): Use make's --no-print-directory
16794         option when generating the announcement.  This eliminates the
16795         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16796         generated announcement template.
16797
16798 2011-05-08  Bruno Haible  <bruno@clisp.org>
16799
16800         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16801         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16802         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16803
16804 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16805
16806         ignore-value, verify: Omit include files from lib_SOURCES.
16807         * modules/ignore-value, modules/verify (Makefile.am):
16808         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16809         that leads Automake to duplicate use of am__objects_... variables
16810         in Makefile.in.  See
16811         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16812
16813 2011-05-07  Bruno Haible  <bruno@clisp.org>
16814
16815         fclose: Simplify autoconf macro.
16816         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16817         defined.
16818
16819 2011-05-07  Bruno Haible  <bruno@clisp.org>
16820
16821         canonicalize-lgpl: Fix autoconf macro ordering bug.
16822         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16823         gl_STDLIB_H_DEFAULTS.
16824
16825 2011-05-06  Eric Blake  <eblake@redhat.com>
16826
16827         maintainer-makefile: make sc_po_check easier to tune
16828         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16829         to probe for strings, such as an alternate location for gnulib.
16830
16831         fclose: guarantee behavior on seekable stdin
16832         * modules/fclose (Depends-on): Add fflush.
16833         * doc/posix-functions/fclose.texi (fclose): Document this.
16834         * tests/test-fclose.c (main): Make test for this unconditional.
16835
16836 2011-05-06  Bruno Haible  <bruno@clisp.org>
16837
16838         fflush, fpurge: Relicense under LGPLv2+.
16839         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16840         * modules/fpurge (License): Likewise.
16841         With permission from Eric Blake and Jim Meyering.
16842         Suggested by Eric Blake.
16843
16844 2011-05-06  Karl Berry  <karl@gnu.org>
16845
16846         * MODULES.html.sh (func_all_modules): remove exit.
16847
16848 2011-05-06  Jim Meyering  <meyering@redhat.com>
16849
16850         maint.mk: use info-gnu@ as the default only for a stable release
16851         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16852         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16853         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16854         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16855
16856 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16857
16858         assert-h: new module, which supports C1X-style static_assert
16859         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16860         * lib/verify.h: Revamp so that this can be copied into assert.h,
16861         while retaining the ability to use it standalone as before.
16862         Rename private identifiers so as not to encroach on the
16863         standard C namespace, since this is now used by assert.h.
16864         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16865         the old verify_true.
16866         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16867         the old verify_true.  Use _GL_VERIFY_TYPE.
16868         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16869         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16870         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16871         defined when this file is copied into the replacement assert.h.
16872         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16873         and _Static_assert is not built in.
16874         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16875         defined, and use the new macros mentioned above.
16876         * doc/posix-headers/assert.texi: Document this.
16877
16878 2011-05-05  Bruno Haible  <bruno@clisp.org>
16879
16880         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16881         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16882         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16883         gl_REPLACE_FCLOSE here.
16884         * modules/fflush (Depends-on): Remove fclose.
16885         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16886         combination with module 'fclose'.
16887
16888 2011-05-05  Bruno Haible  <bruno@clisp.org>
16889
16890         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16891         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16892         gl_FUNC_FFLUSH.
16893         (gl_FUNC_FFLUSH): Use it.
16894         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16895         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16896         gl_REPLACE_FSEEKO here.
16897
16898 2011-05-05  Bruno Haible  <bruno@clisp.org>
16899
16900         tzset: Relicense under LGPL.
16901         * modules/tzset (License): Change to LGPL.
16902         No agreement needed; it's a no-op.
16903
16904         strtoimax, strtoumax: Relicense under LGPL.
16905         * modules/strtoimax (License): Change to LGPL.
16906         * modules/strtoumax (License): Likewise.
16907         With permission from Jim Meyering, Paul Eggert:
16908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16910
16911         getgroups: Relicense under LGPL.
16912         * modules/getgroups (License): Change to LGPL.
16913         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16917
16918         nanosleep: Relicense under LGPL.
16919         * modules/nanosleep (License): Change to LGPL.
16920         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16921         Haible:
16922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16926
16927         futimens: Relicense under LGPL.
16928         * modules/futimens (License): Change to LGPL.
16929         With permission from Eric Blake:
16930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16931
16932         fflush: Relicense under LGPL.
16933         * modules/fflush (License): Change to LGPL.
16934         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16938
16939         tmpfile: Relicense under LGPL.
16940         * modules/tmpfile (License): Change to LGPL.
16941         With permission from Ben Pfaff:
16942         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16943
16944         isfinite: Relicense under LGPL.
16945         * modules/isfinite (License): Change to LGPL.
16946         With permission from Ben Pfaff, Bruno Haible:
16947         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16949
16950         acosl..tanl: Relicense under LGPL.
16951         * modules/acosl (License): Change to LGPL.
16952         * modules/asinl (License): Likewise.
16953         * modules/atanl (License): Likewise.
16954         * modules/cosl (License): Likewise.
16955         * modules/expl (License): Likewise.
16956         * modules/logl (License): Likewise.
16957         * modules/sinl (License): Likewise.
16958         * modules/sqrtl (License): Likewise.
16959         * modules/tanl (License): Likewise.
16960         Source code originally from glibc and Paolo Bonzini. Agreements:
16961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16963
16964 2011-05-05  Bruno Haible  <bruno@clisp.org>
16965
16966         signal: Define sighandler_t.
16967         * lib/signal.in.h (sighandler_t): New type.
16968         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16969         whether sighandler_t is defined.
16970         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16971         * modules/signal (Depends-on): Add extensions.
16972         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16973         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16974         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16975
16976 2011-05-05  Eric Blake  <eblake@redhat.com>
16977
16978         maint: remove useless REPLACE_*_H macros
16979         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16980         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16981         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16982         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16983         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16984         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16985         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16986         * m4/btowc.m4: Update callers.
16987         * m4/dirfd.m4: Likewise.
16988         * m4/duplocale.m4: Likewise.
16989         * m4/fchdir.m4: Likewise.
16990         * m4/fdopendir.m4: Likewise.
16991         * m4/inet_ntop.m4: Likewise.
16992         * m4/inet_pton.m4: Likewise.
16993         * m4/ioctl.m4: Likewise.
16994         * m4/mbrlen.m4: Likewise.
16995         * m4/mbrtowc.m4: Likewise.
16996         * m4/mbsinit.m4: Likewise.
16997         * m4/mbsnrtowcs.m4: Likewise.
16998         * m4/mbsrtowcs.m4: Likewise.
16999         * m4/poll.m4: Likewise.
17000         * m4/setlocale.m4: Likewise.
17001         * m4/wcrtomb.m4: Likewise.
17002         * m4/wcsnrtombs.m4: Likewise.
17003         * m4/wcsrtombs.m4: Likewise.
17004         * m4/wctob.m4: Likewise.
17005         * m4/wcwidth.m4: Likewise.
17006         * modules/posix_spawn: Likewise.
17007         * modules/posix_spawn_file_actions_addclose: Likewise.
17008         * modules/posix_spawn_file_actions_adddup2: Likewise.
17009         * modules/posix_spawn_file_actions_addopen: Likewise.
17010         * modules/posix_spawn_file_actions_destroy: Likewise.
17011         * modules/posix_spawn_file_actions_init: Likewise.
17012         * modules/posix_spawnattr_destroy: Likewise.
17013         * modules/posix_spawnattr_getflags: Likewise.
17014         * modules/posix_spawnattr_getpgroup: Likewise.
17015         * modules/posix_spawnattr_getschedparam: Likewise.
17016         * modules/posix_spawnattr_getschedpolicy: Likewise.
17017         * modules/posix_spawnattr_getsigdefault: Likewise.
17018         * modules/posix_spawnattr_getsigmask: Likewise.
17019         * modules/posix_spawnattr_init: Likewise.
17020         * modules/posix_spawnattr_setflags: Likewise.
17021         * modules/posix_spawnattr_setpgroup: Likewise.
17022         * modules/posix_spawnattr_setschedparam: Likewise.
17023         * modules/posix_spawnattr_setschedpolicy: Likewise.
17024         * modules/posix_spawnattr_setsigdefault: Likewise.
17025         * modules/posix_spawnattr_setsigmask: Likewise.
17026         * modules/posix_spawnp: Likewise.
17027
17028 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17029
17030         Add option to do-release-commit-and-tag to specify branch.
17031         * build-aux/do-release-commit-and-tag: Add --branch.
17032
17033 2011-05-03  Bruno Haible  <bruno@clisp.org>
17034
17035         Avoid unnecessary compilation units, through conditional dependencies.
17036         * modules/accept (Depends-on): Add conditions to the dependencies.
17037         * modules/acosl (Depends-on): Likewise.
17038         * modules/argz (Depends-on): Likewise.
17039         * modules/asinl (Depends-on): Likewise.
17040         * modules/atanl (Depends-on): Likewise.
17041         * modules/atoll (Depends-on): Likewise.
17042         * modules/bind (Depends-on): Likewise.
17043         * modules/btowc (Depends-on): Likewise.
17044         * modules/canonicalize-lgpl (Depends-on): Likewise.
17045         * modules/ceil (Depends-on): Likewise.
17046         * modules/ceilf (Depends-on): Likewise.
17047         * modules/ceill (Depends-on): Likewise.
17048         * modules/chdir-long (Depends-on): Likewise.
17049         * modules/chown (Depends-on): Likewise.
17050         * modules/close (Depends-on): Likewise.
17051         * modules/connect (Depends-on): Likewise.
17052         * modules/cosl (Depends-on): Likewise.
17053         * modules/dirfd (Depends-on): Likewise.
17054         * modules/dprintf (Depends-on): Likewise.
17055         * modules/dprintf-posix (Depends-on): Likewise.
17056         * modules/error (Depends-on): Likewise.
17057         * modules/euidaccess (Depends-on): Likewise.
17058         * modules/expl (Depends-on): Likewise.
17059         * modules/faccessat (Depends-on): Likewise.
17060         * modules/fchdir (Depends-on): Likewise.
17061         * modules/fclose (Depends-on): Likewise.
17062         * modules/fcntl (Depends-on): Likewise.
17063         * modules/fdopendir (Depends-on): Likewise.
17064         * modules/fflush (Depends-on): Likewise.
17065         * modules/floor (Depends-on): Likewise.
17066         * modules/floorf (Depends-on): Likewise.
17067         * modules/floorl (Depends-on): Likewise.
17068         * modules/fnmatch (Depends-on): Likewise.
17069         * modules/fopen (Depends-on): Likewise.
17070         * modules/fprintf-posix (Depends-on): Likewise.
17071         * modules/frexp (Depends-on): Likewise.
17072         * modules/frexp-nolibm (Depends-on): Likewise.
17073         * modules/frexpl (Depends-on): Likewise.
17074         * modules/frexpl-nolibm (Depends-on): Likewise.
17075         * modules/fseek (Depends-on): Likewise.
17076         * modules/fsusage (Depends-on): Likewise.
17077         * modules/ftell (Depends-on): Likewise.
17078         * modules/ftello (Depends-on): Likewise.
17079         * modules/futimens (Depends-on): Likewise.
17080         * modules/getcwd (Depends-on): Likewise.
17081         * modules/getcwd-lgpl (Depends-on): Likewise.
17082         * modules/getdelim (Depends-on): Likewise.
17083         * modules/getdomainname (Depends-on): Likewise.
17084         * modules/getgroups (Depends-on): Likewise.
17085         * modules/gethostname (Depends-on): Likewise.
17086         * modules/getline (Depends-on): Likewise.
17087         * modules/getlogin_r (Depends-on): Likewise.
17088         * modules/getopt-posix (Depends-on): Likewise.
17089         * modules/getpeername (Depends-on): Likewise.
17090         * modules/getsockname (Depends-on): Likewise.
17091         * modules/getsockopt (Depends-on): Likewise.
17092         * modules/getsubopt (Depends-on): Likewise.
17093         * modules/getusershell (Depends-on): Likewise.
17094         * modules/glob (Depends-on): Likewise.
17095         * modules/grantpt (Depends-on): Likewise.
17096         * modules/iconv_open (Depends-on): Likewise.
17097         * modules/iconv_open-utf (Depends-on): Likewise.
17098         * modules/inet_ntop (Depends-on): Likewise.
17099         * modules/inet_pton (Depends-on): Likewise.
17100         * modules/ioctl (Depends-on): Likewise.
17101         * modules/isapipe (Depends-on): Likewise.
17102         * modules/isfinite (Depends-on): Likewise.
17103         * modules/isinf (Depends-on): Likewise.
17104         * modules/lchown (Depends-on): Likewise.
17105         * modules/ldexpl (Depends-on): Likewise.
17106         * modules/link (Depends-on): Likewise.
17107         * modules/linkat (Depends-on): Likewise.
17108         * modules/listen (Depends-on): Likewise.
17109         * modules/logl (Depends-on): Likewise.
17110         * modules/lstat (Depends-on): Likewise.
17111         * modules/mbrlen (Depends-on): Likewise.
17112         * modules/mbrtowc (Depends-on): Likewise.
17113         * modules/mbsinit (Depends-on): Likewise.
17114         * modules/mbsnrtowcs (Depends-on): Likewise.
17115         * modules/mbsrtowcs (Depends-on): Likewise.
17116         * modules/mbtowc (Depends-on): Likewise.
17117         * modules/memcmp (Depends-on): Likewise.
17118         * modules/mkdir (Depends-on): Likewise.
17119         * modules/mkdtemp (Depends-on): Likewise.
17120         * modules/mkfifo (Depends-on): Likewise.
17121         * modules/mkfifoat (Depends-on): Likewise.
17122         * modules/mknod (Depends-on): Likewise.
17123         * modules/mkostemp (Depends-on): Likewise.
17124         * modules/mkostemps (Depends-on): Likewise.
17125         * modules/mkstemp (Depends-on): Likewise.
17126         * modules/mkstemps (Depends-on): Likewise.
17127         * modules/mktime (Depends-on): Likewise.
17128         * modules/nanosleep (Depends-on): Likewise.
17129         * modules/open (Depends-on): Likewise.
17130         * modules/openat (Depends-on): Likewise.
17131         * modules/perror (Depends-on): Likewise.
17132         * modules/poll (Depends-on): Likewise.
17133         * modules/popen (Depends-on): Likewise.
17134         * modules/posix_spawn (Depends-on): Likewise.
17135         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17136         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17137         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17138         * modules/posix_spawnp (Depends-on): Likewise.
17139         * modules/pread (Depends-on): Likewise.
17140         * modules/printf-posix (Depends-on): Likewise.
17141         * modules/ptsname (Depends-on): Likewise.
17142         * modules/putenv (Depends-on): Likewise.
17143         * modules/pwrite (Depends-on): Likewise.
17144         * modules/readline (Depends-on): Likewise.
17145         * modules/readlink (Depends-on): Likewise.
17146         * modules/readlinkat (Depends-on): Likewise.
17147         * modules/recv (Depends-on): Likewise.
17148         * modules/recvfrom (Depends-on): Likewise.
17149         * modules/regex (Depends-on): Likewise.
17150         * modules/remove (Depends-on): Likewise.
17151         * modules/rename (Depends-on): Likewise.
17152         * modules/renameat (Depends-on): Likewise.
17153         * modules/rmdir (Depends-on): Likewise.
17154         * modules/round (Depends-on): Likewise.
17155         * modules/roundf (Depends-on): Likewise.
17156         * modules/roundl (Depends-on): Likewise.
17157         * modules/rpmatch (Depends-on): Likewise.
17158         * modules/select (Depends-on): Likewise.
17159         * modules/send (Depends-on): Likewise.
17160         * modules/sendto (Depends-on): Likewise.
17161         * modules/setenv (Depends-on): Likewise.
17162         * modules/setlocale (Depends-on): Likewise.
17163         * modules/setsockopt (Depends-on): Likewise.
17164         * modules/shutdown (Depends-on): Likewise.
17165         * modules/sigaction (Depends-on): Likewise.
17166         * modules/signbit (Depends-on): Likewise.
17167         * modules/sigprocmask (Depends-on): Likewise.
17168         * modules/sinl (Depends-on): Likewise.
17169         * modules/sleep (Depends-on): Likewise.
17170         * modules/snprintf (Depends-on): Likewise.
17171         * modules/snprintf-posix (Depends-on): Likewise.
17172         * modules/socket (Depends-on): Likewise.
17173         * modules/sprintf-posix (Depends-on): Likewise.
17174         * modules/sqrtl (Depends-on): Likewise.
17175         * modules/stat (Depends-on): Likewise.
17176         * modules/strchrnul (Depends-on): Likewise.
17177         * modules/strdup-posix (Depends-on): Likewise.
17178         * modules/strerror (Depends-on): Likewise.
17179         * modules/strerror_r-posix (Depends-on): Likewise.
17180         * modules/strndup (Depends-on): Likewise.
17181         * modules/strnlen (Depends-on): Likewise.
17182         * modules/strptime (Depends-on): Likewise.
17183         * modules/strsep (Depends-on): Likewise.
17184         * modules/strsignal (Depends-on): Likewise.
17185         * modules/strstr-simple (Depends-on): Likewise.
17186         * modules/strtod (Depends-on): Likewise.
17187         * modules/strtoimax (Depends-on): Likewise.
17188         * modules/strtok_r (Depends-on): Likewise.
17189         * modules/strtoumax (Depends-on): Likewise.
17190         * modules/symlink (Depends-on): Likewise.
17191         * modules/symlinkat (Depends-on): Likewise.
17192         * modules/tanl (Depends-on): Likewise.
17193         * modules/tcgetsid (Depends-on): Likewise.
17194         * modules/tmpfile (Depends-on): Likewise.
17195         * modules/trunc (Depends-on): Likewise.
17196         * modules/truncf (Depends-on): Likewise.
17197         * modules/truncl (Depends-on): Likewise.
17198         * modules/uname (Depends-on): Likewise.
17199         * modules/unlink (Depends-on): Likewise.
17200         * modules/unlockpt (Depends-on): Likewise.
17201         * modules/unsetenv (Depends-on): Likewise.
17202         * modules/usleep (Depends-on): Likewise.
17203         * modules/utimensat (Depends-on): Likewise.
17204         * modules/vasprintf (Depends-on): Likewise.
17205         * modules/vdprintf (Depends-on): Likewise.
17206         * modules/vdprintf-posix (Depends-on): Likewise.
17207         * modules/vfprintf-posix (Depends-on): Likewise.
17208         * modules/vprintf-posix (Depends-on): Likewise.
17209         * modules/vsnprintf (Depends-on): Likewise.
17210         * modules/vsnprintf-posix (Depends-on): Likewise.
17211         * modules/vsprintf-posix (Depends-on): Likewise.
17212         * modules/wcrtomb (Depends-on): Likewise.
17213         * modules/wcscasecmp (Depends-on): Likewise.
17214         * modules/wcscspn (Depends-on): Likewise.
17215         * modules/wcsdup (Depends-on): Likewise.
17216         * modules/wcsncasecmp (Depends-on): Likewise.
17217         * modules/wcsnrtombs (Depends-on): Likewise.
17218         * modules/wcspbrk (Depends-on): Likewise.
17219         * modules/wcsrtombs (Depends-on): Likewise.
17220         * modules/wcsspn (Depends-on): Likewise.
17221         * modules/wcsstr (Depends-on): Likewise.
17222         * modules/wcstok (Depends-on): Likewise.
17223         * modules/wcswidth (Depends-on): Likewise.
17224         * modules/wctob (Depends-on): Likewise.
17225         * modules/wctomb (Depends-on): Likewise.
17226         * modules/wctype (Depends-on): Likewise.
17227         * modules/wcwidth (Depends-on): Likewise.
17228         * modules/write (Depends-on): Likewise.
17229
17230 2011-05-03  Bruno Haible  <bruno@clisp.org>
17231
17232         Support for conditional dependencies.
17233         * doc/gnulib.texi (Module description): Document the syntax of
17234         conditional dependencies.
17235         * gnulib-tool: New option --conditional-dependencies.
17236         (func_usage): Document it.
17237         (cond_dependencies): New variable.
17238         (func_get_automake_snippet_conditional,
17239         func_get_automake_snippet_unconditional): New functions, extracted from
17240         func_get_automake_snippet.
17241         (func_get_automake_snippet): Use them.
17242         (sed_first_32_chars): New variable.
17243         (func_module_shellfunc_name): New function.
17244         (func_module_shellvar_name): New function.
17245         (func_module_conditional_name): New function.
17246         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17247         func_cond_module_condition): New functions.
17248         (func_modules_transitive_closure): Add support for conditional
17249         dependencies.
17250         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17251         conditional automake snippet in an automake conditional.
17252         (func_emit_autoconf_snippets): Emit shell functions that contain the
17253         code for conditional modules.
17254         (func_import, func_create_testdir): Update specification.
17255
17256 2011-05-03  Eric Blake  <eblake@redhat.com>
17257
17258         test-getaddrinfo: report error information
17259         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17260
17261 2011-05-03  Jim Meyering  <meyering@redhat.com>
17262
17263         bootstrap: avoid build failure when $GZIP is set
17264         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17265         program name.  If defined at all, it is supposed to list gzip options.
17266         Reported by Alan Curry in http://debbugs.gnu.org/8609
17267
17268 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17269
17270         readme-release: new module with release instructions
17271         * modules/readme-release: New module.
17272         * top/README-release: New file, from coreutils, grep, diffutils.
17273         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17274
17275 2011-05-02  Eric Blake  <eblake@redhat.com>
17276
17277         fflush: also replace fclose when fixing fflush
17278         * modules/fflush (Depends-on): Add fclose.
17279         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17280         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17281         memstreams with no backing fd.
17282         * doc/posix-functions/fclose.texi (fclose): Document the use of
17283         fflush module to fix the bug.
17284         * tests/test-fclose.c (main): Relax test when fclose is used in
17285         isolation.
17286
17287         fclose: add some tests
17288         * modules/fclose-tests: New test module.
17289         * tests/test-fclose.c: New file.
17290         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17291
17292         fclose: reduced dependencies
17293         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17294         simpler lseek.
17295         * lib/fclose.c (rpl_fclose): Likewise.
17296         Reported by Simon Josefsson.
17297
17298         exit: drop remaining clients
17299         * modules/argmatch (Depends-on): Replace exit with stdlib.
17300         * modules/copy-file (Depends-on): Likewise.
17301         * modules/execute (Depends-on): Likewise.
17302         * modules/exitfail (Depends-on): Likewise.
17303         * modules/obstack (Depends-on): Likewise.
17304         * modules/pagealign_alloc (Depends-on): Likewise.
17305         * modules/pipe-filter-gi (Depends-on): Likewise.
17306         * modules/pipe-filter-ii (Depends-on): Likewise.
17307         * modules/savewd (Depends-on): Likewise.
17308         * modules/spawn-pipe (Depends-on): Likewise.
17309         * modules/wait-process (Depends-on): Likewise.
17310         * modules/xsetenv (Depends-on): Likewise.
17311         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17312         * modules/git-merge-changelog (Depends-on): Likewise.
17313         * modules/long-options (Depends-on): Likewise.
17314         * modules/pt_chown (Depends-on): Likewise.
17315         * modules/sysexits (Depends-on): Likewise.
17316
17317         freading: relax license from LGPLv3+ to LGPLv2+
17318         * modules/freading (License): Relax LGPL version.
17319
17320 2011-05-02  Bruno Haible  <bruno@clisp.org>
17321
17322         fchdir: Remove unused dependencies.
17323         * modules/fchdir (Depends-on): Remove include_next.
17324
17325 2011-05-02  Bruno Haible  <bruno@clisp.org>
17326
17327         gnulib-tool: Refactor.
17328         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17329         from func_emit_autoconf_snippets.
17330         (func_emit_autoconf_snippets): Use it.
17331
17332 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17333
17334         * NEWS: Document removal of 'exit'.
17335         * modules/exit: Remove file.
17336
17337 2011-05-01  Bruno Haible  <bruno@clisp.org>
17338
17339         Update DEPENDENCIES.
17340         * DEPENDENCIES (gettext): Recommend the newest release.
17341         Reported by Simon Josefsson.
17342
17343 2011-05-01  Bruno Haible  <bruno@clisp.org>
17344
17345         gnulib-tool: Reduce code duplication.
17346         * gnulib-tool (func_emit_autoconf_snippets): New function.
17347         (func_import, func_create_testdir): Use it.
17348
17349 2011-04-30  Eric Blake  <eblake@redhat.com>
17350
17351         fclose: don't fail on non-seekable input stream
17352         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17353         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17354         since fflush is allowed to fail in that case.
17355
17356 2011-04-30  Bruno Haible  <bruno@clisp.org>
17357
17358         dup3: cleanup
17359         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17360
17361 2011-04-30  Bruno Haible  <bruno@clisp.org>
17362
17363         netdb: Make it work in C++ mode.
17364         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17365         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17366         module.
17367         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17368         gl_MODULE_INDICATOR_FOR_TESTS.
17369         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17370         * modules/netdb-c++-tests: New file.
17371         * tests/test-netdb-c++.cc: New file.
17372
17373 2011-04-30  Bruno Haible  <bruno@clisp.org>
17374
17375         New modules 'vfscanf', 'vscanf'.
17376         * modules/vfscanf: New file.
17377         * modules/vscanf: New file.
17378         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17379         here.
17380         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17381         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17382
17383 2011-04-30  Bruno Haible  <bruno@clisp.org>
17384
17385         passfd: Add comments.
17386         * lib/passfd.c: Add comments about platforms.
17387
17388 2011-04-30  Bruno Haible  <bruno@clisp.org>
17389
17390         sys_uio: Make <sys/uio.h> self-contained.
17391         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17392         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17393
17394 2011-04-30  Bruno Haible  <bruno@clisp.org>
17395
17396         sys_socket: Ensure 'struct iovec' definition.
17397         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17398         <sys/socket.h>.
17399         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17400
17401 2011-04-30  Bruno Haible  <bruno@clisp.org>
17402
17403         sys_uio: Protect definition of 'struct iovec'.
17404         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17405         it as a C struct.
17406
17407 2011-04-30  Bruno Haible  <bruno@clisp.org>
17408
17409         manywarnings: fix indentation
17410         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17411
17412 2011-04-30  Pádraig Brady <P@draigBrady.com>
17413
17414         manywarnings: add -Wno-missing-field-initializers if needed.
17415         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17416         option if it's needed to allow initialization with { 0, }
17417
17418 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17419
17420         announce-gen: cosmetic improvement
17421         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17422
17423 2011-04-29  Jim Meyering  <meyering@redhat.com>
17424
17425         vc-list-files: indent with spaces, not TABs
17426         * build-aux/vc-list-files: Convert leading TABs to spaces,
17427         to match the style of most other files in gnulib.
17428
17429         announce-gen: indent with spaces, not TABs
17430         * build-aux/announce-gen: Convert all TABs to spaces, to match
17431         the style of most other files in gnulib.
17432
17433 2011-04-29  Eric Blake  <eblake@redhat.com>
17434
17435         quotearg: avoid uninitialized variable use
17436         * lib/quotearg.c (quoting_options_from_style): Initialize
17437         remaining fields, and ensure that custom styles are only used via
17438         quoting_options rather than quoting_style.
17439
17440 2011-04-29  Jim Meyering  <meyering@redhat.com>
17441
17442         maint.mk: remove unused VC-tag variable
17443         * top/maint.mk (VC-tag): Remove unused variable.
17444
17445 2011-04-29  Bruno Haible  <bruno@clisp.org>
17446
17447         netdb: fix gai_strerror replacements
17448         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17449         * modules/netdb: Substitute it.
17450
17451 2011-04-29  Jim Meyering  <meyering@redhat.com>
17452
17453         test-getcwd.c: avoid new set-but-not-used warning
17454         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17455         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17456         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17457         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17458
17459         test-hash.c: avoid a new shadowing warning
17460         * tests/test-hash.c (main): Don't shadow "dup".
17461
17462 2011-04-28  Eric Blake  <eblake@redhat.com>
17463
17464         getaddrinfo: fix gai_strerror signature
17465         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17466         and work around mingw with UNICODE defined.
17467         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17468         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17469         * modules/netdb (Makefile.am): Substitute it.
17470         * lib/netdb.in.h (gai_strerror): Declare replacement.
17471         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17472         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17473         the fix.
17474
17475         getsockopt: avoid compiler warning
17476         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17477         Reported by Matthias Bolte.
17478
17479         tests: drop unused link dependency
17480         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17481         * modules/dirent-safer-tests (Makefile.am): Likewise.
17482         * modules/fdopendir-tests (Makefile.am): Likewise.
17483         * modules/mkfifoat-tests (Makefile.am): Likewise.
17484         * modules/openat-safer-tests (Makefile.am): Likewise.
17485         * modules/openat-tests (Makefile.am): Likewise.
17486         * modules/readlinkat-tests (Makefile.am): Likewise.
17487         * modules/symlinkat-tests (Makefile.am): Likewise.
17488         * modules/linkat-tests (Makefile.am): Likewise.
17489         (Depends-on): Switch to filenamecat-lgpl.
17490         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17491         LIBINTL.
17492         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17493         * tests/test-linkat.c (main): Don't require xalloc.
17494
17495         hash, mgetgroups: drop xalloc dependency
17496         * lib/hash.c (includes): Adjust includes.
17497         * lib/mgetgroups.c (includes): Likewise.
17498         (xgetgroups): Move...
17499         * lib/xgetgroups.c: ...to new file.
17500         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17501         * modules/xgetgroups: New file, split from...
17502         * modules/mgetgroups: ...here.
17503         (Depends-on): Add xalloc-oversized.
17504         * modules/hash (Depends-on): Likewise.
17505         * modules/hash-tests (Depends-on): Drop xalloc.
17506         (test_hash_LDADD): Drop unused library.
17507         * tests/test-hash.c (main): Break xalloc dependency.
17508         (includes): Drop unused include.
17509
17510         xalloc-oversized: new module
17511         * modules/xalloc-oversized: New module.
17512         * modules/xalloc (Depends-on): Add it.
17513         * lib/xalloc.h (xalloc_oversized): Move...
17514         * lib/xalloc-oversized.h: ...into new file.
17515
17516         utimecmp: drop dependency on xmalloc
17517         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17518         due to memory pressure.
17519         * modules/utimecmp (Depends-on): Drop xalloc.
17520
17521 2011-04-27  Eric Blake  <eblake@redhat.com>
17522
17523         getcwd: fix mingw bugs
17524         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17525         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17526         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17527
17528 2011-04-27  Bruno Haible  <bruno@clisp.org>
17529
17530         mkstemps: Ensure declaration on MacOS X 10.5.
17531         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17532         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17533         MacOS X.
17534
17535 2011-04-27  Bruno Haible  <bruno@clisp.org>
17536
17537         mkstemp: More documentation.
17538         * doc/posix-functions/mkstemp.texi: Document header file problem on
17539         MacOS X.
17540
17541 2011-04-27  Bruno Haible  <bruno@clisp.org>
17542
17543         mkstemp: Tweak configure message when cross-compiling.
17544         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17545         result as a guess.
17546
17547 2011-04-27  Bruno Haible  <bruno@clisp.org>
17548
17549         clean-temp: Clarify what it does.
17550         * lib/clean-temp.h: Add more comments.
17551         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17552         module.
17553         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17554         * doc/glibc-functions/mkstemps.texi: Likewise.
17555         * doc/glibc-functions/mkostemps.texi: Likewise.
17556
17557 2011-04-27  Eric Blake  <eblake@redhat.com>
17558
17559         fchdir: avoid extra chdir and fix test
17560         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17561         getcwd-lgpl.
17562         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17563         have to be canonical.
17564         (canonicalize_file_name): Drop unused macro.
17565         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17566
17567         filenamecat-lgpl: fix licence
17568         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17569         when it was first created.
17570
17571         linkat, renameat: add missing dependency
17572         * modules/linkat (Depends-on): Require getcwd-lgpl.
17573         * modules/renameat (Depends-on): Likewise.
17574
17575         tests: reduce dependencies
17576         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17577         * tests/test-renameat.c (main): Likewise.
17578         * modules/linkat-tests (Depends-on): Relax dependency.
17579         * modules/renameat-tests (Depends-on): Likewise.
17580         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17581         dependency explicit.
17582
17583         save-cwd: reduce default dependency
17584         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17585         * lib/save-cwd.c: Update comments.
17586         * NEWS: Document the semantic change.
17587
17588         getcwd: enhance tests
17589         * tests/test-getcwd-lgpl.c: New file, taken from...
17590         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17591         repeat long path stress tests from m4 probe.
17592         * modules/getcwd-lgpl-tests: New module.
17593         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17594         * m4/getcwd-abort-bug.m4: Update comment.
17595         * m4/getcwd-path-max.m4: Likewise.
17596
17597         getcwd-lgpl: new module
17598         * modules/getcwd-lgpl: New module.
17599         * lib/getcwd-lgpl.c: New file.
17600         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17601         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17602         * modules/getcwd (configure.ac): Set C witness.
17603         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17604
17605         getcwd: tweak comments
17606         * m4/getcwd-abort-bug.m4: Fix comments.
17607         * m4/getcwd-path-max.m4: Likewise.
17608         * m4/getcwd.m4: Likewise.
17609
17610 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17611         and Eric Blake  <eblake@redhat.com>
17612
17613         mkstemp: replace if system version uses wrong permissions
17614         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17615         read/write mode bits set in file created by mkstemp.
17616         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17617
17618 2011-04-27  Eric Blake  <eblake@redhat.com>
17619
17620         passfd: avoid compiler warning
17621         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17622         Reported by Laine Stump.
17623
17624 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17625
17626         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17627         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17628
17629 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17630         and Eric Blake  <eblake@redhat.com>
17631
17632         mkstemp: mention clean-temp module
17633         * lib/mkstemp.c: Add comment.
17634         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17635
17636 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17637
17638         inttypes: also provide default values for 32-bit tests
17639         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17640         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17641
17642 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17643
17644         strtoumax: remove dependency on strtoimax
17645         This is like the strtoull change of yesterday.
17646         * modules/strtoumax (Files): Add lib/strtoimax.c.
17647         (Depends-on): Remove strtoimax and add verify.
17648
17649         inttypes-incomplete: new module
17650         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17651         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17652         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17653         of gl_INTTYPES_H.
17654         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17655         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17656         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17657         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17658         * modules/strtoumax, modules/xstrtol (Depends-on):
17659         Depend on inttypes-incomplete, not inttypes.
17660         * modules/inttypes-incomplete: New module, containing the contents
17661         of the old modules/inttypes module, except that the Files: section
17662         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17663         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17664         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17665         (Depends-on): Depend only on inttypes-incomplete.
17666         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17667
17668         inttypes: omit now-redundant strtoimax and strtoumax work
17669         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17670         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17671
17672         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17673         This supports apps that need pointers to strtoimax and strtoumax,
17674         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17675         nonexistent functions.  See
17676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17677         et seq.
17678         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17679         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17680         a macro.
17681         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17682
17683 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17684
17685         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17686
17687 2011-04-25  Bruno Haible  <bruno@clisp.org>
17688
17689         strtol, strtoul: Mark modules as obsolete.
17690         * modules/strtol (Status, Notice): New sections.
17691         * modules/strtoul (Status, Notice): New sections.
17692
17693 2011-04-25  Bruno Haible  <bruno@clisp.org>
17694
17695         strtod: Remove check for strtod, unless supporting old platforms.
17696         * modules/strtod-obsolete: New file.
17697         * m4/strtod-obsolete.m4: New file.
17698         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17699         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17700         * modules/strtod (Depends-on): Add strtod-obsolete.
17701         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17702
17703 2011-04-25  Bruno Haible  <bruno@clisp.org>
17704
17705         strcase: Make module obsolete.
17706         * modules/strcase (Status, Notice): New sections.
17707
17708 2011-04-25  Bruno Haible  <bruno@clisp.org>
17709
17710         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17711         * modules/dup2-obsolete: New file.
17712         * m4/dup2-obsolete.m4: New file.
17713         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17714         gl_FUNC_DUP2_OBSOLETE is not also defined.
17715         * modules/dup2 (Depends-on): Add dup2-obsolete.
17716         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17717
17718 2011-04-25  Bruno Haible  <bruno@clisp.org>
17719
17720         strnlen: Avoid memchr related link error on old obsolete platforms.
17721         * modules/memchr-obsolete: New file.
17722         * m4/memchr-obsolete.m4: New file.
17723         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17724         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17725         * modules/memchr (Depends-on): Add memchr-obsolete.
17726         * modules/strnlen (Depends-on): Likewise.
17727         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17728
17729 2011-04-25  Jim Meyering  <meyering@redhat.com>
17730
17731         maint.mk: makefile_at_at_check extend and clean up
17732         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17733         in addition to */Makefile.am.
17734         Exempt legitimate uses of @VAR@ notation, e.g.,
17735         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17736         Remove obsolete coreutils-specific comment.
17737         Prompted by discussion here:
17738         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17739
17740 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17741
17742         strtoul: remove dependency on strtol
17743         This is so that 'configure' need not check for strtol merely because
17744         the application needs strtoul.
17745         * modules/strtoul (Files): Add lib/strtol.c.
17746         (Depends-on): Remove strtol.
17747
17748         strtoull: remove dependency on strtoul
17749         This is like the strtoll change.
17750         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17751         (Depends-on): Remove strtoul.
17752
17753         strtoll: remove dependency on strtol
17754         This is so that 'configure' need not check for strtol merely because
17755         the application needs strtoll.
17756         * modules/strtoll (Files): Add lib/strtol.c.
17757         (Depends-on): Remove strtol.
17758
17759 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17760
17761         inttypes: Move some configure check to module 'imaxdiv'.
17762         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17763         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17764         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17765
17766 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17767
17768         inttypes: Move some configure check to module 'imaxabs'.
17769         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17770         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17771         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17772
17773 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17774
17775         inttypes: Remove configure tests that are not needed since 2009-12-31.
17776         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17777         gl_cv_header_working_inttypes_h.
17778
17779 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17780
17781         * modules/strnlen (Depends-on): Remove memchr.
17782         The strnlen implementation doesn't need the memchr module's fixes; see
17783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17784
17785         strtol: remove dependency on wchar
17786         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17787         * modules/strtol (Depends-on): Remove wchar.
17788
17789 2011-04-21  Eric Blake  <eblake@redhat.com>
17790
17791         passfd: fix test regression on Linux
17792         * modules/passfd-tests (configure.ac): Correct socketpair check.
17793
17794         passfd: speed up configure and drop unused code
17795         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17796         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17797         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17798         Instead of probing at configure for unix_scm_rights_bsd44_way,
17799         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17800         check to a struct member probe.
17801         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17802         (sendfd, recvfd): Update preprocessor checks.
17803         * modules/passfd (Files): Reflect rename, and drop unused file.
17804         (Depends-on): Drop unused dependency.
17805
17806         passfd: allow compilation on mingw
17807         * modules/sys_socket (Depends-on): Add sys_uio.
17808         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17809         iovec and a minimal struct msghdr.
17810         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17811         * tests/test-sys_socket.c (main): Enhance test.
17812         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17813         guaranteed to provide what we need.
17814         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17815         * modules/passfd-tests (Depends-on): Add sys_wait.
17816         * tests/test-passfd.c (main): Skip test on mingw, for now.
17817         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17818         partial 'struct msghdr' implementation.
17819
17820         sys_uio: new module
17821         * modules/sys_uio: New module.
17822         * modules/sys_uio-tests: Likewise.
17823         * lib/sys_uio.in.h: New file.
17824         * m4/sys_uio_h.m4: Likewise.
17825         * tests/test-sys_uio.c: Likewise.
17826         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17827         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17828
17829 2011-04-20  Jim Meyering  <meyering@redhat.com>
17830
17831         useless-if-before-free: avoid false-positive
17832         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17833         disjunct so that it too requires a terminating ";".  Without that,
17834         this script would identify as useless one statement from gcc that
17835         was not:
17836           if (aligned_ptr)
17837             free (((void **) aligned_ptr) [-1]);
17838
17839 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17840
17841         doc: update users.txt.
17842         * users.txt: Add barcode.
17843
17844 2011-04-19  Bruno Haible  <bruno@clisp.org>
17845
17846         ioctl: Remove link dependency on native Windows.
17847         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17848         (gl_close_fn, gl_ioctl_fn): New types.
17849         (struct fd_hook): Renamed from struct close_hook. Change type of
17850         private_close_fn field. Add private_ioctl_fn field.
17851         (close_hook_fn): Add parameter for primary close method.
17852         (execute_close_hooks, execute_all_close_hooks): Likewise.
17853         (ioctl_hook_fn): New type.
17854         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17855         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17856         argument.
17857         (unregister_fd_hook): Renamed from unregister_close_hook.
17858         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17859         Don't include <unistd.h>.
17860         (close): Remove undef.
17861         (anchor): Update.
17862         (execute_close_hooks): Add argument for primary close method.
17863         (execute_all_close_hooks): Likewise.
17864         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17865         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17866         argument. Allow each argument to be NULL.
17867         (unregister_fd_hook): Renamed from unregister_close_hook.
17868         * lib/close.c (rpl_close): Pass 'close' function pointer to
17869         execute_all_close_hooks.
17870         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17871         (primary_ioctl): New function.
17872         (ioctl): Don't call ioctlsocket here. Instead, call
17873         execute_all_ioctl_hooks.
17874         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17875         close method.
17876         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17877         (fd_sockets_hook): Renamed from close_sockets_hook.
17878         (gl_sockets_startup, gl_sockets_cleanup): Update.
17879         * modules/fd-hook: Renamed from modules/close-hook. Update.
17880         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17881         * modules/sockets (Depends-on): Likewise.
17882         * modules/ioctl (Depends-on): Add fd-hook.
17883         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17884         GNULIB_SOCKET.
17885
17886 2011-04-19  Bruno Haible  <bruno@clisp.org>
17887
17888         Move the support of O_NONBLOCK in open() to the 'open' module.
17889         * modules/nonblocking (Depends-on): Remove 'open'.
17890         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17891         gl_cv_have_open_O_NONBLOCK.
17892         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17893         O_NONBLOCK support.
17894         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17895
17896 2011-04-17  Bruno Haible  <bruno@clisp.org>
17897
17898         pipe2: Simplify code.
17899         * lib/pipe2.c (pipe2): Reduce code duplication.
17900
17901 2011-04-17  Bruno Haible  <bruno@clisp.org>
17902
17903         nonblocking: Add comment.
17904         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17905
17906 2011-04-17  Bruno Haible  <bruno@clisp.org>
17907
17908         nonblocking: Add tests for sockets.
17909         * tests/test-nonblocking-socket.sh: New file.
17910         * tests/test-nonblocking-socket-main.c: New file.
17911         * tests/test-nonblocking-socket-child.c: New file.
17912         * tests/test-nonblocking-socket.h: New file.
17913         * tests/socket-server.h: New file.
17914         * tests/socket-client.h: New file.
17915         * modules/nonblocking-socket-tests: New file.
17916         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17917
17918 2011-04-17  Bruno Haible  <bruno@clisp.org>
17919
17920         nonblocking: Add tests for pipes.
17921         * tests/test-nonblocking-pipe.sh: New file.
17922         * tests/test-nonblocking-pipe-main.c: New file.
17923         * tests/test-nonblocking-pipe-child.c: New file.
17924         * tests/test-nonblocking-pipe.h: New file.
17925         * tests/test-nonblocking-writer.h: New file.
17926         * tests/test-nonblocking-reader.h: New file.
17927         * tests/test-nonblocking-misc.h: New file.
17928         * modules/nonblocking-pipe-tests: New file.
17929         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17930
17931 2011-04-16  Bruno Haible  <bruno@clisp.org>
17932
17933         gettext: Clarify the needed programmer actions.
17934         * modules/gettext (Notice): New field.
17935         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17936
17937 2011-04-16  Bruno Haible  <bruno@clisp.org>
17938
17939         strchrnul: Tweak last commit.
17940         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17941         bug.
17942         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17943         as in _GL_FUNCDECL_SYS.
17944         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17945         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17946
17947 2011-04-15  Eric Blake  <eblake@redhat.com>
17948
17949         strchrnul: work around cygwin bug
17950         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17951         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17953         * modules/string (Makefile.am): Substitute it.
17954         * lib/string.in.h (strchrnul): Use it.
17955
17956 2011-04-15  Bruno Haible  <bruno@clisp.org>
17957
17958         Don't require lib/stdio-write.c when only module 'stdio' is used.
17959         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17960         invocation.
17961         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17962
17963 2011-04-14  Bruno Haible  <bruno@clisp.org>
17964
17965         Support non-blocking pipe I/O in read() on native Windows.
17966         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17967         (read): New declaration.
17968         * lib/read.c: New file.
17969         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17970         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17971         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17972         vscanf): New declarations.
17973         * lib/stdio-read.c: New file.
17974         * m4/read.m4: New file.
17975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17976         REPLACE_READ.
17977         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17978         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17979         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17980         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17981         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17982         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17983         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17984         * modules/read: New file.
17985         * modules/nonblocking (Files): Add lib/stdio-read.c.
17986         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17987         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17988         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17989         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17990         * modules/pread (Depends-on): Add read.
17991         * modules/safe-read (Depends-on): Likewise.
17992         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17993         gets, scanf, vfscanf, vscanf): Verify signatures.
17994         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17995         problem with non-blocking pipes.
17996         * doc/posix-functions/fgetc.texi: Likewise.
17997         * doc/posix-functions/fgets.texi: Likewise.
17998         * doc/posix-functions/fread.texi: Likewise.
17999         * doc/posix-functions/fscanf.texi: Likewise.
18000         * doc/posix-functions/getc.texi: Likewise.
18001         * doc/posix-functions/getchar.texi: Likewise.
18002         * doc/posix-functions/gets.texi: Likewise.
18003         * doc/posix-functions/scanf.texi: Likewise.
18004         * doc/posix-functions/vfscanf.texi: Likewise.
18005         * doc/posix-functions/vscanf.texi: Likewise.
18006
18007 2011-04-14  Bruno Haible  <bruno@clisp.org>
18008
18009         Support non-blocking pipe I/O in write() on native Windows.
18010         * lib/write.c (rpl_write): Split a write request that failed merely
18011         because the byte count was larger than the pipe buffer's size.
18012         * doc/posix-functions/write.texi: Mention the problem with large byte
18013         counts.
18014
18015 2011-04-14  Bruno Haible  <bruno@clisp.org>
18016
18017         wchar: Ensure that wchar_t gets defined on uClibc.
18018         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18019         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18020
18021 2011-04-13  Bruno Haible  <bruno@clisp.org>
18022
18023         safe-write, full-read: Avoid unnecessary compilation units.
18024         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18025         (Depends-on): Remove safe-read. Add ssize_t.
18026         * modules/full-read (Files): Add lib/full-write.c.
18027         (Depends-on): Add full-write.
18028
18029 2011-04-13  Bruno Haible  <bruno@clisp.org>
18030
18031         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18032         * modules/pwrite (Depends-on): Add 'write'.
18033
18034 2011-04-13  Bruno Haible  <bruno@clisp.org>
18035
18036         Support non-blocking pipe I/O in write() on native Windows.
18037         * lib/unistd.in.h (write): Enable replacement also if
18038         GNULIB_UNISTD_H_NONBLOCKING is 1.
18039         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18040         (rpl_write): When failing to write on a non-blocking pipe, change
18041         errno from ENOSPC to EAGAIN.
18042         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18043         putchar, puts, vfprintf, vprintf): Enable replacement also if
18044         GNULIB_STDIO_H_NONBLOCKING is 1.
18045         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18046         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18047         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18048         CALL_WITH_SIGPIPE_EMULATION.
18049         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18050         * m4/nonblocking.m4: New file.
18051         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18052         for non-blocking I/O support.
18053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18054         GNULIB_UNISTD_H_NONBLOCKING.
18055         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18056         required for non-blocking I/O support.
18057         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18058         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18059         lib/stdio-write.c, m4/asm-underscore.m4.
18060         (Depends-on): Add stdio, unistd.
18061         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18062         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18063         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18064         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18065         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18066         problem with non-blocking pipes.
18067         * doc/posix-functions/fputc.texi: Likewise.
18068         * doc/posix-functions/fputs.texi: Likewise.
18069         * doc/posix-functions/fwrite.texi: Likewise.
18070         * doc/posix-functions/printf.texi: Likewise.
18071         * doc/posix-functions/putc.texi: Likewise.
18072         * doc/posix-functions/putchar.texi: Likewise.
18073         * doc/posix-functions/puts.texi: Likewise.
18074         * doc/posix-functions/vfprintf.texi: Likewise.
18075         * doc/posix-functions/vprintf.texi: Likewise.
18076         * doc/posix-functions/write.texi: Likewise.
18077
18078 2011-04-10  Jim Meyering  <meyering@redhat.com>
18079
18080         maint.mk: prohibit doubled words
18081         Detect them also when they're separated by a newline.
18082         There are 3 ways to customize it:
18083           - disable the test on a per file basis, as usual with rules using
18084             $(VC_LIST_EXCEPT)
18085           - replace the default doubled-word-selecting regexp (affects all files)
18086           - ignore a particular file-vs-doubled-word match
18087         I nearly used that last one to ignore the "is is" match in
18088         coreutils' NEWS file, since the text was "ls -is is ..."
18089         To do that, I would have added this line to cfg.mk:
18090           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18091         but it would have ignored any "is is" match in NEWS.
18092         Low probability, but still...
18093         Instead, I changed the text, slightly:
18094           -  ls -is is now consistent with ls -lis in ignoring values returned
18095           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18096         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18097         (prohibit_doubled_word_): Define.
18098         (sc_prohibit_doubled_word): New rule.
18099         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18100
18101 2011-04-10  Jim Meyering  <meyering@redhat.com>
18102
18103         maint: fix doubled-word typo in comment
18104         * m4/gethostname.m4: s/is is/it is/
18105         * m4/getdomainname.m4: Likewise.
18106
18107 2011-04-10  Jim Meyering  <meyering@redhat.com>
18108
18109         maint: remove doubled word: s/it it/it/
18110         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18111
18112 2011-04-10  Jim Meyering  <meyering@redhat.com>
18113
18114         maint.mk: remove useless semicolon and backslash
18115         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18116         semicolon and backslash.
18117
18118 2011-04-10  Bruno Haible  <bruno@clisp.org>
18119
18120         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18121         * modules/stdint-tests (Depends-on): Add wchar.
18122
18123 2011-04-10  Jim Meyering  <meyering@redhat.com>
18124
18125         maint: remove doubled words in comments, e.g., s/a a/a/
18126         * lib/strptime.c (day_of_the_week): s/the the/the/
18127         * tests/test-chown.h (test_chown): s/a a/a/
18128
18129         test-chown.h: correct a cast
18130         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18131         when the destination is a stat.st_gid.
18132
18133 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18134
18135         getaddrinfo: Fix test for sa_len member.
18136         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18137         include <sys/types.h> before <sys/socket.h>.
18138
18139 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18140
18141         maint: change "can not" to "cannot"
18142         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18143         boundaries.
18144
18145 2011-04-09  Jim Meyering  <meyering@redhat.com>
18146
18147         maint: change "a a" to "a"
18148         * tests/test-lchown.h (test_lchown): s/a a/a/
18149
18150         maint.mk: prohibit \<the the\>
18151         * top/maint.mk (sc_prohibit_the_the): New rule.
18152
18153         maint: fix "the the" in comment
18154         * lib/count-one-bits.h: s/the the/the/
18155
18156         maint: change "can not" to "cannot"
18157         But do not change the occurrences in maintain.texi or in
18158         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18159         * doc/gnulib-tool.texi: s/can not/cannot/
18160         * doc/posix-functions/accept.texi (accept): Likewise.
18161         * doc/posix-functions/socket.texi (socket): Likewise.
18162         * lib/mbrtowc.c: Likewise.
18163
18164         maint.mk: prohibit use of "can not"
18165         * top/maint.mk (sc_prohibit_can_not): New rule.
18166         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18167
18168 2011-04-09  Bruno Haible  <bruno@clisp.org>
18169
18170         careadlinkat: Guard against misuse of careadlinkatcwd.
18171         * lib/careadlinkat.c: Include <stdlib.h>.
18172         (careadlinkatcwd): Check that the fd argument is as expected.
18173
18174 2011-04-09  Bruno Haible  <bruno@clisp.org>
18175
18176         careadlinkat: Use common coding style.
18177         * lib/careadlinkat.c: Move gnulib includes after system includes.
18178
18179 2011-04-09  Bruno Haible  <bruno@clisp.org>
18180
18181         careadlinkat: Clarify specification.
18182         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18183         (careadlinkatcwd): Add comment.
18184         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18185
18186 2011-04-09  Bruno Haible  <bruno@clisp.org>
18187
18188         areadlinkat: Avoid link error on many platforms.
18189         * modules/areadlinkat (Depends-on): Add areadlink.
18190
18191 2011-04-09  Bruno Haible  <bruno@clisp.org>
18192
18193         allocator, careadlinkat: Fix double-inclusion guard.
18194         * lib/allocator.h: Fix double-inclusion guard.
18195         * lib/careadlinkat.h: Likewise.
18196
18197 2011-04-09  Bruno Haible  <bruno@clisp.org>
18198
18199         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18200         * lib/relocwrapper.c: Update dependencies hierarchy.
18201         * build-aux/install-reloc: Update list of files to be compiled.
18202         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18203         lib/allocator.[hc].
18204
18205 2011-04-08  Eric Blake  <eblake@redhat.com>
18206
18207         strftime: silence gnulib-tool warning
18208         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18209
18210 2011-04-08  Bruno Haible  <bruno@clisp.org>
18211
18212         verify: Fix syntax error with GCC 4.6 in C++ mode.
18213         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18214         (HAVE_STATIC_ASSERT): New macro.
18215         (verify_true, verify): Use 'static_assert' if it is supported and
18216         '_Static_assert' is not supported.
18217
18218 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18219
18220         allocator: New module.
18221         * modules/allocator, lib/allocator.c: New files.
18222         * lib/allocator.h (stdlib_allocator): New decl.
18223         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18224         Remove.  Do not include <stdlib.h>.
18225         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18226         * modules/careadlinkat (Files): Remove lib/allocator.h.
18227         (Depends-on): Add allocator.
18228
18229         stdlib: let modules use system malloc, realloc
18230         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18231         if !_GL_USE_STDLIB_ALLOC.
18232         (malloc, realloc): Limit this change to a smaller scope.
18233
18234         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18235         (malloc, realloc): Don't #undef; no longer needed.
18236         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18237         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18238         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18239         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18240         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18241         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18242         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18243         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18244
18245         careadlinkat: rename members to avoid problem
18246         * lib/allocator.h (struct allocator): Rename members from
18247         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18248         and realloc are #define'd.  Reported by Eric Blake in
18249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18250         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18251
18252 2011-04-08  Eric Blake  <eblake@redhat.com>
18253
18254         nonblocking: reduce dependency
18255         * tests/test-nonblocking.c: Only test sockets when in use.
18256         * modules/nonblocking-tests (Depends-on): Drop socket.
18257         (Makefile.am): Link even if sockets are not present.
18258         * modules/pipe2-tests (Makefile.am): Likewise.
18259         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18260
18261         pipe2: fix O_NONBLOCK support on mingw
18262         * modules/pipe2 (Depends-on): Add nonblocking.
18263         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18264         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18265         * tests/test-nonblocking.c (main): Likewise.
18266         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18267
18268         fcntl-h: fix O_ACCMODE on cygwin
18269         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18270         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18271
18272         pipe-filter: drop O_NONBLOCK workarounds
18273         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18274         * modules/pipe-filter-ii (Depends-on): Likewise.
18275         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18276
18277         nonblocking: provide O_NONBLOCK for mingw
18278         * modules/nonblocking (Depends-on): Add open.
18279         (configure.ac): Set new witness macro.
18280         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18281         * modules/fcntl-h (Makefile.am): Substitute it.
18282         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18283         nonblocking module is in use.
18284         * lib/nonblocking.c: Adjust portability test.
18285         * lib/open.c (open): Don't let native open see gnulib flag.
18286         * tests/test-fcntl-h.c (main): Enhance test.
18287         * tests/test-open.h (test_open): Likewise.
18288         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18289
18290         careadlinkat: fix compilation error on mingw
18291         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18292         within struct allocator.
18293
18294 2011-04-06  Eric Blake  <eblake@redhat.com>
18295
18296         binary-io: relicense under LGPLv2+
18297         * modules/binary-io (License): Relax to LGPLv2+.
18298         Requested for libvirt, and required by pipe2.
18299
18300 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18301
18302         verify: use _Static_assert if available
18303         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18304         (verify_true, verify): Use it if available.  This generates better
18305         diagnostics with GCC 4.6.0 and later.
18306
18307 2011-04-05  Bruno Haible  <bruno@clisp.org>
18308
18309         Remove leftover generated .h files after config.status changed.
18310
18311         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18312         GL_GENERATE_ALLOCA_H.
18313         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18314         GL_GENERATE_ALLOCA_H evaluates to false.
18315
18316         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18317         GL_GENERATE_ARGZ_H.
18318         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18319         evaluates to false.
18320
18321         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18322         GL_GENERATE_BYTESWAP_H.
18323         * modules/byteswap (Makefile.am): Remove byteswap.h if
18324         GL_GENERATE_BYTESWAP_H evaluates to false.
18325
18326         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18327         GL_GENERATE_ERRNO_H.
18328         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18329         evaluates to false.
18330
18331         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18332         GL_GENERATE_FLOAT_H.
18333         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18334         evaluates to false.
18335
18336         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18337         GL_GENERATE_FNMATCH_H.
18338         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18339         GL_GENERATE_FNMATCH_H evaluates to false.
18340
18341         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18342         GL_GENERATE_GLOB_H.
18343         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18344         evaluates to false.
18345
18346         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18347         automake conditional GL_GENERATE_ICONV_H.
18348         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18349         evaluates to false.
18350
18351         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18352         GL_GENERATE_NETINET_IN_H.
18353         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18354         GL_GENERATE_NETINET_IN_H evaluates to false.
18355
18356         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18357         conditional GL_GENERATE_PTHREAD_H.
18358         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18359         * modules/pthread (Makefile.am): Remove pthread.h if
18360         GL_GENERATE_PTHREAD_H evaluates to false.
18361
18362         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18363         GL_GENERATE_SCHED_H.
18364         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18365         evaluates to false.
18366
18367         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18368         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18369         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18370         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18371
18372         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18373         GL_GENERATE_STDARG_H.
18374         * modules/stdarg (Makefile.am): Remove stdarg.h if
18375         GL_GENERATE_STDARG_H evaluates to false.
18376
18377         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18378         GL_GENERATE_STDBOOL_H.
18379         * modules/stdbool (Makefile.am): Remove stdbool.h if
18380         GL_GENERATE_STDBOOL_H evaluates to false.
18381
18382         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18383         conditional GL_GENERATE_STDDEF_H.
18384         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18385         * modules/stddef (Makefile.am): Remove stddef.h if
18386         GL_GENERATE_STDDEF_H evaluates to false.
18387
18388         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18389         GL_GENERATE_STDINT_H.
18390         * modules/stdint (Makefile.am): Remove stdint.h if
18391         GL_GENERATE_STDINT_H evaluates to false.
18392
18393         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18394         GL_GENERATE_SYSEXITS_H.
18395         * modules/sysexits (Makefile.am): Remove sysexits.h if
18396         GL_GENERATE_SYSEXITS_H evaluates to false.
18397
18398         Reported by Karl Berry and Ralf Wildenhues.
18399
18400 2011-04-05  Bruno Haible  <bruno@clisp.org>
18401
18402         Ensure to rebuild generated .h files when config.status has changed.
18403         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18404         config.status.
18405         * modules/ctype (Makefile.am): Likewise.
18406         * modules/dirent (Makefile.am): Likewise.
18407         * modules/errno (Makefile.am): Likewise.
18408         * modules/fcntl-h (Makefile.am): Likewise.
18409         * modules/float (Makefile.am): Likewise.
18410         * modules/getopt-posix (Makefile.am): Likewise.
18411         * modules/glob (Makefile.am): Likewise.
18412         * modules/iconv-h (Makefile.am): Likewise.
18413         * modules/inttypes (Makefile.am): Likewise.
18414         * modules/langinfo (Makefile.am): Likewise.
18415         * modules/locale (Makefile.am): Likewise.
18416         * modules/math (Makefile.am): Likewise.
18417         * modules/netdb (Makefile.am): Likewise.
18418         * modules/netinet_in (Makefile.am): Likewise.
18419         * modules/poll-h (Makefile.am): Likewise.
18420         * modules/pthread (Makefile.am): Likewise.
18421         * modules/pty (Makefile.am): Likewise.
18422         * modules/sched (Makefile.am): Likewise.
18423         * modules/search (Makefile.am): Likewise.
18424         * modules/selinux-h (Makefile.am): Likewise.
18425         * modules/signal (Makefile.am): Likewise.
18426         * modules/spawn (Makefile.am): Likewise.
18427         * modules/stdarg (Makefile.am): Likewise.
18428         * modules/stdbool (Makefile.am): Likewise.
18429         * modules/stddef (Makefile.am): Likewise.
18430         * modules/stdint (Makefile.am): Likewise.
18431         * modules/stdio (Makefile.am): Likewise.
18432         * modules/stdlib (Makefile.am): Likewise.
18433         * modules/string (Makefile.am): Likewise.
18434         * modules/strings (Makefile.am): Likewise.
18435         * modules/sys_file (Makefile.am): Likewise.
18436         * modules/sys_ioctl (Makefile.am): Likewise.
18437         * modules/sys_select (Makefile.am): Likewise.
18438         * modules/sys_socket (Makefile.am): Likewise.
18439         * modules/sys_stat (Makefile.am): Likewise.
18440         * modules/sys_time (Makefile.am): Likewise.
18441         * modules/sys_times (Makefile.am): Likewise.
18442         * modules/sys_utsname (Makefile.am): Likewise.
18443         * modules/sys_wait (Makefile.am): Likewise.
18444         * modules/sysexits (Makefile.am): Likewise.
18445         * modules/termios (Makefile.am): Likewise.
18446         * modules/time (Makefile.am): Likewise.
18447         * modules/unistd (Makefile.am): Likewise.
18448         * modules/wchar (Makefile.am): Likewise.
18449         * modules/wctype-h (Makefile.am): Likewise.
18450         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18451
18452 2011-04-05  Bruno Haible  <bruno@clisp.org>
18453
18454         pipe2: Relicense under LGPLv2+.
18455         * modules/pipe2 (License): Change to LGPLv2+.
18456         Requested by Eric Blake, for libvirt.
18457
18458 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18459
18460         bootstrap: compute gnulib_extra_files after updating build_aux
18461         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18462         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18463
18464 2011-04-05  Eric Blake  <eblake@redhat.com>
18465
18466         bootstrap: preserve git whitelist item sorting
18467         * build-aux/bootstrap (sort_patterns): New function.
18468         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18469
18470 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18471
18472         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18473         sc_space_tab check.
18474
18475 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18476
18477         areadlink, areadlinkat: rewrite in terms of careadlinkat
18478         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18479         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18480         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18481         (malloc, realloc): Remove #undefs.
18482         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18483         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18484         readlink, ssize_t, stdint, unistd.
18485         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18486         areadlink, stdint.
18487
18488         careadlinkat: new module
18489         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18490         * modules/careadlinkat: New files, written by me with
18491         a review and feedback from Ben Pfaff in
18492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18493
18494 2011-04-01  Bruno Haible  <bruno@clisp.org>
18495
18496         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18497         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18498         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18499         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18500         Reported by Bruce Korb <bruce.korb@gmail.com>.
18501
18502 2011-04-01  Bruno Haible  <bruno@clisp.org>
18503
18504         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18505         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18506         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18507         * modules/wcpcpy (Depends-on): Add extensions.
18508         * modules/wcpncpy (Depends-on): Likewise.
18509         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18510         systems.
18511         * doc/posix-functions/wcpncpy.texi: Likewise.
18512         * doc/posix-functions/wcwidth.texi: Likewise.
18513
18514 2011-03-31  Eric Blake  <eblake@redhat.com>
18515
18516         nonblocking: fix mingw test failures
18517         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18518         non-blocking flag on regular file.
18519         (get_nonblocking_flag): Set errno on invalid fd.
18520         * tests/test-nonblocking.c (main): Avoid test failure on
18521         directories if fchdir is not active.
18522         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18523
18524 2011-03-31  Bruno Haible  <bruno@clisp.org>
18525
18526         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18527         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18528         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18529         Reported by Simon Josefsson <simon@josefsson.org>.
18530
18531 2011-03-31  Bruno Haible  <bruno@clisp.org>
18532         and Eric Blake  <eblake@redhat.com>
18533
18534         nonblocking: new module
18535         * modules/nonblocking: New module.
18536         * modules/nonblocking-tests: Likewise.
18537         * lib/nonblocking.h: New file.
18538         * lib/nonblocking.c: Likewise.
18539         * tests/test-nonblocking.c: New test.
18540         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18541
18542 2011-03-30  Bruno Haible  <bruno@clisp.org>
18543
18544         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18545         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18546         instead of 'printf' format for GCC >= 4.4.
18547         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18548         (fprintf, printf, vfprintf, vprintf): Declare with
18549         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18550         the system's vfprintf() function.
18551         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18552
18553 2011-03-30  Eric Blake  <eblake@redhat.com>
18554
18555         passfd: fix scoping bug
18556         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18557         before sendmsg/recvmsg.
18558
18559         passfd: standardize coding conventions
18560         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18561         can be learned at compile time.
18562         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18563         ifdefs.
18564         (sendfd, recvfd): Follow gnulib code conventions.
18565
18566         passfd: fix incorrect sendmsg arguments
18567         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18568         incorrect msg_controllen value.
18569         * modules/passfd-tests (Depends-on): Check for alarm.
18570         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18571         Reported by Bastien ROUCARIES.
18572
18573 2011-03-30  Bruno Haible  <bruno@clisp.org>
18574
18575         c-strcasestr: Relicense under LGPLv2+.
18576         * modules/c-strcasestr (License): Change to LGPLv2+.
18577         Requested by Eric Blake, for libvirt.
18578
18579 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18580
18581         * users.txt: Add libidn2.  Fix libtasn1 link.
18582
18583 2011-03-30  Jim Meyering  <meyering@redhat.com>
18584
18585         tests: readlink* ("",... fails with EINVAL on newer kernels
18586         readlink and readlinkat have typically failed with ENOENT for
18587         the invalid, empty file name,  "".  However, with the advent
18588         of linux-2.6.39, they fail with EINVAL.
18589         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18590         when operating on the empty file name.
18591         * tests/test-readlink.h (test_readlink): Likewise.
18592
18593 2011-03-29  Bruno Haible  <bruno@clisp.org>
18594
18595         Relicense some modules under LGPLv2+, for libidn2.
18596         * modules/array-mergesort (License): Change to LGPLv2+.
18597         * modules/c-strcaseeq (License): Likewise.
18598         * modules/striconveh (License): Likewise.
18599         * modules/striconveha (License): Likewise.
18600         * modules/uniconv/base (License): Likewise.
18601         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18602         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18603         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18604         * modules/unictype/base (License): Likewise.
18605         * modules/unictype/bidiclass-of (License): Likewise.
18606         * modules/unictype/category-M (License): Likewise.
18607         * modules/unictype/category-none (License): Likewise.
18608         * modules/unictype/category-of (License): Likewise.
18609         * modules/unictype/category-test (License): Likewise.
18610         * modules/unictype/category-test-withtable (License): Likewise.
18611         * modules/unictype/combining-class (License): Likewise.
18612         * modules/unictype/joiningtype-of (License): Likewise.
18613         * modules/unictype/scripts (License): Likewise.
18614         * modules/uninorm/base (License): Likewise.
18615         * modules/uninorm/canonical-decomposition (License): Likewise.
18616         * modules/uninorm/composition (License): Likewise.
18617         * modules/uninorm/decompose-internal (License): Likewise.
18618         * modules/uninorm/decomposition-table (License): Likewise.
18619         * modules/uninorm/nfc (License): Likewise.
18620         * modules/uninorm/nfd (License): Likewise.
18621         * modules/uninorm/u32-normalize (License): Likewise.
18622         * modules/unistr/base (License): Likewise.
18623         * modules/unistr/u32-cpy (License): Likewise.
18624         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18625         * modules/unistr/u32-to-u8 (License): Likewise.
18626         * modules/unistr/u32-uctomb (License): Likewise.
18627         * modules/unistr/u8-check (License): Likewise.
18628         * modules/unistr/u8-mblen (License): Likewise.
18629         * modules/unistr/u8-mbtouc (License): Likewise.
18630         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18631         * modules/unistr/u8-mbtoucr (License): Likewise.
18632         * modules/unistr/u8-prev (License): Likewise.
18633         * modules/unistr/u8-strlen (License): Likewise.
18634         * modules/unistr/u8-to-u32 (License): Likewise.
18635         * modules/unistr/u8-uctomb (License): Likewise.
18636         * modules/unitypes (License): Likewise.
18637         Requested by Simon Josefsson.
18638
18639 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18640
18641         lib-symbol-visibility: Add a notice.
18642         * modules/lib-symbol-visibility (Notice): New field.
18643
18644 2011-03-29  Bruno Haible  <bruno@clisp.org>
18645
18646         getaddrinfo: Doc fix.
18647         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18648         section "fixed in Gnulib".
18649
18650 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18651
18652         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18653         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18654
18655 2011-03-26  Bruno Haible  <bruno@clisp.org>
18656
18657         unictype/property-byname: Reduce the number of load-time relocations.
18658         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18659         (UC_PROPERTY_INDEX_*): New enumeration values.
18660         (uc_property_byname): Convert an index from the lookup table to an
18661         uc_property_t.
18662         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18663         values.
18664
18665 2011-03-26  Bruno Haible  <bruno@clisp.org>
18666
18667         unictype/property-byname: Allow omitted word separators and aliases.
18668         * lib/unictype/pr_byname.gperf: Add property names without word
18669         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18670         for 'space'.
18671
18672 2011-03-26  Bruno Haible  <bruno@clisp.org>
18673
18674         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18675         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18676         also hyphens to space.
18677         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18678         without spaces.
18679         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18680
18681 2011-03-26  Bruno Haible  <bruno@clisp.org>
18682
18683         unictype/joiningtype-byname: Recognize long names as well.
18684         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18685         a long name.
18686         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18687         unictype/joiningtype_byname.h.
18688         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18689         * lib/unictype/joiningtype_byname.gperf: New file.
18690         * modules/unictype/joiningtype-byname (Files): Add
18691         lib/unictype/joiningtype_byname.gperf.
18692         (Depends-on): Add gperf.
18693         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18694         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18695         long names.
18696
18697         Tests for module 'unictype/joiningtype-longname'.
18698         * modules/unictype/joiningtype-longname-tests: New file.
18699         * tests/unictype/test-joiningtype_longname.c: New file.
18700
18701         New module 'unictype/joiningtype-longname'.
18702         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18703         * lib/unictype/joiningtype_longname.c: New file.
18704         * modules/unictype/joiningtype-longname: New file.
18705         * modules/unictype/joiningtype-all (Depends-on): Add
18706         unictype/joiningtype-longname.
18707
18708 2011-03-26  Bruno Haible  <bruno@clisp.org>
18709
18710         unictype/bidiclass-byname: Recognize long names as well.
18711         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18712         name.
18713         * lib/unictype/bidi_byname.c: Include <string.h>,
18714         unictype/bidi_byname.h.
18715         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18716         * lib/unictype/bidi_byname.gperf: New file.
18717         * modules/unictype/bidiclass-byname (Files): Add
18718         lib/unictype/bidi_byname.gperf.
18719         (Depends-on): Add gperf.
18720         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18721         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18722         long names.
18723
18724         Tests for module 'unictype/bidiclass-longname'.
18725         * modules/unictype/bidiclass-longname-tests: New file.
18726         * tests/unictype/test-bidi_longname.c: New file.
18727
18728         New module 'unictype/bidiclass-longname'.
18729         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18730         * lib/unictype/bidi_longname.c: New file.
18731         * modules/unictype/bidiclass-longname: New file.
18732         * modules/unictype/bidiclass-all (Depends-on): Add
18733         unictype/bidiclass-longname.
18734
18735 2011-03-26  Bruno Haible  <bruno@clisp.org>
18736
18737         unictype/bidi*: Rename modules.
18738         * modules/unictype/bidiclass-all: Renamed from
18739         modules/unictype/bidicategory-all.
18740         * modules/unictype/bidiclass-name: Renamed from
18741         modules/unictype/bidiclass-name.
18742         (Description): Update.
18743         * modules/unictype/bidiclass-name-tests: Renamed from
18744         modules/unictype/bidicategory-name-tests.
18745         * modules/unictype/bidiclass-byname: Renamed from
18746         modules/unictype/bidicategory-byname.
18747         (Description): Update.
18748         * modules/unictype/bidiclass-byname-tests: Renamed from
18749         modules/unictype/bidicategory-byname-tests.
18750         * modules/unictype/bidiclass-of: Renamed from
18751         modules/unictype/bidicategory-of.
18752         (Description): Update.
18753         * modules/unictype/bidiclass-of-tests: Renamed from
18754         modules/unictype/bidicategory-of-tests.
18755         * modules/unictype/bidiclass-test: Renamed from
18756         modules/unictype/bidicategory-test.
18757         (Description): Update.
18758         * modules/unictype/bidiclass-test-tests: Renamed from
18759         modules/unictype/bidicategory-test-tests.
18760         * modules/unictype/bidicategory-all: New file, a simple redirection.
18761         * modules/unictype/bidicategory-name: Likewise.
18762         * modules/unictype/bidicategory-byname: Likewise.
18763         * modules/unictype/bidicategory-of: Likewise.
18764         * modules/unictype/bidicategory-test: Likewise.
18765         * modules/unictype/property-bidi-* (Dependencies): Update.
18766         * lib/unictype/bidi_*.c: Update comment.
18767
18768 2011-03-26  Bruno Haible  <bruno@clisp.org>
18769
18770         unictype/bidi*: Rename functions, part 2.
18771         * modules/unictype/bidicategory-name (configure.ac): Update required
18772         libunistring version.
18773         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18774
18775 2011-03-25  Bruno Haible  <bruno@clisp.org>
18776
18777         New module 'unictype/combining-class-all'.
18778         * modules/unictype/combining-class-all: New file.
18779
18780         Tests for module 'unictype/combining-class-byname'.
18781         * modules/unictype/combining-class-byname-tests: New file.
18782         * tests/unictype/test-combiningclass_byname.c: New file.
18783
18784         New module 'unictype/combining-class-byname'.
18785         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18786         * lib/unictype/combiningclass_byname.c: New file.
18787         * lib/unictype/combiningclass_byname.gperf: New file.
18788         * modules/unictype/combining-class-byname: New file.
18789
18790         Tests for module 'unictype/combining-class-longname'.
18791         * modules/unictype/combining-class-longname-tests: New file.
18792         * tests/unictype/test-combiningclass_longname.c: New file.
18793
18794         New module 'unictype/combining-class-longname'.
18795         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18796         * lib/unictype/combiningclass_longname.c: New file.
18797         * modules/unictype/combining-class-longname: New file.
18798
18799         Tests for module 'unictype/combining-class-name'.
18800         * modules/unictype/combining-class-name-tests: New file.
18801         * tests/unictype/test-combiningclass_name.c: New file.
18802
18803         New module 'unictype/combining-class-name'.
18804         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18805         * lib/unictype/combiningclass_name.c: New file.
18806         * modules/unictype/combining-class-name: New file.
18807
18808 2011-03-25  Bruno Haible  <bruno@clisp.org>
18809
18810         unictype/combining-class: Rename source files.
18811         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18812         of unictype/combining.h.
18813         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18814         Update.
18815         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18816         * modules/unictype/combining-class (Description): Fix.
18817         (Files, Makefile.am): Update.
18818         * tests/unictype/test-combiningclass.c: Renamed from
18819         tests/unictype/test-combining.c.
18820         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18821
18822 2011-03-25  Bruno Haible  <bruno@clisp.org>
18823
18824         unictype: Update list of canonical combining classes.
18825         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18826
18827 2011-03-25  Bruno Haible  <bruno@clisp.org>
18828
18829         unictype/category-byname: Recognize long names as well.
18830         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18831         a long name.
18832         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18833         unictype/categ_byname.h.
18834         (UC_CATEGORY_INDEX_*): New enumeration values.
18835         (uc_general_category_byname): Use uc_general_category_lookup and
18836         convert from index to value.
18837         * lib/unictype/categ_byname.gperf: New file.
18838         * modules/unictype/category-byname (Files): Add
18839         lib/unictype/categ_byname.gperf.
18840         (Depends-on): Add gperf.
18841         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18842         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18843         long names.
18844
18845         Tests for module 'unictype/category-longname'.
18846         * modules/unictype/category-longname-tests: New file.
18847         * tests/unictype/test-categ_longname.c: New file.
18848
18849         New module 'unictype/category-longname'.
18850         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18851         * lib/unictype/categ_longname.c: New file.
18852         * modules/unictype/category-longname: New file.
18853         * modules/unictype/category-all (Depends-on): Add it.
18854
18855 2011-03-25  Bruno Haible  <bruno@clisp.org>
18856
18857         Tests for module 'unictype/category-LC'.
18858         * modules/unictype/category-LC-tests: New file.
18859         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18860
18861         New module 'unictype/category-LC'.
18862         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18863         (UC_CATEGORY_LC): New declaration.
18864         (UC_CASED_LETTER): New macro.
18865         * lib/gen-uni-tables.c (is_category_LC): New function.
18866         (output_categories): Also handle category LC.
18867         (UC_CATEGORY_MASK_LC): New enumeration value.
18868         (general_category_byname): Also handle category LC.
18869         * lib/unictype/categ_LC.c: New file.
18870         * lib/unictype/categ_LC.h: New file, automatically generated.
18871         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18872         category LC.
18873         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18874         * modules/unictype/category-LC: New file.
18875         * modules/unictype/category-byname (Depends-on): Add
18876         unictype/category-LC.
18877         * modules/unictype/category-all (Depends-on): Likewise.
18878
18879 2011-03-25  Eric Blake  <eblake@redhat.com>
18880
18881         xmalloc: revert yesterday's regression
18882         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18883         realloc's underlying behavior (allowing allocation of zero-size
18884         objects, especially if malloc-gnu is also in use).
18885
18886 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18887
18888         maint.mk: add missing version to VC-tag
18889         * top/maint.mk: git tag was missing actual tag name; add it.
18890
18891         valgrind: do leak checking, and exit with code 1 on error (not 0)
18892         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18893         to VALGRIND.
18894
18895 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18896
18897         posix-modules: say what it does.
18898         * posix-modules: Add a line to the --help output saying what it does.
18899
18900 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18901
18902         xmalloc: Do not leak if underlying realloc is C99 compatible.
18903         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18904         This avoids a leak on C99-based systems.  See
18905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18906
18907 2011-03-24  Eric Blake  <eblake@redhat.com>
18908
18909         realloc: document portability problem
18910         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18911         passing 0 size to realloc.
18912
18913 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18914
18915         doc: update users.txt
18916         * users.txt: Add cvsps, tmpwatch
18917
18918 2011-03-23  Matt Rice  <ratmice@gmail.com>
18919
18920         doc: update users.txt
18921         * users.txt: Add gdb.
18922
18923 2011-03-23  Jim Meyering  <meyering@redhat.com>
18924
18925         doc: update users.txt
18926         Looking through matches up to the following URL (there are still
18927         several more pages), I found several projects that use gnulib:
18928         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18929         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18930         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18931
18932 2011-03-22  Bruno Haible  <bruno@clisp.org>
18933
18934         unictype/bidi*: Rename functions.
18935         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18936         uc_bidi_class, uc_is_bidi_class): New declarations.
18937         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18938         uc_bidi_category_byname.
18939         (uc_bidi_category_byname): New function.
18940         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18941         u_bidi_category_name.
18942         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18943         (uc_bidi_category_name): New function.
18944         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18945         uc_bidi_category.
18946         (uc_bidi_category): New function.
18947         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18948         uc_is_bidi_category. Invoke uc_bidi_class.
18949         (uc_is_bidi_category): New function.
18950         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18951         instead of uc_bidi_category_byname.
18952         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18953         instead of uc_bidi_category_name.
18954         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18955         uc_bidi_category.
18956         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18957         instead of uc_is_bidi_category.
18958
18959 2011-03-21  Bruno Haible  <bruno@clisp.org>
18960
18961         New module 'unictype/joininggroup-all'.
18962         * modules/unictype/joininggroup-all: New file.
18963
18964         Tests for module 'unictype/joininggroup-of'.
18965         * modules/unictype/joininggroup-of-tests: New file.
18966         * tests/unictype/test-joininggroup_of.c: New file.
18967         * tests/unictype/test-joininggroup_of.h: New file, automatically
18968         generated by gen-uni-tables.
18969
18970         New module 'unictype/joininggroup-of'.
18971         * modules/unictype/joininggroup-of: New file.
18972         * lib/unictype/joininggroup_of.c: New file.
18973         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18974         gen-uni-tables.
18975
18976         Tests for module 'unictype/joininggroup-byname'.
18977         * modules/unictype/joininggroup-byname-tests: New file.
18978         * tests/unictype/test-joininggroup_byname.c: New file.
18979
18980         New module 'unictype/joininggroup-byname'.
18981         * modules/unictype/joininggroup-byname: New file.
18982         * lib/unictype/joininggroup_byname.c: New file.
18983         * lib/unictype/joininggroup_byname.gperf: New file.
18984
18985         Tests for module 'unictype/joininggroup-name'.
18986         * modules/unictype/joininggroup-name-tests: New file.
18987         * tests/unictype/test-joininggroup_name.c: New file.
18988
18989         New module 'unictype/joininggroup-name'.
18990         * modules/unictype/joininggroup-name: New file.
18991         * lib/unictype/joininggroup_name.c: New file.
18992         * lib/unictype/joininggroup_name.h: New file.
18993
18994         New module 'unictype/joiningtype-all'.
18995         * modules/unictype/joiningtype-all: New file.
18996
18997         Tests for module 'unictype/joiningtype-of'.
18998         * modules/unictype/joiningtype-of-tests: New file.
18999         * tests/unictype/test-joiningtype_of.c: New file.
19000         * tests/unictype/test-joiningtype_of.h: New file, automatically
19001         generated by gen-uni-tables.
19002
19003         New module 'unictype/joiningtype-of'.
19004         * modules/unictype/joiningtype-of: New file.
19005         * lib/unictype/joiningtype_of.c: New file.
19006         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19007         gen-uni-tables.
19008
19009         Tests for module 'unictype/joiningtype-byname'.
19010         * modules/unictype/joiningtype-byname-tests: New file.
19011         * tests/unictype/test-joiningtype_byname.c: New file.
19012
19013         New module 'unictype/joiningtype-byname'.
19014         * modules/unictype/joiningtype-byname: New file.
19015         * lib/unictype/joiningtype_byname.c: New file.
19016
19017         Tests for module 'unictype/joiningtype-name'.
19018         * modules/unictype/joiningtype-name-tests: New file.
19019         * tests/unictype/test-joiningtype_name.c: New file.
19020
19021         New module 'unictype/joiningtype-name'.
19022         * modules/unictype/joiningtype-name: New file.
19023         * lib/unictype/joiningtype_name.c: New file.
19024
19025         unictype: Add support for Arabic shaping properties.
19026         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19027         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19028         declarations.
19029         (UC_JOINING_GROUP_*): New enumeration values.
19030         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19031         declarations.
19032         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19033         (unicode_joining_type): New variable.
19034         (UC_JOINING_GROUP_*): New enumeration values.
19035         (unicode_joining_group): New variable.
19036         (fill_arabicshaping, joining_type_as_c_identifier,
19037         output_joining_type_test, output_joining_type,
19038         joining_group_as_c_identifier, output_joining_group_test,
19039         output_joining_group): New functions.
19040         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19041         fill_arabicshaping and output_joining_type_test, output_joining_type,
19042         output_joining_group_test, output_joining_group.
19043         Reported by Simon Josefsson.
19044
19045 2011-03-21  Jim Meyering  <meyering@redhat.com>
19046
19047         strftime: fix a bug in yesterday's change
19048         * lib/strftime.c (add): Accommodate width's initial value of -1.
19049         Otherwise, nstrftime would copy uninitialized data into
19050         the result buffer.
19051
19052 2011-03-21  Jim Meyering  <meyering@redhat.com>
19053
19054         tests: add strftime-tests module
19055         * tests/test-strftime.c: New file.
19056         * modules/strftime-tests: New module.
19057
19058 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19059
19060         strftime: don't assume a byte count fits in 'int'
19061         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19062         found this problem by static analysis, using gcc -Wstrict-overflow
19063         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19064         on an integer overflow having undefined behavior, but it turns out
19065         that the argument is a size, which might not fit in 'int' anyway,
19066
19067 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19068
19069         stdio: don't require ignore_value around fwrite
19070
19071         This patch works around libc bug 11959
19072         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19073         Without this patch, applications must often write
19074         ignore_value (fwrite (...)) even though the ignore_value is
19075         not helpful here.  It's common to write many objects, using
19076         fwrite/printf/etc., and then use ferror to detect output error.
19077
19078         I considered making this patch optional, but decided against it,
19079         because libc is obviously being inconsistent here: there is no
19080         reason libc should insist that user code must inspect fwrite
19081         return's value without also insisting that it inspect printf's,
19082         putchar's, etc.  If user code wants to have a strict style where
19083         all these functions' values are checked (so that ferror need not
19084         be checked), we could add support for that style in a new gnulib
19085         module, but in the meantime it's better to be consistent and to
19086         support common usage.
19087
19088         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19089         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19090         that we are compiling in checking mode, and if not C++, and
19091         if not already wrapping fwrite for some other reason.
19092         (fwrite): #define to rpl_fwrite if the latter is defined.
19093
19094 2011-03-20  Bruno Haible  <bruno@clisp.org>
19095
19096         verror: Fix compilation error introduced on 2011-02-13.
19097         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19098         instead of __attribute__.
19099         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19100
19101 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19102             Bruno Haible  <bruno@clisp.org>
19103
19104         socklen: do not depend on sys_socket
19105         While trying to modify Emacs to use gnulib's socklen module,
19106         I discovered a circular dependency: socklen depends on sys_socket
19107         and vice versa.  Emacs can use socklen, but it does not need
19108         sys_socket because it has its own substitute for sys/socket.h.
19109         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19110         gl_TYPE_SOCKLEN_T.
19111         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19112         gl_PREREQ_SYS_H_SOCKET.
19113         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19114         gl_PREREQ_SYS_H_SOCKET.
19115         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19116         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19117         * modules/socklen (Depends-on): Do not depend on sys_socket.
19118         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19119
19120 2011-03-20  Jim Meyering  <meyering@redhat.com>
19121
19122         maint.mk: sort file names *after* new transformation
19123         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19124         prefix would have led to an unwarranted failure in GNU parted.
19125         Sort after that transformation.
19126
19127 2011-03-19  Jim Meyering  <meyering@redhat.com>
19128
19129         maint.mk: fix po-file syntax-check rule
19130         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19131         Patch by Bruno Haible.
19132
19133 2011-03-19  Bruno Haible  <bruno@clisp.org>
19134
19135         socklen: Update comment.
19136         * m4/socklen.m4: Update comment about platforms.
19137
19138 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19139             Bruno Haible  <bruno@clisp.org>
19140
19141         inet_ntop, inet_pton: Simplify.
19142         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19143         documented to provide socklen_t and we already depend on sys_socket.
19144         * modules/inet_pton (Depends-on): Likewise.
19145         * lib/arpa_inet.in.h: Adjust comment.
19146
19147 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19148             Bruno Haible  <bruno@clisp.org>
19149
19150         netdb: Simplify.
19151         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19152         documented to provide socklen_t and we already depend on sys_socket.
19153         * lib/netdb.in.h: Adjust comment.
19154
19155 2011-03-19  Bruno Haible  <bruno@clisp.org>
19156
19157         sys_socket, netdb: Document problem with socklen_t.
19158         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19159         platforms.
19160         * doc/posix-headers/netdb.texi: Likewise.
19161
19162 2011-03-18  Eric Blake  <eblake@redhat.com>
19163
19164         maint.mk: let po check work in VPATH build
19165         * top/maint.mk (po_file): Allow cfg.mk override.
19166         (sc_po_check): Allow VPATH use.
19167         Reported by Jiri Denemark.
19168
19169 2011-03-16  Jim Meyering  <meyering@redhat.com>
19170
19171         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19172         Before, you would have had to create one .x-sc_ file per rule in order
19173         to exempt offending files.  Now, you may instead use a Make variable --
19174         usually defined in cfg.mk -- whose name identifies the affected rule.
19175         * top/maint.mk (_sc_excl): Define.
19176         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19177         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19178
19179 2011-03-13  Bruno Haible  <bruno@clisp.org>
19180
19181         ignore-value tests: Avoid warnings.
19182         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19183         empty for gcc < 3.4.
19184
19185 2011-03-13  Bruno Haible  <bruno@clisp.org>
19186
19187         passfd: Fix link error on Solaris.
19188         * modules/passfd (Description): Correct.
19189         (Depends-on): Add socketlib.
19190         (Link): New section.
19191         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19192
19193 2011-03-13  Bruno Haible  <bruno@clisp.org>
19194
19195         passfd: Fix link error on AIX 5.2.
19196         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19197
19198 2011-03-13  Bruno Haible  <bruno@clisp.org>
19199
19200         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19201         * lib/sys_socket.in.h: Include <stddef.h>.
19202         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19203         CMSG_FIRSTHDR. Remove unused variable.
19204
19205 2011-03-13  Bruno Haible  <bruno@clisp.org>
19206
19207         passfd: Fix compilation error on OpenBSD.
19208         * lib/passfd.c: Include <sys/uio.h>.
19209
19210 2011-03-13  Bruno Haible  <bruno@clisp.org>
19211
19212         passfd test: Fix warnings.
19213         * tests/test-passfd.c: Include <sys/wait.h>.
19214         (main): Fix typo.
19215
19216 2011-03-13  Bruno Haible  <bruno@clisp.org>
19217
19218         passfd module, part 4, tweaks.
19219         * tests/test-passfd.c: Reorder includes.
19220         (main): Fix perror and printf calls.
19221
19222 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19223
19224         passfd module, part 4.
19225         * modules/passfd-tests: New file.
19226         * tests/test-passfd.c: New file.
19227
19228 2011-03-13  Jim Meyering  <meyering@redhat.com>
19229
19230         Makefile: rely on GNU make; derive syntax-check rule names
19231         Rather than requiring that each sc_ rule be listed as a dependent
19232         of "check", use features of GNU make to derive the list.
19233         * Makefile (syntax-check-rules): Define.
19234         (check): Depend on the new variable, not the hard-coded list.
19235
19236 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19237             Bruno Haible  <bruno@clisp.org>
19238
19239         passfd module, part 3.
19240         * lib/passfd.h (recvfd): Add a flags argument.
19241         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19242         (recvfd): Add a flags argument.
19243         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19244         exists.
19245         * modules/passfd (Depends-on): Add cloexec.
19246         Suggested by Eric Blake.
19247
19248 2011-03-13  Bruno Haible  <bruno@clisp.org>
19249
19250         passfd module, part 2, tweaks.
19251         * modules/passfd (Files): Reorder.
19252         (Depends-on): Remove errno.
19253         (Include): Remove <sys/socket.h>, <sys/un.h>.
19254         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19255         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19256         specification header. Include <sys/socket.h> always. Don't include
19257         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19258         (sendfd): Clarify that it sets errno when it fails.
19259         (recvfd): Fix specification.
19260
19261 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19262
19263         passfd module, part 2.
19264         * modules/passfd: New file.
19265         * lib/passfd.h: New file.
19266         * lib/passfd.c: New file.
19267
19268 2011-03-12  Bruno Haible  <bruno@clisp.org>
19269
19270         wcswidth, mbswidth: Avoid integer overflow.
19271         * lib/wcswidth.c: Include <limits.h>.
19272         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19273         * lib/mbswidth.c: Include <limits.h>.
19274         (mbsnwidth): Avoid 'int' overflow.
19275         Reported by Jim Meyering.
19276
19277 2011-03-12  Bruno Haible  <bruno@clisp.org>
19278
19279         futimens, utimensat: Avoid endless recursion on Solaris 10.
19280         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19281         Solaris.
19282         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19283         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19284
19285 2011-03-11  Jim Meyering  <meyering@redhat.com>
19286
19287         maint.mk: relax a regexp to accommodate other formatting styles
19288         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19289         between "ngettext" and the following "(".
19290
19291 2011-03-11  Pádraig Brady <P@draigBrady.com>
19292
19293         maint.mk: suppress a false positive warning
19294         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19295         diagnostics are marked with ngettext.
19296
19297 2011-03-10  Eric Blake  <eblake@redhat.com>
19298
19299         wchar: add explicit dependencies, for Tru64
19300         * modules/mbmemcasecoll (Depends-on): Add wchar.
19301         * modules/mbtowc (Depends-on): Likewise.
19302         * modules/vasnprintf (Depends-on): Likewise.
19303         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19304         * modules/wctomb (Depends-on): Likewise.
19305         Reported by Peter O'Gorman.
19306
19307 2011-03-08  Bruno Haible  <bruno@clisp.org>
19308
19309         passfd module, part 1, tweaks.
19310         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19311         Improve indentation. Improve AC_MSG_CHECKING messages.
19312         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19313         gl_SOCKET_FAMILIES.
19314
19315 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19316
19317         passfd module, part 1.
19318         * m4/afunix.m4: New file.
19319         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19320         sockets.
19321
19322 2011-03-08  Bruno Haible  <bruno@clisp.org>
19323
19324         regex-quote: New API.
19325         * lib/regex-quote.h: Include <stdbool.h>.
19326         (struct regex_quote_spec): New type.
19327         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19328         New declarations.
19329         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19330         'const struct regex_quote_spec *' argument.
19331         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19332         (pcre_special): New constant.
19333         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19334         New functions.
19335         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19336         'const struct regex_quote_spec *' argument.
19337         * modules/regex-quote (Depends-on): Add stdbool.
19338         * tests/test-regex-quote.c (check): Update for new API. Add test for
19339         anchored results.
19340         * NEWS: Mention the API change.
19341         Reported by Reuben Thomas and Eric Blake.
19342
19343 2011-03-06  Bruno Haible  <bruno@clisp.org>
19344
19345         regex-quote: Fix creation of POSIX extended regular expressions.
19346         * lib/regex-quote.c (ere_special): Add grouping and alternation
19347         operators.
19348
19349 2011-03-05  Bruno Haible  <bruno@clisp.org>
19350
19351         doc: Improve doc regarding autopoint vs. gnulib.
19352         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19353         disable autopoint while running autoreconf.
19354         Suggested by Ralf Wildenhues.
19355
19356 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19357
19358         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19359         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19360
19361 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19362
19363         parse-duration: remove xalloc.h dependency
19364         * lib/parse-duration.c (parse_period): handle NULL return from
19365         strdup instead of calling xstrdup().
19366         * modules/parse-duration: remove "xalloc" dependency
19367
19368 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19369
19370         bootstrap: honor m4_base when running aclocal
19371         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19372
19373 2011-03-02  Jim Meyering  <meyering@redhat.com>
19374
19375         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19376         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19377         on request from Matt Booth.
19378
19379 2011-03-01  Eric Blake  <eblake@redhat.com>
19380
19381         test-link: work on Hurd
19382         * tests/test-link.h (test_link): Hurd rejects linking directories
19383         with EISDIR instead of the POSIX-mandated EPERM.
19384
19385 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19386
19387         stdio: simplify by moving files to printf-posix, sigpipe
19388         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19389         since this symbol is needed only if printf is replaced.
19390         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19391         Require gl_ASM_SYMBOL_PREFIX.
19392         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19393         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19394         (Depends-on): Add 'raise'.
19395         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19396         * modules/stdio (Files): Remove lib/stdio-write.c,
19397         m4/asm-underscore.m4.
19398         (Depends-on): Remove 'raise'.
19399
19400         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19401         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19402         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19403         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19404
19405 2011-02-28  Bruno Haible  <bruno@clisp.org>
19406
19407         localcharset: Assume ANSI C behaviour of free().
19408         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19409         calling free().
19410         Suggested by Simon Josefsson <simon@josefsson.org>.
19411
19412 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19413             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19414             Bruno Haible  <bruno@clisp.org>  (tiny change)
19415
19416         On Cygwin, use /proc file system instead of win32 API.
19417         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19418         Win32 file names.
19419         (DllMain): Simplify by removing Cygwin specific code.
19420         (find_shared_library_fullname): Use Linux specific implementation also
19421         for Cygwin.
19422         (get_shared_library_fullname): Update accordingly.
19423         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19424         Win32 file names.
19425         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19426         Cygwin specific code.
19427
19428 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19429             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19430
19431         Fix OpenMP flag detection for various Fortran compilers.
19432         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19433         OpenMP-conditional compilation construct, to force compile
19434         failure with missing OpenMP flag.
19435         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19436
19437 2011-02-25  Eric Blake  <eblake@redhat.com>
19438
19439         strstr: expand test coverage
19440         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19441         compilation.
19442         * tests/test-memmem.c (main): Duplicate tests.
19443         * tests/test-strcasestr.c (main): Likewise.
19444         * tests/test-c-strcasestr.c (main): Likewise.
19445
19446 2011-02-25  Jim Meyering  <meyering@redhat.com>
19447
19448         maint.mk: detect missing-NL-at-EOF, too
19449         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19450         it also detects when a file lacks a newline at EOF.
19451         (require_exactly_one_NL_at_EOF_): Renamed from
19452         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19453         since people may well have .x-sc_... file names tied to the
19454         existing name.  Suggested by Eric Blake.
19455
19456 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19457
19458         dirname: move m4/dos.m4 functionality into lib/dosname.h
19459
19460         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19461         extracts symbols from it, puts them into config.h; but it's much
19462         easier to use the symbols directly.  filename.h already does this,
19463         but it disagrees with dos.m4 in some respects.  This patch
19464         introduces a different include file dosname.h that packages up
19465         dos.m4, and then later we can work on merging filename.h and
19466         dosname.h.  Applications that need only the easy-to-configure
19467         symbols should consider including dosname.h rather than dirname.h.
19468         * NEWS: Mention incompatible changes.
19469         * m4/dos.m4: Remove.
19470         * lib/dosname.h, modules/dosname: New files.
19471         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19472         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19473         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19474         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19475         Include dosname.h, not dirname.h.
19476         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19477         Include dosname.h, for definitions of symbols like ISSLASH
19478         that used to be in config.h.
19479         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19480         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19481         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19482         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19483         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19484         * modules/rmdir (Files): Likewise.
19485         * modules/stat (Files): Likewise.
19486         * modules/unlink (Files): Likewise.
19487         * modules/dirname-lgpl (Depends-on): Add dosname.
19488         * modules/lstat (Depends-on): Likewise.
19489         * modules/openat (Depends-on): Likewise.
19490         * modules/rmdir (Depends-on): Likewise.
19491         * modules/savewd (Depends-on): Likewise.
19492         * modules/stat (Depends-on): Likewise.
19493         * modules/unlink (Depends-on): Likewise.
19494         * modules/openat (Depends-on): Remove dirname-lgpl.
19495         * modules/savewd (Depends-on): Likewise.
19496         * tests/test-dirname.c: Do not use removed symbols like
19497         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19498         the remaining symbols, e.g., ISSLASH ('\\').
19499
19500 2011-02-25  Eric Blake  <eblake@redhat.com>
19501
19502         strstr: revert patches that introduced bug and pessimization
19503         * lib/str-two-way.h: Add another reference.
19504         (two_way_short_needle, two_way_long_needle): Revert changes from
19505         2011-02-24; they pessimize search speed.
19506         (critical_factorization): Partially revert changes from
19507         2010-06-22; they violate the requirement that the left half of the
19508         needle be smaller than the period of the needle.
19509
19510 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19511
19512         filenamecat: remove unnecessary dependency on dirname-lgpl
19513         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19514         is no direct dependency, just an indirect one via filenamecat-lgpl.
19515
19516         remove: remove unnecessary use of m4/dos.m4
19517         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19518         * modules/remove (FILES): Remove m4/dos.m4.
19519
19520         * lib/openat-proc.c: Don't include dirname.h; not needed.
19521
19522         backupfile: remove unnecessary use of m4/dos.m4
19523         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19524         of its symbols are used by the backupfile code.  backupfile.c does
19525         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19526         for the rare case of programs that want all their backup file
19527         names to live within 8+3 limits, and dos.m4 doesn't address that.
19528         * modules/backupfile (Files): Remove m4/dos.m4.
19529
19530 2011-02-24  Jim Meyering  <meyering@redhat.com>
19531
19532         strstr: fix a bug whereby strstr would mistakenly return NULL
19533         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19534         in period calculation.
19535         (two_way_long_needle): Likewise.
19536         The original problem was reported by Mike Stump in
19537         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19538         Ralf Wildenhues provided the short needle and haystack.
19539         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19540         Add a more involved test to trigger the bug in two_way_long_needle.
19541
19542 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19543
19544         gnulib-tool: remove use of bold display in help screen
19545         * gnulib-tool (func_usage): Do not use bold display anymore in the
19546         help screen.  That was just meant to be a temporary emphasis for a
19547         backward-incompatible change.
19548
19549 2011-02-23  Bruno Haible  <bruno@clisp.org>
19550
19551         Fix misindentation of preprocessor directives.
19552         * lib/argp-namefrob.h: Reindent preprocessor directives.
19553         * lib/getopt_int.h (struct _getopt_data): Likewise.
19554         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19555         * lib/vasnprintf.c (decode_long_double): Likewise.
19556         * tests/test-argmatch.c: Insert blank lines, for clarity.
19557         * tests/test-exclude.c: Likewise.
19558
19559 2011-02-22  Bruno Haible  <bruno@clisp.org>
19560
19561         ioctl: Fix for MacOS X in 64-bit mode.
19562         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19563         value.
19564         Suggested by Eric Blake.
19565         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19566
19567 2011-02-22  Jim Meyering  <meyering@redhat.com>
19568
19569         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19570         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19571         in lib/.
19572
19573 2011-02-22  Eric Blake  <eblake@redhat.com>
19574
19575         maint: avoid any CDPATH issue
19576         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19577
19578         maint: adjust cpp indentation for my modules, as well
19579         * Makefile (sc_cpp_indent_check): Add my name.
19580         * lib/fbufmode.c: Filter through cppi.
19581         * lib/fpurge.c: Likewise.
19582         * lib/freadable.c: Likewise.
19583         * lib/freading.c: Likewise.
19584         * lib/fwritable.c: Likewise.
19585         * lib/fwriting.c: Likewise.
19586         * lib/sigaction.c: Likewise.
19587
19588 2011-02-22  Jim Meyering  <meyering@redhat.com>
19589
19590         maint: adjust cpp indentation to reflect nesting depth
19591         I.e., in a block of code that begins with an unnested "#if",
19592         put one space between the "#" in column 1 and following token.
19593         For example,
19594         -#include <sys/vfs.h>
19595         +# include <sys/vfs.h>
19596         Do this only in .c files that are part of a module I maintain.
19597         * lib/linkat.c: Filter through cppi.
19598         * lib/nanosleep.c: Likewise.
19599         * lib/openat.c: Likewise.
19600         * lib/openat-die.c: Likewise.
19601         * lib/dup3.c: Likewise.
19602         * lib/fchownat.c: Likewise.
19603         * lib/flock.c: Likewise.
19604         * lib/fsync.c: Likewise.
19605         * lib/fts.c: Likewise.
19606         * lib/getpass.c: Likewise.
19607         * lib/gettimeofday.c: Likewise.
19608         * lib/userspec.c: Likewise.
19609         * Makefile (sc_cpp_indent_check): New rule, to check this.
19610
19611 2011-02-22  Bruno Haible  <bruno@clisp.org>
19612
19613         New module 'wctomb'.
19614         * lib/stdlib.in.h (wctomb): New declaration.
19615         * lib/wctomb.c: New file.
19616         * lib/wctomb-impl.h: New file.
19617         * m4/wctomb.m4: New file.
19618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19619         REPLACE_WCTOMB.
19620         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19621         REPLACE_WCTOMB.
19622         * modules/wctomb: New file.
19623         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19624         * doc/posix-functions/wctomb.texi: Mention the new module.
19625         * modules/wctob (Depends-on): Add wctomb.
19626
19627 2011-02-22  Bruno Haible  <bruno@clisp.org>
19628
19629         New module 'mbtowc'.
19630         * lib/stdlib.in.h (mbtowc): New declaration.
19631         * lib/mbtowc.c: New file.
19632         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19633         * m4/mbtowc.m4: New file.
19634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19635         REPLACE_MBTOWC.
19636         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19637         REPLACE_MBTOWC.
19638         * modules/mbtowc: New file.
19639         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19640         * doc/posix-functions/mbtowc.texi: Mention the new module.
19641         * modules/btowc (Depends-on): Add mbtowc.
19642
19643 2011-02-22  Bruno Haible  <bruno@clisp.org>
19644
19645         wcrtomb: Add more tests for native Windows platforms.
19646         * tests/test-wcrtomb-w32-1.sh: New file.
19647         * tests/test-wcrtomb-w32-2.sh: New file.
19648         * tests/test-wcrtomb-w32-3.sh: New file.
19649         * tests/test-wcrtomb-w32-4.sh: New file.
19650         * tests/test-wcrtomb-w32-5.sh: New file.
19651         * tests/test-wcrtomb-w32.c: New file.
19652         * modules/wcrtomb-tests (Files): Add them.
19653         (Makefile.am): Arrange to run these tests.
19654         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19655         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19656
19657 2011-02-20  Bruno Haible  <bruno@clisp.org>
19658
19659         wcrtomb: Enhance test.
19660         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19661
19662 2011-02-20  Bruno Haible  <bruno@clisp.org>
19663
19664         mbrtowc: Tiny optimization.
19665         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19666
19667 2011-02-20  Jim Meyering  <meyering@redhat.com>
19668
19669         test-exclude.c: remove unmatched #endif
19670         * tests/test-exclude.c: Remove stray #endif, left over from
19671         the change of a week ago.
19672
19673 2011-02-19  Jim Meyering  <meyering@redhat.com>
19674
19675         git-version-gen: skip "-dirty" check when appropriate
19676         * build-aux/git-version-gen: Don't run any git commands when the
19677         version string comes from .tarball-version.  Prior to this, we
19678         would run git update-index --refresh even from a just-unpacked
19679         tarball directory, and that could affect a .git/ directory in a
19680         parent of the build directory.  Reported by Mike Frysinger.
19681
19682 2011-02-19  Bruno Haible  <bruno@clisp.org>
19683
19684         unictype/property-byname: Reduce the size of the 'data' segment.
19685         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19686
19687 2011-02-19  Bruno Haible  <bruno@clisp.org>
19688
19689         unictype/scripts: Reduce the size of the 'data' segment.
19690         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19691         '%pic'.
19692         * lib/unictype/scripts_byname.gperf: Regenerated.
19693
19694 2011-02-19  Bruno Haible  <bruno@clisp.org>
19695
19696         stdint: Update documentation.
19697         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19698
19699 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19700
19701         stdint: omit redundant check for wchar.h
19702         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19703         always tests whether wchar.h exists, so remove the now-redundant test.
19704
19705 2011-02-18  Bruno Haible  <bruno@clisp.org>
19706
19707         stdint: Cut dependency to module 'wchar'.
19708         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19709         include the necessary prerequisites.
19710         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19711         * modules/stdint (Depends-on): Remove wchar.
19712         (Makefile.am): Substitute HAVE_WCHAR_H.
19713         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19714
19715 2011-02-18  Eric Blake  <eblake@redhat.com>
19716
19717         longlong: skip, rather than fail, on cross-compilation
19718         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19719         when cross-compiling; regression from 2011-02-16.
19720
19721 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19722
19723         * NEWS: Mention 2011-02-08 change to stdlib.
19724
19725 2011-02-17  Bruno Haible  <bruno@clisp.org>
19726
19727         getloadavg: Add comments about platforms.
19728         * m4/getloadavg.m4: Add comment.
19729         * lib/getloadavg.c: Likewise.
19730
19731 2011-02-17  Bruno Haible  <bruno@clisp.org>
19732
19733         getloadavg: Fix link error on Solaris 2.6.
19734         * modules/getloadavg (Link): New section.
19735         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19736         linking test-getloadavg.
19737         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19738         getloadavg.
19739
19740 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19741
19742         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19743         It was 'int', but this doesn't match the IRIX 6.5 manual.
19744         Suggested by Bruno Haible in
19745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19746
19747 2011-02-17  Bruno Haible  <bruno@clisp.org>
19748
19749         havelib: Fix comments.
19750         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19751         change.
19752
19753 2011-02-17  Bruno Haible  <bruno@clisp.org>
19754
19755         havelib: Update config.rpath.
19756         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19757
19758 2011-02-17  Bruno Haible  <bruno@clisp.org>
19759
19760         getloadavg test: Add some plausibility checks.
19761         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19762         is improbable.
19763
19764 2011-02-16  Eric Blake  <eblake@redhat.com>
19765
19766         maintainer-makefile: make syntax-check a no-op from tarballs
19767         * top/maint.mk (no-vc-detected): New rule.
19768         (local-checks-available): Use it to avoid hanging if someone tries
19769         'make syntax-check' from a tarball.  Also append to any non-syntax
19770         checks already defined in cfg.mk.
19771
19772 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19773
19774         longlong: tune, particularly for common case of c99
19775
19776         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19777         or running anything if c99, or if unsigned long long int does not
19778         work.  In either case, we know the answer without further tests.
19779         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19780         it at most once, and use its results for both long long int and
19781         unsigned long long int.  This is more likely to be efficient in
19782         the common case where the program wants to check for both long
19783         long int and unsigned long long int.
19784         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19785         since the answer is already known.
19786
19787 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19788
19789         getloadavg: set errno
19790         * lib/getloadavg.c: Set errno when returning -1.  If no other
19791         error number looks appropriate, set it to ENOSYS if the getloadavg
19792         looks like it can't possibly ever work, ENOTSUP otherwise.
19793         Suggested by Bruno Haible in
19794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19795
19796         getloadavg: trim unused parts and speed up 'configure'
19797         * NEWS: Document this.
19798         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19799         always compiled if getloadavg is absent.
19800         Move test code to ...
19801         * tests/test-getloadavg.c: New file, containing previous
19802         contents of test from lib/getloadavg.c.  It also contains
19803         suggestions by Bruno Haible in
19804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19805         * modules/getloadavg-tests: New file.
19806         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19807         Do tests in the same order as they're needed for getloadavg.c.
19808         Omit setgid-related tests that generate symbols KMEM_GROUP,
19809         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19810         Do only the tests that are needed to see whether the system has
19811         getloadavg, moving the other tests into ...
19812         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19813         NLIST_NAME_UNION; nobody should be using it.  Do not define
19814         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19815         relevant, as the user of this module shouldn't care how getloadavg
19816         is implemented.
19817
19818         getloadavg: omit unused var
19819         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19820
19821 2011-02-15  Jim Meyering  <meyering@redhat.com>
19822
19823         doc: update users.txt
19824         * users.txt: Update iwhd's URL.
19825
19826 2011-02-13  Bruno Haible  <bruno@clisp.org>
19827
19828         Consistent macro naming for macros that use GCC __attribute__.
19829         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19830         _ATTRIBUTE_NONNULL_.
19831         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19832         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19833         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19834         ATTRIBUTE_DEPRECATED.
19835         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19836         ATTRIBUTE_NORETURN.
19837         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19838         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19839         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19840         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19841         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19842         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19843         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19844         ATTRIBUTE_SENTINEL.
19845         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19846         ATTRIBUTE_RETURN_CHECK.
19847         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19848         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19849         ATTRIBUTE_NORETURN.
19850         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19851         Reported by Paul Eggert.
19852
19853 2011-02-13  Bruno Haible  <bruno@clisp.org>
19854
19855         Don't interfere with a program's definition of __attribute__.
19856         * lib/argp.h (__attribute__): Remove definition.
19857         (_GL_ATTRIBUTE_FORMAT): New macro.
19858         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19859         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19860         (_GL_ATTRIBUTE_FORMAT): New macro.
19861         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19862         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19863         GCC 3 or newer.
19864         * lib/error.h (__attribute__): Remove definition.
19865         (_GL_ATTRIBUTE_FORMAT): New macro.
19866         (error, error_at_line): Use it.
19867         * lib/hash.h (__attribute__): Remove definition.
19868         (ATTRIBUTE_WUR): Update definition. Define always.
19869         * lib/openat.h (__attribute__): Remove definition.
19870         (ATTRIBUTE_NORETURN): Update definition. Define always.
19871         * lib/sigpipe-die.h (__attribute__): Remove definition.
19872         (ATTRIBUTE_NORETURN): Update definition. Define always.
19873         * lib/vasnprintf.h (__attribute__): Remove definition.
19874         (_GL_ATTRIBUTE_FORMAT): New macro.
19875         (asnprintf, vasnprintf): Use it.
19876         * lib/xalloc.h (__attribute__): Remove definition.
19877         (ATTRIBUTE_NORETURN): Update definition. Define always.
19878         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19879         * lib/xmemdup0.h (__attribute__): Remove definition.
19880         (ATTRIBUTE_NORETURN): Update definition. Define always.
19881         * lib/xprintf.h (__attribute__): Remove definition.
19882         (_GL_ATTRIBUTE_FORMAT): New macro.
19883         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19884         * lib/xstrtol.h (__attribute__): Remove definition.
19885         (ATTRIBUTE_NORETURN): Update definition. Define always.
19886         * lib/xvasprintf.h (__attribute__): Remove definition.
19887         (_GL_ATTRIBUTE_FORMAT): New macro.
19888         (xasprintf, xvasprintf): Use it.
19889         * tests/test-argmatch.c (__attribute__): Remove definition.
19890         (ATTRIBUTE_NORETURN): Update definition. Define always.
19891         * tests/test-exclude.c (__attribute__): Remove definition.
19892         (ATTRIBUTE_NORETURN): Update definition. Define always.
19893         Reported by Paul Eggert.
19894
19895 2011-02-13  Bruno Haible  <bruno@clisp.org>
19896
19897         mbrtowc: Add more tests for native Windows platforms.
19898         * tests/test-mbrtowc-w32-1.sh: New file.
19899         * tests/test-mbrtowc-w32-2.sh: New file.
19900         * tests/test-mbrtowc-w32-3.sh: New file.
19901         * tests/test-mbrtowc-w32-4.sh: New file.
19902         * tests/test-mbrtowc-w32-5.sh: New file.
19903         * tests/test-mbrtowc-w32.c: New file.
19904         * modules/mbrtowc-tests (Files): Add them.
19905         (Makefile.am): Arrange to run these tests.
19906         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19907         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19908
19909 2011-02-13  Bruno Haible  <bruno@clisp.org>
19910
19911         mbrtowc: Work around native Windows bug.
19912         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19913         guess when no suitable locale for testing was found.
19914         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19915
19916 2011-02-13  Bruno Haible  <bruno@clisp.org>
19917
19918         mbsinit: Work around mingw bug.
19919         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19920         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19921         Windows.
19922         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19923
19924 2011-02-13  Bruno Haible  <bruno@clisp.org>
19925
19926         mbsinit: Don't crash for a NULL argument.
19927         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19928         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19929
19930 2011-02-13  Bruno Haible  <bruno@clisp.org>
19931
19932         Don't interfere with a program's definition of __attribute__.
19933         * lib/stdio.in.h (__attribute__): Remove definition.
19934         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19935         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19936         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19937         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19938         * lib/string.in.h (__attribute__): Remove definition.
19939         Reported by Paul Eggert.
19940
19941 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19942
19943         stdlib: don't get in the way of non-GCC __attribute__
19944         See thread starting at
19945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19946         Revert previous stdlib change, installing the following instead:
19947         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19948         to get in the way of a non-GCC compiler that supports __attribute__.
19949         (_GL_ATTRIBUTE_RETURN): New macro.
19950         (_Exit): Use it instead of __attribute__.
19951
19952 2011-02-12  Bruno Haible  <bruno@clisp.org>
19953
19954         quotearg test: Avoid test failure on mingw.
19955         * tests/test-quotearg.sh: Convert the locale identifier from native
19956         Windows syntax to Unix syntax.
19957
19958 2011-02-12  Bruno Haible  <bruno@clisp.org>
19959
19960         setlocale: Prefer gnulib's override over libintl's override.
19961         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19962         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19963         GNULIB_defined_setlocale is set.
19964
19965 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19966
19967         stdlib: support non-GCC __attribute__
19968
19969         Fix a serious and tricky problem encountered when attempting to
19970         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19971         5.5, but it crashed due to memory corruption on Solaris 10 with
19972         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19973         bits that are otherwise zero.  This tagging is optional inside
19974         Emacs but is preferred and is used when __attribute__ ((__aligned
19975         (8))) works, as it does with both recent-enough GCC and with Sun C
19976         5.11.  However, Sun C 5.11 is not GCC and does not #define
19977         __GNUC__ and __GNUC_MINOR__.
19978
19979         When I added the getloadavg module to Emacs, it brought in
19980         stdlib.in.h, which contained this fragment:
19981
19982            #ifndef __attribute__
19983            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19984            #  define __attribute__(Spec)   /* empty */
19985            # endif
19986            #endif
19987
19988         When files that include <stdlib.h> were compiled with Sun C 5.11,
19989         the above code disabled __attribute__ ((__aligned (8))), which
19990         caused variables to not be properly aligned, which eventually led
19991         to the pointer corruption mentioned above.  (This was a bit hard
19992         to diagnose, unfortunately.)
19993
19994         Several "#define __attribute__(X) /* empty */" code snippets need
19995         to be eradicated from Gnulib to work with non-GCC compilers that
19996         support __attribute__.  The Autoconf way to do this is to test for
19997         each kind of attribute that we want support for, and selectively
19998         enable that in source code.
19999
20000         Fix this problem just for stdlib.h, by adding a test for the
20001         __noreturn__ attribute, and change stdlib.in.h to use that test
20002         when needed.  This technique can be easily generalized to the
20003         other *.in.h files and attributes, and a similar technique can be
20004         used for *.h and *.c files.  This patch is enough to solve the
20005         problem for Emacs + getloadavg, and I thought I'd publish it for
20006         feedback before undertaking further, similar fixes in other
20007         modules.
20008
20009         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20010         because it's not needed for stdlib.h.  It merely substitutes the
20011         value directly into stdlib.h.  We may well need to #define it, or
20012         similar symbols, for other modules, but it's nice to also have an
20013         option to not #define it for applications like Emacs that do not
20014         need it.
20015
20016         * lib/stdlib.in.h (__attribute__): Do not #define.
20017         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20018         be defined only if the _Exit module is also used.
20019         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20021         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20022         platforms.
20023         * modules/_Exit (Files): Add m4/attribute.m4.
20024         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20025         * m4/attribute.m4: New file.
20026
20027 2011-02-12  Bruno Haible  <bruno@clisp.org>
20028
20029         wcsrtombs: Work around bug on native Windows.
20030         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20031         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20032         instead of len.
20033         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20034
20035 2011-02-12  Bruno Haible  <bruno@clisp.org>
20036
20037         mbsrtowcs: Work around bug on native Windows.
20038         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20039         against mingw bug.
20040         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20041
20042 2011-02-12  Bruno Haible  <bruno@clisp.org>
20043
20044         Avoid setlocale bugs in tests.
20045         * modules/btowc (Dependencies): Add setlocale.
20046         * modules/c-strcase (Dependencies): Likewise.
20047         * modules/mbmemcasecmp (Dependencies): Likewise.
20048         * modules/mbmemcasecoll (Dependencies): Likewise.
20049         * modules/mbrtowc (Dependencies): Likewise.
20050         * modules/mbscasecmp (Dependencies): Likewise.
20051         * modules/mbscasestr (Dependencies): Likewise.
20052         * modules/mbschr (Dependencies): Likewise.
20053         * modules/mbscspn (Dependencies): Likewise.
20054         * modules/mbsinit (Dependencies): Likewise.
20055         * modules/mbsncasecmp (Dependencies): Likewise.
20056         * modules/mbsnrtowcs (Dependencies): Likewise.
20057         * modules/mbspbrk (Dependencies): Likewise.
20058         * modules/mbspcasecmp (Dependencies): Likewise.
20059         * modules/mbsrchr (Dependencies): Likewise.
20060         * modules/mbsrtowcs (Dependencies): Likewise.
20061         * modules/mbsspn (Dependencies): Likewise.
20062         * modules/mbsstr (Dependencies): Likewise.
20063         * modules/nl_langinfo (Dependencies): Likewise.
20064         * modules/quotearg (Dependencies): Likewise.
20065         * modules/unicase/locale-language (Dependencies): Likewise.
20066         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20067         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20068         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20069         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20070         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20071         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20072         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20073         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20074         * modules/vasnprintf-posix (Dependencies): Likewise.
20075         * modules/wcrtomb (Dependencies): Likewise.
20076         * modules/wcsnrtombs (Dependencies): Likewise.
20077         * modules/wcsrtombs (Dependencies): Likewise.
20078
20079 2011-02-12  Bruno Haible  <bruno@clisp.org>
20080
20081         setlocale: Workaround native Windows bug.
20082         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20083         succeeds but sets LC_CTYPE to "C", report a failure.
20084         * tests/test-setlocale2.sh: New file.
20085         * tests/test-setlocale2.c: New file.
20086         * modules/setlocale-tests (Files): Add the new files.
20087         (Makefile.am): Enable test-setlocale2.sh test.
20088         * doc/posix-functions/setlocale.texi: Mention workaround.
20089
20090 2011-02-11  Bruno Haible  <bruno@clisp.org>
20091
20092         Tests for module 'setlocale'.
20093         * modules/setlocale-tests: New file.
20094         * tests/test-setlocale1.sh: New file.
20095         * tests/test-setlocale1.c: New file.
20096
20097         New module 'setlocale'.
20098         * lib/locale.in.h (setlocale): New declaration.
20099         * lib/setlocale.c: New file, based on
20100         gettext/gettext-runtime/intl/setlocale.c.
20101         * m4/setlocale.m4: New file.
20102         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20103         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20104         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20105         REPLACE_SETLOCALE.
20106         * modules/setlocale: New file.
20107         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20108         * doc/posix-functions/setlocale.texi: Mention the new module.
20109
20110 2011-02-11  Bruno Haible  <bruno@clisp.org>
20111
20112         Prepare for locale dependent tests on mingw.
20113         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20114         because it has the wrong locale encoding.
20115         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20116         French_France.1252 instead of "fr".
20117         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20118         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20119         because it has the wrong locale encoding.
20120         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20121         native Windows, try Turkish_Turkey.65001.
20122         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20123         Chinese_China.54936.
20124
20125         Prepare for locale dependent tests on mingw.
20126         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20127         differently.
20128         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20129         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20130         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20131         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20132
20133 2011-02-11  Eric Blake  <eblake@redhat.com>
20134
20135         strptime: avoid compiler warnings
20136         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20137         compiler warnings about dead code.
20138         Reported by Daniel P. Berrange.
20139
20140 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20141
20142         doc: update users.txt
20143         * users.txt: Add rcs.
20144
20145 2011-02-10  John W. Eaton  <jwe@gnu.org>
20146
20147         doc: update users.txt
20148         * users.txt: Add octave.
20149
20150 2011-02-10  Jim Meyering  <meyering@redhat.com>
20151
20152         doc: update users.txt
20153         * users.txt: Add iwhd.
20154
20155 2011-02-09  Bruno Haible  <bruno@clisp.org>
20156
20157         gnulib-tool: Make copyright notice adjustment more robust.
20158         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20159         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20160         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20161         License".
20162         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20163
20164 2011-02-06  Bruno Haible  <bruno@clisp.org>
20165
20166         New module 'towctrans'.
20167         * modules/towctrans: New file.
20168         * lib/wctype.in.h (towctrans): New declaration.
20169         * lib/towctrans.c: New file.
20170         * lib/towctrans-impl.h: New file.
20171         * m4/towctrans.m4: New file.
20172         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20173         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20174         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20175         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20176         * doc/posix-functions/towctrans.texi: Mention the new module.
20177
20178 2011-02-06  Bruno Haible  <bruno@clisp.org>
20179
20180         New module 'wctrans'.
20181         * modules/wctrans: New file.
20182         * lib/wctype.in.h (wctrans): New declaration.
20183         * lib/wctrans.c: New file.
20184         * lib/wctrans-impl.h: New file.
20185         * m4/wctrans.m4: New file.
20186         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20187         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20188         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20189         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20190         * doc/posix-functions/wctrans.texi: Mention the new module.
20191
20192 2011-02-06  Bruno Haible  <bruno@clisp.org>
20193
20194         New module 'iswctype'.
20195         * modules/iswctype: New file.
20196         * lib/wctype.in.h (iswctype): New declaration.
20197         * lib/iswctype.c: New file.
20198         * lib/iswctype-impl.h: New file.
20199         * m4/iswctype.m4: New file.
20200         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20201         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20202         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20203         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20204         * doc/posix-functions/iswctype.texi: Mention the new module and the
20205         HP-UX 11.00 problem.
20206
20207 2011-02-06  Bruno Haible  <bruno@clisp.org>
20208
20209         New module 'wctype'.
20210         * modules/wctype: Change to represent the wctype() substitute.
20211         * lib/wctype.in.h (wctype): New declaration.
20212         * lib/wctype.c: New file.
20213         * lib/wctype-impl.h: New file.
20214         * m4/wctype.m4: New file.
20215         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20216         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20217         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20218         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20219         * doc/posix-functions/wctype.texi: Mention the new module and the
20220         HP-UX 11.00 problem.
20221
20222 2011-02-06  Bruno Haible  <bruno@clisp.org>
20223
20224         wctype-h: Ensure wctype_t and wctrans_t are defined.
20225         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20226         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20227         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20228         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20229         HAVE_WCTRANS_T.
20230         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20231
20232 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20233
20234         flock: fix license typo
20235
20236         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20237         omitted.
20238
20239 2011-02-08  Bruno Haible  <bruno@clisp.org>
20240
20241         Split large sed scripts, for HP-UX sed.
20242         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20243         to avoid HP-UX limit of 99 commands, in the near future.
20244         * modules/stdlib (Makefile.am): Likewise.
20245         * modules/unistd (Makefile.am): Likewise.
20246         * modules/wchar (Makefile.am): Likewise.
20247         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20248         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20249         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20250
20251 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20252             Bruno Haible  <bruno@clisp.org>
20253
20254         stdlib: improve random_r modularization
20255         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20256         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20257         you also need the random_r module to get this material right.
20258         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20259         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20260         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20261
20262 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20263
20264         stdlib: don't depend on stdint
20265         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20266         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20267         be independent of whether stdint.h is needed.
20268         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20269         here, instead of ...
20270         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20271         struct random_data should be using the random_r module, not just
20272         the stdlib module (which wouldn't make sense: what package needs
20273         just struct random_data without also needing random_r?).
20274         * modules/stdlib (Depends-on): Remove stdint.
20275
20276         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20277         See the thread rooted at
20278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20279         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20280         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20281         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20282         __VMS)); previously it was always included (via fcntl--.h).
20283         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20284         hand; this is good enough for load averages.  Also, do not use
20285         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20286         flags directly if available and don't bother otherwise.  (Packages
20287         that need the extra reliability should use the modules that define
20288         these flags on older platforms that lack them.)
20289         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20290         fcntl-safer.
20291
20292 2011-02-08  Jim Meyering  <meyering@redhat.com>
20293
20294         di-set.h, ino-map.h: add multiple-inclusion guard
20295         Technically, the guard is required only for ino-map.h, due to its
20296         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20297         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20298         * lib/ino-map.h: Likewise.
20299
20300 2011-02-06  Bruno Haible  <bruno@clisp.org>
20301
20302         iswblank: Ensure declaration on glibc systems.
20303         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20304         * modules/iswblank (Dependencies): Add 'extensions'.
20305         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20306
20307 2011-02-06  Bruno Haible  <bruno@clisp.org>
20308
20309         New module 'iswblank'.
20310         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20311         * modules/iswblank: New file.
20312         * modules/wctype-h (Files): Remove lib/iswblank.c.
20313         (Makefile.am): Substitute GNULIB_ISWBLANK.
20314         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20315         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20316         (gl_WCTYPE_H_DEFAULTS): New macro.
20317         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20318         * modules/iswblank-tests: New file.
20319         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20320         * tests/test-wctype-h.c (main): Remove iswblank tests.
20321         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20322         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20323         of 'wctype-h'.
20324         * NEWS: Mention the change.
20325         * modules/mbchar (Depends-on): Add iswblank.
20326
20327 2011-02-08  Bruno Haible  <bruno@clisp.org>
20328
20329         di-set tests: Refactor.
20330         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20331         unnecessary includes.
20332         (ASSERT): Remove macro.
20333         (main): Make C90 compliant by avoiding variable declaration after
20334         statement.
20335         * modules/di-set-tests (Files): Add tests/macros.h.
20336
20337 2011-02-08  Bruno Haible  <bruno@clisp.org>
20338
20339         ino-map tests: Refactor.
20340         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20341         unnecessary includes.
20342         (ASSERT): Remove macro.
20343         (main): Make C90 compliant by avoiding variable declaration after
20344         statement.
20345         * modules/ino-map-tests (Files): Add tests/macros.h.
20346
20347 2011-02-08  Jim Meyering  <meyering@redhat.com>
20348
20349         di-set: add "const" to a cast
20350         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20351         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20352
20353 2011-02-06  Bruno Haible  <bruno@clisp.org>
20354
20355         Rename module 'wctype' to 'wctype-h'.
20356         * modules/wctype-h: Renamed from modules/wctype.
20357         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20358         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20359         (Files, Depends-on, Makefile.am): Update.
20360         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20361         (Files, Makefile.am): Update.
20362         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20363         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20364         * doc/posix-headers/wctype.texi: Update.
20365         * doc/posix-functions/iswalnum.texi: Update.
20366         * doc/posix-functions/iswalpha.texi: Update.
20367         * doc/posix-functions/iswblank.texi: Update.
20368         * doc/posix-functions/iswcntrl.texi: Update.
20369         * doc/posix-functions/iswdigit.texi: Update.
20370         * doc/posix-functions/iswgraph.texi: Update.
20371         * doc/posix-functions/iswlower.texi: Update.
20372         * doc/posix-functions/iswprint.texi: Update.
20373         * doc/posix-functions/iswpunct.texi: Update.
20374         * doc/posix-functions/iswspace.texi: Update.
20375         * doc/posix-functions/iswupper.texi: Update.
20376         * doc/posix-functions/iswxdigit.texi: Update.
20377         * doc/posix-functions/towlower.texi: Update.
20378         * doc/posix-functions/towupper.texi: Update.
20379         * NEWS: Mention the change.
20380         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20381         * modules/mbchar (Dependencies): Likewise.
20382         * modules/mbswidth (Dependencies): Likewise.
20383         * modules/quotearg (Dependencies): Likewise.
20384         * modules/regex (Dependencies): Likewise.
20385         * modules/wcscasecmp (Dependencies): Likewise.
20386         * modules/wcsncasecmp (Dependencies): Likewise.
20387         * modules/wcwidth (Dependencies): Likewise.
20388
20389 2011-02-06  Bruno Haible  <bruno@clisp.org>
20390
20391         New module 'wcswidth'.
20392         * modules/wcswidth: New file.
20393         * lib/wchar.in.h (wcswidth): New declaration.
20394         * lib/wcswidth.c: New file.
20395         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20396         * m4/wcswidth.m4: New file.
20397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20399         REPLACE_WCSWIDTH.
20400         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20401         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20402         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20403         * doc/posix-functions/wcswidth.texi: Mention the new module.
20404
20405 2011-02-06  Bruno Haible  <bruno@clisp.org>
20406
20407         New module 'wcstok'.
20408         * modules/wcstok: New file.
20409         * lib/wchar.in.h (wcstok): New declaration.
20410         * lib/wcstok.c: New file.
20411         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20412         * m4/wcstok.m4: New file.
20413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20416         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20417         * doc/posix-functions/wcstok.texi: Mention the new module.
20418
20419 2011-02-06  Bruno Haible  <bruno@clisp.org>
20420
20421         New module 'wcsstr'.
20422         * modules/wcsstr: New file.
20423         * lib/wchar.in.h (wcsstr): New declaration.
20424         * lib/wcsstr.c: New file.
20425         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20426         * m4/wcsstr.m4: New file.
20427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20430         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20431         * doc/posix-functions/wcsstr.texi: Mention the new module.
20432
20433 2011-02-06  Bruno Haible  <bruno@clisp.org>
20434
20435         New module 'wcspbrk'.
20436         * modules/wcspbrk: New file.
20437         * lib/wchar.in.h (wcspbrk): New declaration.
20438         * lib/wcspbrk.c: New file.
20439         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20440         * m4/wcspbrk.m4: New file.
20441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20444         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20445         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20446
20447 2011-02-06  Bruno Haible  <bruno@clisp.org>
20448
20449         New module 'wcsspn'.
20450         * modules/wcsspn: New file.
20451         * lib/wchar.in.h (wcsspn): New declaration.
20452         * lib/wcsspn.c: New file.
20453         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20454         * m4/wcsspn.m4: New file.
20455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20458         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20459         * doc/posix-functions/wcsspn.texi: Mention the new module.
20460
20461 2011-02-06  Bruno Haible  <bruno@clisp.org>
20462
20463         New module 'wcscspn'.
20464         * modules/wcscspn: New file.
20465         * lib/wchar.in.h (wcscspn): New declaration.
20466         * lib/wcscspn.c: New file.
20467         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20468         * m4/wcscspn.m4: New file.
20469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20472         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20473         * doc/posix-functions/wcscspn.texi: Mention the new module.
20474
20475 2011-02-06  Bruno Haible  <bruno@clisp.org>
20476
20477         New module 'wcsrchr'.
20478         * modules/wcsrchr: New file.
20479         * lib/wchar.in.h (wcsrchr): New declaration.
20480         * lib/wcsrchr.c: New file.
20481         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20482         * m4/wcsrchr.m4: New file.
20483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20486         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20487         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20488
20489 2011-02-06  Bruno Haible  <bruno@clisp.org>
20490
20491         New module 'wcschr'.
20492         * modules/wcschr: New file.
20493         * lib/wchar.in.h (wcschr): New declaration.
20494         * lib/wcschr.c: New file.
20495         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20496         * m4/wcschr.m4: New file.
20497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20500         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20501         * doc/posix-functions/wcschr.texi: Mention the new module.
20502
20503 2011-02-06  Bruno Haible  <bruno@clisp.org>
20504
20505         New module 'wcsdup'.
20506         * modules/wcsdup: New file.
20507         * lib/wchar.in.h (wcsdup): New declaration.
20508         * lib/wcsdup.c: New file.
20509         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20510         * m4/wcsdup.m4: New file.
20511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20514         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20515         * doc/posix-functions/wcsdup.texi: Mention the new module.
20516
20517 2011-02-06  Bruno Haible  <bruno@clisp.org>
20518
20519         New module 'wcsxfrm'.
20520         * modules/wcsxfrm: New file.
20521         * lib/wchar.in.h (wcsxfrm): New declaration.
20522         * lib/wcsxfrm.c: New file.
20523         * lib/wcsxfrm-impl.h: New file.
20524         * m4/wcsxfrm.m4: New file.
20525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20528         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20529         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20530
20531 2011-02-06  Bruno Haible  <bruno@clisp.org>
20532
20533         New module 'wcscoll'.
20534         * modules/wcscoll: New file.
20535         * lib/wchar.in.h (wcscoll): New declaration.
20536         * lib/wcscoll.c: New file.
20537         * lib/wcscoll-impl.h: New file.
20538         * m4/wcscoll.m4: New file.
20539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20541         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20542         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20543         * doc/posix-functions/wcscoll.texi: Mention the new module.
20544
20545 2011-02-06  Bruno Haible  <bruno@clisp.org>
20546
20547         New module 'wcsncasecmp'.
20548         * modules/wcsncasecmp: New file.
20549         * lib/wchar.in.h (wcsncasecmp): New declaration.
20550         * lib/wcsncasecmp.c: New file.
20551         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20552         * m4/wcsncasecmp.m4: New file.
20553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20556         HAVE_WCSNCASECMP.
20557         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20558         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20559
20560 2011-02-06  Bruno Haible  <bruno@clisp.org>
20561
20562         New module 'wcscasecmp'.
20563         * modules/wcscasecmp: New file.
20564         * lib/wchar.in.h (wcscasecmp): New declaration.
20565         * lib/wcscasecmp.c: New file.
20566         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20567         * m4/wcscasecmp.m4: New file.
20568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20570         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20571         HAVE_WCSCASECMP.
20572         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20573         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20574
20575 2011-02-05  Bruno Haible  <bruno@clisp.org>
20576
20577         New module 'wcsncmp'.
20578         * modules/wcsncmp: New file.
20579         * lib/wchar.in.h (wcsncmp): New declaration.
20580         * lib/wcsncmp.c: New file.
20581         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20582         * m4/wcsncmp.m4: New file.
20583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20586         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20587         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20588
20589 2011-02-05  Bruno Haible  <bruno@clisp.org>
20590
20591         New module 'wcscmp'.
20592         * modules/wcscmp: New file.
20593         * lib/wchar.in.h (wcscmp): New declaration.
20594         * lib/wcscmp.c: New file.
20595         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20596         * m4/wcscmp.m4: New file.
20597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20600         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20601         * doc/posix-functions/wcscmp.texi: Mention the new module.
20602
20603 2011-02-05  Bruno Haible  <bruno@clisp.org>
20604
20605         New module 'wcsncat'.
20606         * modules/wcsncat: New file.
20607         * lib/wchar.in.h (wcsncat): New declaration.
20608         * lib/wcsncat.c: New file.
20609         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20610         * m4/wcsncat.m4: New file.
20611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20614         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20615         * doc/posix-functions/wcsncat.texi: Mention the new module.
20616
20617 2011-02-05  Bruno Haible  <bruno@clisp.org>
20618
20619         New module 'wcscat'.
20620         * modules/wcscat: New file.
20621         * lib/wchar.in.h (wcscat): New declaration.
20622         * lib/wcscat.c: New file.
20623         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20624         * m4/wcscat.m4: New file.
20625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20628         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20629         * doc/posix-functions/wcscat.texi: Mention the new module.
20630
20631 2011-02-05  Bruno Haible  <bruno@clisp.org>
20632
20633         New module 'wcpncpy'.
20634         * modules/wcpncpy: New file.
20635         * lib/wchar.in.h (wcpncpy): New declaration.
20636         * lib/wcpncpy.c: New file.
20637         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20638         * m4/wcpncpy.m4: New file.
20639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20641         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20642         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20643         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20644
20645 2011-02-05  Bruno Haible  <bruno@clisp.org>
20646
20647         New module 'wcsncpy'.
20648         * modules/wcsncpy: New file.
20649         * lib/wchar.in.h (wcsncpy): New declaration.
20650         * lib/wcsncpy.c: New file.
20651         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20652         * m4/wcsncpy.m4: New file.
20653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20656         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20657         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20658
20659 2011-02-05  Bruno Haible  <bruno@clisp.org>
20660
20661         New module 'wcpcpy'.
20662         * modules/wcpcpy: New file.
20663         * lib/wchar.in.h (wcpcpy): New declaration.
20664         * lib/wcpcpy.c: New file.
20665         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20666         * m4/wcpcpy.m4: New file.
20667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20669         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20670         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20671         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20672
20673 2011-02-05  Bruno Haible  <bruno@clisp.org>
20674
20675         New module 'wcscpy'.
20676         * modules/wcscpy: New file.
20677         * lib/wchar.in.h (wcscpy): New declaration.
20678         * lib/wcscpy.c: New file.
20679         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20680         * m4/wcscpy.m4: New file.
20681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20683         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20684         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20685         * doc/posix-functions/wcscpy.texi: Mention the new module.
20686
20687 2011-02-05  Bruno Haible  <bruno@clisp.org>
20688
20689         New module 'wcsnlen'.
20690         * modules/wcsnlen: New file.
20691         * lib/wchar.in.h (wcsnlen): New declaration.
20692         * lib/wcsnlen.c: New file.
20693         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20694         * m4/wcsnlen.m4: New file.
20695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20697         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20698         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20699         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20700
20701 2011-02-05  Bruno Haible  <bruno@clisp.org>
20702
20703         New module 'wcslen'.
20704         * modules/wcslen: New file.
20705         * lib/wchar.in.h (wcslen): New declaration.
20706         * lib/wcslen.c: New file.
20707         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20708         * m4/wcslen.m4: New file.
20709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20711         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20712         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20713         * doc/posix-functions/wcslen.texi: Mention the new module.
20714
20715 2011-02-05  Bruno Haible  <bruno@clisp.org>
20716
20717         New module 'wmemset'.
20718         * modules/wmemset: New file.
20719         * lib/wchar.in.h (wmemset): New declaration.
20720         * lib/wmemset.c: New file.
20721         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20722         * m4/wmemset.m4: New file.
20723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20725         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20726         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20727         * doc/posix-functions/wmemset.texi: Mention the new module.
20728
20729 2011-02-05  Bruno Haible  <bruno@clisp.org>
20730
20731         New module 'wmemmove'.
20732         * modules/wmemmove: New file.
20733         * lib/wchar.in.h (wmemmove): New declaration.
20734         * lib/wmemmove.c: New file.
20735         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20736         * m4/wmemmove.m4: New file.
20737         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20738         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20739         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20740         HAVE_WMEMMOVE.
20741         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20742         * doc/posix-functions/wmemmove.texi: Mention the new module.
20743
20744 2011-02-05  Bruno Haible  <bruno@clisp.org>
20745
20746         New module 'wmemcpy'.
20747         * modules/wmemcpy: New file.
20748         * lib/wchar.in.h (wmemcpy): New declaration.
20749         * lib/wmemcpy.c: New file.
20750         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20751         * m4/wmemcpy.m4: New file.
20752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20754         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20755         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20756         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20757
20758 2011-02-05  Bruno Haible  <bruno@clisp.org>
20759
20760         New module 'wmemcmp'.
20761         * modules/wmemcmp: New file.
20762         * lib/wchar.in.h (wmemcmp): New declaration.
20763         * lib/wmemcmp.c: New file.
20764         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20765         * m4/wmemcmp.m4: New file.
20766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20768         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20769         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20770         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20771
20772 2011-02-07  Jim Meyering  <meyering@redhat.com>
20773
20774         di-set, ino-map: new modules, from coreutils
20775         * lib/di-set.c: New file.
20776         * lib/di-set.h: Likewise.
20777         * lib/ino-map.c: Likewise.
20778         * lib/ino-map.h: Likewise.
20779         * modules/di-set: Likewise.
20780         * modules/di-set-tests: Likewise.
20781         * modules/ino-map: Likewise.
20782         * modules/ino-map-tests: Likewise.
20783         * tests/test-di-set.c: Likewise.
20784         * tests/test-ino-map.c: Likewise.
20785
20786 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20787
20788         getloadavg: merge minor changes from Emacs
20789
20790         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20791         (getloadavg): Use memset, not bzero.
20792
20793         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20794         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20795         clash (bug#86).
20796
20797 2010-11-14  Bruno Haible  <bruno@clisp.org>
20798
20799         Allow multiple gnulib generated replacements to coexist.
20800         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20801         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20802         * lib/langinfo.in.h (nl_item): Likewise.
20803         * lib/math.in.h (_NaN, NAN): Likewise.
20804         * lib/netdb.in.h (struct addrinfo): Likewise.
20805         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20806         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20807         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20808         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20809         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20810         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20811         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20812         pthread_mutexattr_init, pthread_mutexattr_settype,
20813         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20814         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20815         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20816         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20817         * lib/sched.in.h (struct sched_param): Likewise.
20818         * lib/se-selinux.in.h (security_class_t, security_context_t,
20819         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20820         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20821         lsetfilecon, fsetfilecon, security_check_context,
20822         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20823         Likewise.
20824         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20825         Likewise.
20826         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20827         _gl_function_taking_int_returning_void_t, union sigval,
20828         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20829         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20830         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20831         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20832         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20833         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20834         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20835         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20836         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20837         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20838         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20839         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20840         socklen_t, rpl_fd_isset): Likewise.
20841         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20842         * lib/sys_time.in.h (struct timeval): Likewise.
20843         * lib/sys_times.in.h (struct tms): Likewise.
20844         * lib/sys_utsname.in.h (struct utsname):
20845         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20846         * lib/unistd.in.h (getpagesize): Likewise.
20847         * lib/wchar.in.h (mbstate_t): Likewise.
20848         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20849         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20850         towlower, towupper): Likewise.
20851         Reported by Sam Steingold <sds@gnu.org>.
20852
20853 2011-02-05  Eric Blake  <eblake@redhat.com>
20854
20855         unsetenv: work around Haiku issues
20856         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20857         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20858
20859 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20860
20861         libposix: avoid calling error() within libposix
20862         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20863         is defined.
20864
20865 2011-02-05  Eric Blake  <eblake@redhat.com>
20866
20867         strerror_r-posix: port to cygwin
20868         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20869         implementation.
20870         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20871         * tests/test-strerror_r.c (main): Fix test.
20872         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20873         issue.
20874
20875 2011-02-05  Bruno Haible  <bruno@clisp.org>
20876
20877         New module 'wmemchr'.
20878         * modules/wmemchr: New file.
20879         * lib/wchar.in.h (wmemchr): New declaration.
20880         * lib/wmemchr.c: New file.
20881         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20882         * m4/wmemchr.m4: New file.
20883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20885         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20886         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20887         * doc/posix-functions/wmemchr.texi: Mention the new module.
20888
20889 2011-02-04  Eric Blake  <eblake@redhat.com>
20890
20891         fdopendir: detect FreeBSD bug
20892         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20893         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20894
20895 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20896
20897         stdbool: do not define HAVE_STDBOOL_H
20898         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20899         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20900         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20901         imported from the latest Autoconf git.  It was motivated by Emacs,
20902         which uses gnulib but does not need HAVE_STDBOOL_H.
20903
20904 2011-02-04  Bruno Haible  <bruno@clisp.org>
20905
20906         wcsnrtombs: Prepare for new module wwcsnrtombs.
20907         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20908         * lib/wcsnrtombs.c: Include it.
20909         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20910
20911         wcsrtombs: Prepare for new module wwcsrtombs.
20912         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20913         * lib/wcsrtombs.c: Include it.
20914         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20915
20916         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20917         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20918         * lib/mbsnrtowcs.c: Include it.
20919         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20920
20921         mbsrtowcs: Prepare for new module mbsrtowwcs.
20922         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20923         * lib/mbsrtowcs.c: Include it.
20924         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20925
20926 2011-02-04  Bruno Haible  <bruno@clisp.org>
20927
20928         vasnprintf: Reduce use of malloc for small format strings.
20929         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20930         (arguments): Add room for the first 7 arguments.
20931         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20932         (char_directives, u8_directives, u16_directives, u32_directives): Add
20933         room for the first 7 directives.
20934         * lib/printf-parse.c: Include <string.h>.
20935         (PRINTF_PARSE): Change memory handling code so that it uses the first
20936         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20937         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20938         Reported by Pádraig Brady <P@draigbrady.com>.
20939
20940 2011-01-31  Eric Blake  <eblake@redhat.com>
20941
20942         dup2: work around Haiku bug
20943         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20944         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20945         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20946         * tests/test-dup2.c (main): Enhance test.
20947
20948 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20949
20950         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20951         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20952         declared by eglibc 2.11.2.
20953         * lib/stdio.in.h: Likewise.
20954
20955 2011-01-31  Eric Blake  <eblake@redhat.com>
20956
20957         ignore-value: add missing test dependency
20958         * tests/test-ignore-value.c: Revert previous change; stdio.h
20959         provides off_t.
20960         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20961
20962 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20963
20964         mktime: clarify long_int width checking
20965         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20966         the top level, to make it clearer that the assumption about
20967         long_int width is being checked.  See
20968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20969
20970 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20971
20972         ignore-value: Fix self-test.
20973         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20974
20975 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20976
20977         TYPE_MAXIMUM: avoid theoretically undefined behavior
20978         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20979         negative number, which the C Standard says has undefined behavior.
20980         In practice this is not a problem, but might as well do it by the book.
20981         Reported by Rich Felker and Eric Blake; see
20982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20983         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20984         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20985         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20986         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20987         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20988         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20989
20990         mktime: #undef mktime before #defining it
20991         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20992
20993         mktime: systematically normalize tm_isdst comparisons
20994         * lib/mktime.c (isdst_differ): New function.
20995         (__mktime_internal): Use it systematically for all isdst comparisons.
20996         This completes the fix for libc BZ #6723, and removes the need for
20997         normalizing tm_isdst.  See
20998         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20999         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21000
21001         mktime: fix some integer overflow issues and sidestep the rest
21002
21003         This was prompted by a bug report by Benjamin Lindner for MinGW
21004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21005         His bug is due to signed integer overflow (0 - INT_MIN), and I
21006         I scanned through mktime.c looking for other integer overflow
21007         problems, fixing all the bugs I found.
21008
21009         Although the C Standard says the resulting code is still not safe
21010         in the presence of integer overflow, in practice it should be good
21011         enough for all real-world two's-complement implementations, except
21012         for debugging environments that deliberately trap on integer
21013         overflow (e.g., gcc -ftrapv).
21014
21015         * lib/mktime.c (WRAPV): New macro.
21016         (SHR): Also check that long_int and time_t shift right in the
21017         usual way, before using the fast-but-unportable method.
21018         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21019         used.  The code already assumed two's complement, so there's
21020         no need to test for alternatives.  All uses removed.
21021         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21022         the C standard.  Problem reported by Rich Felker in
21023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21024         (twos_complement_arithmetic): Also check long_int and time_t.
21025         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21026         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21027         (__mktime_internal): Avoid integer overflow with unary subtraction
21028         in two instances where -1 - X is an adequate replacement for -X,
21029         since the calculations are approximate.
21030
21031 2011-01-29  Eric Blake  <eblake@redhat.com>
21032
21033         mktime: avoid infinite loop
21034         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21035         type; behavior is still undefined but portable to all known targets.
21036         Reported by Rich Felker.
21037
21038 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21039
21040         rename, unlink, same-inode: Relicense.
21041         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21042         * modules/unlink (License): Likewise.
21043         * modules/same-inode (License): Likewise.
21044
21045 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21046
21047         mktime: avoid problems on NetBSD 5 / i386
21048         * lib/mktime.c (long_int): New type.  This works around a problem
21049         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21050         but time_t is 64 bits, and where I expect the existing code is
21051         wrong in some cases.
21052         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21053         (ydhms_diff): Bring back the compile-time check for wide-enough
21054         year and yday.
21055
21056         mktime: fix misspelling in comment
21057         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21058         This merges all recent glibc changes of importance.
21059
21060 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21061
21062         move-if-change: cope with concurrent mv of identical file.
21063         * build-aux/move-if-change (CMPPROG): Accept environment
21064         variable as an override for `cmp'.
21065         (usage): Document CMPPROG.
21066         Adjust comparison to drop stdout.  Cope with failure of mv if
21067         the target file exists and is identical to the source, for
21068         parallel builds.
21069         Report from H.J. Lu against binutils in PR binutils/12283.
21070
21071 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21072
21073         * users.txt: Mention sharutils.
21074
21075 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21076
21077         * users.txt: Mention OATH Toolkit.
21078
21079 2011-01-27  Bruno Haible  <bruno@clisp.org>
21080
21081         Prepare for supporting FreeBSD 10.
21082         * build-aux/config.libpath: Remove handling of freebsd1*.
21083
21084 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21085
21086         Prepare for supporting FreeBSD 10.
21087         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21088         match FreeBSD 10.0.
21089
21090 2011-01-27  Bruno Haible  <bruno@clisp.org>
21091
21092         vma-iter, get-rusage-as: Add OpenBSD support.
21093         * modules/vma-iter (configure.ac): Test for mquery.
21094         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21095         * lib/vma-iter.c: Include <sys/mman.h>.
21096         (vma_iterate): Add an implementation based on mquery().
21097         * lib/resource-ext.h (get_rusage_as): Update comments.
21098         * lib/get-rusage-as.c: Likewise.
21099         * lib/get-rusage-data.c: Likewise.
21100
21101 2011-01-26  Karl Berry  <karl@gnu.org>
21102
21103         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21104         variables to make it easier to override the makeinfo program used.
21105
21106 2011-01-26  Eric Blake  <eblake@redhat.com>
21107
21108         fcntl: work around Haiku F_DUPFD bugs
21109         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21110         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21111         cloexec bit on duplication.
21112         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21113
21114 2011-01-26  Bruno Haible  <bruno@clisp.org>
21115
21116         Enable memory leak tests on AIX.
21117         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21118         * tests/test-fprintf-posix3.c (main): Likewise.
21119
21120 2011-01-26  Bruno Haible  <bruno@clisp.org>
21121
21122         Tests for module 'get-rusage-data'.
21123         * modules/get-rusage-data-tests: New file.
21124         * tests/test-get-rusage-data.c: New file.
21125
21126         New module 'get-rusage-data'.
21127         * lib/resource-ext.h (get_rusage_data): New declaration.
21128         * lib/get-rusage-data.c: New file.
21129         * modules/get-rusage-data: New file.
21130
21131 2011-01-25  Bruno Haible  <bruno@clisp.org>
21132
21133         get-rusage-as: Allow for easier testing.
21134         * lib/resource-ext.h (get_rusage_as): Add comment.
21135         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21136         (main): New function for interactive testing.
21137
21138 2011-01-25  Bruno Haible  <bruno@clisp.org>
21139
21140         vma-iter: Treat Haiku like BeOS.
21141         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21142         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21143
21144 2011-01-25  Eric Blake  <eblake@redhat.com>
21145
21146         c-stack: fix regression on cygwin when libsigsegv is present
21147         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21148
21149 2011-01-24  Bruno Haible  <bruno@clisp.org>
21150
21151         vma-iter: Avoid empty intervals.
21152         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21153         on an empty interval.
21154
21155 2011-01-24  Jim Meyering  <meyering@redhat.com>
21156
21157         u64: remove unnecessary #include
21158         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21159
21160 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21161
21162         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21163         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21164
21165 2011-01-23  Bruno Haible  <bruno@clisp.org>
21166
21167         New module 'vma-iter'.
21168         * lib/vma-iter.h: New file.
21169         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21170         * modules/vma-iter: New file.
21171         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21172         for get_rusage_as_via_iterator.
21173         (vma_iterate_callback): New function.
21174         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21175         * modules/get-rusage-as (Depends-on): Add vma-iter.
21176
21177 2011-01-23  Bruno Haible  <bruno@clisp.org>
21178
21179         uninorm: Tweak includes.
21180         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21181         Reported by Jim Meyering.
21182
21183 2011-01-23  Bruno Haible  <bruno@clisp.org>
21184
21185         get-rusage-as: Improve on NetBSD.
21186         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21187         /proc, like on FreeBSD.
21188
21189 2011-01-23  Jim Meyering  <meyering@redhat.com>
21190
21191         xreadlink.h: remove unnecessary #include
21192         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21193
21194         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21195         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21196
21197 2011-01-23  Bruno Haible  <bruno@clisp.org>
21198
21199         get-rusage-as: Fix bug.
21200         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21201         original limit when aborting the first loop.
21202
21203 2011-01-23  Bruno Haible  <bruno@clisp.org>
21204
21205         wctype: Ensure valid C syntax.
21206         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21207         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21208
21209 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21210
21211         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21212         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21213         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21214         as they are needed only for configure's test case.
21215         This removes two unnecessary symbols from config.h.
21216
21217         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21218         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21219         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21220         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21221         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21222         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21223         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21224         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21225         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21226         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21227         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21229         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21230         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21231         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21232         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21233         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21234         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21235
21236 2011-01-21  Eric Blake  <eblake@redhat.com>
21237
21238         maintainer-makefile: work with older git for submodule check
21239         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21240         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21241         Reported by Matthias Bolte.
21242
21243         bootstrap: minor portability fixes
21244         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21245         (usage): Omit leading capital and trailing . on help phrases, per
21246         GNU Coding Standards.
21247         (check_versions, top level): Prefix messages with script name.
21248
21249 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21250
21251         bootstrap: support --no-git option
21252         * build-aux/bootstrap: Add --no-git option, to be used when
21253         --gnulib-srcdir points to the exact desired checkout.
21254
21255 2011-01-21  Eric Blake  <eblake@redhat.com>
21256
21257         strerror_r-posix: work with glibc 2.13
21258         * lib/strerror_r.c (strerror_r): Fix return type.
21259
21260 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21261             Bruno Haible  <bruno@clisp.org>
21262
21263         uN_strstr: New unit tests.
21264         * modules/unistr/u8-strstr-tests: New file.
21265         * modules/unistr/u16-strstr-tests: New file.
21266         * modules/unistr/u32-strstr-tests: New file.
21267         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21268         * tests/unistr/test-u8-strstr.c: New file.
21269         * tests/unistr/test-u16-strstr.c: New file.
21270         * tests/unistr/test-u32-strstr.c: New file.
21271
21272 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21273             Bruno Haible  <bruno@clisp.org>
21274
21275         Make uN_strstr functions O(n) worst-case.
21276         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21277         16-bit and 32-bit unit cases, use the unibyte algorithm from
21278         lib/mbsstr.c.
21279         * lib/unistr/u8-strstr.c: Include <string.h>.
21280         (UNIT_IS_UINT8_T): New macro.
21281         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21282         (U_STRLEN, U_STRNLEN): New macros.
21283         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21284         (U_STRLEN, U_STRNLEN): New macros.
21285         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21286         (configure.ac): Update required libunistring version.
21287         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21288         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21289         malloca.
21290         (configure.ac): Update required libunistring version.
21291         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21292         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21293         malloca.
21294         (configure.ac): Update required libunistring version.
21295
21296 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21297             Bruno Haible  <bruno@clisp.org>
21298
21299         Prepare for faster uN_strstr functions.
21300         * lib/str-kmp.h: Support definable UNITs.
21301         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21302         needle_len argument.
21303         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21304         * lib/mbscasestr.c (mbscasestr): Likewise.
21305
21306 2011-01-21  Pádraig Brady <P@draigBrady.com>
21307
21308         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21309         * tests/test-malloca.c (main): Unset the environment variable
21310         to greatly speed up the test.
21311         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21312         * modules/malloca-tests: Depend on unsetenv.
21313
21314 2011-01-21  Pádraig Brady <P@draigBrady.com>
21315
21316         ignore-value: remove stdint dependency
21317         * lib/ignore-value.h: Remove <stdint.h>
21318         * modules/ignore-value: Remove stdint dependency.
21319
21320 2011-01-21  Jim Meyering  <meyering@redhat.com>
21321
21322         maint.mk: adjust variable name to be consistent with other gl_ vars
21323         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21324         to be lower case.
21325
21326 2011-01-20  Jim Meyering  <meyering@redhat.com>
21327
21328         maint.mk: make "check" depend on public-submodule-commit by default
21329         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21330
21331 2011-01-20  Bruno Haible  <bruno@clisp.org>
21332
21333         mbfile, mbiter: Complete change from 2008-12-21.
21334         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21335         * m4/mbiter.m4 (gl_MBITER): Likewise.
21336
21337 2011-01-20  Jim Meyering  <meyering@redhat.com>
21338
21339         init.sh: insert space between each function name and "()"
21340         * tests/init.sh: Make it a little easier to see that a function's
21341         name is "warn_", and not "warn" when looking at the first part of
21342         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21343
21344 2011-01-20  Jim Meyering  <meyering@redhat.com>
21345
21346         mountlist: clean up code formatting
21347         * lib/mountlist.c (read_file_system_list): Split a long line,
21348         correct bracing style, use NULL in place of "(struct statfs *)0",
21349         don't parenthesize return value, add spaces around "=" and after
21350         ";-in-for-stmt".
21351
21352 2011-01-14  Markus Duft <mduft@gentoo.org>
21353
21354         mountlist: add support for Interix
21355         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21356         Apply statvfs to all entries of /dev/fs.
21357         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21358         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21359
21360 2011-01-20  Jim Meyering  <meyering@redhat.com>
21361
21362         maint.mk: improve the public-submodule-commit rule
21363         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21364         to suppress printing of its commands... unless V=1.
21365         Add git submodule's --quiet option to suppress printing of e.g.,
21366         "Entering gnulib" output.
21367         "cd" into $(srcdir) before running git submodule.
21368
21369 2011-01-20  Bruno Haible  <bruno@clisp.org>
21370
21371         include_next: Fix bug introduced on 2011-01-18.
21372         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21373         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21374         ac_cv_header_... variable if the second argument is not 'check'.
21375         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21376         gl_NEXT_HEADERS_INTERNAL.
21377
21378 2011-01-20  Bruno Haible  <bruno@clisp.org>
21379
21380         Allow the user to avoid the GNULIB_TEST_* macros.
21381         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21382         Suggested by Paul Eggert.
21383
21384 2011-01-14  Jim Meyering  <meyering@redhat.com>
21385
21386         bootstrap: avoid failure when there is no .gitmodules file
21387         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21388         has been assigned to, even when its value is the empty string.
21389         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21390         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21391         Reported by John W. Eaton <jwe@gnu.org>.
21392
21393 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21394
21395         assume <ctype.h>, ..., <time.h> exist
21396         For years gnulib has been assuming the existence of the headers
21397         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21398         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21399         them, since they don't appear to be needed.
21400         * README (Portability guidelines): Document this.
21401         * lib/flock.c: Assume <fcntl.h> exists.
21402         * lib/regex_internal.h: Assume <locale.h> exists.
21403         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21404         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21405         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21406         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21407         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21408         * m4/regex.m4 (gl_REGEX): Likewise.
21409         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21410         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21411         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21412         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21413         * tests/test-argp.c: Likewise.
21414         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21415
21416         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21417         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21418         AA_APPLE_UNIVERSAL_BUILD.  See
21419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21420         * NEWS: Document this.
21421
21422 2011-01-19  Eric Blake  <eblake@redhat.com>
21423
21424         c-stack: assume stack overflow if SA_SIGINFO unsupported
21425         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21426         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21427         sigaction will work.
21428         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21429         behavior match Linux.
21430         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21431
21432         stdbool-tests: accomodate Haiku
21433         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21434
21435         binary-io: fix O_TEXT on Haiku
21436         * modules/binary-io (Depends-on): Add fcntl-h.
21437         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21438         than blindly undefining O_TEXT.
21439         Reported by Scott McCreary.
21440
21441 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21442
21443         include_next: do not check for standard headers like stddef.h
21444
21445         I found this problem when modifying Emacs to use gnulib.
21446         I noticed that it added HAVE_STDDEF_H to config.h, even though
21447         gnulib always assumes <stddef.h> exists as per README and this
21448         symbol is unnecessary.
21449         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21450         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21451         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21452         faster for headers like stddef.h that are known to exist.
21453         (gl_CHECK_NEXT_HEADERS): Use it.
21454         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21455         rather than gl_CHECK_NEXT_HEADERS.
21456         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21457         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21458
21459 2011-01-18  Eric Blake  <eblake@redhat.com>
21460
21461         ansi-c++-opt: skip C++ dependency style if C++ is unused
21462         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21463         tests when we know C++ compilation is not desired.
21464         Reported by Scott McCreary.
21465
21466 2011-01-18  Bruno Haible  <bruno@clisp.org>
21467
21468         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21469         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21470         (main): Perform test also when getrlimit and setrlimit don't exist or
21471         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21472         limiting the address space size using setrlimit, compare the address
21473         space size before and after the the test.
21474         * tests/test-dprintf-posix2.c: Likewise.
21475         * tests/test-fprintf-posix3.sh: Update skip messages.
21476         * tests/test-dprintf-posix2.sh: Likewise.
21477         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21478         * modules/dprintf-posix-tests (Depends-on): Likewise.
21479         Reported by Bruce Korb <bkorb@gnu.org> and
21480         Gary V. Vaughan <gary@gnu.org>.
21481
21482 2011-01-18  Bruno Haible  <bruno@clisp.org>
21483
21484         get-rusage-as: Improvement for Cygwin.
21485         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21486         areas that are merely reserved.
21487
21488 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21489
21490         strftime: remove dependencies on multibyte modules
21491
21492         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21493         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21494         only if __osf__ is defined, and I suspect OSF doesn't need these
21495         other modules.  If my guess is wrong, we'll need to come up with a
21496         variant of strftime that doesn't need the multibyte modules.
21497
21498         I discovered this problem when attempting modify Emacs to use the
21499         strftime module.  With the previous gnulib, this caused Emacs to
21500         need 31 new files, ranging from lib/config.charset to
21501         m4/wint_t.m4.  This was overkill and I expect would be offputting
21502         to the Emacs maintainers.  After this change, only 6 new files are
21503         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21504         stdbool.m4, and tm_gmtoff.m4.
21505
21506         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21507         Suggested by Bruno Haible in
21508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21509         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21510         and do not check for wchar.h.
21511         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21512         (Depends-on): Remove mbrlen, mbsinit, wchar.
21513
21514 2011-01-18  Bruno Haible  <bruno@clisp.org>
21515
21516         Tests for module 'get-rusage-as'.
21517         * modules/get-rusage-as-tests: New file.
21518         * tests/test-get-rusage-as.c: New file.
21519
21520         New module 'get-rusage-as'.
21521         * modules/get-rusage-as: New file.
21522         * lib/resource-ext.h: New file.
21523         * lib/get-rusage-as.c: New file.
21524
21525 2011-01-17  Eric Blake  <eblake@redhat.com>
21526
21527         sigaction: relax license from LGPLv3+ to LGPLv2+
21528         * modules/sigaction (License): Relax to LGPLv2+.
21529
21530 2011-01-14  Bruno Haible  <bruno@clisp.org>
21531
21532         filemode: Make function declarations usable in C++ mode.
21533         * lib/filemode.h: Enclose function declarations in extern "C" block.
21534         Reported by John W. Eaton <jwe@gnu.org>.
21535
21536 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21537
21538         save-cwd: no longer include "xgetcwd.h"
21539         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21540         This avoids a compilation failure in projects that use save-cwd
21541         without also using the xgetcwd module.
21542
21543 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21544
21545         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21546         This is so that a program like Emacs, which needs only dtoastr,
21547         does not have to bother with distributing and compiling ftoastr
21548         and ldtoastr.
21549         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21550         * modules/dtoastr, modules/ldtoastr: New files.
21551         * modules/ftoastr: Now works just for 'float'.
21552         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21553         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21554         dtoastr.c, ldtoastr.c.
21555
21556 2011-01-11  Jim Meyering  <meyering@redhat.com>
21557
21558         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21559         There is no need to work around the lack of the fchdir function,
21560         since gnulib can now provide a replacement when required.
21561         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21562         * modules/save-cwd (Depends-on): Add fchdir.
21563
21564 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21565
21566         openat, save-cwd: avoid xmalloc
21567
21568         This removes a direct (but undocumented) dependency of openat on
21569         xalloc, along with an indirect dependency via save-cwd.  It also
21570         removes a dependency of save-cwd on xgetcwd, and thereby
21571         indirectly on xalloc.  This change causes the openat substitute
21572         to fall back on save_cwd when memory is tight, and for save_cwd to
21573         fail instead of dying when memory is tight, but that's good enough.
21574         Problem and initial idea for fix reported by Bastien Roucaries in
21575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21576
21577         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21578         xalloc.h (for xmalloc).
21579         (openat_proc_name): Use malloc, not xmalloc.
21580         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21581         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21582
21583         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21584         This avoids heap allocation for file names whose lengths are in
21585         the range 512..1023, with the upper bound increasing to at most
21586         4031 depending on the platform's PATH_MAX.  (We do not want
21587         pathmax.h here as it might supply a non-constant PATH_MAX.)
21588         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21589         Perhaps they should be moved to malloca.h?
21590         (OPENAT_BUFFER_SIZE): Use them.
21591
21592 2011-01-10  Bruno Haible  <bruno@clisp.org>
21593
21594         doc: Update users.txt.
21595         * users.txt: Add recutils.
21596
21597 2011-01-09  Karl Berry  <karl@gnu.org>
21598
21599         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21600
21601         * doc/configmake.texi: New file.
21602         * doc/gnulib.texi: Include it.
21603         * modules/configmake: Move documentation from here.
21604
21605 2011-01-09  Bruno Haible  <bruno@clisp.org>
21606
21607         Update to Unicode 6.0.0.
21608         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21609         (get_lbp): Update for Unicode 6.0.0.
21610         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21611         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21612         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21613         U+11001, U+11038..U+11046. Remove U+06DE.
21614         (uc_width): Fix bounds of planes.
21615         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21616         lib/uniwidth/width.c.
21617         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21618         trailing whitespace removed.
21619         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21620         without comments, but with the original copyright notice.
21621         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21622         * lib/unicase/ignorable.h: Likewise.
21623         * lib/unicase/tocasefold.h: Likewise.
21624         * lib/unicase/tolower.h: Likewise.
21625         * lib/unicase/totitle.h: Likewise.
21626         * lib/unicase/toupper.h: Likewise.
21627         * lib/unictype/bidi_of.h: Likewise.
21628         * lib/unictype/blocks.h: Likewise.
21629         * lib/unictype/categ_C.h: Likewise.
21630         * lib/unictype/categ_Cn.h: Likewise.
21631         * lib/unictype/categ_L.h: Likewise.
21632         * lib/unictype/categ_Ll.h: Likewise.
21633         * lib/unictype/categ_Lm.h: Likewise.
21634         * lib/unictype/categ_Lo.h: Likewise.
21635         * lib/unictype/categ_Lu.h: Likewise.
21636         * lib/unictype/categ_M.h: Likewise.
21637         * lib/unictype/categ_Mc.h: Likewise.
21638         * lib/unictype/categ_Me.h: Likewise.
21639         * lib/unictype/categ_Mn.h: Likewise.
21640         * lib/unictype/categ_N.h: Likewise.
21641         * lib/unictype/categ_Nd.h: Likewise.
21642         * lib/unictype/categ_No.h: Likewise.
21643         * lib/unictype/categ_P.h: Likewise.
21644         * lib/unictype/categ_Po.h: Likewise.
21645         * lib/unictype/categ_S.h: Likewise.
21646         * lib/unictype/categ_Sc.h: Likewise.
21647         * lib/unictype/categ_Sk.h: Likewise.
21648         * lib/unictype/categ_Sm.h: Likewise.
21649         * lib/unictype/categ_So.h: Likewise.
21650         * lib/unictype/categ_of.h: Likewise.
21651         * lib/unictype/combining.h: Likewise.
21652         * lib/unictype/ctype_alnum.h: Likewise.
21653         * lib/unictype/ctype_alpha.h: Likewise.
21654         * lib/unictype/ctype_graph.h: Likewise.
21655         * lib/unictype/ctype_lower.h: Likewise.
21656         * lib/unictype/ctype_print.h: Likewise.
21657         * lib/unictype/ctype_punct.h: Likewise.
21658         * lib/unictype/ctype_upper.h: Likewise.
21659         * lib/unictype/decdigit.h: Likewise.
21660         * lib/unictype/digit.h: Likewise.
21661         * lib/unictype/numeric.h: Likewise.
21662         * lib/unictype/pr_alphabetic.h: Likewise.
21663         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21664         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21665         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21666         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21667         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21668         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21669         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21670         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21671         * lib/unictype/pr_case_ignorable.h: Likewise.
21672         * lib/unictype/pr_cased.h: Likewise.
21673         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21674         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21675         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21676         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21677         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21678         * lib/unictype/pr_combining.h: Likewise.
21679         * lib/unictype/pr_composite.h: Likewise.
21680         * lib/unictype/pr_currency_symbol.h: Likewise.
21681         * lib/unictype/pr_decimal_digit.h: Likewise.
21682         * lib/unictype/pr_deprecated.h: Likewise.
21683         * lib/unictype/pr_format_control.h: Likewise.
21684         * lib/unictype/pr_grapheme_base.h: Likewise.
21685         * lib/unictype/pr_grapheme_extend.h: Likewise.
21686         * lib/unictype/pr_grapheme_link.h: Likewise.
21687         * lib/unictype/pr_id_continue.h: Likewise.
21688         * lib/unictype/pr_id_start.h: Likewise.
21689         * lib/unictype/pr_ideographic.h: Likewise.
21690         * lib/unictype/pr_lowercase.h: Likewise.
21691         * lib/unictype/pr_math.h: Likewise.
21692         * lib/unictype/pr_numeric.h: Likewise.
21693         * lib/unictype/pr_other_alphabetic.h: Likewise.
21694         * lib/unictype/pr_other_id_continue.h: Likewise.
21695         * lib/unictype/pr_other_math.h: Likewise.
21696         * lib/unictype/pr_punctuation.h: Likewise.
21697         * lib/unictype/pr_sentence_terminal.h: Likewise.
21698         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21699         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21700         * lib/unictype/pr_unified_ideograph.h: Likewise.
21701         * lib/unictype/pr_uppercase.h: Likewise.
21702         * lib/unictype/pr_xid_continue.h: Likewise.
21703         * lib/unictype/pr_xid_start.h: Likewise.
21704         * lib/unictype/scripts.h: Likewise.
21705         * lib/unictype/scripts_byname.gperf: Likewise.
21706         * lib/unictype/sy_java_ident.h: Likewise.
21707         * lib/unigbrk/gbrkprop.h: Likewise.
21708         * lib/unilbrk/lbrkprop1.h: Likewise.
21709         * lib/unilbrk/lbrkprop2.h: Likewise.
21710         * lib/uninorm/decomposition-table2.h: Likewise.
21711         * lib/uniwbrk/wbrkprop.h: Likewise.
21712         * tests/unicase/test-cased.c: Likewise.
21713         * tests/unicase/test-ignorable.c: Likewise.
21714         * tests/unicase/test-uc_tolower.c: Likewise.
21715         * tests/unicase/test-uc_totitle.c: Likewise.
21716         * tests/unicase/test-uc_toupper.c: Likewise.
21717         * tests/unictype/test-categ_C.c: Likewise.
21718         * tests/unictype/test-categ_Cn.c: Likewise.
21719         * tests/unictype/test-categ_L.c: Likewise.
21720         * tests/unictype/test-categ_Ll.c: Likewise.
21721         * tests/unictype/test-categ_Lm.c: Likewise.
21722         * tests/unictype/test-categ_Lo.c: Likewise.
21723         * tests/unictype/test-categ_Lu.c: Likewise.
21724         * tests/unictype/test-categ_M.c: Likewise.
21725         * tests/unictype/test-categ_Mc.c: Likewise.
21726         * tests/unictype/test-categ_Me.c: Likewise.
21727         * tests/unictype/test-categ_Mn.c: Likewise.
21728         * tests/unictype/test-categ_N.c: Likewise.
21729         * tests/unictype/test-categ_Nd.c: Likewise.
21730         * tests/unictype/test-categ_No.c: Likewise.
21731         * tests/unictype/test-categ_P.c: Likewise.
21732         * tests/unictype/test-categ_Po.c: Likewise.
21733         * tests/unictype/test-categ_S.c: Likewise.
21734         * tests/unictype/test-categ_Sc.c: Likewise.
21735         * tests/unictype/test-categ_Sk.c: Likewise.
21736         * tests/unictype/test-categ_Sm.c: Likewise.
21737         * tests/unictype/test-categ_So.c: Likewise.
21738         * tests/unictype/test-ctype_alnum.c: Likewise.
21739         * tests/unictype/test-ctype_alpha.c: Likewise.
21740         * tests/unictype/test-ctype_graph.c: Likewise.
21741         * tests/unictype/test-ctype_lower.c: Likewise.
21742         * tests/unictype/test-ctype_print.c: Likewise.
21743         * tests/unictype/test-ctype_punct.c: Likewise.
21744         * tests/unictype/test-ctype_upper.c: Likewise.
21745         * tests/unictype/test-decdigit.h: Likewise.
21746         * tests/unictype/test-digit.h: Likewise.
21747         * tests/unictype/test-numeric.h: Likewise.
21748         * tests/unictype/test-pr_alphabetic.c: Likewise.
21749         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21750         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21751         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21752         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21753         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21754         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21755         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21756         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21757         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21758         * tests/unictype/test-pr_cased.c: Likewise.
21759         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21760         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21761         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21762         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21763         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21764         * tests/unictype/test-pr_combining.c: Likewise.
21765         * tests/unictype/test-pr_composite.c: Likewise.
21766         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21767         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21768         * tests/unictype/test-pr_deprecated.c: Likewise.
21769         * tests/unictype/test-pr_format_control.c: Likewise.
21770         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21771         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21772         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21773         * tests/unictype/test-pr_id_continue.c: Likewise.
21774         * tests/unictype/test-pr_id_start.c: Likewise.
21775         * tests/unictype/test-pr_ideographic.c: Likewise.
21776         * tests/unictype/test-pr_lowercase.c: Likewise.
21777         * tests/unictype/test-pr_math.c: Likewise.
21778         * tests/unictype/test-pr_numeric.c: Likewise.
21779         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21780         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21781         * tests/unictype/test-pr_other_math.c: Likewise.
21782         * tests/unictype/test-pr_punctuation.c: Likewise.
21783         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21784         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21785         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21786         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21787         * tests/unictype/test-pr_uppercase.c: Likewise.
21788         * tests/unictype/test-pr_xid_continue.c: Likewise.
21789         * tests/unictype/test-pr_xid_start.c: Likewise.
21790         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21791         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21792         changes.
21793         * lib/unictype/categ_Cc.h: Likewise.
21794         * lib/unictype/categ_Cf.h: Likewise.
21795         * lib/unictype/categ_Co.h: Likewise.
21796         * lib/unictype/categ_Cs.h: Likewise.
21797         * lib/unictype/categ_Lt.h: Likewise.
21798         * lib/unictype/categ_Nl.h: Likewise.
21799         * lib/unictype/categ_Pc.h: Likewise.
21800         * lib/unictype/categ_Pd.h: Likewise.
21801         * lib/unictype/categ_Pe.h: Likewise.
21802         * lib/unictype/categ_Pf.h: Likewise.
21803         * lib/unictype/categ_Pi.h: Likewise.
21804         * lib/unictype/categ_Ps.h: Likewise.
21805         * lib/unictype/categ_Z.h: Likewise.
21806         * lib/unictype/categ_Zl.h: Likewise.
21807         * lib/unictype/categ_Zp.h: Likewise.
21808         * lib/unictype/categ_Zs.h: Likewise.
21809         * lib/unictype/ctype_blank.h: Likewise.
21810         * lib/unictype/ctype_cntrl.h: Likewise.
21811         * lib/unictype/ctype_digit.h: Likewise.
21812         * lib/unictype/ctype_space.h: Likewise.
21813         * lib/unictype/ctype_xdigit.h: Likewise.
21814         * lib/unictype/mirror.h: Likewise.
21815         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21816         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21817         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21818         * lib/unictype/pr_bidi_control.h: Likewise.
21819         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21820         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21821         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21822         * lib/unictype/pr_bidi_pdf.h: Likewise.
21823         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21824         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21825         * lib/unictype/pr_dash.h: Likewise.
21826         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21827         * lib/unictype/pr_diacritic.h: Likewise.
21828         * lib/unictype/pr_extender.h: Likewise.
21829         * lib/unictype/pr_hex_digit.h: Likewise.
21830         * lib/unictype/pr_hyphen.h: Likewise.
21831         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21832         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21833         * lib/unictype/pr_ignorable_control.h: Likewise.
21834         * lib/unictype/pr_iso_control.h: Likewise.
21835         * lib/unictype/pr_join_control.h: Likewise.
21836         * lib/unictype/pr_left_of_pair.h: Likewise.
21837         * lib/unictype/pr_line_separator.h: Likewise.
21838         * lib/unictype/pr_logical_order_exception.h: Likewise.
21839         * lib/unictype/pr_non_break.h: Likewise.
21840         * lib/unictype/pr_not_a_character.h: Likewise.
21841         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21842         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21843         * lib/unictype/pr_other_id_start.h: Likewise.
21844         * lib/unictype/pr_other_lowercase.h: Likewise.
21845         * lib/unictype/pr_other_uppercase.h: Likewise.
21846         * lib/unictype/pr_paired_punctuation.h: Likewise.
21847         * lib/unictype/pr_paragraph_separator.h: Likewise.
21848         * lib/unictype/pr_pattern_syntax.h: Likewise.
21849         * lib/unictype/pr_pattern_white_space.h: Likewise.
21850         * lib/unictype/pr_private_use.h: Likewise.
21851         * lib/unictype/pr_quotation_mark.h: Likewise.
21852         * lib/unictype/pr_radical.h: Likewise.
21853         * lib/unictype/pr_soft_dotted.h: Likewise.
21854         * lib/unictype/pr_space.h: Likewise.
21855         * lib/unictype/pr_titlecase.h: Likewise.
21856         * lib/unictype/pr_variation_selector.h: Likewise.
21857         * lib/unictype/pr_white_space.h: Likewise.
21858         * lib/unictype/pr_zero_width.h: Likewise.
21859         * lib/unictype/sy_c_ident.h: Likewise.
21860         * lib/unictype/sy_c_whitespace.h: Likewise.
21861         * lib/unictype/sy_java_whitespace.h: Likewise.
21862         * lib/uninorm/composition-table.gperf: Likewise.
21863         * lib/uninorm/decomposition-table1.h: Likewise.
21864         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21865         LB8.
21866         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21867         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21868         * modules/unictype/*: Bump version number of expected libunistring
21869         version.
21870
21871 2011-01-09  Bruno Haible  <bruno@clisp.org>
21872
21873         Update to Unicode 5.2.0.
21874         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21875         trailing whitespace removed.
21876
21877 2011-01-09  Bruno Haible  <bruno@clisp.org>
21878
21879         New Unicode character properties, from Unicode 5.2.0.
21880         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21881         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21882         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21883         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21884         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21885         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21886         uc_is_property_cased, uc_is_property_case_ignorable,
21887         uc_is_property_changes_when_lowercased,
21888         uc_is_property_changes_when_uppercased,
21889         uc_is_property_changes_when_titlecased,
21890         uc_is_property_changes_when_casefolded,
21891         uc_is_property_changes_when_casemapped): New declarations.
21892         * lib/unictype/pr_byname.gperf: Add the new properties.
21893         * modules/unictype/property-byname (Depends-on): Depend on the new
21894         properties modules.
21895         * modules/unictype/property-all (Depends-on): Likewise.
21896         * MODULES.html.sh (Unicode string functions): Add
21897         unictype/property-case-ignorable, unictype/property-cased,
21898         unictype/property-changes-when-casefolded,
21899         unictype/property-changes-when-casemapped,
21900         unictype/property-changes-when-lowercased,
21901         unictype/property-changes-when-titlecased,
21902         unictype/property-changes-when-uppercased.
21903
21904         New module 'unictype/property-changes-when-casemapped'.
21905         * modules/unictype/property-changes-when-casemapped: New file.
21906         * lib/unictype/pr_changes_when_casemapped.c: New file.
21907         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21908         generated by gen-uni-tables.
21909         * modules/unictype/property-changes-when-casemapped-tests: New file.
21910         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21911         automatically generated by gen-uni-tables.
21912
21913         New module 'unictype/property-changes-when-casefolded'.
21914         * modules/unictype/property-changes-when-casefolded: New file.
21915         * lib/unictype/pr_changes_when_casefolded.c: New file.
21916         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21917         generated by gen-uni-tables.
21918         * modules/unictype/property-changes-when-casefolded-tests: New file.
21919         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21920         automatically generated by gen-uni-tables.
21921
21922         New module 'unictype/property-changes-when-titlecased'.
21923         * modules/unictype/property-changes-when-titlecased: New file.
21924         * lib/unictype/pr_changes_when_titlecased.c: New file.
21925         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21926         generated by gen-uni-tables.
21927         * modules/unictype/property-changes-when-titlecased-tests: New file.
21928         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21929         automatically generated by gen-uni-tables.
21930
21931         New module 'unictype/property-changes-when-uppercased'.
21932         * modules/unictype/property-changes-when-uppercased: New file.
21933         * lib/unictype/pr_changes_when_uppercased.c: New file.
21934         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21935         generated by gen-uni-tables.
21936         * modules/unictype/property-changes-when-uppercased-tests: New file.
21937         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21938         automatically generated by gen-uni-tables.
21939
21940         New module 'unictype/property-changes-when-lowercased'.
21941         * modules/unictype/property-changes-when-lowercased: New file.
21942         * lib/unictype/pr_changes_when_lowercased.c: New file.
21943         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21944         generated by gen-uni-tables.
21945         * modules/unictype/property-changes-when-lowercased-tests: New file.
21946         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21947         automatically generated by gen-uni-tables.
21948
21949         New module 'unictype/property-case-ignorable'.
21950         * modules/unictype/property-case-ignorable: New file.
21951         * lib/unictype/pr_case_ignorable.c: New file.
21952         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21953         by gen-uni-tables.
21954         * modules/unictype/property-case-ignorable-tests: New file.
21955         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21956         generated by gen-uni-tables.
21957
21958         New module 'unictype/property-cased'.
21959         * modules/unictype/property-cased: New file.
21960         * lib/unictype/pr_cased.c: New file.
21961         * lib/unictype/pr_cased.h: New file, automatically generated by
21962         gen-uni-tables.
21963         * modules/unictype/property-cased-tests: New file.
21964         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21965         gen-uni-tables.
21966
21967 2011-01-09  Bruno Haible  <bruno@clisp.org>
21968
21969         Update to Unicode 5.2.0.
21970         * lib/gen-uni-tables.c (output_predicate, output_category,
21971         output_combclass, output_bidi_category, output_decimal_digit_test,
21972         output_decimal_digit, output_digit_test, output_digit,
21973         output_numeric_test, output_numeric, output_mirror, output_scripts,
21974         output_scripts_byname, output_blocks, output_ident_category): Fix
21975         comment header.
21976         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21977         get_wbp.
21978         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21979         items.
21980         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21981         Changes_When_Lowercased, Changes_When_Uppercased,
21982         Changes_When_Titlecased, Changes_When_Casefolded,
21983         Changes_When_Casemapped.
21984         (is_property_alphabetic, is_property_default_ignorable_code_point):
21985         Update for Unicode 5.2.0.
21986         (is_property_cased, is_property_case_ignorable,
21987         is_property_changes_when_lowercased,
21988         is_property_changes_when_uppercased,
21989         is_property_changes_when_titlecased,
21990         is_property_changes_when_casefolded,
21991         is_property_changes_when_casemapped): New functions.
21992         (output_properties): Output also the properties cased, case_ignorable,
21993         changes_when_lowercased, changes_when_uppercased,
21994         changes_when_titlecased, changes_when_casefolded,
21995         changes_when_casemapped.
21996         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21997         Unicode TR#11 revision 17 -> 19.
21998         (LBP_CP): New enumeration value.
21999         (LBP_*): Adjust values accordingly.
22000         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22001         TR#14 revision 22 -> 24.
22002         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22003         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22004         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22005         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22006         is_WBP_MIDLETTER.
22007         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22008         the code1 and code2 of each composition rule.
22009         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22010         * lib/unicase/ignorable.h: Likewise.
22011         * lib/unicase/tocasefold.h: Likewise.
22012         * lib/unicase/tolower.h: Likewise.
22013         * lib/unicase/totitle.h: Likewise.
22014         * lib/unicase/toupper.h: Likewise.
22015         * lib/unictype/bidi_of.h: Likewise.
22016         * lib/unictype/blocks.h: Likewise.
22017         * lib/unictype/categ_C.h: Likewise.
22018         * lib/unictype/categ_Cf.h: Likewise.
22019         * lib/unictype/categ_Cn.h: Likewise.
22020         * lib/unictype/categ_L.h: Likewise.
22021         * lib/unictype/categ_Ll.h: Likewise.
22022         * lib/unictype/categ_Lm.h: Likewise.
22023         * lib/unictype/categ_Lo.h: Likewise.
22024         * lib/unictype/categ_Lu.h: Likewise.
22025         * lib/unictype/categ_M.h: Likewise.
22026         * lib/unictype/categ_Mc.h: Likewise.
22027         * lib/unictype/categ_Mn.h: Likewise.
22028         * lib/unictype/categ_N.h: Likewise.
22029         * lib/unictype/categ_Nd.h: Likewise.
22030         * lib/unictype/categ_Nl.h: Likewise.
22031         * lib/unictype/categ_No.h: Likewise.
22032         * lib/unictype/categ_P.h: Likewise.
22033         * lib/unictype/categ_Pd.h: Likewise.
22034         * lib/unictype/categ_Po.h: Likewise.
22035         * lib/unictype/categ_S.h: Likewise.
22036         * lib/unictype/categ_Sc.h: Likewise.
22037         * lib/unictype/categ_So.h: Likewise.
22038         * lib/unictype/categ_of.h: Likewise.
22039         * lib/unictype/combining.h: Likewise.
22040         * lib/unictype/ctype_alnum.h: Likewise.
22041         * lib/unictype/ctype_alpha.h: Likewise.
22042         * lib/unictype/ctype_graph.h: Likewise.
22043         * lib/unictype/ctype_lower.h: Likewise.
22044         * lib/unictype/ctype_print.h: Likewise.
22045         * lib/unictype/ctype_punct.h: Likewise.
22046         * lib/unictype/ctype_upper.h: Likewise.
22047         * lib/unictype/decdigit.h: Likewise.
22048         * lib/unictype/digit.h: Likewise.
22049         * lib/unictype/numeric.h: Likewise.
22050         * lib/unictype/pr_alphabetic.h: Likewise.
22051         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22052         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22053         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22054         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22055         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22056         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22057         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22058         * lib/unictype/pr_combining.h: Likewise.
22059         * lib/unictype/pr_composite.h: Likewise.
22060         * lib/unictype/pr_currency_symbol.h: Likewise.
22061         * lib/unictype/pr_dash.h: Likewise.
22062         * lib/unictype/pr_decimal_digit.h: Likewise.
22063         * lib/unictype/pr_deprecated.h: Likewise.
22064         * lib/unictype/pr_diacritic.h: Likewise.
22065         * lib/unictype/pr_extender.h: Likewise.
22066         * lib/unictype/pr_grapheme_base.h: Likewise.
22067         * lib/unictype/pr_grapheme_extend.h: Likewise.
22068         * lib/unictype/pr_grapheme_link.h: Likewise.
22069         * lib/unictype/pr_id_continue.h: Likewise.
22070         * lib/unictype/pr_id_start.h: Likewise.
22071         * lib/unictype/pr_ideographic.h: Likewise.
22072         * lib/unictype/pr_ignorable_control.h: Likewise.
22073         * lib/unictype/pr_logical_order_exception.h: Likewise.
22074         * lib/unictype/pr_lowercase.h: Likewise.
22075         * lib/unictype/pr_numeric.h: Likewise.
22076         * lib/unictype/pr_other_alphabetic.h: Likewise.
22077         * lib/unictype/pr_punctuation.h: Likewise.
22078         * lib/unictype/pr_sentence_terminal.h: Likewise.
22079         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22080         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22081         * lib/unictype/pr_unified_ideograph.h: Likewise.
22082         * lib/unictype/pr_uppercase.h: Likewise.
22083         * lib/unictype/pr_xid_continue.h: Likewise.
22084         * lib/unictype/pr_xid_start.h: Likewise.
22085         * lib/unictype/pr_zero_width.h: Likewise.
22086         * lib/unictype/scripts.h: Likewise.
22087         * lib/unictype/scripts_byname.gperf: Likewise.
22088         * lib/unictype/sy_java_ident.h: Likewise.
22089         * lib/unigbrk/gbrkprop.h: Likewise.
22090         * lib/unilbrk/lbrkprop1.h: Likewise.
22091         * lib/unilbrk/lbrkprop2.h: Likewise.
22092         * lib/unilbrk/lbrktables.h: Likewise.
22093         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22094         LBP_CP. Implement rule LB30.
22095         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22096         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22097         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22098         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22099         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22100         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22101         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22102         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22103         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22104         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22105         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22106         bits instead of 16 bits in the code1 and code2 of each composition
22107         rule.
22108         (uc_composition): Update for Unicode 5.2.0.
22109         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22110         * lib/uninorm/decomposition-table2.h: Likewise.
22111         * lib/uniwbrk/wbrkprop.h: Likewise.
22112         * tests/unicase/test-cased.c: Likewise.
22113         * tests/unicase/test-ignorable.c: Likewise.
22114         * tests/unicase/test-uc_tolower.c: Likewise.
22115         * tests/unicase/test-uc_totitle.c: Likewise.
22116         * tests/unicase/test-uc_toupper.c: Likewise.
22117         * tests/unictype/test-categ_C.c: Likewise.
22118         * tests/unictype/test-categ_Cf.c: Likewise.
22119         * tests/unictype/test-categ_Cn.c: Likewise.
22120         * tests/unictype/test-categ_L.c: Likewise.
22121         * tests/unictype/test-categ_Ll.c: Likewise.
22122         * tests/unictype/test-categ_Lm.c: Likewise.
22123         * tests/unictype/test-categ_Lo.c: Likewise.
22124         * tests/unictype/test-categ_Lu.c: Likewise.
22125         * tests/unictype/test-categ_M.c: Likewise.
22126         * tests/unictype/test-categ_Mc.c: Likewise.
22127         * tests/unictype/test-categ_Mn.c: Likewise.
22128         * tests/unictype/test-categ_N.c: Likewise.
22129         * tests/unictype/test-categ_Nd.c: Likewise.
22130         * tests/unictype/test-categ_Nl.c: Likewise.
22131         * tests/unictype/test-categ_No.c: Likewise.
22132         * tests/unictype/test-categ_P.c: Likewise.
22133         * tests/unictype/test-categ_Pd.c: Likewise.
22134         * tests/unictype/test-categ_Po.c: Likewise.
22135         * tests/unictype/test-categ_S.c: Likewise.
22136         * tests/unictype/test-categ_Sc.c: Likewise.
22137         * tests/unictype/test-categ_So.c: Likewise.
22138         * tests/unictype/test-ctype_alnum.c: Likewise.
22139         * tests/unictype/test-ctype_alpha.c: Likewise.
22140         * tests/unictype/test-ctype_graph.c: Likewise.
22141         * tests/unictype/test-ctype_lower.c: Likewise.
22142         * tests/unictype/test-ctype_print.c: Likewise.
22143         * tests/unictype/test-ctype_punct.c: Likewise.
22144         * tests/unictype/test-ctype_upper.c: Likewise.
22145         * tests/unictype/test-decdigit.h: Likewise.
22146         * tests/unictype/test-digit.h: Likewise.
22147         * tests/unictype/test-numeric.h: Likewise.
22148         * tests/unictype/test-pr_alphabetic.c: Likewise.
22149         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22150         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22151         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22152         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22153         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22154         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22155         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22156         * tests/unictype/test-pr_combining.c: Likewise.
22157         * tests/unictype/test-pr_composite.c: Likewise.
22158         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22159         * tests/unictype/test-pr_dash.c: Likewise.
22160         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22161         * tests/unictype/test-pr_deprecated.c: Likewise.
22162         * tests/unictype/test-pr_diacritic.c: Likewise.
22163         * tests/unictype/test-pr_extender.c: Likewise.
22164         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22165         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22166         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22167         * tests/unictype/test-pr_id_continue.c: Likewise.
22168         * tests/unictype/test-pr_id_start.c: Likewise.
22169         * tests/unictype/test-pr_ideographic.c: Likewise.
22170         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22171         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22172         * tests/unictype/test-pr_lowercase.c: Likewise.
22173         * tests/unictype/test-pr_numeric.c: Likewise.
22174         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22175         * tests/unictype/test-pr_punctuation.c: Likewise.
22176         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22177         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22178         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22179         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22180         * tests/unictype/test-pr_uppercase.c: Likewise.
22181         * tests/unictype/test-pr_xid_continue.c: Likewise.
22182         * tests/unictype/test-pr_xid_start.c: Likewise.
22183         * tests/unictype/test-pr_zero_width.c: Likewise.
22184         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22185         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22186         changed behaviour: line breaking is now disallowed between a letter
22187         or '=' and '('.
22188         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22189         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22190         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22191         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22192         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22193         lib/uniwidth/width.c.
22194         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22195         without comments, but with the original copyright notice.
22196         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22197         changes.
22198         * lib/unictype/categ_Cc.h: Likewise.
22199         * lib/unictype/categ_Co.h: Likewise.
22200         * lib/unictype/categ_Cs.h: Likewise.
22201         * lib/unictype/categ_Lt.h: Likewise.
22202         * lib/unictype/categ_Me.h: Likewise.
22203         * lib/unictype/categ_Pc.h: Likewise.
22204         * lib/unictype/categ_Pe.h: Likewise.
22205         * lib/unictype/categ_Pf.h: Likewise.
22206         * lib/unictype/categ_Pi.h: Likewise.
22207         * lib/unictype/categ_Ps.h: Likewise.
22208         * lib/unictype/categ_Sk.h: Likewise.
22209         * lib/unictype/categ_Sm.h: Likewise.
22210         * lib/unictype/categ_Z.h: Likewise.
22211         * lib/unictype/categ_Zl.h: Likewise.
22212         * lib/unictype/categ_Zp.h: Likewise.
22213         * lib/unictype/categ_Zs.h: Likewise.
22214         * lib/unictype/ctype_blank.h: Likewise.
22215         * lib/unictype/ctype_cntrl.h: Likewise.
22216         * lib/unictype/ctype_digit.h: Likewise.
22217         * lib/unictype/ctype_space.h: Likewise.
22218         * lib/unictype/ctype_xdigit.h: Likewise.
22219         * lib/unictype/mirror.h: Likewise.
22220         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22221         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22222         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22223         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22224         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22225         * lib/unictype/pr_bidi_control.h: Likewise.
22226         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22227         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22228         * lib/unictype/pr_bidi_pdf.h: Likewise.
22229         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22230         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22231         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22232         * lib/unictype/pr_format_control.h: Likewise.
22233         * lib/unictype/pr_hex_digit.h: Likewise.
22234         * lib/unictype/pr_hyphen.h: Likewise.
22235         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22236         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22237         * lib/unictype/pr_iso_control.h: Likewise.
22238         * lib/unictype/pr_join_control.h: Likewise.
22239         * lib/unictype/pr_left_of_pair.h: Likewise.
22240         * lib/unictype/pr_line_separator.h: Likewise.
22241         * lib/unictype/pr_math.h: Likewise.
22242         * lib/unictype/pr_non_break.h: Likewise.
22243         * lib/unictype/pr_not_a_character.h: Likewise.
22244         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22245         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22246         * lib/unictype/pr_other_id_continue.h: Likewise.
22247         * lib/unictype/pr_other_id_start.h: Likewise.
22248         * lib/unictype/pr_other_lowercase.h: Likewise.
22249         * lib/unictype/pr_other_math.h: Likewise.
22250         * lib/unictype/pr_other_uppercase.h: Likewise.
22251         * lib/unictype/pr_paired_punctuation.h: Likewise.
22252         * lib/unictype/pr_paragraph_separator.h: Likewise.
22253         * lib/unictype/pr_pattern_syntax.h: Likewise.
22254         * lib/unictype/pr_pattern_white_space.h: Likewise.
22255         * lib/unictype/pr_private_use.h: Likewise.
22256         * lib/unictype/pr_quotation_mark.h: Likewise.
22257         * lib/unictype/pr_radical.h: Likewise.
22258         * lib/unictype/pr_soft_dotted.h: Likewise.
22259         * lib/unictype/pr_space.h: Likewise.
22260         * lib/unictype/pr_titlecase.h: Likewise.
22261         * lib/unictype/pr_variation_selector.h: Likewise.
22262         * lib/unictype/pr_white_space.h: Likewise.
22263         * lib/unictype/sy_c_ident.h: Likewise.
22264         * lib/unictype/sy_c_whitespace.h: Likewise.
22265         * lib/unictype/sy_java_whitespace.h: Likewise.
22266         * modules/uni*/*: Bump version number of expected libunistring version.
22267         Reported by Simon Josefsson.
22268
22269 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22270
22271         useless-if-before-free: fix typo in --help and make the internal,
22272         automatic version date update process work once again.
22273         --help output contained a NUL character instead of the
22274         backslash-zero that was intended.  Also, the "must lie within
22275         the first 8 lines" line is on line 9, and hence not getting
22276         automatically updated.
22277         * build-aux/useless-if-before-free: Fix the former by adding a
22278         backslash, and the latter by condensing the three lines of what-it-does
22279         to a single line, leaving one line of slack for the future.
22280
22281 2011-01-09  Bruno Haible  <bruno@clisp.org>
22282
22283         uniwidth/width: Fix width of U+1D173..U+1D17A.
22284         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22285         symbolic_width, output_width_property_test): New functions.
22286         (main): Invoke output_nonspacing_property, output_width_property_test.
22287         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22288         U+1D173..U+1D17A.
22289         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22290         1.
22291         * modules/uniwidth/*: Bump version number of expected libunistring
22292         version.
22293         * modules/unilbrk/*: Likewise.
22294
22295 2011-01-08  Bruno Haible  <bruno@clisp.org>
22296
22297         uninorm tests: Preserve copyright of Unicode data file.
22298         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22299         Mention modifications.
22300
22301 2011-01-08  Bruno Haible  <bruno@clisp.org>
22302
22303         gen-uni-tables: Prepare for Unicode 5.2.0.
22304         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22305         (debug_output_lbp, output_lbp): Update.
22306
22307 2011-01-08  Bruno Haible  <bruno@clisp.org>
22308
22309         unilbrk: Clarify gen-uni-tables.c code.
22310         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22311         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22312         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22313
22314 2011-01-07  Bruno Haible  <bruno@clisp.org>
22315
22316         strtod: Restore errno when successfully parsing Infinity or NaN.
22317         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22318         restore the original errno.
22319
22320 2011-01-07  Bruno Haible  <bruno@clisp.org>
22321
22322         remove test: Avoid failure on HP-UX 11.
22323         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22324
22325 2011-01-07  Bruno Haible  <bruno@clisp.org>
22326
22327         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22328         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22329         error code.
22330
22331 2011-01-07  Pádraig Brady <P@draigBrady.com>
22332
22333         ignore-value: fixup comments, and add Eric Blake
22334         as an author since he rewrote the macros.
22335         * lib/ignore-value.h (ignore_value):  State that
22336         we now support aggregates.  Also specify exactly
22337         when the GCC warn_unused_result feature was added.
22338
22339 2011-01-06  Eric Blake  <eblake@redhat.com>
22340
22341         ignore-value: support aggregate types
22342         * lib/ignore-value.h (ignore_value): Provide separate gcc
22343         definition.
22344         * modules/ignore-value-tests: New test module.
22345         * tests/test-ignore-value.c: New test.
22346
22347         maint.mk: improve sc_prohibit_strcmp regex
22348         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22349         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22350         definition of STRNEQ.
22351
22352         signal: work around Haiku issue with SIGBUS
22353         * lib/siglist.h: Add comment.
22354         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22355         strsignal's favoring of SIGSEGV.
22356         * tests/test-signal.c (main): Avoid test failure.
22357         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22358         Reported by Scott McCreary.
22359
22360         maint.mk: add pre-release check to ensure submodule commits are public
22361         * top/maint.mk (public-submodule-commit): New rule.
22362         (submodule-checks): New variable.
22363         (alpha beta stable): Depend on the variable.
22364
22365 2011-01-05  Pádraig Brady <P@draigBrady.com>
22366         and Jim Meyering  <meyering@redhat.com>
22367
22368         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22369         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22370         (ATTRIBUTE_DEPRECATED): Define.
22371         (_ignore_case): New function.
22372         (ignore_value): New macro, to replace the old function.
22373         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22374         * modules/ignore-value (Depends-on): Add stdint.
22375
22376 2011-01-04  Eric Blake  <eblake@redhat.com>
22377
22378         doc: regenerate INSTALL
22379         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22380         @firstparagraphindent support, now that autoconf dropped it.
22381         (INSTALL_PRELUDE): Reinstate old macro.
22382         * doc/install.texi: Resync from autoconf.
22383         * doc/INSTALL: Reflect recent autoconf update.
22384         * doc/INSTALL.ISO: Likewise.
22385         * doc/INSTALL.UTF-8: Likewise.
22386         Reported by Karl Berry.
22387
22388 2011-01-04  Bruce Korb  <address@hidden>
22389
22390         git-version-gen: avoid a sub-shell
22391         * build-aux/git-version-gen: Redirect stderr in `...` via
22392         "exec 2>...", rather than via an added sub-shell.
22393
22394 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22395
22396         git-version-gen: use (...) rather than sh -c '...'
22397         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22398         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22399
22400 2011-01-03  Jim Meyering  <meyering@redhat.com>
22401
22402         git-version-gen: convert leading TABs to spaces
22403         * build-aux/git-version-gen: Expand leading TABs.
22404
22405         git-version-gen: handle failed "git rev-list"
22406         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22407         from git and proceeding as if it had succeeded but printed no SHA1
22408         checksums, suppress the diagnostic and handle the failure.
22409         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22410
22411         git-version-gen: include command name in one more diagnostic
22412         * build-aux/git-version-gen: When the required .tarball-version file
22413         was missing or unreadable, you might see the diagnostic from "cat",
22414         but no trace of the name of the invoking script.  Now, you still see
22415         the diagnostic from cat, but also get one from "git-version-gen: ".
22416         Inspired by a patch from Bruce Korb.
22417
22418         update-copyright: adjust test to match changed code
22419         * tests/test-update-copyright.sh: Change test's expected output
22420         to match new actual output.
22421
22422 2011-01-02  Bruno Haible  <bruno@clisp.org>
22423
22424         getlogin_r: Avoid test failure on HP-UX 11.
22425         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22426         ERANGE when the second argument is zero.
22427         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22428         portability problem.
22429
22430 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22431
22432         * build-aux/update-copyright: doc Simon's changes
22433
22434 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22435
22436         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22437         environment variable.
22438
22439 2011-01-02  Bruno Haible  <bruno@clisp.org>
22440
22441         unigbrk: Avoid gcc warnings.
22442         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22443         unused variable.
22444         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22445         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22446         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22447         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22448         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22449         Change type of first argument to 'const char *'.
22450         (main): Remove unused variable.
22451         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22452         type of first argument to 'const char *'.
22453         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22454         Likewise.
22455         (main): Change type of variable 's'.
22456         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22457         to 'int'.
22458
22459 2011-01-02  Bruno Haible  <bruno@clisp.org>
22460
22461         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22462         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22463         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22464         bug.
22465         * lib/pwrite.c: Undo 2010-12-31 patch.
22466         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22467
22468 2011-01-02  Bruno Haible  <bruno@clisp.org>
22469
22470         pread: Fix test whether it works.
22471         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22472
22473 2011-01-02  Bruno Haible  <bruno@clisp.org>
22474
22475         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22476         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22477         ends in "6". Don't require a specific month name. Try also the locale
22478         names found on HP-UX 11 and Solaris 7.
22479
22480 2011-01-02  Bruno Haible  <bruno@clisp.org>
22481
22482         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22483         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22484         C linkage.
22485         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22486
22487 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22488
22489         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22490         for consistency, since the "cluster" term is not used elsewhere.
22491         * lib/unigbrk.in.h: Update name.
22492         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22493         * lib/unigbrk/u16-grapheme-next.c: Update name.
22494         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22495         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22496         * lib/unigbrk/u32-grapheme-next.c: Update name.
22497         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22498         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22499         * lib/unigbrk/u8-grapheme-next.c: Update name.
22500         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22501         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22502         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22503         Suggested by Bruno Haible.
22504
22505 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22506
22507         Remove module 'u8-grapheme-len' as too redundant with
22508         'u8-grapheme-next'.
22509         * modules/unigbrk/u8-grapheme-len: Delete file.
22510         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22511         * lib/unigbrk.in.h: Remove prototype for deleted function.
22512         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22513         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22514
22515         Remove module 'u16-grapheme-len' as too redundant with
22516         'u16-grapheme-next'.
22517         * modules/unigbrk/u16-grapheme-len: Delete file.
22518         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22519         * lib/unigbrk.in.h: Remove prototype for deleted function.
22520         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22521         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22522
22523         Remove module 'u32-grapheme-len' as too redundant with
22524         'u32-grapheme-next'.
22525         * modules/unigbrk/u32-grapheme-len: Delete file.
22526         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22527         * lib/unigbrk.in.h: Remove prototype for deleted function.
22528         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22529         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22530
22531         Suggested by Bruno Haible.
22532
22533 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22534
22535         * unigbrk.in.h: Fix typo: "ben" => "been".
22536         Reported by Bruno Haible.
22537
22538 2011-01-01  Jim Meyering  <meyering@redhat.com>
22539
22540         maint: update almost all copyright ranges to include 2011
22541         Run the new "make update-copyright" rule.
22542
22543 2011-01-01  Jim Meyering  <meyering@redhat.com>
22544
22545         maint: update-copyright: exempt doc/INSTALL*
22546         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22547         since they are generated.  Suggested by Bruno Haible.
22548
22549 2011-01-01  Jim Meyering  <meyering@redhat.com>
22550
22551         maint: refine the update-copyright rule
22552         * Makefile (update-copyright): Also exclude any file that includes
22553         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22554         code that merely generates the comment.
22555
22556 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22557
22558         New module 'u8-grapheme-len'.
22559         * modules/unigbrk/u8-grapheme-len: New file.
22560         * modules/unigbrk/u8-grapheme-len-tests: New file.
22561         * lib/unigbrk.in.h: Add prototype for new function.
22562         * lib/unigbrk/u8-grapheme-len.c: New file.
22563         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22564
22565         New module 'u16-grapheme-len'.
22566         * modules/unigbrk/u16-grapheme-len: New file.
22567         * modules/unigbrk/u16-grapheme-len-tests: New file.
22568         * lib/unigbrk.in.h: Add prototype for new function.
22569         * lib/unigbrk/u16-grapheme-len.c: New file.
22570         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22571
22572         New module 'u32-grapheme-len'.
22573         * modules/unigbrk/u32-grapheme-len: New file.
22574         * modules/unigbrk/u32-grapheme-len-tests: New file.
22575         * lib/unigbrk.in.h: Add prototype for new function.
22576         * lib/unigbrk/u32-grapheme-len.c: New file.
22577         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22578
22579         New module 'u8-grapheme-next'.
22580         * modules/unigbrk/u8-grapheme-next: New file.
22581         * modules/unigbrk/u8-grapheme-next-tests: New file.
22582         * lib/unigbrk.in.h: Add prototype for new function.
22583         * lib/unigbrk/u8-grapheme-next.c: New file.
22584         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22585
22586         New module 'u16-grapheme-next'.
22587         * modules/unigbrk/u16-grapheme-next: New file.
22588         * modules/unigbrk/u16-grapheme-next-tests: New file.
22589         * lib/unigbrk.in.h: Add prototype for new function.
22590         * lib/unigbrk/u16-grapheme-next.c: New file.
22591         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22592
22593         New module 'u32-grapheme-next'.
22594         * modules/unigbrk/u32-grapheme-next: New file.
22595         * modules/unigbrk/u32-grapheme-next-tests: New file.
22596         * lib/unigbrk.in.h: Add prototype for new function.
22597         * lib/unigbrk/u32-grapheme-next.c: New file.
22598         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22599
22600         New module 'u8-grapheme-prev'.
22601         * modules/unigbrk/u8-grapheme-prev: New file.
22602         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22603         * lib/unigbrk.in.h: Add prototype for new function.
22604         * lib/unigbrk/u8-grapheme-prev.c: New file.
22605         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22606
22607         New module 'u16-grapheme-prev'.
22608         * modules/unigbrk/u16-grapheme-prev: New file.
22609         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22610         * lib/unigbrk.in.h: Add prototype for new function.
22611         * lib/unigbrk/u16-grapheme-prev.c: New file.
22612         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22613
22614         New module 'u32-grapheme-prev'.
22615         * modules/unigbrk/u32-grapheme-prev: New file.
22616         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22617         * lib/unigbrk.in.h: Add prototype for new function.
22618         * lib/unigbrk/u32-grapheme-prev.c: New file.
22619         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22620
22621         New module 'u8-grapheme-breaks'.
22622         * modules/unigbrk/u8-grapheme-breaks: New file.
22623         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22624         * lib/unigbrk.in.h: Add prototype for new function.
22625         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22626         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22627
22628         New module 'u16-grapheme-breaks'.
22629         * modules/unigbrk/u16-grapheme-breaks: New file.
22630         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22631         * lib/unigbrk.in.h: Add prototype for new function.
22632         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22633         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22634
22635         New module 'u32-grapheme-breaks'.
22636         * modules/unigbrk/u32-grapheme-breaks: New file.
22637         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22638         * lib/unigbrk.in.h: Add prototype for new function.
22639         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22640         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22641
22642         New module 'ulc-grapheme-breaks'.
22643         * modules/unigbrk/ulc-grapheme-breaks: New file.
22644         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22645         * m4/locale-ar.m4: New file.
22646         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22647         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22648         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22649
22650 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22651
22652         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22653         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22654         modified how this file was generated before I initially submitted
22655         the module, but failed to regenerate it.  This meant that several
22656         of the level2 entries were wrong.
22657         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22658         Remove the division-by-2 that is folded into the table now that
22659         gbrkprop.h has been regenerated properly.  Now -1 entries are
22660         handled correctly.
22661
22662         New module 'unigbrk/uc-gbrk-prop-tests'.
22663         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22664         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22665         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22666         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22667
22668 2011-01-01  Bruno Haible  <bruno@clisp.org>
22669
22670         Avoid use of hexadecimal escapes.
22671         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22672         instead of hexadecimal escapes.
22673
22674 2011-01-01  Jim Meyering  <meyering@redhat.com>
22675
22676         maint: new rule to update copyright year ranges
22677         * Makefile (update-copyright): New rule.
22678
22679         maint: indent with TABs in Makefile
22680         * Makefile: Expand leading sequences of spaces to TABs
22681
22682         version-etc: update the copyright year it reports
22683         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22684
22685 2010-12-31  Bruno Haible  <bruno@clisp.org>
22686
22687         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22688         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22689         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22690         zero.
22691
22692 2010-12-31  Bruno Haible  <bruno@clisp.org>
22693
22694         pwrite: Work around HP-UX 11.11 bug.
22695         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22696         works and set REPLACE_PWRITE if not.
22697         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22698         function.
22699         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22700
22701 2010-12-31  Bruno Haible  <bruno@clisp.org>
22702
22703         pread: Work around HP-UX 11 bugs.
22704         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22705         and set REPLACE_PREAD if not.
22706         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22707
22708 2010-12-31  Eric Blake  <eblake@redhat.com>
22709
22710         nl_langinfo: fix YESEXPR on Irix 6.5
22711         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22712         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22713         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22714         it.
22715
22716 2010-12-31  Bruno Haible  <bruno@clisp.org>
22717
22718         iconv: Document HP-UX 11 bug.
22719         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22720
22721 2010-12-31  Bruno Haible  <bruno@clisp.org>
22722
22723         ldexpl: Fix link error on HP-UX 11.
22724         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22725         LDEXPL_LIBM, using $ISNANL_LIBM.
22726
22727 2010-12-31  Eric Blake  <eblake@redhat.com>
22728
22729         ftello: avoid compilation failure with SunStudio c89
22730         * lib/ftello.c (ftello): Use lseek, not llseek.
22731
22732         tests: avoid failing coreutils tests on cygwin
22733         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22734         (create_exe_shims_): Return 0 when skipping.
22735
22736 2010-12-31  Bruno Haible  <bruno@clisp.org>
22737
22738         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22739         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22740
22741 2010-12-31  Bruno Haible  <bruno@clisp.org>
22742
22743         waitpid: Fix link error in C++ mode.
22744         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22745
22746 2010-12-31  Bruno Haible  <bruno@clisp.org>
22747
22748         isnan: Use GCC built-ins when possible.
22749         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22750         __builtin_isnan.
22751         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22752         (isnan): Define using GCC built-ins for GCC >= 4.0.
22753
22754 2010-12-31  Bruno Haible  <bruno@clisp.org>
22755
22756         isnand: Fix mistake.
22757         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22758         __builtin_isnand.
22759
22760 2010-12-31  Bruno Haible  <bruno@clisp.org>
22761
22762         open: Avoid C++ error on HP-UX 11.
22763         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22764
22765 2010-12-31  Bruno Haible  <bruno@clisp.org>
22766
22767         time_r: Add missing declarations on HP-UX 11.
22768         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22769         instead of HAVE_LOCALTIME_R.
22770         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22771         HAVE_LOCALTIME_R always.
22772         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22773         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22774         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22775         HAVE_LOCALTIME_R.
22776         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22777         * doc/posix-functions/localtime_r.texi: Likewise.
22778
22779 2010-12-29  Eric Blake  <eblake@redhat.com>
22780
22781         mountlist: tweak previous commit
22782         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22783         Reported by Paul Eggert.
22784
22785         mountlist: fix local drive detection on cygwin
22786         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22787         that works for cygwin.
22788
22789 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22790
22791         ftoastr, snprintf: ftoastr + snprintf module
22792         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22793         since the snprintf module now should be good enough here.
22794         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22795         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22796         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22797         GNULIB_SNPRINTF only for the test directory, and the latter
22798         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22799         seems to suffice by itself.
22800
22801 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22802
22803         alloca: one step towards thread-safety
22804         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22805         need for a static variable.  All callers changed.  This does not
22806         make the alloca replacement thread-safe, but it's one step.
22807
22808         tests: minor indenting change
22809         * tests/init.sh: Sync from coreutils housekeeping patch
22810         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22811         to keep lines within 80 columns.
22812
22813 2010-12-28  Jim Meyering  <meyering@redhat.com>
22814
22815         regex: don't infloop on persistent failing calloc
22816         * lib/regexec.c (build_trtable): Return failure indication upon
22817         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22818         In glibc, this was fixed for version 2.13:
22819         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22820
22821 2010-12-28  Bruno Haible  <bruno@clisp.org>
22822             Paul Eggert <eggert@cs.ucla.edu>
22823
22824         linkat: Make implementation robust against system behaviour variations.
22825         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22826         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22827         way, and to -2 if it needs a generic runtime test.
22828         * lib/linkat.c (solaris_optimized_link_immediate,
22829         solaris_optimized_link_follow): New functions.
22830         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22831         (check_same_link): Use it.
22832
22833 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22834
22835         New module 'unigbrk/base'.
22836         * modules/unigbrk/base: New file.
22837         * lib/unigbrk.in.h: New file.
22838
22839         New module 'unigbrk/uc-gbrk-prop'.
22840         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22841         * modules/unigbrk/uc-gbrk-prop: New file.
22842         * lib/unigbrk/gbrkprop.h: New file.
22843         * lib/unigbrk/uc-gbrk-prop.c: New file.
22844
22845         New module 'unigbrk/uc-is-grapheme-break'.
22846         * modules/unigbrk/uc-is-grapheme-break: New file.
22847         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22848         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22849         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22850         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22851         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22852
22853         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22854
22855 2010-12-27  Bruno Haible  <bruno@clisp.org>
22856
22857         linkat test: Avoid failure on Solaris 11 2010-11.
22858         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22859
22860 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22861
22862         utimens: work around glibc rounding bug on more platforms
22863         * lib/utimens.c (fdutimens): Work around rounding bug even if
22864         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22865         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22866
22867 2010-12-27  Bruno Haible  <bruno@clisp.org>
22868
22869         select tests: Improve comments.
22870         * tests/test-select.c (do_select): Add comments.
22871
22872 2010-12-27  Bruno Haible  <bruno@clisp.org>
22873
22874         select tests: Safer way of handling timeout.
22875         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22876         at every invocation.
22877
22878 2010-12-27  Bruno Haible  <bruno@clisp.org>
22879
22880         select tests: Use 'bool' where appropriate.
22881         * tests/test-select.c (connect_to_socket): Change argument type to
22882         'bool'.
22883
22884 2010-12-27  Bruno Haible  <bruno@clisp.org>
22885
22886         select tests: Use existing modules.
22887         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22888         (configure.ac): Don't test for unistd.h.
22889         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22890         declared in <unistd.h>.
22891
22892 2010-12-27  Bruno Haible  <bruno@clisp.org>
22893
22894         mbrtowc: Work around a Solaris 7 bug.
22895         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22896         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22897         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22898         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22899         MBRTOWC_NULL_ARG1_BUG.
22900         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22901         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22902         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22903         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22904
22905 2010-12-27  Jim Meyering  <meyering@redhat.com>
22906
22907         read-file.c: tweak syntax
22908         * lib/read-file.c (fread_file): Remove space after "*" in function
22909         definitions.
22910
22911 2010-12-27  Bruno Haible  <bruno@clisp.org>
22912
22913         times test: Avoid gcc warnings on OSF/1.
22914         * tests/test-times.c (main): Cast printf arguments from clock_t to
22915         'long int'.
22916
22917 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22918
22919         utimens: work around glibc rounding bug on older Linux kernels
22920         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22921         on Linux with a glibc whose utimes might not work, then work
22922         around a longstanding glibc bug involving rounding rather than
22923         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22924         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22925
22926 2010-12-26  Bruno Haible  <bruno@clisp.org>
22927
22928         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22929         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22930         _GL_CXXALIAS_SYS.
22931         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22932
22933 2010-12-26  Bruno Haible  <bruno@clisp.org>
22934
22935         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22936         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22937         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22938         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22939         looking for the declaration.
22940         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22941         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22942         problem.
22943         * doc/posix-functions/inet_pton.texi: Likewise.
22944
22945 2010-12-26  Bruno Haible  <bruno@clisp.org>
22946
22947         arpa_inet: Use the common idioms with C++ support.
22948         * lib/arpa_inet.in.h: Include c++defs.h.
22949         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22950         support.
22951         * modules/arpa_inet (Depends-on): Add c++defs.
22952         (Makefile.am): Substitute the contents of c++defs.h.
22953         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22954         * modules/arpa_inet-c++-tests: New file.
22955         * tests/test-arpa_inet-c++.cc: New file.
22956
22957 2010-12-25  Bruno Haible  <bruno@clisp.org>
22958
22959         Fix more C++ link errors on Solaris 8.
22960         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22961         $(LIB_EACCESS).
22962         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22963         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22964         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22965         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22966         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22967
22968 2010-12-25  Bruno Haible  <bruno@clisp.org>
22969
22970         printf-posix: Fix link error when a non-GCC compiler is used.
22971         * lib/stdio.in.h (printf): When not using GCC, override printf
22972         correctly.
22973         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22974
22975 2010-12-25  Bruno Haible  <bruno@clisp.org>
22976
22977         strerror_r-posix: Update doc.
22978         * doc/posix-functions/strerror_r.texi: Update doc about the return
22979         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22980
22981 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22982
22983         utimens: simplify the logic of the previous change
22984         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22985         This should not affect whether the test succeeds or fails.
22986
22987         utimens: configure better on hosts with NFS clock skew
22988         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22989         uses the clock of the local host.  It might use the clock of the
22990         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22991         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22992
22993 2010-12-25  Bruno Haible  <bruno@clisp.org>
22994
22995         ptsname test: Avoid failure on Solaris.
22996         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22997         open a pseudo-terminal; don't use BSD-style ptys.
22998         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22999
23000 2010-12-25  Bruno Haible  <bruno@clisp.org>
23001
23002         ptsname: Avoid ERANGE failure on some systems.
23003         * lib/ptsname.c (buffer): Increase size.
23004
23005 2010-12-25  Bruno Haible  <bruno@clisp.org>
23006
23007         rename, renameat: Avoid test failures at NFS mounted locations.
23008         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23009         so that subsequent mkdir calls succeed.
23010
23011 2010-12-25  Bruno Haible  <bruno@clisp.org>
23012
23013         iswblank: Fix C++ link error on Solaris 8.
23014         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23015         _GL_FUNCDECL_SYS.
23016
23017 2010-12-25  Bruno Haible  <bruno@clisp.org>
23018
23019         unistd: Fix C++ link error on Solaris 8.
23020         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23021
23022 2010-12-25  Bruno Haible  <bruno@clisp.org>
23023
23024         readlink doc: Mention an old glibc bug.
23025         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23026
23027 2010-12-25  Bruno Haible  <bruno@clisp.org>
23028
23029         fcntl-h: Fix for use of C++ on glibc systems.
23030         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23031         also on glibc systems in C++ mode.
23032         Reported by Gary V. Vaughan <gary@gnu.org>.
23033
23034 2010-12-25  Bruno Haible  <bruno@clisp.org>
23035
23036         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23037         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23038
23039 2010-12-25  Bruno Haible  <bruno@clisp.org>
23040
23041         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23042         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23043         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23044         test whether truncl works according to ISO C 99 with IEC 60559.
23045         * m4/truncl-ieee.m4: New file.
23046         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23047         m4/signbit.m4.
23048         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23049
23050 2010-12-25  Bruno Haible  <bruno@clisp.org>
23051
23052         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23053         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23054         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23055         test whether ceill works according to ISO C 99 with IEC 60559.
23056         * m4/ceill-ieee.m4: New file.
23057         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23058         m4/signbit.m4.
23059         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23060
23061 2010-12-25  Bruno Haible  <bruno@clisp.org>
23062
23063         Ensure all prerequisites of <wchar.h> are included.
23064         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23065         before <wchar.h>.
23066         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23067         gl_MBRLEN_NUL_RETVAL): Likewise.
23068         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23069         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23070         AC_FUNC_MBRTOWC): Likewise.
23071         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23072         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23073         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23074         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23075         Likewise.
23076         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23077         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23078         (gl_WCHAR_H): Improve comments.
23079         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23080
23081 2010-12-25  Bruno Haible  <bruno@clisp.org>
23082
23083         strtok_r: Fix C syntax error in autoconf macro.
23084         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23085         characters in test program.
23086
23087 2010-12-24  Bruno Haible  <bruno@clisp.org>
23088
23089         ceil, trunc, round: Fix gcc warnings.
23090         * lib/ceil.c (MIN): Undefine before redefining.
23091         * lib/trunc.c (MIN): Likewise.
23092         * lib/round.c (MIN): Likewise.
23093         Include <math.h> first.
23094
23095 2010-12-24  Bruno Haible  <bruno@clisp.org>
23096
23097         select tests: Avoid failures on OSF/1 5.1.
23098         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23099         failure of closing the last socket; it may fail with ECONNRESET.
23100
23101 2010-12-24  Eric Blake  <eblake@redhat.com>
23102
23103         stdint: avoid HP-UX 10.20 preprocessor bug
23104         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23105         than #if.
23106         * tests/test-floor2.c (main): Likewise.
23107         Reported by Peter O'Gorman.
23108
23109         pipe: make obsoletion transition easier
23110         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23111         * modules/pipe (Files): Include revived file.
23112         (Include): Drop reference, to mirror getdate's behavior.
23113
23114 2010-12-24  Bruno Haible  <bruno@clisp.org>
23115
23116         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23117         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23118         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23119         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23120
23121 2010-12-24  Bruno Haible  <bruno@clisp.org>
23122
23123         gethostname: Ensure declaration on NonStop Kernel.
23124         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23125         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23126
23127 2010-12-24  Bruno Haible  <bruno@clisp.org>
23128
23129         sys_select: Ensure all necessary types on NonStop Kernel.
23130         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23131         include <sys/time.h>.
23132         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23133         NonStop Kernel.
23134         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23135
23136 2010-12-24  Bruno Haible  <bruno@clisp.org>
23137
23138         sys_select: Remove unneeded include.
23139         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23140         have <sys/select.h>.
23141
23142 2010-12-24  Bruno Haible  <bruno@clisp.org>
23143
23144         gethostname: Provide a fallback for HOST_NAME_MAX.
23145         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23146         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23147         instead.
23148         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23149
23150 2010-12-24  Bruno Haible  <bruno@clisp.org>
23151
23152         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23153         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23154         (SA_RESTART): Likewise.
23155         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23156
23157 2010-12-24  Bruno Haible  <bruno@clisp.org>
23158
23159         signal: Define NSIG.
23160         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23161         * tests/test-signal.c (nsig): New variable.
23162         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23163
23164 2010-12-24  Bruno Haible  <bruno@clisp.org>
23165
23166         rename, renameat: Avoid test failures on OSF/1 5.1.
23167         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23168         alternative error codes.
23169         * tests/test-renameat.c (main): Likewise.
23170
23171 2010-12-24  Bruno Haible  <bruno@clisp.org>
23172
23173         *printf: Detect large precisions bug on Solaris 10/SPARC.
23174         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23175         by Paul Eggert.
23176         * tests/test-snprintf-posix.h (test_function): Add this test code here
23177         too.
23178         * tests/test-sprintf-posix.h (test_function): Likewise.
23179         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23180         * tests/test-vasprintf-posix.c (test_function): Likewise.
23181         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23182         around by gnulib.
23183         * doc/posix-functions/printf.texi: Likewise.
23184         * doc/posix-functions/snprintf.texi: Likewise.
23185         * doc/posix-functions/sprintf.texi: Likewise.
23186         * doc/posix-functions/vfprintf.texi: Likewise.
23187         * doc/posix-functions/vprintf.texi: Likewise.
23188         * doc/posix-functions/vsnprintf.texi: Likewise.
23189         * doc/posix-functions/vsprintf.texi: Likewise.
23190         * doc/posix-functions/dprintf.texi: Undo last commit.
23191         * doc/posix-functions/vdprintf.texi: Likewise.
23192
23193 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23194
23195         tests: port test-fdutimensat.c to Solaris 8
23196         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23197         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23198         On Solaris 8, it fails with errno == ENOSYS, because there is no
23199         futimens (so it can't use the fd), and there is no lutimens (so it
23200         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23201
23202         vsnprintf: make more consistent with snprintf; doc fixes
23203
23204         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23205         the byte count return problem was promoted from the snprintf-posix
23206         to the snprintf module.
23207         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23208         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23209         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23210         * tests/test-snprintf.c (main): Check the byte count returned.
23211         * tests/test-vsnprintf.c (main): Likewise.
23212
23213 2010-12-23  Eric Blake  <eblake@redhat.com>
23214
23215         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23216         * modules/sigpipe (License): Relax license.
23217
23218 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23219
23220         doc: document Solaris printf bug with large float precisions
23221         * doc/posix-functions/dprintf.texi (dprintf):
23222         * doc/posix-functions/fprintf.texi (fprintf):
23223         * doc/posix-functions/printf.texi (printf):
23224         * doc/posix-functions/snprintf.texi (snprintf):
23225         * doc/posix-functions/sprintf.texi (sprintf):
23226         * doc/posix-functions/vdprintf.texi (vdprintf):
23227         * doc/posix-functions/vfprintf.texi (vfprintf):
23228         * doc/posix-functions/vprintf.texi (vprintf):
23229         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23230         * doc/posix-functions/vsprintf.texi (vsprintf):
23231         Mention that these functions mishandle large floating point
23232         precisions on Solaris 10.  The same bug is also present in Solaris
23233         8, and I assume earlier.  This causes "cd gnulib-tests; make
23234         check" to fail on Solaris 8 (and I assume, later) when building
23235         the latest coreutils, in test-vasprintf-posix's call to
23236         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23237         the wide flavors (e.g., wprintf) so this patch just updates the
23238         documentation for the narrow ones.
23239
23240         test-posixtm.c: add two tests
23241         * tests/test-posixtm.c: Add two tests, to highlight the
23242         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23243         around this bug; this is merely to document it.
23244
23245 2010-12-22  Bruno Haible  <bruno@clisp.org>
23246
23247         getlogin_r: Work around portability problem on OSF/1.
23248         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23249         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23250         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23251         test for a truncated result.
23252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23253         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23254         * modules/getlogin_r (Depends-on): Add memchr.
23255         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23256
23257 2010-12-22  Bruno Haible  <bruno@clisp.org>
23258
23259         ptsname: Avoid test failure on OSF/1 5.1.
23260         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23261         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23262         (same_slave): New function.
23263         (main): Use it to compare ptsname's result with the expected file name.
23264
23265 2010-12-22  Bruno Haible  <bruno@clisp.org>
23266
23267         Port extended stdio modules to HP NonStop Kernel.
23268         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23269         macros.
23270         * lib/fbufmode.c: Update comments.
23271         * lib/fflush.c: Likewise.
23272         * lib/fpurge.c: Likewise.
23273         * lib/freadable.c: Likewise.
23274         * lib/freadahead.c: Likewise.
23275         * lib/freading.c: Likewise.
23276         * lib/freadptr.c: Likewise.
23277         * lib/freadseek.c: Likewise.
23278         * lib/fseeko.c: Likewise.
23279         * lib/fseterr.c: Likewise.
23280         * lib/fwritable.c: Likewise.
23281         * lib/fwriting.c: Likewise.
23282         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23283
23284 2010-12-22  Bruno Haible  <bruno@clisp.org>
23285
23286         ttyname_r: Work around bug on OSF/1 5.1.
23287         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23288         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23289         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23290         present.
23291         * lib/ttyname_r.c (ttyname_r): Update comments.
23292
23293 2010-12-22  Bruno Haible  <bruno@clisp.org>
23294
23295         round: Implement result sign according to IEEE 754.
23296         * lib/round.c (MIN, MINUS_ZERO): New macros.
23297         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23298         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23299         * tests/test-round-ieee.c (main): Likewise.
23300         * tests/test-roundl-ieee.c (main): Likewise.
23301
23302         trunc: Implement result sign according to IEEE 754.
23303         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23304         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23305         * tests/test-trunc2.c: Include minus-zero.h.
23306         (MINUS_ZERO): New macro.
23307         (trunc_reference): Keep in sync with lib/trunc.c.
23308         * tests/test-truncf2.c: Include minus-zero.h.
23309         (MINUS_ZERO): New macro.
23310         (truncf_reference): Keep in sync with lib/trunc.c.
23311         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23312         * tests/test-trunc-ieee.c (main): Likewise.
23313         * tests/test-truncl-ieee.c (main): Likewise.
23314
23315         ceil: Implement result sign according to IEEE 754.
23316         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23317         (FUNC): Return -0.0 for -1 < x < 0.
23318         * tests/test-ceil2.c: Include minus-zero.h.
23319         (MINUS_ZERO): New macro.
23320         (ceil_reference): Keep in sync with lib/ceil.c.
23321         * tests/test-ceilf2.c: Include minus-zero.h.
23322         (MINUS_ZERO): New macro.
23323         (ceilf_reference): Keep in sync with lib/ceil.c.
23324         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23325         * tests/test-ceil-ieee.c (main): Likewise.
23326         * tests/test-ceill-ieee.c (main): Likewise.
23327
23328         floor: Implement result sign according to IEEE 754.
23329         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23330         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23331         * tests/test-floorf2.c (floorf_reference): Likewise.
23332         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23333         * tests/test-floor-ieee.c (main): Likewise.
23334         * tests/test-floorl-ieee.c (main): Likewise.
23335
23336 2010-12-22  Bruno Haible  <bruno@clisp.org>
23337
23338         getaddrinfo: Update doc.
23339         * doc/posix-functions/gai_strerror.texi: Return type is also different
23340         on AIX and HP-UX.
23341
23342 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23343
23344         getaddrinfo, inet_ntop: Update doc for Solaris.
23345         * doc/posix-functions/gai_strerror.texi: Return type is also an
23346         issue on Solaris 9 and earlier.
23347         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23348         on Solaris 10 and earlier.
23349
23350 2010-12-21  Bruno Haible  <bruno@clisp.org>
23351
23352         New module 'roundl-ieee'.
23353         * modules/roundl-ieee: New file.
23354         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23355         test whether roundl works according to ISO C 99 with IEC 60559.
23356         * m4/roundl-ieee.m4: New file.
23357         * modules/roundl-ieee-tests: New file.
23358         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23359         * tests/test-roundl.c (main): Remove signbit tests.
23360         * modules/roundl-tests (Depends-on): Remove signbit.
23361         * doc/posix-functions/roundl.texi: Mention the new module.
23362
23363 2010-12-21  Bruno Haible  <bruno@clisp.org>
23364
23365         New module 'truncl-ieee'.
23366         * modules/truncl-ieee: New file.
23367         * modules/truncl-ieee-tests: New file.
23368         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23369         * tests/test-truncl.c (main): Remove signbit tests.
23370         * modules/truncl-tests (Depends-on): Remove signbit.
23371         * doc/posix-functions/truncl.texi: Mention the new module.
23372
23373 2010-12-21  Bruno Haible  <bruno@clisp.org>
23374
23375         New module 'ceill-ieee'.
23376         * modules/ceill-ieee: New file.
23377         * modules/ceill-ieee-tests: New file.
23378         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23379         * tests/test-ceill.c (main): Remove signbit tests.
23380         * modules/ceill-tests (Depends-on): Remove signbit.
23381         * doc/posix-functions/ceill.texi: Mention the new module.
23382
23383 2010-12-21  Bruno Haible  <bruno@clisp.org>
23384
23385         New module 'floorl-ieee'.
23386         * modules/floorl-ieee: New file.
23387         * modules/floorl-ieee-tests: New file.
23388         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23389         * tests/test-floorl.c (main): Remove signbit tests.
23390         * modules/floorl-tests (Depends-on): Remove signbit.
23391         * doc/posix-functions/floorl.texi: Mention the new module.
23392
23393 2010-12-21  Bruno Haible  <bruno@clisp.org>
23394
23395         New module 'round-ieee'.
23396         * modules/round-ieee: New file.
23397         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23398         whether round works according to ISO C 99 with IEC 60559.
23399         * m4/round-ieee.m4: New file.
23400         * modules/round-ieee-tests: New file.
23401         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23402         * tests/test-round1.c (main): Remove signbit tests.
23403         * modules/round-tests (Depends-on): Remove 'signbit'.
23404         * doc/posix-functions/round.texi: Mention the new module.
23405
23406 2010-12-21  Bruno Haible  <bruno@clisp.org>
23407
23408         New module 'trunc-ieee'.
23409         * modules/trunc-ieee: New file.
23410         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23411         whether trunc works according to ISO C 99 with IEC 60559.
23412         * m4/trunc-ieee.m4: New file.
23413         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23415         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23416         * modules/trunc-ieee-tests: New file.
23417         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23418         * tests/test-trunc1.c (main): Remove signbit tests.
23419         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23420         * doc/posix-functions/trunc.texi: Mention the new module.
23421
23422 2010-12-21  Bruno Haible  <bruno@clisp.org>
23423
23424         New module 'ceil-ieee'.
23425         * modules/ceil-ieee: New file.
23426         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23427         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23428         ISO C 99 with IEC 60559.
23429         * m4/ceil-ieee.m4: New file.
23430         * modules/ceil (Files): Add lib/ceil.c.
23431         (Depends-on): Add 'float'.
23432         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23433         * lib/math.in.h (ceil): New declaration.
23434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23435         REPLACE_CEIL.
23436         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23437         * modules/ceil-ieee-tests: New file.
23438         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23439         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23440         * doc/posix-functions/ceil.texi: Mention the new module.
23441
23442 2010-12-21  Bruno Haible  <bruno@clisp.org>
23443
23444         New module 'floor-ieee'.
23445         * modules/floor-ieee: New file.
23446         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23447         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23448         ISO C 99 with IEC 60559.
23449         * m4/floor-ieee.m4: New file.
23450         * modules/floor (Files): Add lib/floor.c.
23451         (Depends-on): Add 'float'.
23452         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23453         * lib/math.in.h (floor): New declaration.
23454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23455         REPLACE_FLOOR.
23456         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23457         * modules/floor-ieee-tests: New file.
23458         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23459         * tests/test-math-c++.cc: Check the signature of 'floor'.
23460         * doc/posix-functions/floor.texi: Mention the new module.
23461
23462 2010-12-21  Bruno Haible  <bruno@clisp.org>
23463
23464         New module 'roundf-ieee'.
23465         * modules/roundf-ieee: New file.
23466         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23467         test whether roundf works according to ISO C 99 with IEC 60559.
23468         * m4/roundf-ieee.m4: New file.
23469         * modules/roundf-ieee-tests: New file.
23470         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23471         * tests/test-roundf1.c (main): Remove signbit tests.
23472         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23473         * doc/posix-functions/roundf.texi: Mention the new module.
23474
23475 2010-12-21  Bruno Haible  <bruno@clisp.org>
23476
23477         New module 'truncf-ieee'.
23478         * modules/truncf-ieee: New file.
23479         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23480         test whether truncf works according to ISO C 99 with IEC 60559.
23481         * m4/truncf-ieee.m4: New file.
23482         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23484         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23485         * modules/truncf-ieee-tests: New file.
23486         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23487         * tests/test-truncf1.c (main): Remove signbit tests.
23488         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23489         * doc/posix-functions/truncf.texi: Mention the new module.
23490
23491 2010-12-21  Bruno Haible  <bruno@clisp.org>
23492
23493         New module 'ceilf-ieee'.
23494         * modules/ceilf-ieee: New file.
23495         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23496         test whether ceilf works according to ISO C 99 with IEC 60559.
23497         * m4/ceilf-ieee.m4: New file.
23498         * modules/ceilf-ieee-tests: New file.
23499         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23500         * tests/test-ceilf1.c (main): Remove signbit tests.
23501         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23502         * doc/posix-functions/ceilf.texi: Mention the new module.
23503
23504 2010-12-21  Bruno Haible  <bruno@clisp.org>
23505
23506         New module 'floorf-ieee'.
23507         * modules/floorf-ieee: New file.
23508         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23509         test whether floorf works according to ISO C 99 with IEC 60559.
23510         * m4/floorf-ieee.m4: New file.
23511         * modules/floorf-ieee-tests: New file.
23512         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23513         * tests/test-floorf1.c (main): Remove signbit tests.
23514         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23515         * doc/posix-functions/floorf.texi: Mention the new module.
23516
23517 2010-12-21  Bruno Haible  <bruno@clisp.org>
23518
23519         Support for minus zero in autoconf macros.
23520         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23521         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23522         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23523         * tests/minus-zero.h: Update comments.
23524
23525 2010-12-21  Bruno Haible  <bruno@clisp.org>
23526
23527         Tests for module 'ceil'.
23528         * modules/ceil-tests: New file.
23529         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23530         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23531
23532 2010-12-21  Bruno Haible  <bruno@clisp.org>
23533
23534         Tests for module 'floor'.
23535         * modules/floor-tests: New file.
23536         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23537         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23538
23539 2010-12-21  Bruno Haible  <bruno@clisp.org>
23540
23541         math: Fix indentation.
23542         * lib/math.in.h (floorf): Fix indentation.
23543
23544 2010-12-21  Bruno Haible  <bruno@clisp.org>
23545
23546         Fix cross-compilation guesses on Solaris.
23547         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23548         not match "solaris2.10".
23549         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23550         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23551         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23552
23553 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23554
23555         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23556         This fixes a problem observed with the latest coreutils snapshot
23557         that caused a test to fail on Solaris 8.  src/csplit.c's call
23558         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23559         earlier, instead of returning the number of bytes that would have
23560         been generated; this causes csplit to incorrectly report memory
23561         exhaustion.
23562         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23563         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23564         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23565         comments to match.
23566         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23567         Fix typo in matching older versions of Solaris: "solaris2.10"
23568         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23569         only for guessing while cross-compiling.
23570         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23571
23572 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23573
23574         ftoastr: fix comment again
23575         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23576         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23577         Also, simplify example a bit by using flags = 0.
23578
23579 2010-12-20  Bruno Haible  <bruno@clisp.org>
23580
23581         round*, trunc*: Update documentation regarding glibc.
23582         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23583         * doc/posix-functions/round.texi: Likewise.
23584         * doc/posix-functions/roundl.texi: Likewise.
23585         * doc/posix-functions/truncf.texi: Likewise.
23586         * doc/posix-functions/trunc.texi: Likewise.
23587         * doc/posix-functions/truncl.texi: Likewise.
23588
23589 2010-12-20  Bruno Haible  <bruno@clisp.org>
23590
23591         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23592         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23593         * doc/posix-functions/round.texi: Likewise.
23594         * doc/posix-functions/roundl.texi: Likewise.
23595
23596 2010-12-20  Bruno Haible  <bruno@clisp.org>
23597
23598         ttyname_r: Add missing declaration on HP-UX 11.
23599         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23600         HAVE_TTYNAME_R.
23601         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23602         declared. Set HAVE_TTYNAME_R always.
23603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23604         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23605         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23606         HAVE_TTYNAME_R.
23607         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23608
23609 2010-12-20  Bruno Haible  <bruno@clisp.org>
23610
23611         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23612         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23613         * doc/posix-functions/getlogin_r.texi: Likewise.
23614         * tests/test-getlogin.c: Include <errno.h>.
23615         (main): Avoid test failure on HP-UX 11.11.
23616         * tests/test-getlogin_r.c (main): Likewise.
23617
23618 2010-12-20  Bruno Haible  <bruno@clisp.org>
23619
23620         getlogin_r: Add missing declaration on HP-UX 11.
23621         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23622         declared also when it exists as a function.
23623         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23624
23625 2010-12-20  Bruno Haible  <bruno@clisp.org>
23626
23627         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23628         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23629         through wcrtomb.
23630
23631 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23632
23633         ftoastr: fix comment
23634         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23635         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23636
23637 2010-12-19  Bruno Haible  <bruno@clisp.org>
23638
23639         isnan: Ensure it is a macro.
23640         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23641         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23642         Solaris.
23643
23644 2010-12-19  Bruno Haible  <bruno@clisp.org>
23645
23646         ldexpl test: Fix link error on OSF/1 5.1.
23647         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23648
23649 2010-12-19  Bruno Haible  <bruno@clisp.org>
23650
23651         wctype: Make it work in C++ mode on OSF/1 5.1.
23652         * lib/wctype.in.h (iswblank): Declare but not define here.
23653         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23654         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23655         * modules/wctype (Files): Add lib/iswblank.c.
23656
23657 2010-12-19  Bruno Haible  <bruno@clisp.org>
23658
23659         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23660         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23661         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23662
23663 2010-12-19  Bruno Haible  <bruno@clisp.org>
23664
23665         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23666         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23667         _POSIX_PII_SOCKET.
23668         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23669         * doc/posix-functions/recvfrom.texi: Likewise.
23670         * doc/posix-functions/send.texi: Likewise.
23671         * doc/posix-functions/sendto.texi: Likewise.
23672
23673 2010-12-19  Bruno Haible  <bruno@clisp.org>
23674
23675         tcgetsid: Add missing declaration on OSF/1 5.1.
23676         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23677         HAVE_TCGETSID.
23678         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23679         Don't set HAVE_TCGETSID.
23680         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23681         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23682         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23683         HAVE_TCGETSID.
23684         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23685
23686 2010-12-19  Bruno Haible  <bruno@clisp.org>
23687
23688         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23689         * lib/stdio.in.h: During the include_next statement, let recursive
23690         includes of this file include only the system header file.
23691
23692 2010-12-19  Bruno Haible  <bruno@clisp.org>
23693
23694         iconv_open: Fix regression from 2010-12-04.
23695         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23696         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23697
23698 2010-12-19  Bruno Haible  <bruno@clisp.org>
23699
23700         stdbool test: Avoid a gcc warning.
23701         * tests/test-stdbool.c (main): Fail if e1 is false.
23702         Reported by Jim Meyering.
23703
23704 2010-12-19  Jim Meyering  <meyering@redhat.com>
23705
23706         setenv: restore to working order
23707         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23708         mistakenly removed.
23709         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23710         HAVE_SETENV.
23711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23712         HAVE_SETENV.
23713
23714 2010-12-19  Bruno Haible  <bruno@clisp.org>
23715
23716         Document some different function declarations on OSF/1 5.1.
23717         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23718         * doc/posix-functions/inet_ntop.texi: Likewise.
23719         * doc/posix-functions/gethostname.texi: Likewise.
23720         * lib/unistd.in.h (gethostname): Update comment.
23721
23722 2010-12-19  Bruno Haible  <bruno@clisp.org>
23723
23724         doc: Mention vasprintf-posix module.
23725         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23726         the 'vasprintf-posix' module.
23727         * doc/glibc-functions/vasprintf.texi: Likewise.
23728
23729 2010-12-19  Bruno Haible  <bruno@clisp.org>
23730
23731         unsetenv: Add missing declaration on OSF/1 5.1.
23732         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23733         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23734         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23736         not HAVE_UNSETENV.
23737         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23738         HAVE_UNSETENV.
23739         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23740
23741 2010-12-19  Bruno Haible  <bruno@clisp.org>
23742
23743         setenv: Add missing declaration on OSF/1 5.1.
23744         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23745         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23746         declared. Don't set HAVE_SETENV.
23747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23748         not HAVE_SETENV.
23749         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23750         HAVE_SETENV.
23751         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23752
23753 2010-12-19  Bruno Haible  <bruno@clisp.org>
23754
23755         nl_langinfo tests: Avoid gcc warning.
23756         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23757
23758 2010-12-19  Bruno Haible  <bruno@clisp.org>
23759
23760         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23761         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23762         _GL_CXXALIAS_SYS.
23763
23764 2010-12-19  Bruno Haible  <bruno@clisp.org>
23765
23766         stdbool: Relax test.
23767         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23768         address to 'bool' work in static initializer, for compilers other than
23769         GCC.
23770
23771 2010-12-19  Bruno Haible  <bruno@clisp.org>
23772
23773         ftello: Add missing declaration on OSF/1 5.1.
23774         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23775         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23777         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23778         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23779
23780 2010-12-19  Bruno Haible  <bruno@clisp.org>
23781
23782         fseeko: Add missing declaration on OSF/1 5.1.
23783         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23784         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23786         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23787         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23788
23789 2010-12-19  Bruno Haible  <bruno@clisp.org>
23790
23791         fchdir: Add missing declaration on OSF/1 5.1.
23792         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23795         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23796         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23797
23798 2010-12-19  Bruno Haible  <bruno@clisp.org>
23799
23800         relocatable-prog-wrapper: Separate from relocatable-prog.
23801         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23802         uninstall-relocwrapper rule here.
23803         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23804         Reported by Ian Beckwith <ianb@erislabs.net>.
23805
23806 2010-12-19  Bruno Haible  <bruno@clisp.org>
23807
23808         unistr/u8-mbsnlen: Add missing dependency.
23809         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23810         Reported by Ian Beckwith <ianb@erislabs.net>.
23811
23812 2010-12-19  Bruno Haible  <bruno@clisp.org>
23813
23814         iconv: Make it possible again to use this module without 'iconv-h'.
23815         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23816         if it is not defined.
23817         Reported by Ian Beckwith <ianb@erislabs.net>.
23818
23819 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23820
23821         acl: port to Solaris 8 when copying from tmpfs to ufs
23822         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23823         error number.  Problem observed on Solaris 8 with latest
23824         coreutils, with "mv A B", where A is on a tmpfs file system and B
23825         is on a ufs file system.  This caused coreutils' mv/part-symlink
23826         test to fail.
23827
23828         tests: set fail=0 at start
23829         * tests/init.sh (setup_): Move fail=0 initialization here ...
23830         (mktempd_): ... from here, so that tests can rely on fail being
23831         set to 0 initially.  This fixes a problem in coreutils; see:
23832         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23833
23834 2010-12-18  Bruno Haible  <bruno@clisp.org>
23835
23836         memmem-simple: Stylistic changes.
23837         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23838         Fix preprocessor directive indentation.
23839
23840 2010-12-15  Pádraig Brady <P@draigBrady.com>
23841
23842         memmem, memmem-simple: reorganize and expand empty needle check
23843         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23844         functional checks to memmem-simple so that one has a fully functional
23845         memmem by using just this module.
23846         Restrict the performance only check to the memmem module.
23847         Also expand the empty needle check to ensure the correct
23848         pointer is returned, not just a non NULL pointer.
23849         * doc/glibc-functions/memmem.texi: Rearrange the portability
23850         documentation to correlate with the rearranged checks.
23851         Clarify exactly how the memmem and memmem-simple modules
23852         relate to each other.
23853
23854 2010-12-15  Pádraig Brady <P@draigBrady.com>
23855             Bruno Haible  <bruno@clisp.org>
23856
23857         Improve cross-compilation guesses for uClibc.
23858         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23859         that uClibc does not have the glibc bug.
23860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23861         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23862
23863 2010-12-14  Eric Blake  <eblake@redhat.com>
23864
23865         configmake: provide fallbacks for oldest supported autotools
23866         * m4/configmake.m4: New file.
23867         * modules/configmake (Files): Ship it.
23868         (configure.ac): Use it to guarantee fallbacks.
23869
23870 2010-12-13  Pádraig Brady <P@draigBrady.com>
23871
23872         read-file: Improve handling of large files
23873         * lib/read-file.c (fread_file): Minimize realloc()s
23874         for regular files, and better manage sizes around SIZE_MAX.
23875
23876 2010-12-13  Eric Blake  <eblake@redhat.com>
23877
23878         cloexec, fcntl: relax license
23879         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23880         consent from all contributors.
23881         * modules/fcntl (License): Likewise.
23882
23883 2010-12-10  Bruno Haible  <bruno@clisp.org>
23884
23885         Tests for module 'pipe-posix'.
23886         * modules/pipe-posix-tests: New file.
23887         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23888
23889 2010-12-10  Bruno Haible  <bruno@clisp.org>
23890
23891         pipe-posix: Make it work in C++ mode.
23892         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23893         (pipe): Use common idiom, not a macro definition.
23894         * lib/pipe.c: New file.
23895         * m4/pipe.m4: New file.
23896         * modules/pipe-posix (Description): Enhance.
23897         (Files): Add lib/pipe.c, m4/pipe.m4.
23898         (configure.ac): Invoke gl_FUNC_PIPE.
23899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23900         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23901         * tests/test-unistd-c++.cc: Check the signature of pipe.
23902
23903 2010-12-10  Bruno Haible  <bruno@clisp.org>
23904
23905         Rename module 'pipe' to 'spawn-pipe'.
23906         * modules/spawn-pipe: New file, renamed from modules/pipe.
23907         (Files, configure.ac, Makefile.am): Update.
23908         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23909         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23910         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23911         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23912         "spawn-pipe.h" instead of "pipe.h".
23913         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23914         to gl_SPAWN_PIPE.
23915         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23916         (Files, Makefile.am): Update.
23917         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23918         Update.
23919         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23920         Include "spawn-pipe.h" instead of "pipe.h".
23921         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23922         * lib/javacomp.c: Likewise.
23923         * lib/javaversion.c: Likewise.
23924         * lib/pipe-filter-gi.c: Likewise.
23925         * lib/pipe-filter-ii.c: Likewise.
23926         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23927         * modules/javacomp (Depends-on): Likewise.
23928         * modules/javaversion (Depends-on): Likewise.
23929         * modules/pipe-filter-gi (Depends-on): Likewise.
23930         * modules/pipe-filter-ii (Depends-on): Likewise.
23931         * MODULES.html.sh (Executing programs): Update.
23932         * NEWS: Mention the change.
23933
23934 2010-12-10  Eric Blake  <eblake@redhat.com>
23935
23936         pipe-posix: new module
23937         * modules/pipe-posix: New file.
23938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23939         (gl_UNISTD_H): Check for declaration.
23940         * modules/unistd (Makefile.am): Substitute it.
23941         * lib/unistd.in.h (pipe): Provide it for mingw.
23942         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23943         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23944
23945 2010-12-07  Bruno Haible  <bruno@clisp.org>
23946
23947         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23948         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23949         u8_strcmp_gnu.
23950         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23951
23952 2010-12-06  Bruno Haible  <bruno@clisp.org>
23953
23954         Update internal documentation.
23955         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23956
23957 2010-12-04  Bruno Haible  <bruno@clisp.org>
23958
23959         Put more information about failed tests into the test return codes.
23960         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23961         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23962         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23963         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23964         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23965         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23966         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23967         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23968         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23970         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23971         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23972         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23973         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23974         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23975         returns a bit mask.
23976         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23977         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23978         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23979         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23980         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23981         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23982         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23984         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23985         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23986         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23987         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23988         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23989         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23990         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23991         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23992         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23993         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23994         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23995         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23996         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23997         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23998         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23999         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24000         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24001         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24002         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24003         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24004         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24005         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24006         gl_PRINTF_PRECISION): Likewise.
24007         * m4/regex.m4 (gl_REGEX): Likewise.
24008         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24009         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24010         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24011         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24012         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24013         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24014         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24015         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24016         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24017         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24018         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24019         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24020         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24021         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24022         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24023         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24024         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24025         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24026         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24027         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24028         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24029         enumerated value.
24030         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24031
24032 2010-12-04  Bruno Haible  <bruno@clisp.org>
24033
24034         Update for Solaris 11 2010-11.
24035         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24036         Express, released in November 2010.
24037
24038 2010-12-04  Bruno Haible  <bruno@clisp.org>
24039
24040         nproc: Relax license.
24041         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24042         and Paul Eggert.
24043         Requested by Ludovic Courtès <ludo@gnu.org>.
24044
24045 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24046
24047         utimecmp: fine-grained src to nearby coarse-grained dest
24048
24049         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24050         and the source is on a file system with higher-resolution time
24051         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24052         not work, and the time stamps are close together, the algorithm to
24053         determine the exact resolution from the read-back mtime was buggy:
24054         it had a "!=" where it should have had an "==".  This bug has been
24055         in the code ever since it was introduced to gnulib.
24056         Problem reported by Dan Jacobson in
24057         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24058
24059 2010-11-30  Bruno Haible  <bruno@clisp.org>
24060
24061         strerror_r-posix: Fix autoconf test.
24062         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24063
24064 2010-11-28  Bruno Haible  <bruno@clisp.org>
24065             Paul Eggert  <eggert@cs.ucla.edu>
24066
24067         Tests for module 'getdomainname'.
24068         * modules/getdomainname-tests: New file.
24069         * tests/test-getdomainname.c: New file, based on
24070         tests/test-gethostname.c.
24071
24072 2010-11-28  Bruno Haible  <bruno@clisp.org>
24073             Paul Eggert  <eggert@cs.ucla.edu>
24074
24075         getdomainname: Use the system function when possible.
24076         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24077         (getdomainname): Replace if needed. Provide the declaration if it is
24078         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24079         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24080         (getdomainname): When the system has getdomainname, call the system
24081         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24082         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24083         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24084         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24085         the function if its second argument is of type 'int' or if it is found
24086         in libnsl.
24087         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24088         <sys/systeminfo.h> and sysinfo().
24089         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24091         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24092         HAVE_GETDOMAINNAME.
24093         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24094         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24095         * doc/glibc-functions/getdomainname.texi: Document the problems with
24096         the getdomainname declaration.
24097
24098 2010-11-28  Bruno Haible  <bruno@clisp.org>
24099
24100         sys_socket: Ensure ss_family field on AIX.
24101         * lib/sys_socket.in.h (ss_family): New macro definition.
24102         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24103         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24104         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24105         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24106         * modules/sys_socket (Makefile.am): Substitute
24107         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24108         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24109
24110 2010-11-27  Bruno Haible  <bruno@clisp.org>
24111
24112         readline: Improve configure output.
24113         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24114         "checking for readline..." result understandable.
24115
24116 2010-11-27  Bruno Haible  <bruno@clisp.org>
24117
24118         *printf-posix: Detect a bug on Solaris 10/x86.
24119         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24120         for floating-point output.
24121         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24122         directive.
24123         * tests/test-snprintf-posix.h (test_function): Likewise.
24124         * tests/test-sprintf-posix.h (test_function): Likewise.
24125         * tests/test-vasprintf-posix.c (test_function): Likewise.
24126         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24127         * doc/posix-functions/printf.texi: Likewise.
24128         * doc/posix-functions/snprintf.texi: Likewise.
24129         * doc/posix-functions/sprintf.texi: Likewise.
24130         * doc/posix-functions/vfprintf.texi: Likewise.
24131         * doc/posix-functions/vprintf.texi: Likewise.
24132         * doc/posix-functions/vsnprintf.texi: Likewise.
24133         * doc/posix-functions/vsprintf.texi: Likewise.
24134         * doc/glibc-functions/obstack_printf.texi: Likewise.
24135         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24136
24137 2010-11-27  Bruno Haible  <bruno@clisp.org>
24138
24139         Fix link error when module libunistring-optional is in use.
24140         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24141         * modules/striconveha-tests (Makefile.am): Likewise.
24142
24143 2010-11-27  Bruno Haible  <bruno@clisp.org>
24144
24145         regex: Mention link dependencies.
24146         * modules/regex (Link): New section.
24147         * modules/rpmatch (Link): Likewise.
24148         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24149
24150 2010-11-27  Bruno Haible  <bruno@clisp.org>
24151
24152         ftoastr: Fix compilation error on Solaris.
24153         * lib/ftoastr.c: Include <config.h>.
24154
24155 2010-11-27  Bruno Haible  <bruno@clisp.org>
24156
24157         getloadavg: Update documentation.
24158         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24159
24160 2010-11-27  Bruno Haible  <bruno@clisp.org>
24161
24162         sys_socket: Fix test whether the functions are declared.
24163         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24164         not <sys/select.h>.
24165
24166 2010-11-27  Bruno Haible  <bruno@clisp.org>
24167
24168         getpass: Make sure to get system declaration on some platforms.
24169         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24170         gl_USE_SYSTEM_EXTENSIONS.
24171         * modules/getpass (Depends-on): Add extensions.
24172
24173 2010-11-26  Bruno Haible  <bruno@clisp.org>
24174
24175         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24176         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24177         'iconv' module is present.
24178         (ICONV_CONST): New macro.
24179         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24180         ICONV_CONST.
24181         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24182         set ICONV_CONST.
24183         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24184         here.
24185         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24186         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24187         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24188         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24189         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24190         present.
24191
24192 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24193
24194         ftoastr: comment fix
24195         * lib/ftoastr.c: "little" -> "little or no" in comment
24196
24197 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24198
24199         stdint: port to GCC 4.3 + OSX + Octave
24200         On this platform, stdint.h is buggy and defines int64_t to long
24201         long int.  The replacement defined it to long int, causing
24202         problems with C++ style name mangling.  Instead, trust the system
24203         definition if INT64_MAX is defined, and likewise for the unsigned
24204         variant.   Problem reported by Jarno Rajahalme in
24205         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24206         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24207         and don't mess with int64_t and INT64_MAX in this case.
24208         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24209
24210 2010-11-24  Bruno Haible  <bruno@clisp.org>
24211
24212         doc: Corrections regarding MacOS X 10.4 and 10.5.
24213         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24214         MacOS X.
24215         Reported by Simon Josefsson.
24216
24217 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24218
24219         Uninstall ".bin" files installed by relocwrapper.
24220         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24221         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24222         unless it is already there.
24223
24224 2010-11-21  Bruno Haible  <bruno@clisp.org>
24225
24226         Update for NetBSD 5.0.
24227         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24228         NetBSD; the test fails on NetBSD 5.0.
24229         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24230         about NetBSD.
24231
24232 2010-11-21  Bruno Haible  <bruno@clisp.org>
24233
24234         Update for HP-UX 11.23 and HP-UX 11.31.
24235         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24236         HP-UX.
24237
24238 2010-11-21  Bruno Haible  <bruno@clisp.org>
24239
24240         Update for MacOS X 10.5.
24241         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24242         MacOS X; the test fails on MacOS X 10.5.8.
24243         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24244         about MacOS X.
24245
24246 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24247
24248         bootstrap: add bootstrap_sync option.
24249         See discussion at
24250         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24251         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24252         * build-aux/bootstrap: Accept --bootstrap-sync to update
24253         bootstrap if it is not identical to the local gnulib's
24254         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24255         enable this by default.  Accept --no-bootstrap-sync to disable
24256         it.
24257
24258 2010-11-20  Bruno Haible  <bruno@clisp.org>
24259
24260         Ensure that <features.h> is included before __GLIBC__ is tested.
24261         * lib/printf-parse.h: Include <features.h>.
24262         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24263         Reported by Mike Frysinger <vapier@gentoo.org>.
24264
24265         Ensure that <features.h> is included before __GLIBC__ is tested.
24266         * lib/wchar.in.h: Include <features.h>.
24267         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24268         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24269         Reported by Mike Frysinger <vapier@gentoo.org>.
24270
24271         Ensure that <features.h> is included before __GLIBC__ is tested.
24272         * lib/arpa_inet.in.h: Include <features.h>.
24273         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24274         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24275         Reported by Mike Frysinger <vapier@gentoo.org>.
24276
24277         Ensure that <features.h> is included before __GLIBC__ is tested.
24278         * build-aux/link-warning.h: Include <features.h>.
24279         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24280         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24281         Reported by Mike Frysinger <vapier@gentoo.org>.
24282
24283         Ensure that <features.h> is included before __GLIBC__ is tested.
24284         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24285         Reported by Mike Frysinger <vapier@gentoo.org>.
24286
24287 2010-11-20  Bruno Haible  <bruno@clisp.org>
24288
24289         memmem: Fix autoconf test.
24290         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24291
24292 2010-11-20  Bruno Haible  <bruno@clisp.org>
24293
24294         Port to uClibc.
24295         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24296         * lib/fcntl.in.h: Likewise.
24297         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24298         * lib/mbrtowc.c (mbrtowc): Likewise.
24299         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24300         * lib/strerror_r.c: Likewise.
24301         * lib/unistr/u8-strnlen.c: Likewise.
24302         * lib/vasnprintf.c (decimal_point_char): Likewise.
24303         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24304         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24305         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24306         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24307         * tests/test-sigaction.c (handler, main): Likewise.
24308         * lib/freading.h: Treat uClibc like a non-glibc platform.
24309         * lib/freading.c: Likewise.
24310         * lib/gettext.h: Likewise.
24311         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24312         Likewise.
24313         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24314         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24315         * lib/propername.c (proper_name_utf8): Likewise.
24316         * lib/spawn.in.h: Likewise.
24317         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24318         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24319         mem_cd_iconveh_internal): Likewise.
24320         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24321         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24322         strstr, strcasestr): Likewise.
24323         * lib/unicodeio.c (unicode_to_mb): Likewise.
24324         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24325         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24326         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24327         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24328         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24329         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24330         * lib/unistr/u8-stpncpy.c: Likewise.
24331         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24332         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24333         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24334         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24335         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24336         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24337         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24338         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24340         Likewise.
24341         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24342         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24343         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24344         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24345         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24346         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24347         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24348         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24349         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24350         * tests/test-striconveha.c (main): Likewise.
24351         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24352         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24353         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24354         * doc/posix-functions/getline.texi: Likewise.
24355         Reported by Mike Frysinger <vapier@gentoo.org>.
24356
24357 2010-11-20  Bruno Haible  <bruno@clisp.org>
24358
24359         nproc: Fix condition.
24360         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24361         HAVE_PTHREAD_AFFINITY_NP.
24362
24363 2010-11-20  Bruno Haible  <bruno@clisp.org>
24364
24365         Fix a comment.
24366         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24367
24368 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24369
24370         ftoastr: don't assume snprintf
24371         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24372         Implement a subset of snprintf here, by using sprintf safely.
24373         * modules/ftoastr (Depends-on): Remove snprintf.
24374
24375 2010-11-19  Jim Meyering  <meyering@redhat.com>
24376
24377         test-rename.h: fix compilation failure
24378         * tests/test-rename.h (test_rename): Add omitted "}".
24379
24380 2010-11-17  Jim Meyering  <meyering@redhat.com>
24381
24382         maint.mk: add a URL discussing the no-@acronym policy
24383         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24384
24385 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24386
24387         ftoastr: depend on snprintf, improve comments
24388         * lib/ftoastr.c: Also mention Loitsch's draft.
24389         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24390         needed in the current implementation, but it might simplify
24391         speeding up the code later.
24392         * modules/ftoastr: Depend on snprintf; this improves portability.
24393         Suggested by Bruno Haible in the same email.
24394
24395         ftoastr: port to hosts lacking strtof and strtold
24396         Problem reported by Bruno Haible in
24397         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24398         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24399         environment and strtold (and presumably strtof) are not available.
24400         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24401         (configure.ac): Require gl_C99_STRTOLD.
24402
24403 2010-11-18  Bruno Haible  <bruno@clisp.org>
24404
24405         c-strtold: Avoid link error on AIX 7.
24406         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24407         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24408         (gl_C_STRTOLD): Test whether strtold_l exists.
24409         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24410
24411 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24412
24413         intprops: new macro INT_BITS_STRLEN_BOUND
24414         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24415         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24416         not exposed.  Also, it uses a slightly tighter bound than before;
24417         though this makes no practical difference, we might as well be as
24418         tight as we easily can.
24419
24420         ftoastr: new module, for lossless conversion of floats to short strings
24421         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24422         * modules/ftoastr: New files.
24423
24424 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24425
24426         bootstrap: port to Solaris sed
24427         * build-aux/bootstrap (get_version): Port to Solaris sed.
24428         See Ralf Wildenhues's note in
24429         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24430
24431 2010-11-14  Jim Meyering  <meyering@redhat.com>
24432
24433         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24434         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24435         and move definition closer to sole use.
24436
24437 2010-11-13  Jim Meyering  <meyering@redhat.com>
24438
24439         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24440         Now we require at least autoconf-2.59, which means the work-around
24441         is no longer needed.
24442         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24443         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24444         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24445         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24446         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24447
24448 2010-11-13  Bruno Haible  <bruno@clisp.org>
24449
24450         rename, renameat: Avoid test failures at NFS mounted locations.
24451         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24452         functions.
24453         (test_rename): Use assert_nonexistent.
24454         * tests/test-rename.c: Include <dirent.h>.
24455         * tests/test-renameat.c: Likewise.
24456         Reported by Gary V. Vaughan <gary@gnu.org>.
24457
24458         rename, renameat: Document Linux bug with NFS
24459         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24460         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24461         * doc/posix-functions/renameat.texi: Likewise.
24462         Suggested by Eric Blake.
24463
24464 2010-11-13  Bruno Haible  <bruno@clisp.org>
24465
24466         rename test: Add comments.
24467         * tests/test-rename.h (test_rename): Add structure and comments.
24468
24469 2010-11-13  Eric Blake  <eblake@redhat.com>
24470
24471         maintainer-makefile: cover a few more files
24472         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24473         scripts generated within C files, for libvirt.
24474
24475 2010-11-13  Bruno Haible  <bruno@clisp.org>
24476
24477         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24478         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24479         character, return the number of bytes that belong together, not always
24480         1.
24481         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24482         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24483         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24484         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24485         number of bytes of an invalid character.
24486         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24487         (main): Invoke it.
24488         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24489         results.
24490         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24491         malformed byte sequences.
24492         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24493         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24494         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24495         Reported by Ben Pfaff and Paolo Bonzini.
24496
24497 2010-11-13  Bruno Haible  <bruno@clisp.org>
24498
24499         openat: Work around glibc bug with fchownat() and empty file names.
24500         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24501         (gl_FUNC_FCHOWNAT): Invoke it.
24502         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24503         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24504         Reported by Gary V. Vaughan <gary@gnu.org>.
24505
24506 2010-11-13  Bruno Haible  <bruno@clisp.org>
24507
24508         openat: Ensure autoconf macro ordering.
24509         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24510         gl_USE_SYSTEM_EXTENSIONS.
24511         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24512
24513 2010-11-13  Bruno Haible  <bruno@clisp.org>
24514
24515         Update comments.
24516         * lib/unistr/u8-check.c: Update file name in comments.
24517         * lib/unistr/u8-mblen.c: Likewise.
24518         * lib/unistr/u8-prev.c: Likewise.
24519         * lib/unistr/u8-strmblen.c: Likewise.
24520         * lib/unistr/u8-strmbtouc.c: Likewise.
24521
24522 2010-11-13  Jim Meyering  <meyering@redhat.com>
24523
24524         tests: avoid test failure on Solaris 10 due to lack of PATH export
24525         * tests/test-update-copyright.sh: Don't forget to export PATH.
24526
24527         init.sh: ensure that IFS is defined, just in case...
24528         * tests/init.sh (setup_): Ensure that IFS is defined,
24529         so that saving and restoring it works as expected.  This
24530         appears to be useful at least for an old version of dash
24531         from a long time ago (RH 6).  See here for details:
24532         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24533
24534         maint.mk: tighten "test a == b" check
24535         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24536         test to files that contain something like #!/bin/sh.
24537         Without this, coreutils would get two false positives in
24538         the comments of C source files.
24539
24540 2010-11-12  Eric Blake  <eblake@redhat.com>
24541
24542         bootstrap: fix typo in previous attempt
24543         * build-aux/bootstrap (buildreq): Correct the grouping.
24544         Reported by Paul Eggert.
24545
24546         maintainer-makefile: prohibit test x == x
24547         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24548         Based on a report by Matthias Bolte.
24549
24550         bootstrap: allow FreeBSD gzip
24551         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24552         which has no '.' and goes to stderr.
24553         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24554         Reported by Matthias Bolte.
24555
24556         maintainer-makefile: check for i18n setup
24557         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24558         will likely work.
24559
24560 2010-11-12  Bruno Haible  <bruno@clisp.org>
24561
24562         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24563         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24564         * lib/nanosleep.c (nanosleep): Likewise.
24565
24566 2010-11-11  Bruno Haible  <bruno@clisp.org>
24567
24568         fcntl-h: Fix for use of C++ on glibc systems.
24569         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24570         also on glibc systems in C++ mode.
24571         Reported by Gary V. Vaughan <gary@gnu.org>.
24572
24573 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24574
24575         mknod: avoid false failure with dash
24576         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24577
24578 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24579
24580         unlink: Fix "is it should" typo in diagnostic.
24581         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24582         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24583
24584 2010-11-11  Bruno Haible  <bruno@clisp.org>
24585
24586         Tests for module 'strerror_r-posix'.
24587         * modules/strerror_r-posix-tests: New file.
24588         * tests/test-strerror_r.c: New file.
24589         * tests/test-string-c++.cc: Check the signature of strerror_r.
24590
24591         New module 'strerror_r-posix'.
24592         * lib/string.in.h (strerror_r): New declaration.
24593         * lib/strerror_r.c: New file.
24594         * m4/strerror_r.m4: New file.
24595         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24596         of strerror_r.
24597         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24598         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24599         * modules/strerror_r-posix: New file.
24600         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24601         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24602         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24603         portability problems.
24604
24605 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24606
24607         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24608         line is also considered for output. Quoted function name in shell
24609         command, so temporary files for functions like MyClass::operator()
24610         are removed correctly without errors.
24611
24612 2010-11-09  Bruno Haible  <bruno@clisp.org>
24613
24614         * doc/posix-functions/strerror.texi: List more failing platforms.
24615
24616         * doc/posix-functions/strerror.texi: Add a comment.
24617
24618 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24619
24620         fdopendir: fix bug on MacOS X when low on file descriptors
24621
24622         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24623         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24624         All callers changed.
24625         (fdopendir): Invoke save_cwd at the top level, not after using
24626         multiple dup() calls to use up file descriptors.  Then retry
24627         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24628         less than the maximum number of open file descriptors, because
24629         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24630         on Mac OS X 10.6.4 for tar 1.24
24631         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24632         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24633         and for tar 1.25
24634         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24635
24636 2010-11-07  Bruno Haible  <bruno@clisp.org>
24637
24638         vasnprintf: Support I flag on glibc systems.
24639         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24640         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24641         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24642         snprintf function.
24643         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24644         glibc systems.
24645         * tests/test-vasnprintf-posix3.c: New file.
24646         * modules/vasnprintf-posix-tests (Files): Add it.
24647         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24648
24649 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24650
24651         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24652         * MODULES.html.sh: For compiler warnings, use name
24653         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24654
24655 2010-11-05  Eric Blake  <eblake@redhat.com>
24656
24657         ceil, floor: avoid spurious failure with icc
24658         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24659         [denormals-as-zero] when optimizing without -mieee-fp option.
24660         * tests/test-floorf2.c (floorf_reference): Likewise.
24661         * tests/test-ceilf1.c (dummy): New function.
24662         (main): Use it to outsmart icc's optimization.
24663         * tests/test-floorf1.c (dummy, main): Likewise.
24664
24665         tests: require working signbit
24666         * modules/ceilf-tests (Depends-on): Add signbit.
24667         * modules/ceill-tests (Depends-on): Likewise.
24668         * modules/floorf-tests (Depends-on): Likewise.
24669         * modules/floorl-tests (Depends-on): Likewise.
24670         * modules/round-tests (Depends-on): Likewise.
24671         * modules/roundf-tests (Depends-on): Likewise.
24672         * modules/roundl-tests (Depends-on): Likewise.
24673         * modules/trunc-tests (Depends-on): Likewise.
24674         * modules/truncf-tests (Depends-on): Likewise.
24675         * modules/truncl-tests (Depends-on): Likewise.
24676
24677         strtod: work around icc bug
24678         * lib/strtod.c (minus_zero): Define to working value.
24679         (strtod): Use it to avoid icc bug.
24680
24681         copysign: enhance tests
24682         * modules/copysign-tests (Files): Add minus-zero.h.
24683         * tests/test-copysign.c (main): Also test zeros.
24684
24685 2010-11-04  Eric Blake  <eblake@redhat.com>
24686
24687         ceil, floor, round, trunc: enhance tests of -0
24688         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24689         * tests/test-ceill.c (main): Likewise.
24690         * tests/test-floorf1.c (main): Likewise.
24691         * tests/test-floorl.c (main): Likewise.
24692         * tests/test-round1.c (main): Likewise.
24693         * tests/test-roundf1.c (main): Likewise.
24694         * tests/test-roundl.c (main): Likewise.
24695         * tests/test-trunc1.c (main): Likewise.
24696         * tests/test-truncf1.c (main): Likewise.
24697         * tests/test-truncl.c (main): Likewise.
24698
24699 2010-11-04  Eric Blake  <eblake@redhat.com>
24700
24701         frexp, tests: work around ICC bug with -zero
24702         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24703         works with more compilers.
24704         * tests/minus-zero.h: New file.
24705         * modules/ceilf-tests (Files): Include it.
24706         * modules/ceill-tests (Files): Likewise.
24707         * modules/floorf-tests (Files): Likewise.
24708         * modules/floorl-tests (Files): Likewise.
24709         * modules/frexp-nolibm-tests (Files): Likewise.
24710         * modules/frexp-tests (Files): Likewise.
24711         * modules/frexpl-nolibm-tests (Files): Likewise.
24712         * modules/frexpl-tests (Files): Likewise.
24713         * modules/isnan-tests (Files): Likewise.
24714         * modules/isnand-nolibm-tests (Files): Likewise.
24715         * modules/isnand-tests (Files): Likewise.
24716         * modules/isnanf-nolibm-tests (Files): Likewise.
24717         * modules/isnanf-tests (Files): Likewise.
24718         * modules/isnanl-nolibm-tests (Files): Likewise.
24719         * modules/isnanl-tests (Files): Likewise.
24720         * modules/round-tests (Files): Likewise.
24721         * modules/roundf-tests (Files): Likewise.
24722         * modules/roundl-tests (Files): Likewise.
24723         * modules/ldexpl-tests (Files): Likewise.
24724         * modules/signbit-tests (Files): Likewise.
24725         * modules/snprintf-posix-tests (Files): Likewise.
24726         * modules/sprintf-posix-tests (Files): Likewise.
24727         * modules/strtod-tests (Files): Likewise.
24728         * modules/trunc-tests (Files): Likewise.
24729         * modules/truncf-tests (Files): Likewise.
24730         * modules/truncl-tests (Files): Likewise.
24731         * modules/vsnprintf-posix-tests (Files): Likewise.
24732         * modules/vsprintf-posix-tests (Files): Likewise.
24733         * modules/vasnprintf-posix-tests (Files): Likewise.
24734         * modules/vasprintf-posix-tests (Files): Likewise.
24735         * tests/test-ceilf1.c (main): Use it.
24736         * tests/test-ceill.c (main): Likewise.
24737         * tests/test-floorf1.c (main): Likewise.
24738         * tests/test-floorl.c (main): Likewise.
24739         * tests/test-frexp.c (main): Likewise.
24740         * tests/test-frexpl.c (main): Likewise.
24741         * tests/test-isnan.c (main): Likewise.
24742         * tests/test-isnand.h (main): Likewise.
24743         * tests/test-isnanf.h (main): Likewise.
24744         * tests/test-isnanl.h (main): Likewise.
24745         * tests/test-ldexpl.c (main): Likewise.
24746         * tests/test-round.c (main): Likewise.
24747         * tests/test-roundf.c (main): Likewise.
24748         * tests/test-roundl.c (main): Likewise.
24749         * tests/test-signbit.c (test_signbitf, test_signbitd)
24750         (test_signbitl): Likewise.
24751         * tests/test-snprintf-posix.h (test_function): Likewise.
24752         * tests/test-sprintf-posix.h (test_function): Likewise.
24753         * tests/test-strtod.c (main): Likewise.
24754         * tests/test-trunc1.c (main): Likewise.
24755         * tests/test-truncf1.c (main): Likewise.
24756         * tests/test-truncl.c (main): Likewise.
24757
24758         isnanl: work around icc bug
24759         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24760
24761 2010-11-03  Eric Blake  <eblake@redhat.com>
24762
24763         tests: fix compiler warnings
24764         * tests/test-getopt.h (test_getopt): Fix condition.
24765         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24766         * tests/test-pipe2.c (main): Likewise.
24767         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24768
24769         utimens: fix broken m4 test
24770         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24771
24772 2010-10-28  Bruno Haible  <bruno@clisp.org>
24773
24774         posix_spawn*, getdtablesize: Relax license.
24775         * modules/posix_spawn (License): Change to LGPLv2+.
24776         * modules/posix_spawnp (License): Likewise.
24777         * modules/posix_spawn-internal (License): Likewise.
24778         * modules/posix_spawnattr_init (License): Likewise.
24779         * modules/posix_spawnattr_getflags (License): Likewise.
24780         * modules/posix_spawnattr_setflags (License): Likewise.
24781         * modules/posix_spawnattr_getpgroup (License): Likewise.
24782         * modules/posix_spawnattr_setpgroup (License): Likewise.
24783         * modules/posix_spawnattr_getschedparam (License): Likewise.
24784         * modules/posix_spawnattr_setschedparam (License): Likewise.
24785         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24786         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24787         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24788         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24789         * modules/posix_spawnattr_getsigmask (License): Likewise.
24790         * modules/posix_spawnattr_setsigmask (License): Likewise.
24791         * modules/posix_spawnattr_destroy (License): Likewise.
24792         * modules/posix_spawn_file_actions_init (License): Likewise.
24793         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24794         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24795         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24796         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24797         * modules/getdtablesize (License): Likewise.
24798         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24799
24800 2010-10-26  Bruno Haible  <bruno@clisp.org>
24801
24802         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24803         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24804         Cygwin and mingw.
24805         Suggested by Eric Blake.
24806
24807 2010-10-26  Bruno Haible  <bruno@clisp.org>
24808
24809         stdio: Work around compilation error due to renameat() on Solaris 10.
24810         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24811         * lib/renameat.c: Don't include <unistd.h> here.
24812         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24813         Reported by Paul Eggert and Eric Blake.
24814
24815 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24816
24817         renameat: port to Solaris 10, which declares renameat in unistd.h
24818
24819         * lib/renameat.c: Include unistd.h before stdio.h, because
24820         Solaris 10 declares renameat in unistd.h.  Problem encountered
24821         when building GNU tar 1.24 on Solaris 10.
24822
24823 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24824
24825         fdopendir: fix C89 compilation
24826         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24827         compilers.
24828
24829 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24830
24831         inttostr: simplify by removing unnecessary redundancy
24832         * lib/anytostr.c: Don't include verify.h.
24833         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24834         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24835         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24836         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24837         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24838         Likewise.
24839         * modules/inttostr (Depends-on): Remove 'verify'.
24840
24841 2010-10-23  Bruno Haible  <bruno@clisp.org>
24842
24843         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24844         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24845         Reported by Eric Blake.
24846
24847 2010-10-23  Bruno Haible  <bruno@clisp.org>
24848
24849         Tests: Fix LOCALE_JA on MirBSD 10.
24850         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24851         to an UTF-8 locale.
24852         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24853         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24854         Reported by Eric Blake.
24855
24856 2010-10-21  Bruno Haible  <bruno@clisp.org>
24857
24858         nl_langinfo test: Avoid test failure on NetBSD 5.
24859         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24860         Reported by Eric Blake.
24861
24862 2010-10-21  Eric Blake  <eblake@redhat.com>
24863
24864         c-stack: work around libsigsegv 2.8 bug
24865         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24866         overflow on at least PowerPC64.
24867
24868 2010-10-17  Bruno Haible  <bruno@clisp.org>
24869
24870         userspec: Drop redundant file.
24871         * modules/userspec (Files): Remove lib/inttostr.h.
24872
24873 2010-10-17  Bruno Haible  <bruno@clisp.org>
24874
24875         nl_langinfo tests: Silence some warnings.
24876         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24877         Reported by Jim Meyering.
24878
24879 2010-10-17  Bruno Haible  <bruno@clisp.org>
24880
24881         Make use of GCC's attribute __alloc_size__.
24882         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24883         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24884         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24885         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24886         __alloc_size__.
24887         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24888         Suggested by Jim Meyering.
24889
24890 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24891
24892         bootstrap: anchor .gitignore entries.
24893         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24894         with...
24895         (insert_vc_ignore): ... this new function, which prepends `/' to
24896         all .gitignore entries before passing them to
24897         insert_sorted_if_absent.
24898
24899 2010-10-16  Bruno Haible  <bruno@clisp.org>
24900
24901         nextafter: Fix configure check.
24902         * modules/nextafter (configure.ac): Correct expected prototype.
24903
24904 2010-10-16  Bruno Haible  <bruno@clisp.org>
24905
24906         termios: Update documentation.
24907         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24908
24909 2010-10-16  Bruno Haible  <bruno@clisp.org>
24910
24911         tests: Make them compile with TinyCC.
24912         * tests/test-strstr.c (main): Remove parentheses around array
24913         initializer.
24914
24915 2010-10-15  Eric Blake  <eblake@redhat.com>
24916
24917         ignore-value: make header idempotent
24918         * lib/ignore-value.h: Add double-inclusion guards.
24919         Reported by Stefan Berger.
24920
24921 2010-10-15  Jim Meyering  <meyering@redhat.com>
24922
24923         GNUmakefile: handle "stable" target, not "major"
24924         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24925         lists in maint.mk and announce-gen.  Without this, "make stable"
24926         would fail to ensure that $(VERSION) is up to date.
24927
24928 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24929
24930         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24931         & co.
24932
24933 2010-10-14  Bruno Haible  <bruno@clisp.org>
24934
24935         vasnprintf: Don't set errno to 0.
24936         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24937         block that sets it to 0.
24938         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24939
24940 2010-10-14  Bruno Haible  <bruno@clisp.org>
24941
24942         socketlib: Fix.
24943         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24944         gl_PREREQ_SYS_H_WINSOCK2.
24945         Reported by Ian Beckwith <ianb@erislabs.net>.
24946
24947 2010-10-13  Jim Meyering  <meyering@redhat.com>
24948
24949         test-select-stdin.c: avoid warn_unused_result warnings
24950         * tests/test-select-stdin.c: Include "macros.h".
24951         ASSERT that read and fflush succeed.
24952
24953 2010-10-13  Jim Meyering  <meyering@redhat.com>
24954
24955         git-version-gen: do require git-VC'd files in cwd
24956         * build-aux/git-version-gen: Reject a git version string
24957         if there are no commits associated with the current directory.
24958         This avoids an unlikely false-positive (unrelated dir whose parent
24959         repository also contains a tag matching v*), as pointed out
24960         by Giuseppe Scrivano in
24961         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24962
24963 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24964
24965         argv-iter: omit nonconforming declaration
24966         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24967         enum arg_iter_err declaration, which doesn't conform to C99.
24968         Solaris 10 cc warns about this.
24969
24970 2010-10-13  Eric Blake  <eblake@redhat.com>
24971
24972         termios: fix compilation on mingw
24973         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24974         (gl_TERMIOS_H): Adjust it on mingw.
24975         * modules/termios (Makefile.am): Substitute new key.
24976         * lib/termios.in.h (includes): Make include_next conditional.
24977         * doc/posix-headers/termios.texi (termios.h): Update
24978         documentation.
24979         Reported by Daniel P. Berrange.
24980
24981 2010-10-13  Jim Meyering  <meyering@redhat.com>
24982
24983         git-version-gen: don't require that .git/ be in the current dir
24984         * build-aux/git-version-gen: Adjust this script so that it works
24985         when run from any working directory beneath the top-level .git/-
24986         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24987         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24988
24989         test-select: avoid warn_unused_result warnings
24990         * tests/test-select.c: Include "macros.h".
24991         ASSERT that each call to read, write, and pipe succeeds.
24992         While not technically required, also check each "close".
24993         * modules/select-tests (Files): Add tests/macros.h.
24994
24995         test-symlinkat: remove declaration of unused local
24996         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24997
24998         test-inttostr: avoid shadowing warnings
24999         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25000         and use malloc rather than the stack for the same reason as
25001         mentioned in the comment justifying the other allocation.
25002
25003 2010-10-11  Bruno Haible  <bruno@clisp.org>
25004
25005         stdlib: Allow multiple gnulib generated replacements to coexist.
25006         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25007         Reported by Sam Steingold <sds@gnu.org>.
25008
25009 2010-10-11  Jim Meyering  <meyering@redhat.com>
25010
25011         fix a documentation typo
25012         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25013
25014 2010-10-11  Eric Blake  <eblake@redhat.com>
25015
25016         futimens: work around Solaris 11 bug
25017         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25018         * tests/test-futimens.h (test_futimens): Enhance, rather than
25019         weaken test.
25020         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25021
25022 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25023
25024         Indentation.
25025         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25026         higher-level operators more to the left.
25027
25028 2010-10-11  Jim Meyering  <meyering@redhat.com>
25029
25030         test-futimens: avoid unwarranted test failure on Solaris 5.11
25031         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25032         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25033         because it tries to dereference the NULL name argument.
25034
25035 2010-10-11  Bruno Haible  <bruno@clisp.org>
25036
25037         Indentation.
25038         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25039         indentation.
25040
25041 2010-10-11  Jim Meyering  <meyering@redhat.com>
25042
25043         spawn.in.h: make indentation consistent with parentheses
25044         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25045         Make indentation consistent with parentheses.
25046
25047 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25048
25049         Fix mismatched parens in previous commit
25050         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25051         parens.
25052
25053 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25054
25055         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25056
25057         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25058         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25059         * lib/malloca.c: Include "verify.h".
25060         (verify1): Remove, replacing with a verify call.
25061         * lib/relocwrapper.c (verify1): Likewise.
25062         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25063         Likewise.
25064         * modules/malloca (Depends-on): Add 'verify'.
25065         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25066         * modules/vasnprintf (Depends-on): Add 'verify'.
25067         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25068         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25069         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25070         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25071         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25072         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25073         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25074
25075         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25076
25077         Formerly the style was sometimes 2*X - 1, because the C standard
25078         was wrongly thought to disallow ?: in integral constant expressions.
25079         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25080         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25081         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25082         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25083         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25084         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25085         verify that time_t cannot be floating.
25086
25087 2010-10-08  Eric Blake  <eblake@redhat.com>
25088
25089         time: enforce recent POSIX ruling that time_t is integral
25090         * lib/time.in.h (__time_t_must_be_integral): Detect any
25091         problematic systems, allowing the rest of gnulib to assume POSIX.
25092
25093 2010-10-08  Jim Meyering  <meyering@redhat.com>
25094
25095         fdopendir: fix a bug on systems lacking openat and /proc support
25096         OpenBSD 4.7 is one such system.  The most noticeable effect was
25097         failure of any application making nontrivial use of fts: rm, du,
25098         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25099           ./rm: traversal failed: `a': Bad file descriptor
25100         Debugging that, you see that even though FD 6 was closed just
25101         prior to the opendir call in fd_clone_opendir, its resulting
25102         dir->dd_fd was 8, rather than the expected value of 6:
25103
25104         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25105         93                close (fd);
25106         (gdb) n
25107         94                dir = fd_clone_opendir (dupfd);
25108         (gdb) n
25109         95                saved_errno = errno;
25110         (gdb) p dir->dd_fd
25111         $11 = 8
25112
25113         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25114         The problem is that on OpenBSD, fd_clone_opendir has to resort
25115         to using the old-style save/restore CWD mechanism, due to its
25116         lack of openat/proc support, and *that* would steal the FD (6)
25117         that opendir was supposed to use.
25118
25119         The fix is to squirrel away the desired FD so that save_cwd uses a
25120         different one, and then free the dest FD right before calling opendir.
25121         That guarantees opendir will use the required file descriptor.
25122
25123         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25124
25125 2010-10-08  Bruno Haible  <bruno@clisp.org>
25126
25127         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25128         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25129
25130 2010-10-08  Bruno Haible  <bruno@clisp.org>
25131
25132         nanosleep: Make replacement POSIX compliant.
25133         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25134         is out of range.
25135         Reported by Jim Meyering.
25136
25137 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25138
25139         bootstrap: add hook for altering gnulib.mk, for Bison
25140         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25141         the Bison bootstrapping process can rewrite file names and variables
25142         in this file before later parts of 'bootstrap' use the file.
25143         Bison wants to include lib/gnulib.mk from the top-level makefile,
25144         so it needs the file names in this file to be relative to the top
25145         level, not relative to lib; plus it needs variable names to be
25146         rewritten.
25147         (slurp): Use the new function.
25148
25149         bootstrap: reformat for readability
25150         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25151
25152 2010-10-08  Eric Blake  <eblake@redhat.com>
25153
25154         docs: update cygwin progress
25155         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25156         1.7.7.
25157         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25158         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25159         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25160         * doc/posix-functions/carg.texi (carg): Likewise.
25161         * doc/posix-functions/cargf.texi (cargf): Likewise.
25162         * doc/posix-functions/casin.texi (casin): Likewise.
25163         * doc/posix-functions/casinf.texi (casinf): Likewise.
25164         * doc/posix-functions/casinh.texi (casinh): Likewise.
25165         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25166         * doc/posix-functions/catan.texi (catan): Likewise.
25167         * doc/posix-functions/catanf.texi (catanf): Likewise.
25168         * doc/posix-functions/catanh.texi (catanh): Likewise.
25169         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25170         * doc/posix-functions/ccos.texi (ccos): Likewise.
25171         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25172         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25173         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25174         * doc/posix-functions/cexp.texi (cexp): Likewise.
25175         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25176         * doc/posix-functions/cimag.texi (cimag): Likewise.
25177         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25178         * doc/posix-functions/clog.texi (clog): Likewise.
25179         * doc/posix-functions/clogf.texi (clogf): Likewise.
25180         * doc/posix-functions/conj.texi (conj): Likewise.
25181         * doc/posix-functions/conjf.texi (conjf): Likewise.
25182         * doc/posix-functions/cpow.texi (cpow): Likewise.
25183         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25184         * doc/posix-functions/cproj.texi (cproj): Likewise.
25185         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25186         * doc/posix-functions/creal.texi (creal): Likewise.
25187         * doc/posix-functions/crealf.texi (crealf): Likewise.
25188         * doc/posix-functions/csin.texi (csin): Likewise.
25189         * doc/posix-functions/csinf.texi (csinf): Likewise.
25190         * doc/posix-functions/csinh.texi (csinh): Likewise.
25191         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25192         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25193         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25194         * doc/posix-functions/ctan.texi (ctan): Likewise.
25195         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25196         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25197         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25198         * doc/posix-headers/complex.texi (complex.h): Likewise.
25199
25200 2010-10-07  Jim Meyering  <meyering@redhat.com>
25201
25202         parse-datetime: avoid compilation failure on OpenBSD 4.7
25203         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25204         This works around a compilation failure on OpenBSD 4.7:
25205         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25206
25207 2010-10-07  Eric Blake  <eblake@redhat.com>
25208
25209         docs: update cygwin progress
25210         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25211         1.7.6.
25212         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25213         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25214         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25215         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25216         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25217         Likewise.
25218         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25219         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25220         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25221         Likewise.
25222         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25223         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25224         Likewise.
25225         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25226         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25227         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25228         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25229         Likewise.
25230         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25231         Likewise.
25232         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25233
25234         docs: update parse-datetime history
25235         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25236         documentation of this function's history and alternatives.
25237
25238         cygwin: use more robust version check
25239         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25240         exclude an eventual cygwin 1.9.1.
25241         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25243         (gl_FUNC_STRCASESTR): Likewise.
25244         Reported by Bruno Haible.
25245
25246 2010-10-06  Bruno Haible  <bruno@clisp.org>
25247
25248         string, sys_select: Avoid #including large headers unless necessary.
25249         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25250         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25251         OSF/1, BeOS, Haiku.
25252         Reported by Jim Meyering.
25253
25254 2010-10-05  Eric Blake  <eblake@redhat.com>
25255
25256         memmem, strstr, strcasestr: fix bug with long periodic needle
25257         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25258         periodic needle having false positive.
25259         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25260         and cygwin 1.7.7.
25261         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25262         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25263         (gl_FUNC_STRCASESTR): Likewise.
25264         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25265         * tests/test-memmem.c (main): Expose the bug.
25266         * tests/test-strcasestr.c (main): Likewise.
25267         * tests/test-strstr.c (main): Likewise.
25268         * tests/test-c-strcasestr.c (main): Likewise.
25269         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25270         * doc/posix-functions/strstr.texi (strstr): Likewise.
25271         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25272         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25273
25274 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25275
25276         parse-datetime: do some more renaming
25277         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25278         parse_datetime, not get_date.  Mention the renaming.
25279         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25280         in comments.
25281         * m4/bison.m4: Likewise.
25282
25283 2010-10-05  Eric Blake  <eblake@redhat.com>
25284
25285         parse-datetime: better name than get_date
25286         * NEWS: Reword the deprecation notice.
25287         * modules/get_date: Rename to modules/parse-datetime.
25288         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25289         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25290         * lib/get_date.y: Rename to lib/parse-datetime.y.
25291         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25292         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25293         * doc/getdate.texi: Provide fallback wrapper.
25294         * lib/getdate.h: Move guts, and wrap...
25295         * lib/parse-datetime.h: ...new file.
25296         * lib/parse-datetime.y (get_date): Rename...
25297         (parse_datetime): ...to this.
25298         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25299         (gl_PARSE_DATETIME): ...to this.
25300         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25301         documentation.
25302         * modules/getdate (Files): Provide fallback docs and header.
25303         (Notice, Depends-on): Update references.
25304         * tests/test-parse-datetime.c: Likewise.
25305         * DEPENDENCIES: Likewise.
25306         * MODULES.html.sh (Date and time <time.h>): Likewise.
25307         * doc/parse-datetime.texi (Date input formats)
25308         (Authors of parse_datetime): Likewise.
25309         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25310         (Include): Likewise.
25311         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25312         * gnulib-tool: Likewise.
25313         * m4/bison.m4 (gl_BISON): Likewise.
25314         Suggested by Bruno Haible.
25315
25316 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25317
25318         more ports to Solaris tr, which needs [] around ranges
25319         * gnulib-tool: Solaris tr needs [] around ranges.
25320         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25321         * tests/test-pipe-filter-gi1.c (main): Likewise.
25322         * tests/test-pipe-filter-ii1.c (main): Likewise.
25323
25324 2010-10-05  Eric Blake  <eblake@redhat.com>
25325
25326         bootstrap: fix Solaris regression
25327         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25328         around ranges.
25329         Reported by Pádraig Brady.
25330
25331         bootstrap: work with pkg-config
25332         * build-aux/bootstrap (check_versions): Also transliterate - in
25333         prerequisite name.
25334         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25335         prerequisites that were already found, to avoid confusion.
25336         Reported by Justin Clift.
25337
25338         faccessat: remove unused wrappers
25339         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25340         presence of these wrappers dragged in -lgen on Solaris.
25341         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25342
25343 2010-10-05  Jim Meyering  <meyering@redhat.com>
25344
25345         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25346         * Makefile (sc_pragma_columns): New syntax-check rule.
25347
25348 2010-10-04  Bruno Haible  <bruno@clisp.org>
25349
25350         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25351         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25352         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25353         Reported by Bruce Korb and Eric Blake.
25354
25355 2010-10-04  Bruno Haible  <bruno@clisp.org>
25356
25357         threadlib: Make option --with-libpth-prefix work.
25358         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25359         use $LIBPTH, not just -lpth.
25360
25361 2010-10-04  Bruno Haible  <bruno@clisp.org>
25362
25363         Avoid line length limitation from HP NonStop system header files.
25364         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25365         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25366         * lib/ctype.in.h: Likewise.
25367         * lib/dirent.in.h: Likewise.
25368         * lib/errno.in.h: Likewise.
25369         * lib/fcntl.in.h: Likewise.
25370         * lib/float.in.h: Likewise.
25371         * lib/getopt.in.h: Likewise.
25372         * lib/iconv.in.h: Likewise.
25373         * lib/inttypes.in.h: Likewise.
25374         * lib/langinfo.in.h: Likewise.
25375         * lib/locale.in.h: Likewise.
25376         * lib/math.in.h: Likewise.
25377         * lib/netdb.in.h: Likewise.
25378         * lib/netinet_in.in.h: Likewise.
25379         * lib/poll.in.h: Likewise.
25380         * lib/pthread.in.h: Likewise.
25381         * lib/pty.in.h: Likewise.
25382         * lib/sched.in.h: Likewise.
25383         * lib/se-selinux.in.h: Likewise.
25384         * lib/search.in.h: Likewise.
25385         * lib/signal.in.h: Likewise.
25386         * lib/spawn.in.h: Likewise.
25387         * lib/stdarg.in.h: Likewise.
25388         * lib/stddef.in.h: Likewise.
25389         * lib/stdint.in.h: Likewise.
25390         * lib/stdio.in.h: Likewise.
25391         * lib/stdlib.in.h: Likewise.
25392         * lib/string.in.h: Likewise.
25393         * lib/strings.in.h: Likewise.
25394         * lib/sys_file.in.h: Likewise.
25395         * lib/sys_ioctl.in.h: Likewise.
25396         * lib/sys_select.in.h: Likewise.
25397         * lib/sys_socket.in.h: Likewise.
25398         * lib/sys_stat.in.h: Likewise.
25399         * lib/sys_time.in.h: Likewise.
25400         * lib/sys_times.in.h: Likewise.
25401         * lib/sys_utsname.in.h: Likewise.
25402         * lib/sys_wait.in.h: Likewise.
25403         * lib/sysexits.in.h: Likewise.
25404         * lib/termios.in.h: Likewise.
25405         * lib/time.in.h: Likewise.
25406         * lib/unistd.in.h: Likewise.
25407         * lib/wchar.in.h: Likewise.
25408         * lib/wctype.in.h: Likewise.
25409         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25410         * modules/ctype (Makefile.am): Likewise.
25411         * modules/dirent (Makefile.am): Likewise.
25412         * modules/errno (Makefile.am): Likewise.
25413         * modules/fcntl-h (Makefile.am): Likewise.
25414         * modules/float (Makefile.am): Likewise.
25415         * modules/getopt-posix (Makefile.am): Likewise.
25416         * modules/iconv-h (Makefile.am): Likewise.
25417         * modules/inttypes (Makefile.am): Likewise.
25418         * modules/langinfo (Makefile.am): Likewise.
25419         * modules/locale (Makefile.am): Likewise.
25420         * modules/math (Makefile.am): Likewise.
25421         * modules/netdb (Makefile.am): Likewise.
25422         * modules/netinet_in (Makefile.am): Likewise.
25423         * modules/poll-h (Makefile.am): Likewise.
25424         * modules/pthread (Makefile.am): Likewise.
25425         * modules/pty (Makefile.am): Likewise.
25426         * modules/sched (Makefile.am): Likewise.
25427         * modules/search (Makefile.am): Likewise.
25428         * modules/selinux-h (Makefile.am): Likewise.
25429         * modules/signal (Makefile.am): Likewise.
25430         * modules/spawn (Makefile.am): Likewise.
25431         * modules/stdarg (Makefile.am): Likewise.
25432         * modules/stddef (Makefile.am): Likewise.
25433         * modules/stdint (Makefile.am): Likewise.
25434         * modules/stdio (Makefile.am): Likewise.
25435         * modules/stdlib (Makefile.am): Likewise.
25436         * modules/string (Makefile.am): Likewise.
25437         * modules/strings (Makefile.am): Likewise.
25438         * modules/sys_file (Makefile.am): Likewise.
25439         * modules/sys_ioctl (Makefile.am): Likewise.
25440         * modules/sys_select (Makefile.am): Likewise.
25441         * modules/sys_socket (Makefile.am): Likewise.
25442         * modules/sys_stat (Makefile.am): Likewise.
25443         * modules/sys_time (Makefile.am): Likewise.
25444         * modules/sys_times (Makefile.am): Likewise.
25445         * modules/sys_utsname (Makefile.am): Likewise.
25446         * modules/sys_wait (Makefile.am): Likewise.
25447         * modules/sysexits (Makefile.am): Likewise.
25448         * modules/termios (Makefile.am): Likewise.
25449         * modules/time (Makefile.am): Likewise.
25450         * modules/unistd (Makefile.am): Likewise.
25451         * modules/wchar (Makefile.am): Likewise.
25452         * modules/wctype (Makefile.am): Likewise.
25453
25454 2010-10-04  Bruno Haible  <bruno@clisp.org>
25455
25456         read-file tests: Avoid a test failure on NonStop Kernel.
25457         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25458         a regular file.
25459         Reported by Joachim Schmitz <schmitz@hp.com>.
25460
25461 2010-10-03  Bruno Haible  <bruno@clisp.org>
25462
25463         gnulib-tool: Fixes for --create-testdir with --libtool.
25464         * gnulib-tool (func_get_automake_snippet): Don't augment
25465         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25466         an executable.
25467         (func_create_testdir): Handle module 'alloca' like func_import.
25468         Reported by Bruce Korb <bruce.korb@gmail.com>.
25469
25470 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25471
25472         Avoid some lines longer than 80 characters.
25473         * lib/stdint.in.h: Break long comment lines.
25474         * lib/math.in.h: Likewise.
25475         (_GL_NUM_UINT_WORDS): New macro, for readability.
25476         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25477         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25478         * lib/stdlib.in.h: Likewise.
25479         * lib/spawn.in.h: Likewise.
25480         * lib/sys_socket.in.h: Update an URL.
25481         * lib/sys_stat.in.h: Break long line.
25482
25483 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25484
25485         Improve pmccabe2html.
25486         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25487         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25488         when the sources change. Remove the line in the HTML about "Used
25489         ranges" (which implied that there might be other unused ranges),
25490         rename "Resume" to "Summary" (easier to understand for more users).
25491         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25492         styles, and some unnecessary blank lines.
25493
25494 2010-10-03  Bruno Haible  <bruno@clisp.org>
25495             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25496
25497         acl: Add support for ACLs on NonStop Kernel.
25498         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25499         Check whether the function aclsort() exists.
25500         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25501         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25502         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25503         (acl_nontrivial [HAVE_ACLSORT]: New function.
25504         (file_has_acl): Implement for NonStop Kernel.
25505         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25506         (qset_acl): Implement for NonStop Kernel.
25507         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25508         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25509         (main): Implement for NonStop Kernel.
25510         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25511         Kernel. Handle this flavor.
25512         * tests/test-set-mode-acl.sh: Likewise.
25513         * tests/test-copy-acl.sh: Likewise.
25514         * tests/test-copy-file.sh: Likewise.
25515
25516 2010-10-03  Bruno Haible  <bruno@clisp.org>
25517
25518         Info about ACLs on NonStop Kernel.
25519         * doc/acl-resources.txt: Add info about NonStop Kernel.
25520         References by Joachim Schmitz <schmitz@hp.com>.
25521
25522 2010-10-02  Bruno Haible  <bruno@clisp.org>
25523
25524         Define missing EDQUOT on NonStop Kernel.
25525         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25526         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25527         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25528         missing.
25529         * doc/posix-headers/errno.texi: Mention the NSK bug.
25530         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25531         Reported by Joachim Schmitz <schmitz@hp.com>.
25532
25533 2010-10-02  Bruno Haible  <bruno@clisp.org>
25534
25535         Update doc for POSIX:2008.
25536         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25537         Update URL of POSIX specification.
25538
25539 2010-10-02  Bruno Haible  <bruno@clisp.org>
25540
25541         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25542         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25543         from gnulib, not from Automake.
25544
25545 2010-10-02  Bruno Haible  <bruno@clisp.org>
25546
25547         New module 'system-posix'.
25548         * modules/system-posix: New file.
25549         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25550         module is present.
25551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25552         GNULIB_SYSTEM_POSIX.
25553         * modules/stdlib (Depends-on): Remove sys_wait.
25554         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25555         * doc/posix-functions/system.texi: Mention the new module.
25556         * doc/posix-headers/stdlib.texi: Likewise.
25557         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25558         define test_sys_wait_macros to a no-op.
25559         Reported by Sam Steingold <sds@gnu.org>.
25560
25561 2010-09-30  Bruno Haible  <bruno@clisp.org>
25562
25563         More renaming from 'getdate' to 'get_date'.
25564         * doc/get_date.texi: Renamed from doc/getdate.texi.
25565         * modules/get_date (Files): Update.
25566         * MODULES.html.sh (Date and time <time.h>): Update.
25567         * DEPENDENCIES: Update.
25568         * gnulib-tool: Update comment.
25569         * m4/bison.m4 (gl_BISON): Likewise.
25570         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25571
25572 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25573
25574         bootstrap: support ACLOCAL_FLAGS during aclocal
25575         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25576         can add additional -I dir for third-party .m4 files.
25577
25578 2010-09-30  Eric Blake  <eblake@redhat.com>
25579
25580         bootstrap: use glibtoolize on MacOS
25581         * build-aux/bootstrap (check_versions): Convert libtool into
25582         libtoolize.
25583         (tool search): Move libtool check earlier, and look for
25584         glibtoolize for MacOS.
25585         (gnulib_tool_options): Auto-add --libtool when appropriate.
25586         Reported by Justin Clift.
25587
25588         poll: fix typo that broke test on MacOS
25589         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25590         Reported by Justin Clift.
25591
25592         getdate: rename to get_date
25593         Note: getdate.h is not renamed, to minimize client impact.
25594         * modules/getdate: Mark obsolete.  Move old contents...
25595         * modules/get_date: ...to new module name.
25596         * modules/getdate-tests: Move...
25597         * modules/get_date-tests: ...here.
25598         * m4/getdate.m4: Move...
25599         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25600         * lib/getdate.y: Move...
25601         * lib/get_date.y: ...here.
25602         * tests/test-getdate.c: Move...
25603         * tests/test-get_date.c: ...here.
25604         * doc/posix-functions/getdate.texi (getdate): Update name.
25605         * NEWS: Mention the change.
25606
25607 2010-09-29  Bruno Haible  <bruno@clisp.org>
25608
25609         Separate the module 'waitpid' from the module 'sys_wait'.
25610         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25611         present.
25612         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25613         gl_MODULE_INDICATOR_FOR_TESTS.
25614         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25615         * modules/sys_wait (Depends-on): Remove waitpid.
25616         (Makefile.am): Substitute GNULIB_WAITPID.
25617         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25618         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25619         signature only if the 'waitpid' module is present.
25620         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25621         * NEWS: Mention the change.
25622         * modules/grantpt (Depends-on): Add waitpid.
25623         * modules/wait-process (Depends-on): Likewise.
25624
25625 2010-09-29  Bruno Haible  <bruno@clisp.org>
25626
25627         More tests for module 'sys_wait'.
25628         * modules/sys_wait-c++-tests: New file.
25629         * tests/test-sys_wait-c++.cc: New file.
25630         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25631         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25632
25633 2010-09-29  Bruno Haible  <bruno@clisp.org>
25634
25635         New module 'waitpid'.
25636         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25637         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25638         Don't include <process.h>.
25639         (waitpid): Declare only, using modern idiom.
25640         * m4/waitpid.m4: New file.
25641         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25642         * modules/waitpid: New file.
25643         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25644         (Makefile.am): Update.
25645         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25646
25647 2010-09-28  Bruno Haible  <bruno@clisp.org>
25648
25649         poll: Assume ANSI C.
25650         * lib/poll.c (poll): Use an ANSI C declaration.
25651
25652 2010-09-28  Bruno Haible  <bruno@clisp.org>
25653
25654         poll-h: Create poll.h on all platforms.
25655         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25656         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25657         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25658         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25659         (gl_REPLACE_POLL_H): Don't set POLL_H.
25660         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25661         * modules/poll-h (Depends-on): Add include_next.
25662         (Makefile.am): Create poll.h unconditionally. Substitute also
25663         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25664
25665 2010-09-28  Bruno Haible  <bruno@clisp.org>
25666
25667         Tests for module 'poll-h'.
25668         * modules/poll-h-c++-tests: New file.
25669         * tests/test-poll-h-c++.cc: New file.
25670
25671         Tests for module 'poll-h'.
25672         * modules/poll-h-tests: New file.
25673         * tests/test-poll-h.c: New file.
25674
25675 2010-09-28  Bruno Haible  <bruno@clisp.org>
25676
25677         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25678         * modules/poll-h (Depends-on): Add 'extensions'.
25679
25680 2010-09-28  Bruno Haible  <bruno@clisp.org>
25681
25682         New module 'poll-h'.
25683         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25684         (poll): Use modern idiom.
25685         * modules/poll-h: New file.
25686         * modules/poll (Files): Remove lib/poll.in.h.
25687         (Depends-on): Add poll-h.
25688         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25689         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25690         * m4/poll_h.m4: New file.
25691         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25692         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25693         and invoke gl_REPLACE_POLL_H.
25694         * lib/poll.c: Use common idiom.
25695         * tests/test-poll.c: Likewise.
25696         * doc/posix-headers/poll.texi: Mention the poll-h module.
25697         Suggested by Eric Blake.
25698
25699 2010-09-26  Bruno Haible  <bruno@clisp.org>
25700
25701         sys_wait: Implement WSTOPSIG.
25702         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25703         Reported by Simon Josefsson.
25704
25705 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25706
25707         stdlib, sys_wait: Avoid compilation error on mingw.
25708         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25709
25710 2010-09-26  Bruno Haible  <bruno@clisp.org>
25711
25712         stdlib tests: Avoid code duplication.
25713         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25714         * modules/sys_wait-tests (Files): Likewise.
25715         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25716         * tests/test-stdlib.c: Include test-sys_wait.h.
25717         (main): Invoke test_sys_wait_macros.
25718         * tests/test-sys_wait.c: Include test-sys_wait.h.
25719         (main): Invoke test_sys_wait_macros.
25720
25721 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25722
25723         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25724         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25725         sure Windows sockets are working before calling getaddrinfo.
25726         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25727         * doc/gnulib.texi (Windows sockets): Fix typo.
25728
25729 2010-09-25  Bruno Haible  <bruno@clisp.org>
25730
25731         Tests for module 'regex-quote'.
25732         * modules/regex-quote-tests: New file.
25733         * tests/test-regex-quote.c: New file.
25734
25735         New module 'regex-quote'.
25736         * lib/regex-quote.h: New file.
25737         * lib/regex-quote.c: New file.
25738         * modules/regex-quote: New file.
25739         Suggested by Reuben Thomas <rrt@sc3d.org>.
25740
25741 2010-09-24  Bruno Haible  <bruno@clisp.org>
25742
25743         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25744         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25745
25746 2010-09-23  Bruno Haible  <bruno@clisp.org>
25747
25748         setenv: Relax license.
25749         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25750         Blake.
25751         Requested by Eric Blake.
25752
25753 2010-09-22  Bruno Haible  <bruno@clisp.org>
25754
25755         termios: Relax license.
25756         * modules/termios (License): Change to LGPLv2+.
25757         Requested by Eric Blake.
25758
25759 2010-09-22  Bruno Haible  <bruno@clisp.org>
25760
25761         threadlib: Allow the package to change the default to 'no'.
25762         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25763         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25764         Reported by Paul Eggert.
25765
25766 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25767             Bruno Haible  <bruno@clisp.org>
25768
25769         Fix endless loop in mbmemcasecoll.
25770         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25771         byte.
25772         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25773
25774 2010-09-22  Bruno Haible  <bruno@clisp.org>
25775
25776         Tests for module 'memcoll'.
25777         * modules/memcoll-tests: New file.
25778         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25779
25780         memcoll, xmemcoll: Clarify size vs. length.
25781         * modules/memcoll.c (memcoll0): Clarify specification.
25782         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25783         passed to collate_error.
25784
25785 2010-09-22  Bruno Haible  <bruno@clisp.org>
25786
25787         Tests for module 'memcasecmp'.
25788         * modules/memcasecmp-tests: New file.
25789         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25790
25791 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25792
25793         * lib/pthread.in.h: Add split double-inclusion guard, and include
25794         system <pthread.h> if there is one.  Use @@-style as in other
25795         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25796         pthread.h doesn't.
25797         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25798         (pthread_mutexattr_settype, pthread_mutex_trylock):
25799         New static inline functions, if there's no system <pthread.h>.
25800         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25801         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25802         Approximate with mutexes if the system lacks spinlocks, as in
25803         MacOS.
25804         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25805         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25806         @@-style.  Check for spinlocks separately.
25807         (gl_PTHREAD_DEFAULTS): New macro.
25808         * modules/pthread: Redo to use a more typical style for in.h files.
25809
25810 2010-09-21  Eric Blake  <eblake@redhat.com>
25811
25812         net_if: enhance tests
25813         * tests/test-net_if.c (main): Move signature checks earlier.
25814         Print failures to stderr.
25815         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25816         Document the bug that we do not yet fix.
25817
25818 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25819
25820         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25821         about gnulib, not GSS.
25822
25823 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25824
25825         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25826         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25827         for Emacs.
25828         * build-aux/pmccabe2html: Make Makefile.am example code more
25829         cut-and-paste friendly.
25830
25831 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25832
25833         * tests/test-net_if.c: New file.
25834         * modules/net_if-tests: New file.
25835
25836 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25837
25838         pthread: add pthread_spin_destroy
25839         * lib/pthread.in.h (pthread_spin_destroy): New function.
25840
25841 2010-09-19  Bruno Haible  <bruno@clisp.org>
25842
25843         gnulib-tool: Fix --help output.
25844         * gnulib-tool (func_usage): Fix help message.
25845         Reported by Reuben Thomas <rrt@sc3d.org>.
25846
25847 2010-09-18  Jim Meyering  <meyering@redhat.com>
25848
25849         maint.mk: avoid unexpanded \n in two diagnostics
25850         * top/maint.mk (sc_prohibit_always_true_header_tests):
25851         Don't use a literal \n in a halt=... assignment.  It would not be
25852         expanded, and the two \n bytes would appear in the diagnostic output
25853         rather than the desired newline.  Use halt=$$(printf ... instead.
25854         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25855
25856 2010-09-18  Bruno Haible  <bruno@clisp.org>
25857
25858         netinet_in: Doc tweak.
25859         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25860         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25861
25862 2010-09-18  Jim Meyering  <meyering@redhat.com>
25863
25864         init.sh: correct an outdated comment
25865         * tests/init.sh (create_exe_shims_):  s/function/alias/
25866
25867         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25868         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25869         a file named "*.exe" is removed between the glob expansion and the
25870         processing of that oddly named file.
25871
25872 2010-09-17  Eric Blake  <eblake@redhat.com>
25873
25874         mirbsd: add some more support
25875         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25876         in BSD family.
25877         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25878         devices as OpenBSD.
25879         * m4/host-os.m4 (mirbsd): Add MirBSD.
25880
25881         tests: fix unportable assumption on sys/wait.h
25882         * tests/test-sys_wait.c (main): Relax test.
25883         * tests/test-stdlib.c (main): Likewise.
25884
25885         init.sh: accomodate directory with no .exes
25886         * tests/init.sh: Accomodate directory containing only scripts.
25887
25888         tests: avoid compiler warning
25889         * tests/test-stdlib.c (main): Use the variable.
25890
25891         fdutimens, fdutimensat: update signature, again
25892         * lib/utimens.h (gl_futimens): Delete, and move signature...
25893         (fdutimens): ...here.
25894         (fdutimensat): Rearrange signature.
25895         (lutimensat): Rename variable for clarity.
25896         * lib/fdutimensat.c (fdutimensat): Update signature.
25897         * lib/utimens.c (fdutimens): Likewise.
25898         (gl_futimens): Delete.
25899         (utimens, lutimens): Update callers.
25900         * lib/futimens.c (futimens): Likewise.
25901         * tests/test-fdutimensat.c: Likewise.
25902         * tests/test-utimens.c: Likewise.
25903         * tests/test-futimens.h: Update comment.
25904         * NEWS: Mention this.
25905         Suggested by Paul Eggert.
25906
25907 2010-09-17  Bruno Haible  <bruno@clisp.org>
25908
25909         Take over the maintenance of some older macros from Autoconf.
25910         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25911         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25912         GNU Autoconf.
25913         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25914         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25915
25916 2010-09-17  Eric Blake  <eblake@redhat.com>
25917
25918         fdutimensat: drop atflag validation
25919         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25920         with valid fd, to close a race scenario where futimens is
25921         unsupported and FILE was replaced by a symlink.
25922         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25923         accordingly.
25924         Suggested by Paul Eggert.
25925
25926 2010-09-16  Bruno Haible  <bruno@clisp.org>
25927
25928         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25929         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25930
25931 2010-09-16  Bruno Haible  <bruno@clisp.org>
25932
25933         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25934         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25935         login_tty exists.
25936         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25937
25938 2010-09-16  Bruno Haible  <bruno@clisp.org>
25939
25940         login_tty: Make the replacement code work on BSD systems.
25941         * lib/login_tty.c: Include <sys/ioctl.h>.
25942         (login_tty): Use ioctl TIOCSCTTY when available.
25943         * modules/login_tty (Depends-on): Add sys_ioctl.
25944         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25945
25946 2010-09-16  Bruno Haible  <bruno@clisp.org>
25947
25948         login_tty: Stricter unit test.
25949         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25950         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25951         and tcgetsid() after login_tty.
25952         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25953
25954 2010-09-16  Bruno Haible  <bruno@clisp.org>
25955
25956         New module 'tcgetsid'.
25957         * lib/tcgetsid.c: New file.
25958         * m4/tcgetsid.m4: New file.
25959         * modules/tcgetsid: New file.
25960         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25961         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25962         GNULIB_TCGETSID, HAVE_TCGETSID.
25963         * lib/termios.in.h: Include <sys/types.h>.
25964         (tcgetsid): New declaration.
25965         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25966         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25967         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25968         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25969
25970 2010-09-16  Bruno Haible  <bruno@clisp.org>
25971
25972         Tests for module 'termios'.
25973         * modules/termios-c++-tests: New file.
25974         * modules/termios-tests: New file.
25975         * tests/test-termios-c++.cc: New file.
25976         * tests/test-termios.c: New file.
25977
25978         New module 'termios'.
25979         * modules/termios: New file.
25980         * lib/termios.in.h: New file.
25981         * m4/termios_h.m4: New file.
25982         * doc/posix-headers/termios.texi: Mention the new module.
25983
25984 2010-09-16  Eric Blake  <eblake@redhat.com>
25985
25986         fdutimensat: add an atflag parameter
25987         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25988         * lib/utimens.h (fdutimensat): Update prototype.
25989         * tests/test-fdutimensat.c: Adjust test to match.
25990         * NEWS: Document the change.
25991         Suggested by Paul Eggert.
25992
25993 2010-09-16  Bruno Haible  <bruno@clisp.org>
25994
25995         Fix typos in comments.
25996         * lib/striconveh.h: Fix typo in comment.
25997         * lib/login_tty.c (login_tty): Likewise.
25998
25999 2010-09-15  Bruno Haible  <bruno@clisp.org>
26000
26001         stdlib: clarify MirBSD WEXITSTATUS bug
26002         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26003         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26004
26005 2010-09-15  Eric Blake  <eblake@redhat.com>
26006
26007         stdlib: work around MirBSD WEXITSTATUS bug
26008         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26009         * modules/stdlib (Depends-on): Add sys_wait.
26010         * tests/test-sys_wait.c (main): Enhance test.
26011         * tests/test-stdlib.c (main): Likewise.
26012         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26013
26014         docs: mention MacOS issue with WEXITSTATUS(constant)
26015         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26016         issue.
26017         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26018
26019         strnlen: add tests
26020         * modules/strnlen-tests: New file.
26021         * tests/test-strnlen.c: Likewise.
26022
26023 2010-09-14  Bruno Haible  <bruno@clisp.org>
26024
26025         unistr/base: Avoid link errors when module 'libunistring' is also used.
26026         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26027         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26028         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26029         Declare also when HAVE_LIBUNISTRING is set.
26030         Reported by Pádraig Brady <P@draigbrady.com>.
26031
26032 2010-09-14  Eric Blake  <eblake@redhat.com>
26033
26034         test-rawmemchr: make more robust
26035         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26036         (Depends-on, configure.ac): Add needed prerequisites to use it.
26037         * modules/memchr-tests (Files, Depends-on, configure.ac):
26038         Likewise, to avoid implicit reliance on memchr module prereqs.
26039         * tests/test-memchr.c (main): Ensure proper masking.
26040         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26041         reads.
26042
26043         memchr: detect glibc Alpha bug
26044         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26045         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26046         Alpha.
26047         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26048         * tests/test-memchr.c (main): Enhance test.
26049         Reported by Nelson H. F. Beebe.
26050
26051 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26052
26053         fts, getcwd, glob: audit for dirfd returning -1
26054         * lib/fts.c (opendir): Remove #define; no longer used.
26055         (opendirat): New arg PDIR_FD.  All callers changed.
26056         (fts_build, _opendir2): Use new opendirat to avoid the need for
26057         dirfd, or for checking whether dirfd returns a negative value.
26058         Don't use opendir; always use openat followed by fdopendir.
26059         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26060         it.
26061         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26062         returns -1 here.
26063         * modules/fts (Depends-on): Remove dirfd.
26064         * modules/getcwd (Depends-on): Likewise.
26065
26066 2010-09-13  Eric Blake  <eblake@redhat.com>
26067
26068         float: fix broken MirBSD header
26069         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26070         * doc/posix-headers/float.texi (float.h): Document it.
26071
26072 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26073
26074         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26075         * lib/fts.c (opendirat): New arg extra_flags.
26076         (__opendir2): Use it to avoid following symlinks when opening
26077         a directory, if symlinks are not supposed to be followed.  See
26078         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26079
26080         fdopendir: preserve argument fd before returning
26081         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26082         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26083         (fdopendir): Use them, arranging for FD to be open to the same
26084         directory that it was when it started.  (It might be temporarily
26085         closed while fdopendir is running, so this not thread- or
26086         signal-safe.)  Be careful to do the right thing even when file
26087         descriptors are scarce and dup fails with errno == EMFILE.  See
26088         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26089
26090 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26091
26092         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26093         * NEWS: Document change.
26094         * m4/regex.m4: Disable test for regoff_t size.
26095
26096 2010-09-13  Jim Meyering  <meyering@redhat.com>
26097
26098         fts: don't operate on an invalid file descriptor after failed dup
26099         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26100         negative file descriptor.
26101
26102 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26103
26104         savedir: add streamsavedir, deprecate fdsavedir
26105         * NEWS: Mention deprecation of fdsavedir.
26106         * lib/savedir.c (streamsavedir): New extern function, whose name
26107         ends in "savedir" to be consistent with the others.  This differs
26108         from savedirstream in that it doesn't close its argument.  The
26109         next version of GNU tar will use this instead of fdsavedir, to
26110         avoid some race conditions and conserve file descriptors.
26111         (savedirstream): Reimplement as a wrapper around streamsavedir.
26112         (fdsavedir): Add a comment deprecating this function.  As far as
26113         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26114         * lib/savedir.h (streamsavedir): New decl.
26115         (fdsavedir): Add a comment deprecating this.
26116
26117 2010-09-10  Bruno Haible  <bruno@clisp.org>
26118
26119         langinfo: Fix last commit.
26120         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26121         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26122         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26123
26124 2010-09-10  Bruno Haible  <bruno@clisp.org>
26125
26126         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26127         * lib/progreloc.c (O_EXEC): Define fallback.
26128
26129 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26130
26131         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26132         * NEWS: Document recent changes to fcntl-h.
26133         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26134         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26135         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26136         Similarly for O_SEARCH; this last was already true, but not documented.
26137         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26138         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26139         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26140         Likewise.
26141         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26142         is zero, not whether it is defined.
26143         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26144         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26145         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26146
26147 2010-09-10  Bruno Haible  <bruno@clisp.org>
26148
26149         langinfo, nl_langinfo: Fix for IRIX 5.3.
26150         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26151         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26152         HAVE_LANGINFO_YESEXPR.
26153         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26154         HAVE_LANGINFO_YESEXPR.
26155         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26156         HAVE_LANGINFO_T_FMT_AMPM is 0.
26157         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26158         HAVE_LANGINFO_YESEXPR is 0.
26159         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26160         NOEXPR.
26161         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26162         * doc/posix-functions/nl_langinfo.texi: Likewise.
26163         Reported by Eric Blake.
26164
26165 2010-09-10  Bruno Haible  <bruno@clisp.org>
26166
26167         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26168         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26169         on FreeBSD 8.0 and OpenBSD 4.6.
26170         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26171         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26172         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26173         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26174         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26175         ac_includes_default.
26176         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26177
26178 2010-09-09  Eric Blake  <eblake@redhat.com>
26179
26180         strsignal: work around NetBSD bug
26181         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26182         * lib/string.in.h (includes): Likewise.
26183         * doc/posix-functions/strsignal.texi (strsignal): Document the
26184         bug.
26185         Reported by Nelson H. F. Beebe.
26186
26187         gnulib-tool: work with NetBSD /bin/sh
26188         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26189         (func_get_description, func_get_comment, func_get_status)
26190         (func_get_notice, func_get_applicability, func_get_filelist)
26191         (func_get_dependencies, func_get_autoconf_early_snippet)
26192         (func_get_autoconf_snippet, func_get_automake_snippet)
26193         (func_get_include_directive, func_get_link_directive)
26194         (func_get_license, func_get_maintainer, func_import): Avoid
26195         shell syntax errors from parsing syntax extensions.
26196
26197 2010-09-09  Bruno Haible  <bruno@clisp.org>
26198
26199         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26200         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26201         a reliable way to determine whether the 'alias' command works.
26202
26203 2010-09-08  Jim Meyering  <meyering@redhat.com>
26204
26205         init.sh: penalize a set-x-impaired shell; don't disqualify it
26206         * tests/init.sh: Too many shells corrupt application stderr when
26207         you set -x, so we can't afford to disqualify them, since at least
26208         on Irix-6.5, that would disqualify all bourne shells.
26209         Instead, use a two-pass approach.
26210         On the first pass, try to find a shell that meets the stricter
26211         condition that set -x does not corrupt stderr.
26212         If no shell meets the stricter condition, retest each candidate
26213         shell, but without that extra condition.  Finally, when
26214         VERBOSE=yes is requested and set -x might cause trouble, simply
26215         issue a warning and refrain from enabling debug output.
26216
26217 2010-09-08  Eric Blake  <eblake@redhat.com>
26218
26219         unsetenv: fix OpenBSD bug
26220         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26221         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26222         documentation.
26223         Reported by Jim Meyering.
26224
26225         strtod: work around IRIX 6.5 bug
26226         * lib/strtod.c (strtod): Reparse number on shorter string if
26227         exponent parse was invalid.
26228         * tests/test-strtod.c (main): Add check for "0x1p 2".
26229         Reported by Tom G. Christensen.
26230
26231         getopt: optimize previous patch
26232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26233         empty variable.  Speed up awk script.
26234         Reported by Paolo Bonzini.
26235
26236 2010-09-08  Jim Meyering  <meyering@redhat.com>
26237
26238         test.sh: disqualify shells for which set -x corrupts stderr
26239         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26240         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26241         appear in stderr output.  For example, this command:
26242             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26243         prints "P=1" on those two systems:
26244
26245 2010-09-08  Bruno Haible  <bruno@clisp.org>
26246
26247         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26248         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26249         commands, because some shells ignore redirections when there is an
26250         error in the command lookup.
26251         Reported by Eric Blake.
26252
26253 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26254
26255         * lib/regex.h: Fix a mention of `regex_compile' (should be
26256         `re_compile_pattern').
26257         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26258         (re_set_registers): Correct name of parameter in comment.
26259
26260         * doc/regex.texi: Add documentation for missing syntax flags.
26261         Remove commented-out documentation of defunct syntax option
26262         RE_NO_EMPTY_ALTS.
26263         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26264         Add documentation of re_set_registers.
26265         Document trick to re-use a pattern buffer by setting fastmap manually.
26266         Update documentation of struct re_pattern_buffer per public members.
26267         Uncomment documentation of equivalence class operators and
26268         collating symbol operators, since they are now implemented,
26269         Explain leftmost-longest matching in relation to alternatives.
26270         Tidy documentation of substring matching.
26271         Remove POSIX documentation, which is done better in
26272         glibc, and refer the reader there. Keep BSD API documentation, as
26273         that is not readily available elsewhere.
26274
26275 2010-09-07  Eric Blake  <eblake@redhat.com>
26276
26277         getopt: handle POSIXLY_CORRECT set but not exported
26278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26279         export state of POSIXLY_CORRECT, due to bash set -o posix.
26280         Reported by Dustin J. Mitchell.
26281
26282 2010-09-05  Bruno Haible  <bruno@clisp.org>
26283
26284         gnulib-tool: Highlight the changed options.
26285         * gnulib-tool (func_usage): Display the --import, --add-import,
26286         --remove-import explanations in bold font.
26287
26288 2010-09-06  Karl Berry  <karl@gnu.org>
26289
26290         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26291
26292 2010-09-05  Bruno Haible  <bruno@clisp.org>
26293
26294         uniwidth/width: Update comment.
26295         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26296         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26297
26298 2010-09-05  Bruno Haible  <bruno@clisp.org>
26299
26300         isinf, isnan: Relax license.
26301         * modules/isinf (License): Change from GPL to LGPL, with consent from
26302         Ben Pfaff.
26303         * modules/isnan (License): Likewise.
26304         Requested by Ludovic Courtès.
26305
26306 2010-09-04  Bruno Haible  <bruno@clisp.org>
26307
26308         gnulib-tool: Help migration from --import to --add-import or --update.
26309         * gnulib-tool: Emit a verbose error message when --import is used
26310         without any module name.
26311
26312 2010-09-04  Bruno Haible  <bruno@clisp.org>
26313
26314         Update doc about gnulib-tool.
26315         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26316         'gnulib-tool --update' in more detail.
26317         Reported by Eric Blake.
26318
26319 2010-09-04  Bruno Haible  <bruno@clisp.org>
26320
26321         gnulib-tool: Change --import. New options --add/remove-import.
26322         * gnulib-tool: New options --add-import, --remove-import.
26323         (func_usage): Document them.
26324         (have_associative): Define always.
26325         (func_import): In import mode, don't merge the specified settings with
26326         the cached settings. Implement remove-import mode.
26327         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26328         Explain when to use them versus --import.
26329         (Simple update): Use --add-import instead of --import.
26330         * NEWS: Mention the change.
26331
26332 2010-09-04  Bruno Haible  <bruno@clisp.org>
26333
26334         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26335         separate gnulib.mk.
26336
26337 2010-09-04  Bruno Haible  <bruno@clisp.org>
26338
26339         gnulib-tool: Don't talk about CVS any more.
26340         * gnulib-tool (func_usage, func_import): Write "version control"
26341         instead of CVS.
26342
26343 2010-09-04  Jim Meyering  <meyering@redhat.com>
26344
26345         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26346         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26347         false positives (whose names may be ill-chosen) when searching
26348         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26349         would cause a false-positive.
26350
26351         avoid coreutils "make distcheck" failure
26352         Coreutils tests with an absolute build directory name that contains
26353         a space.  Not quoting this directory name caused a failure.
26354         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26355         * tests/test-vc-list-files-cvs.sh: Likewise.
26356
26357 2010-09-04  Bruno Haible  <bruno@clisp.org>
26358
26359         gnulib-tool: Avoid error when run in a package without Makefile.am.
26360         * gnulib-tool: When collecting the m4dirs in a package that does not
26361         have a Makefile.am, eliminate those directories that contain no
26362         gnulib-cache.m4. Fix expression that counts these directories.
26363
26364 2010-09-04  Bruno Haible  <bruno@clisp.org>
26365
26366         update-copyright test: Improve output when perl is missing or too old.
26367         * tests/test-update-copyright.sh: Move test of Perl version down after
26368         the test whether Perl exists. Provide an explanation relating Perl's
26369         error message to Automake's SKIP: message.
26370
26371 2010-09-04  Bruno Haible  <bruno@clisp.org>
26372
26373         Don't augment PATH in TESTS_ENVIRONMENT.
26374         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26375         set abs_aux_dir instead of augmenting PATH.
26376         * modules/vc-list-files-tests (Makefile.am): Likewise.
26377         * tests/test-update-copyright.sh: Augment PATH here.
26378         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26379         path_prepend_.
26380         * tests/test-vc-list-files-git.sh: Likewise.
26381
26382 2010-09-04  Jim Meyering  <meyering@redhat.com>
26383
26384         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26385         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26386
26387 2010-09-04  Bruno Haible  <bruno@clisp.org>
26388
26389         strdup: Fix compilation error in C++ mode.
26390         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26391         the macro.
26392
26393 2010-09-04  Bruno Haible  <bruno@clisp.org>
26394
26395         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26396         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26397         macro into a function.
26398         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26399
26400 2010-09-04  Bruno Haible  <bruno@clisp.org>
26401
26402         Set PATH_SEPARATOR the same way autoconf does.
26403         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26404         the value of PATH_SEPARATOR the same way autoconf-generated configure
26405         scripts do.
26406         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26407         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26408
26409 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26410
26411         Set PATH_SEPARATOR the same way autoconf does.
26412         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26413         the same way autoconf-generated configure scripts do.
26414         * posix-modules: Likewise.
26415
26416 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26417
26418         hash: fix safe_hasher const typo
26419         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26420         const; otherwise, there is a type error later.
26421
26422 2010-09-02  Jim Meyering  <meyering@redhat.com>
26423
26424         test-update-copyright.sh: require perl 5.8.0
26425         * tests/test-update-copyright.sh: Require 5.8.0,
26426         which Tom G. Christensen has confirmed is adequate,
26427         while 5.6.1 is not.
26428
26429 2010-09-02  Eric Blake  <eblake@redhat.com>
26430
26431         tests: init.sh improvements for re-exec'ing with zsh
26432         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26433         -vx through shell re-exec.
26434         Reported by Tom G. Christensen.
26435
26436         wctype: fix typo in previous commit
26437         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26438         Reported by Ludovic Courtès.
26439
26440 2010-09-02  Jim Meyering  <meyering@redhat.com>
26441
26442         test-update-copyright.sh: skip test if Perl is too old
26443         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26444         Reported by Tom G. Christensen.
26445
26446 2010-09-02  Bruno Haible  <bruno@clisp.org>
26447
26448         wctype: Avoid compilation error on IRIX 6.5.30.
26449         * lib/wctype.in.h (iswblank): Declare with a replacement if
26450         REPLACE_ISWBLANK is set.
26451         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26452         declared. Set REPLACE_ISWBLANK.
26453         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26454         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26455         * doc/posix-headers/wctype.texi: Likewise.
26456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26457
26458 2010-09-01  Bruno Haible  <bruno@clisp.org>
26459
26460         New module 'socketlib'.
26461         * modules/socketlib: New file.
26462         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26463         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26464         * modules/sockets (Depends-on): Add socketlib.
26465         Suggested by Sam Steingold <sds@gnu.org>.
26466
26467 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26468
26469         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26470
26471         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26472         when one needs search access to a directory but not read access.
26473         On systems where it is available, it works in some cases where
26474         O_RDONLY does not, namely on directories that are searchable but
26475         not readable, and which need only to be searchable.  If O_SEARCH
26476         is not available, fall back to the traditional method of using
26477         O_RDONLY.
26478
26479         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26480         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26481         when opening a directory that needs only to be searchable.
26482         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26483         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26484         * lib/openat-proc.c (openat_proc_name): Likewise.
26485         * lib/openat.c (openat_needs_fchdir): Likewise.
26486         * lib/save-cwd.c (save_cwd): Likewise.
26487         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26488
26489 2010-08-28  Bruno Haible  <bruno@clisp.org>
26490
26491         New module 'host-cpu-c-abi'.
26492         * modules/host-cpu-c-abi: New file.
26493         * m4/host-cpu-c-abi.m4: New file, based on part of
26494         clisp/src/m4/general.m4.
26495         Requested by Sam Steingold <sds@gnu.org>.
26496
26497 2010-08-31  Eric Blake  <eblake@redhat.com>
26498         and Jim Meyering  <meyering@redhat.com>
26499
26500         hash: factor, and guard against misbehaving hasher function
26501         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26502         of table->hasher's return value.  Also protect against a hash value
26503         so large that adding it to table->bucket results in a NULL pointer.
26504         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26505         Use it in place of open-coded check-and-abort.
26506
26507 2010-08-30  Bruno Haible  <bruno@clisp.org>
26508
26509         hash: silence spurious clang warning
26510         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26511         Reported by Eric Blake.
26512
26513 2010-08-30  Eric Blake  <eblake@redhat.com>
26514
26515         strstr, memmem, strcasestr: avoid leaked shell message
26516         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26517         FreeBSD.
26518         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26519         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26520
26521         tests: silence clang warning
26522         * tests/test-malloca.c (do_allocation): Avoid dead store.
26523
26524 2010-08-29  Bruno Haible  <bruno@clisp.org>
26525
26526         gettext: Fix recent mistake.
26527         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26528
26529 2010-08-29  Bruno Haible  <bruno@clisp.org>
26530
26531         selinux-h: Offer a --without-selinux option.
26532         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26533         --without-selinux was specified, skip all tests and define
26534         HAVE_SELINUX_SELINUX_H to 0.
26535         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26536         set LIB_SELINUX to empty.
26537         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26538         gl_LIBSELINUX. If --without-selinux was specified, replace
26539         selinux/context.h.
26540         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26541
26542 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26543             Bruno Haible  <bruno@clisp.org>
26544
26545         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26546         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26547         of HAVE_REALLOC.
26548         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26549         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26550         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26551         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26552
26553 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26554             Bruno Haible  <bruno@clisp.org>
26555
26556         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26557         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26558         HAVE_CALLOC.
26559         * lib/xmalloc.c: Update accordingly.
26560         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26561         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26562         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26563
26564 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26565             Bruno Haible  <bruno@clisp.org>
26566
26567         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26568         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26569         HAVE_MALLOC.
26570         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26571         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26572         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26573
26574 2010-08-29  Bruno Haible  <bruno@clisp.org>
26575
26576         Update modules list.
26577         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26578         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26579         (String handling <string.h>): Add astrxfrm.
26580         (File system functions): Add readlinkat.
26581
26582 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26583
26584         Tests for module 'realloc-gnu'.
26585         * modules/realloc-gnu-tests: New file.
26586         * tests/test-realloc-gnu.c: New file.
26587
26588         Tests for module 'calloc-gnu'.
26589         * modules/calloc-gnu-tests: New file.
26590         * tests/test-calloc-gnu.c: New file.
26591
26592         Tests for module 'malloc-gnu'.
26593         * modules/malloc-gnu-tests: New file.
26594         * tests/test-malloc-gnu.c: New file.
26595
26596 2010-08-28  Bruno Haible  <bruno@clisp.org>
26597
26598         Rename module 'realloc' -> 'realloc-gnu'.
26599         * modules/realloc-gnu: New file, copied from modules/realloc.
26600         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26601         obsolete.
26602         * modules/mgetgroups (Depends-on): Update.
26603         * doc/posix-functions/realloc.texi: Update.
26604         * NEWS: Mention the change.
26605
26606         Rename module 'calloc' -> 'calloc-gnu'.
26607         * modules/calloc-gnu: New file, copied from modules/calloc.
26608         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26609         obsolete.
26610         * doc/posix-functions/calloc.texi: Update.
26611         * NEWS: Mention the change.
26612
26613         Rename module 'malloc' -> 'malloc-gnu'.
26614         * modules/malloc-gnu: New file, copied from modules/malloc.
26615         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26616         obsolete.
26617         * modules/argp (Depends-on): Update.
26618         * modules/regex (Depends-on): Update.
26619         * doc/posix-functions/malloc.texi: Update.
26620         * NEWS: Mention the change.
26621
26622 2010-08-28  Eric Blake  <eblake@redhat.com>
26623
26624         pread, pwrite: add missing dependency
26625         * modules/pread (Depends-on): Add extensions.
26626         * modules/pwrite (Depends-on): Likewise.
26627
26628 2010-08-28  Bruno Haible  <bruno@clisp.org>
26629
26630         unistr/u*-strchr: Fix tests dependencies.
26631         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26632         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26633         Reported by Ian Beckwith <ianb@erislabs.net>.
26634
26635 2010-08-28  Bruno Haible  <bruno@clisp.org>
26636
26637         read-file: Don't occupy too much unused memory.
26638         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26639
26640 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26641             Eric Blake  <eblake@redhat.com>
26642             Bruno Haible  <bruno@clisp.org>
26643
26644         read-file: Avoid memory reallocations with regular files.
26645         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26646         (fread_file): With regular files, use the remaining length as the
26647         initial buffer size.  Check against overflow.
26648         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26649         sys_stat.
26650
26651 2010-08-28  Bruno Haible  <bruno@clisp.org>
26652
26653         ftello: Relax license.
26654         * modules/ftello (License): Relax to LGPLv2+.
26655         Reported by Eric Blake.
26656
26657 2010-08-28  Bruno Haible  <bruno@clisp.org>
26658
26659         Avoid relocwrapper link errors due to gnulib replacement functions.
26660         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26661         function.
26662         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26663
26664 2010-08-28  Bruno Haible  <bruno@clisp.org>
26665
26666         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26667         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26668         defined.
26669         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26670         Suggested by Eric Blake.
26671
26672 2010-08-28  Bruno Haible  <bruno@clisp.org>
26673
26674         sys_socket, netdb: Ensure socklen_t gets defined.
26675         * modules/sys_socket (Depends-on): Add socklen.
26676         * modules/netdb (Depends-on): Likewise.
26677         * modules/getaddrinfo (Depends-on): Remove socklen.
26678         * modules/getsockopt (Depends-on): Likewise.
26679         * modules/setsockopt (Depends-on): Likewise.
26680         * tests/test-sys_socket.c: Check that socklen_t is defined.
26681         * tests/test-netdb.c: Likewise.
26682         * m4/socklen.m4: Update comments.
26683         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26684
26685 2010-08-27  Eric Blake  <eblake@redhat.com>
26686
26687         login_tty: add missing dependency
26688         * modules/login_tty (Depends-on): Add pty.
26689
26690 2010-08-26  Eric Blake  <eblake@redhat.com>
26691
26692         lib-symbol-versions: fix m4 quoting
26693         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26694         format for AC_LINK_IFELSE.
26695
26696         glob: fix compile test
26697         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26698
26699         btowc: fix missing file
26700         * modules/btowc (Files): Also ship locale-fr.m4.
26701
26702         lseek: fix link test
26703         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26704         AC_LINK_IFELSE.
26705
26706         include_next: silence autoconf 2.68 warning
26707         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26708         AC_COMPILE_IFELSE as special.
26709         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26710         autoconf < 2.68.
26711
26712         acl: fix compilation test
26713         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26714         AC_COMPILE_IFELSE.
26715
26716 2010-08-26  Bruno Haible  <bruno@clisp.org>
26717
26718         Modernize AC_TRY_RUN invocations.
26719         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26720         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26721         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26722         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26723         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26724         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26725         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26726         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26727         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26728         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26729         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26730         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26731         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26732         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26733         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26734         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26735         gl_MBRLEN_NUL_RETVAL): Likewise.
26736         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26737         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26738         Likewise.
26739         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26740         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26741         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26742         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26743         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26744         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26745         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26746         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26747         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26748         Likewise.
26749         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26750         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26751         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26752         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26753         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26754         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26755         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26756         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26757         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26758         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26759
26760 2010-08-26  Bruno Haible  <bruno@clisp.org>
26761
26762         Modernize AC_TRY_LINK invocations.
26763         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26764         AC_TRY_LINK.
26765         * m4/argp.m4 (gl_ARGP): Likewise.
26766         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26767         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26768         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26769         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26770         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26771         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26772         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26773         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26774         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26775         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26776         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26777         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26778         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26779         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26780         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26781         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26782         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26783         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26784         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26785         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26786         Likewise.
26787         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26788         Likewise.
26789         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26790         Likewise.
26791         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26792         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26793         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26794         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26795         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26796         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26797         * m4/servent.m4 (gl_SERVENT): Likewise.
26798         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26799         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26800         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26801         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26802         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26803         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26804         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26805         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26806         * modules/tsearch-tests (configure.ac): Likewise.
26807
26808 2010-08-26  Bruno Haible  <bruno@clisp.org>
26809
26810         Modernize AC_TRY_COMPILE invocations.
26811         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26812         AC_TRY_COMPILE.
26813         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26814         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26815         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26816         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26817         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26818         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26819         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26820         * m4/lock.m4 (gl_LOCK): Likewise.
26821         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26822         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26823         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26824         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26825         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26826         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26827         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26828         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26829         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26830         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26831         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26832         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26833         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26834         extraneous semicolon.
26835
26836 2010-08-26  Jim Meyering  <meyering@redhat.com>
26837
26838         stat-time: relax license LGPL
26839         * modules/stat-time (License): Change from GPL to LGPL,
26840         with consent from all contributors, for use in libguile.
26841         Requested by Ludovic Courtès.
26842
26843 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26844
26845         poll: return immediately on POLLHUP.
26846         * lib/poll.c (poll): Always set timeout before wait_timeout is
26847         computed.
26848
26849 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26850
26851         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26852         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26853         rmdir ("dir/.//"), unlinkat.
26854
26855 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26856
26857         stdbool: avoid spurious failure with modern xlc
26858         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26859
26860 2010-08-24  Bruno Haible  <bruno@clisp.org>
26861
26862         getloadavg: simplify code
26863         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26864         gl_have_func. Update comments.
26865
26866 2010-08-24  Eric Blake  <eblake@redhat.com>
26867
26868         getloadavg: don't define SVR4 on cygwin
26869         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26870         only define SVR4 when -lkvm is required.
26871         Reported by Yaakov Selkowitz.
26872
26873 2010-08-24  Bruno Haible  <bruno@clisp.org>
26874
26875         priv-set: fix comment
26876         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26877
26878 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26879
26880         priv-set: fix comments
26881         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26882         to match code, as suggested by David Bartley in:
26883         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26884
26885 2010-08-23  Eric Blake  <eblake@redhat.com>
26886
26887         stdbool: avoid rejecting clang
26888         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26889         * tests/test-stdbool.c: Enable more tests if using the system
26890         <stdbool.h> instead of the gnulib replacement.
26891         (main): Move xlc bug test to a runtime test for all compilers.
26892         Reported by Anders Kaseorg.
26893
26894         argz: fix shell quoting issue
26895         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26896         Reported by Charles Wilson.
26897
26898 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26899             Erik Faye-Lund <kusmabite@gmail.com>
26900
26901         poll, select: handle ERROR_BROKEN_PIPE.
26902         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26903         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26904         * lib/select.c (win32_compute_revents): Do not mark a pipe
26905         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26906
26907 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26908
26909         fts: allow compilation with C++
26910         * lib/fts_.h: Specify extern "C" linkage with C++.
26911
26912 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26913
26914         Fix gnulib-tool sed script de-commentation for AIX sed.
26915         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26916         sed.
26917
26918 2010-08-17  Eric Blake  <eblake@redhat.com>
26919
26920         test-stddef: test for (some) offsetof bugs
26921         * tests/test-stddef.c: Enhance test to ensure correct type of
26922         offsetof.
26923         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26924         that we are not fixing at this time.
26925
26926 2010-08-15  Bruno Haible  <bruno@clisp.org>
26927
26928         stpncpy: Allow stpncpy to be defined as a macro.
26929         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26930         if it's already correctly declared.
26931         * lib/string.in.h (stpncpy): Undefine before redefining.
26932         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26933
26934 2010-08-14  Bruno Haible  <bruno@clisp.org>
26935
26936         Rename module 'memxfrm' to 'amemxfrm'.
26937         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26938         (amemxfrm): Renamed from memxfrm.
26939         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26940         (amemxfrm): Renamed from memxfrm.
26941         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26942         * NEWS: Mention the change.
26943         * MODULES.html.sh (String handling <string.h>): Update.
26944         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26945         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26946         * lib/unicase/u16-casexfrm.c: Likewise.
26947         * lib/unicase/u32-casexfrm.c: Likewise.
26948         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26949         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26950         * lib/uninorm/u16-normxfrm.c: Likewise.
26951         * lib/uninorm/u32-normxfrm.c: Likewise.
26952         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26953         memxfrm.
26954         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26955         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26956         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26957         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26958         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26959         Suggested by Paul Eggert.
26960
26961 2010-08-14  Bruno Haible  <bruno@clisp.org>
26962
26963         Tests for module 'astrxfrm'.
26964         * modules/astrxfrm-tests: New file.
26965         * tests/test-astrxfrm.c: New file.
26966
26967         New module 'astrxfrm'.
26968         * lib/astrxfrm.h: New file.
26969         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26970         * modules/astrxfrm: New file.
26971
26972 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26973
26974         regex: Tweak doc.
26975         * doc/regex.texi (Overview): Don't mention regex.c.
26976         (GNU Regular Expression Compiling): Likewise.
26977         (Match-end-of-line Operator): Mention 'not_eol'.
26978
26979 2010-08-14  Brian Gough  <bjg@gnu.org>
26980             Bruno Haible  <bruno@clisp.org>
26981
26982         git-merge-changelog: add doc relating to use with bzr and hg.
26983         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26984
26985 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26986
26987         pthread: fix pthread.h creation for srcdir != builddir
26988         * modules/pthread (Makefile.am): Fix the rule to work also in a
26989         non-srcdir build.
26990
26991 2010-08-13  Karl Berry  <karl@gnu.org>
26992
26993         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26994         * doc/posix-*/*: force line break before @url of POSIX
26995         specifications.
26996         Suggested by Werner Lemberg.
26997
26998 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26999
27000         strtod: fix const diagnostic
27001         * lib/strtod.c (strtod): Don't assign const char * to char *,
27002         as this elicits a warning from GCC when warnings are enabled.
27003
27004 2010-08-10  Pádraig Brady <P@draigbrady.com>
27005         and Eric Blake  <eblake@redhat.com>
27006
27007         copy-acl: ignore ENOTSUP on HP-UX
27008         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27009         so that it is available for HP-UX.
27010         * lib/copy-acl.c (qcopy_acl): Use it.
27011         Reported by Patrick M. Callahan.
27012
27013 2010-08-10  Eric Blake  <eblake@redhat.com>
27014
27015         open, chown: relax license
27016         * modules/open (License): Change to LGPLv2+, with consent by all
27017         authors, for use in augeas.
27018         * modules/chown (License): Likewise.
27019         * modules/lchown (Likewise): Likewise.
27020         Requested by Adam Stokes.
27021
27022 2010-08-09  Karl Berry  <karl@gnu.org>
27023
27024         * build-aux/ar-lib: new file, import from Automake.
27025         * config/srclist.txt: autocheck for updates.
27026
27027 2010-08-09  Eric Blake  <eblake@redhat.com>
27028
27029         readlinkat: adjust client modules
27030         * modules/areadlinkat (Depends-on): Use readlinkat, not
27031         symlinkat.
27032         * modules/areadlinkat-with-size (Depends-on): Likewise.
27033
27034         mknod: be more vocal about danger of running tests as root
27035         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27036         root, since that is just asking for problems.
27037         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27038
27039         readlinkat: split into its own module
27040         * modules/symlinkat: Split readlinkat...
27041         * modules/readlinkat: ...into separate module.
27042         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27043         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27044         * lib/symlinkat.c (readlinkat): Move...
27045         * lib/readlinkat.c: ...into new file.
27046         * modules/symlinkat-tests: Split readlinkat test...
27047         * modules/readlinkat-tests: ...into separate module.
27048         * tests/test-symlinkat.c: Split...
27049         * tests/test-readlinkat.c: ...into new file.
27050         * NEWS: Document the split.
27051         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27052         * lib/unistd.in.h (readlinkat): Likewise.
27053         Suggested by Bruno Haible.
27054
27055 2010-08-08  Bruno Haible  <bruno@clisp.org>
27056
27057         memxfrm: Speed up.
27058         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27059         that usually only one call to strxfrm is necessary for each string
27060         part.
27061         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27062
27063 2010-08-07  Karl Berry  <karl@gnu.org>
27064
27065         * doc/posix-headers/limits.texi,
27066         * doc/posix-functions/malloc.texi,
27067         * doc/posix-functions/strsignal.texi: missing @item.
27068         * doc/ld-version-script.texi: spurious leading i.
27069         * doc/regex.texi (Interval Operators): no commas inside @var.
27070
27071 2010-08-01  Bruno Haible  <bruno@clisp.org>
27072
27073         Integrate the regex documentation.
27074         * doc/gnulib.texi: Define 'cn' index.
27075         (Regular expressions): New a chapter that includes regex.texi and
27076         regexprops-generic.texi.
27077         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27078         syntax.
27079
27080         Whitespace cleanup.
27081         * doc/regex.texi: Remove trailing spaces.
27082
27083         Add regex documentation.
27084         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27085         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27086         Written by Kathy A. Hargreaves and Karl Berry.
27087
27088 2010-08-01  Bruno Haible  <bruno@clisp.org>
27089
27090         link: Update documentation.
27091         * doc/posix-functions/link.texi: Update regarding Solaris.
27092
27093 2010-07-31  Bruno Haible  <bruno@clisp.org>
27094
27095         Update modules list.
27096         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27097         (String handling <string.h>): Add memcmp2, memxfrm.
27098         (Container data structures): Add xlist, xsublist, xoset.
27099         (Core language properties): Add alignof, unused-parameter.
27100         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27101         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27102         (Unibyte characters <ctype.h>): New section.
27103         (String handling <string.h>): New section.
27104         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27105         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27106         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27107         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27108         tan, tanh, tanl, y0, y1, yn.
27109         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27110         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27111         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27112         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27113         unlockpt, vdprintf, vdprintf-posix.
27114         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27115         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27116         xconcat-filename.
27117         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27118         getdtablesize, pipe2, pipe2-safer.
27119         (Security): New section.
27120         (Networking functions): Add accept4.
27121         (Signal handling): Add sigpipe.
27122         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27123         mbmemcasecoll.
27124         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27125         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27126         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27127         pipe-filter-ii.
27128         (Misc): Add argp-version-etc, login_tty, parse-duration.
27129
27130 2010-07-31  Bruno Haible  <bruno@clisp.org>
27131
27132         Improve doc in MODULES.html.
27133         * modules/linkat (Description): Add the word "function".
27134         * modules/mkfifo (Description): Likewise.
27135         * modules/mknod (Description): Likewise.
27136         * modules/remove (Description): Likewise.
27137         * modules/renameat (Description): Likewise.
27138         * modules/stat (Description): Likewise.
27139         * modules/symlink (Description): Likewise.
27140         * modules/unlink (Description): Likewise.
27141
27142 2010-07-31  Bruno Haible  <bruno@clisp.org>
27143
27144         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27145         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27146         option --enable/disable-c++ instead of --enable/disable-cxx.
27147         * NEWS: Mention the change.
27148
27149 2010-07-31  Bruno Haible  <bruno@clisp.org>
27150
27151         readlink, areadlink: Relax test a bit.
27152         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27153         alternative to ENOTDIR.
27154         * tests/test-areadlink.h (test_areadlink): Likewise.
27155         Reported by Rainer Tammer.
27156
27157 2010-07-31  Bruno Haible  <bruno@clisp.org>
27158
27159         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27160         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27161         character, perform the search using U_STRCHR.
27162         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27163         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27164         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27165         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27166         Suggested by Paolo Bonzini.
27167
27168 2010-07-31  Bruno Haible  <bruno@clisp.org>
27169
27170         unistr/u*-strstr: Fix dependencies.
27171         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27172         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27173         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27174
27175 2010-07-31  Bruno Haible  <bruno@clisp.org>
27176
27177         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27178         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27179         the beginning of the loop.
27180         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27181         cases in 'switch' statement.
27182
27183         unistr/u8-strchr: Fix several bugs.
27184         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27185         the string. When not found, return NULL, not a pointer near the end.
27186
27187         More tests for unistr/u8-strchr.
27188         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27189         that the function does not read past the first occurrence of the byte
27190         being searched.
27191         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27192         * tests/unistr/test-u16-strchr.c (main): New function.
27193         * tests/unistr/test-u32-strchr.c (main): New function.
27194
27195 2010-07-31  Bruno Haible  <bruno@clisp.org>
27196
27197         posix-modules: Ignore backup files of documentation files.
27198         * posix-modules: grep only through files named *.texi.
27199
27200 2010-07-31  Bruno Haible  <bruno@clisp.org>
27201
27202         symlinkat: Fix documentation.
27203         * doc/posix-functions/readlinkat.texi: Fix module name.
27204
27205 2010-07-31  Bruno Haible  <bruno@clisp.org>
27206
27207         fchownat: Replace also when chown has the trailing slash bug.
27208         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27209         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27210         introduced on 2010-04-10.
27211         Reported by Rainer Tammer.
27212
27213 2010-07-31  Bruno Haible  <bruno@clisp.org>
27214
27215         linkat: Work around AIX 7.1 bug.
27216         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27217         whether linkat handles trailing slash correctly. If not, replace linkat
27218         and define LINKAT_TRAILING_SLASH_BUG.
27219         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27220         check whether (fd1,file1) points to a directory if file1 or file2 ends
27221         in a slash. Code taken from lib/link.c.
27222         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27223         Reported by Rainer Tammer.
27224
27225 2010-07-31  Bruno Haible  <bruno@clisp.org>
27226
27227         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27228         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27229         This disables an xlc optimization that was causing wrong test results.
27230         Reported by Rainer Tammer.
27231
27232 2010-07-31  Bruno Haible  <bruno@clisp.org>
27233
27234         iconv: Work around AIX 6.1..7.1 bug.
27235         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27236         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27237         cross-compiling, guess no on all versions of AIX.
27238         Reported by Rainer Tammer.
27239
27240 2010-07-31  Bruno Haible  <bruno@clisp.org>
27241
27242         readlink: Relax test a bit.
27243         * tests/test-readlink.h (test_readlink): Allow different errno value
27244         when readlink is called with a file name that ends in / and refers to
27245         a file.
27246         Suggested by Eric Blake.
27247         Reported by Rainer Tammer.
27248
27249 2010-07-31  Bruno Haible  <bruno@clisp.org>
27250
27251         copysign: Does not require -lm on glibc systems.
27252         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27253         gl_COMMON_DOUBLE_MATHFUNC.
27254         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27255
27256 2010-07-31  Bruno Haible  <bruno@clisp.org>
27257
27258         duplocale: Work around AIX 7.1 bug.
27259         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27260         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27261         * lib/duplocale.c (rpl_duplocale): Update comment.
27262         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27263         Reported by Rainer Tammer.
27264
27265 2010-07-30  Bruno Haible  <bruno@clisp.org>
27266
27267         dirfd: Avoid link error on AIX 7.1.
27268         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27269         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27270         exist, set REPLACE_DIRFD.
27271         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27272         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27273         * doc/posix-functions/dirfd.texi: Update.
27274         Reported by Rainer Tammer.
27275
27276 2010-07-30  Eric Blake  <eblake@redhat.com>
27277
27278         strtod: next round of AIX fixes
27279         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27280         exponent.
27281         * tests/test-strtod.c (main): Enhance tests.
27282         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27283         Reported by Rainer Tammer.
27284
27285         futimens: fix configure check
27286         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27287         Reported by Bruno Haible.
27288
27289 2010-07-30  Bruno Haible  <bruno@clisp.org>
27290
27291         getline: Update regarding AIX.
27292         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27293         Reported by Rainer Tammer.
27294
27295 2010-07-30  Bruno Haible  <bruno@clisp.org>
27296
27297         wcwidth: Drop replacement on AIX 7.
27298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27299         AIX 7.
27300         Reported by Rainer Tammer.
27301
27302 2010-07-30  Bruno Haible  <bruno@clisp.org>
27303
27304         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27305         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27306         a 'char *'.
27307         Reported by Rainer Tammer.
27308
27309 2010-07-30  Bruno Haible  <bruno@clisp.org>
27310
27311         unlink: Update regarding AIX.
27312         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27313         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27314         Reported by Rainer Tammer.
27315
27316 2010-07-30  Bruno Haible  <bruno@clisp.org>
27317
27318         symlink: Update regarding AIX.
27319         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27320         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27321         Reported by Rainer Tammer.
27322
27323 2010-07-30  Bruno Haible  <bruno@clisp.org>
27324
27325         strndup: Update regarding AIX.
27326         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27327         AIX 7.
27328         Reported by Rainer Tammer.
27329
27330 2010-07-30  Bruno Haible  <bruno@clisp.org>
27331
27332         stat: Update regarding AIX.
27333         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27334         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27335         Reported by Rainer Tammer.
27336
27337 2010-07-30  Bruno Haible  <bruno@clisp.org>
27338
27339         truncl: Fix autoconf test.
27340         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27341         whether truncl works.
27342         Reported by Rainer Tammer.
27343
27344 2010-07-30  Bruno Haible  <bruno@clisp.org>
27345
27346         round: Update regarding AIX.
27347         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27348         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27349         Reported by Rainer Tammer.
27350
27351 2010-07-30  Bruno Haible  <bruno@clisp.org>
27352
27353         rename: Update regarding AIX.
27354         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27355         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27356         Reported by Rainer Tammer.
27357
27358 2010-07-30  Bruno Haible  <bruno@clisp.org>
27359
27360         printf.m4: Update regarding AIX.
27361         * m4/printf.m4: Update comments regarding AIX.
27362         Reported by Rainer Tammer.
27363
27364 2010-07-30  Bruno Haible  <bruno@clisp.org>
27365
27366         iconv: Update regarding AIX.
27367         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27368         AIX 7.
27369         Reported by Rainer Tammer.
27370
27371 2010-07-30  Bruno Haible  <bruno@clisp.org>
27372
27373         getopt: Update regarding AIX.
27374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27375         no on AIX.
27376         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27377         Reported by Rainer Tammer.
27378
27379 2010-07-30  Bruno Haible  <bruno@clisp.org>
27380
27381         ldexpl; Update regarding AIX.
27382         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27383         on AIX 7.
27384         Reported by Rainer Tammer.
27385
27386 2010-07-30  Bruno Haible  <bruno@clisp.org>
27387
27388         frexpl: Update regarding AIX.
27389         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27390         on AIX 7.
27391         Reported by Rainer Tammer.
27392
27393 2010-07-30  Bruno Haible  <bruno@clisp.org>
27394
27395         open, fopen: Update regarding AIX.
27396         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27397         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27398         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27399         * doc/posix-functions/fopen.texi: Likewise.
27400         Reported by Rainer Tammer.
27401
27402 2010-07-30  Bruno Haible  <bruno@clisp.org>
27403
27404         chown: Update doc regarding AIX.
27405         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27406         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27407         Reported by Rainer Tammer.
27408
27409 2010-07-30  Eric Blake  <eblake@redhat.com>
27410
27411         strtod: fix bug in replacement function on AIX
27412         * lib/strtod.c (strtod): Special case broken "0x" parse in
27413         underlying strtod.
27414         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27415         * doc/posix-functions/strtod.texi (strtod): Likewise.
27416         Reported by Rainer Tammer.
27417
27418 2010-07-30  Bruno Haible  <bruno@clisp.org>
27419
27420         mbrlen: Fix cross-compilation guess for AIX.
27421         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27422         guess. Leftover from 2008-12-22.
27423
27424 2010-07-30  Bruno Haible  <bruno@clisp.org>
27425
27426         mbrtowc: Fix cross-compilation guess for AIX.
27427         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27428         guess. Leftover from 2008-12-21.
27429
27430 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27431
27432         init.sh: work around trap limitation of some shells
27433         * tests/init.sh (setup_): Move exit trap outside of shell function.
27434
27435 2010-07-29  Eric Blake  <eblake@redhat.com>
27436
27437         strtod: aid debugging
27438         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27439         understanding why strtod is rejected.
27440
27441 2010-07-28  Bruno Haible  <bruno@clisp.org>
27442
27443         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27444         * lib/unistr/u8-chr.c: Include <string.h>.
27445         * tests/unistr/test-u8-chr.c: Likewise.
27446         * tests/unistr/test-u16-chr.c: Likewise.
27447         * tests/unistr/test-u32-chr.c: Likewise.
27448         * tests/unistr/test-u8-strchr.c: Likewise.
27449         * tests/unistr/test-u16-strchr.c: Likewise.
27450         * tests/unistr/test-u32-strchr.c: Likewise.
27451         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27452         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27453         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27454         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27455
27456 2010-07-28  Bruno Haible  <bruno@clisp.org>
27457
27458         Use spaces for indentation, not tabs.
27459         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27460
27461 2010-07-27  Bruno Haible  <bruno@clisp.org>
27462
27463         mbspcasecmp: Fix function specification.
27464         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27465         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27466         Reported by Eric Blake <eblake@redhat.com>.
27467
27468 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27469
27470         timespec: use cast and not conditional, as truncation isn't possible
27471         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27472         instead of a conditional.  Comment about the situation in more detail.
27473         This undoes most of the 2009-10-29 patch.
27474
27475 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27476
27477         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27478         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27479         * lib/unistr/u8-strchr.c: Likewise.
27480         * modules/unistr/u8-chr: Depend on memchr.
27481
27482         unistr/u*-strchr: add tests
27483         * modules/unistr/u8-strchr-tests: New file.
27484         * modules/unistr/u16-strchr-tests: New file.
27485         * modules/unistr/u32-strchr-tests: New file.
27486         * tests/unistr/test-strchr.h: New file.
27487         * tests/unistr/test-u8-strchr.c: New file.
27488         * tests/unistr/test-u16-strchr.c: New file.
27489         * tests/unistr/test-u32-strchr.c: New file.
27490
27491         unistr/u*-chr: test multibyte sequences more
27492         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27493         test vector.
27494         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27495         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27496         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27497
27498         unistr/u*-chr: test multibyte sequences
27499         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27500
27501         unistr/u*-chr: prepare for multibyte tests
27502         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27503         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27504         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27505         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27506         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27507         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27508
27509 2010-07-18  Bruno Haible  <bruno@clisp.org>
27510
27511         unistr/u8-strchr: Optimize non-ASCII argument case.
27512         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27513         because the first byte often matches anyway.
27514         Reported by Pádraig Brady <P@draigbrady.com>.
27515
27516 2010-07-15  Karl Berry  <karl@gnu.org>
27517
27518         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27519
27520 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27521
27522         getcwd: on Solaris, work better if ancestors are inaccessible
27523         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27524         buffer and size, try again with a large buffer.  This works better
27525         on Solaris, since its getcwd succeeds even if the path to the root
27526         is inaccessible, and this is helpful in common cases such as .zfs
27527         hidden directories.  Problem reported by J Chapman Flack in
27528         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27529         Use system getcwd if it's declared, not merely if it's partly
27530         working; use the partly-working test only to avoid needless effort
27531         if the system getcwd fails.
27532         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27533         comment that was already obsolete and is now even more obsolete.
27534         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27535         now might call strdup.
27536
27537 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27538
27539         pthread: Add enough so that coreutils/src/sort.c compiles.
27540         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27541         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27542         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27543         Include <sys/types.h>, in case it defines pthread_t.
27544         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27545         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27546         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27547         (pthread_rwlockattr_t, pthread_spinlock_t):
27548         New typedefs, if HAVE_PTHREAD_T is not defined.
27549         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27550         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27551         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27552         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27553         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27554         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27555         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27556         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27557         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27558         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27559         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27560         New macros.
27561         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27562         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27563         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27564         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27565         (pthread_spin_unlock): New dummy functions.
27566         (pthread_create): Return EAGAIN; don't set errno.
27567         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27568         require AC_C_INLINE.
27569         * modules/pthread (Depends-on): Add sched, time.
27570         (pthread.h): Use AM_V_GEN.
27571
27572 2010-07-13  Bruno Haible  <bruno@clisp.org>
27573
27574         striconveh: Don't malloc memory if the result buffer is sufficient.
27575         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27576         buffer if its size is sufficient.
27577         Reported by Ludovic Courtès <ludo@gnu.org>.
27578
27579 2010-07-13  Bruno Haible  <bruno@clisp.org>
27580
27581         strtod: Add safety check.
27582         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27583
27584 2010-07-12  Bruno Haible  <bruno@clisp.org>
27585
27586         Unify tests that set gl_cv_func_ldexpl_no_libm.
27587         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27588         gl_FUNC_LDEXPL.
27589         (gl_FUNC_LDEXPL): Invoke it.
27590         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27591
27592 2010-07-12  Bruno Haible  <bruno@clisp.org>
27593
27594         Unify tests that set gl_cv_func_ldexp_no_libm.
27595         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27596         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27597         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27598         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27599         * modules/strtod (Files): Add m4/ldexp.m4.
27600
27601 2010-07-12  Bruno Haible  <bruno@clisp.org>
27602
27603         Unify tests that set gl_cv_func_frexpl_no_libm.
27604         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27605         gl_FUNC_FREXPL_NO_LIBM.
27606         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27607         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27608
27609 2010-07-12  Bruno Haible  <bruno@clisp.org>
27610
27611         Unify tests that set gl_cv_func_frexp_no_libm.
27612         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27613         gl_FUNC_FREXP_NO_LIBM.
27614         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27615         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27616
27617 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27618
27619         memcoll: clarify sizes versus lengths, document better, and tweak perf
27620         * lib/memcoll.c (strcoll_loop, memcoll0):
27621         Improve quality of descriptive comments.  Name variables
27622         consistently as to whether they are lengths (which do not include
27623         terminating null) versus sizes (which do).
27624         * lib/xmemcoll.c (xmemcoll0): Likewise.
27625         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27626         returned when s1size == 0; this is easier to compile and saves
27627         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27628
27629 2010-07-12  Bruno Haible  <bruno@clisp.org>
27630
27631         Tests for module '_Exit'.
27632         * modules/_Exit-tests: New file.
27633         * tests/test-_Exit.sh: New file.
27634         * tests/test-_Exit.c: New file.
27635
27636         New module '_Exit'.
27637         * lib/stdlib.in.h (__attribute__): New macro.
27638         (_Exit): New declaration.
27639         * lib/_Exit.c: New file.
27640         * m4/_Exit.m4: New file.
27641         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27642         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27643         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27644         * modules/_Exit: New file.
27645         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27646         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27647
27648 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27649
27650         strtod: make it more-accurate typically, and don't require libm
27651         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27652         Include limits.h.  Don't include string.h.
27653         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27654         (locale_isspace): New function, so that no casts are needed to
27655         check whether *s is a space.
27656         (ldexp): Provide an unused dummy if not available.
27657         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27658         (strtod): Use them.  This implementation prefers to use the
27659         underlying strtod if available, falling back on our own code
27660         only to fix known bugs.  This is more likely to produce an
27661         accurate result.  Also, it avoids the use of libm functions.
27662         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27663         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27664         was absent, but it caused a test failure with coreutils.
27665         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27666         with libm.
27667         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27668         * modules/strtod-tests (Makefile.am): Likewise.
27669
27670 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27671             Bruno Haible  <bruno@clisp.org>
27672
27673         unistr/u8-strchr: Optimize ASCII argument case.
27674         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27675
27676 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27677
27678         (x)memcoll: minor tweaks
27679         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27680         is after the type that it qualifies.
27681         (memcoll0): Likewise.
27682         * lib/memcoll.h (memcoll0): Likewise.
27683         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27684         * lib/xmemcoll.h (xmemcoll0): Likewise.
27685         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27686         differs from memcoll in that the NUL byte is part of the argument.
27687         Omit the abort-checks, as performance is a real issue here.  Plus,
27688         the checks were wrong anyway (an off-by-one error).  Omit local
27689         variable 'diff', as it's a bit clearer that way.
27690         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27691         no longer needed.
27692
27693 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27694
27695         (x)memcoll: speedup when input is known to be NUL delimited
27696         * lib/memcoll.c: Include stdlib.
27697         (memcoll0): New function.
27698         (strcoll_loop): New function, refactored for use in both memcoll
27699         and memcoll0.
27700         * lib/memcoll.h (memcoll0): Add prototype.
27701         * lib/xmemcoll.c (xmemcoll0): New function.
27702         (collate_error): New function, refactored for use in both xmemcoll
27703         and xmemcoll0.
27704         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27705         * m4/memcoll.m4: add inline invocation.
27706
27707 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27708
27709         * build-aux/bootstrap: Remove any local translations
27710         from the translation project synchronization directory,
27711         so that local only translations are not distributed.
27712
27713 2010-07-04  Bruno Haible  <bruno@clisp.org>
27714
27715         fsusage: Clarify which code applies to which platforms.
27716         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27717         platform.
27718         * lib/fsusage.c (get_fs_usage): Likewise.
27719
27720 2010-07-04  Bruno Haible  <bruno@clisp.org>
27721
27722         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27723         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27724         Reported by Martin Lambers <marlam@marlam.de>.
27725
27726 2010-07-04  Jim Meyering  <meyering@redhat.com>
27727
27728         hash: once again explicitly disallow insertion of NULL
27729         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27730         inserting a NULL pointer cannot work with these functions.
27731         Add a comment with details.
27732         This reverts part of the 2010-07-01 commit, 5bef1a35
27733         "hash: extend module to deal with non-pointer keys".
27734
27735 2010-07-01  Bruno Haible  <bruno@clisp.org>
27736
27737         stdbool: Update doc.
27738         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27739         Info from Christian Weisgerber <naddy@mips.inka.de>.
27740
27741 2010-07-01  Jim Meyering  <meyering@redhat.com>
27742
27743         hash: extend module to deal with non-pointer keys
27744         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27745         but that allows insertion of non-pointer entries.
27746         Do not disallow an ENTRY value of NULL.
27747         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27748         * lib/hash.h (hash_insert0): Declare.
27749
27750 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27751
27752         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27753         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27754         not present (i.e. with autoconf 2.59 and when using gettextize, not
27755         gnulib), require AC_GNU_SOURCE instead.
27756
27757 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27758
27759         idpriv-drop: Fix tests.
27760         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27761         not to the test-idpriv-droptemp program.
27762
27763 2010-06-29  Bruno Haible  <bruno@clisp.org>
27764
27765         string: Fix syntax error with g++ 2.96.
27766         * lib/string.in.h (__pure__): Remove definition.
27767         (_GL_ATTRIBUTE_PURE): New macro.
27768         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27769         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27770         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27771
27772 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27773
27774         unitypes: Fix bug introduced on 2010-05-18.
27775         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27776
27777 2010-06-22  Eric Blake  <eblake@redhat.com>
27778
27779         memmem: slight optimization
27780         * lib/str-two-way.h (critical_factorization): Update comments.
27781         Reduce work during factorization phase.
27782         Reported by Carlos Bueno <carlos@bueno.org>.
27783
27784 2010-06-21  Bruno Haible  <bruno@clisp.org>
27785
27786         Fix HAVE_CALLOC_POSIX misnomer.
27787         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27788         !HAVE_CALLOC_POSIX.
27789         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27790         HAVE_CALLOC_POSIX.
27791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27792         instead of HAVE_CALLOC_POSIX.
27793         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27794         HAVE_CALLOC_POSIX.
27795
27796         Use modern idiom for calloc() replacement.
27797         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27798         AC_FUNC_CALLOC.
27799         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27800         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27801         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27802         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27803         (gl_REPLACE_CALLOC): New macro.
27804
27805 2010-06-21  Bruno Haible  <bruno@clisp.org>
27806
27807         Fix HAVE_REALLOC_POSIX misnomer.
27808         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27809         !HAVE_REALLOC_POSIX.
27810         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27811         HAVE_REALLOC_POSIX.
27812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27813         instead of HAVE_REALLOC_POSIX.
27814         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27815         HAVE_REALLOC_POSIX.
27816
27817         Use modern idiom for realloc() replacement.
27818         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27819         AC_FUNC_REALLOC.
27820         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27821         Autoconf's AC_FUNC_REALLOC.
27822         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27823         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27824         (gl_REPLACE_REALLOC): New macro.
27825         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27826
27827 2010-06-21  Bruno Haible  <bruno@clisp.org>
27828
27829         Fix HAVE_MALLOC_POSIX misnomer.
27830         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27831         !HAVE_MALLOC_POSIX.
27832         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27833         HAVE_MALLOC_POSIX.
27834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27835         instead of HAVE_MALLOC_POSIX.
27836         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27837         HAVE_MALLOC_POSIX.
27838
27839         Use modern idiom for malloc() replacement.
27840         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27841         AC_FUNC_MALLOC.
27842         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27843         Autoconf's AC_FUNC_MALLOC.
27844         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27845         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27846         (gl_REPLACE_MALLOC): New macro.
27847         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27848
27849 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27850
27851         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27852         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27853         This macro takes 3 arguments, not 4.
27854
27855 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27856
27857         ipv6: fix detection under mingw
27858         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27859         in6_addr.
27860
27861 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27862
27863         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27864         that strtod() works when cross-compiling to a glibc version known
27865         to work.
27866
27867 2010-06-15  Bruno Haible  <bruno@clisp.org>
27868
27869         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27870
27871 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27872
27873         select: Correct timeout.
27874         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27875
27876 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27877
27878         git-version-gen: init shell var to avoid env var influence
27879         * build-aux/git-version-gen (v): Init shell var to empty.
27880
27881 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27882
27883         priv-set: Don't assume that priv.h exists merely because getppriv does.
27884         See Jan Andersen's bug report about AIX 5L in
27885         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27886         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27887         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27888         * lib/priv-set.h: Likewise.
27889         * tests/test-priv-set.c: Likewise.
27890
27891 2010-06-13  Bruno Haible  <bruno@clisp.org>
27892
27893         relocatable: Make it easier to test whether to install wrappers.
27894         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27895         RELOCATABLE_VIA_WRAPPER.
27896
27897 2010-06-13  Bruno Haible  <bruno@clisp.org>
27898
27899         gnulib-tool: Display specified modules and dependencies differently.
27900         * gnulib-tool (func_show_module_list): New function.
27901         (func_import, func_create_testdir): Invoke it.
27902         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27903
27904 2010-06-13  Bruno Haible  <bruno@clisp.org>
27905
27906         gnulib-tool: Align code of func_import and func_create_testdir.
27907         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27908         specified_modules.
27909
27910 2010-06-12  Jim Meyering  <meyering@redhat.com>
27911
27912         test-inttostr: avoid spurious failure on Solaris 9
27913         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27914         to accept "%ju".  Reported by Bruno Haible.
27915
27916 2010-06-11  Jim Meyering  <meyering@redhat.com>
27917
27918         test-sys_socket: mark variables as used more readably
27919         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27920         as "used" explicitly via (void) statement casts.  This is more
27921         readable than using them in an artificial return expression.
27922         Suggestion from Bruno Haible.
27923
27924 2010-06-11  Bruno Haible  <bruno@clisp.org>
27925
27926         Avoid some more warnings from "gcc -Wwrite-strings".
27927         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27928         to 'const char *'.
27929         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27930         * tests/test-c-strcasestr.c (main): Likewise.
27931         * tests/test-mbscasestr1.c (main): Likewise.
27932         * tests/test-mbscasestr2.c (main): Likewise.
27933         * tests/test-memmem.c (main): Likewise.
27934         * tests/test-strstr.c (main): Likewise.
27935         * tests/test-strcasestr.c (main): Likewise.
27936
27937 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27938
27939         init.sh: change framework_failure_ to fail with status 99, not 1
27940         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27941         automake's parallel-tests rule that this is an unexpected failure,
27942         even if the test is listed in XFAIL_TESTS.
27943
27944 2010-06-11  Jim Meyering  <meyering@redhat.com>
27945
27946         test-inttostr: avoid warnings about 4-6KB literal strings
27947         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27948         Include "macros.h", for its definition of ASSERT.
27949         (CK): s/assert/ASSERT/
27950         * modules/inttostr-tests (Files): Add macros.h.
27951
27952         init.sh: don't use $ME_ or skip_ before they are defined
27953         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27954         their first uses.  Also hoist their companions: warn_, fail_,
27955         framework_failure_, $stderr_fileno.  Prompted by a patch from
27956         Stefano Lattarini.
27957
27958         test-sys_socket: avoid set-but-not-used warnings from gcc
27959         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27960         avoid warning about set-but-not-used variables.
27961
27962         test-xvasprintf: avoid 'const' discard warnings
27963         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27964         "const" when assigning from literal strings.
27965         (test_xasprintf): Add "void" in function argument list to placate
27966         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27967
27968         tests: avoid compilation warnings in argmatch and exclude tests...
27969         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27970         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27971         Since it always exits, declare with the "noreturn" attribute.
27972         * tests/test-argmatch.c: Likewise.
27973
27974         tests: avoid 'const' discard warnings in mbsstr tests
27975         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27976         * tests/test-mbsstr2.c (main): Likewise.
27977
27978         test-verify: avoid warning from gcc's -Wmissing-declarations
27979         * tests/test-verify.c (function): Declare to be static.
27980
27981         test-inttostr.c: include <string.h> for use of strcmp
27982         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27983
27984         test-linkat: avoid failed assertion on "other" architectures
27985         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27986         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27987         sparc: https://bugs.launchpad.net/bugs/591968
27988
27989 2010-06-11  Jim Meyering  <meyering@redhat.com>
27990
27991         printf.m4: avoid autoconf's "Expanded Before Required" warning
27992         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27993         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27994         autoconf warning.
27995
27996 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27997
27998         Replacement header templates are now named with ".in", not "_".
27999         * doc/gnulib-intro.texi: Correct.
28000
28001 2010-06-10  Jim Meyering  <meyering@redhat.com>
28002
28003         inttostr-tests: depend on snprintf, not snprintf-posix
28004         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28005         snprintf-posix, to avoid this aclocal failure:
28006           missing file gnulib-tests/vasnprintf.c
28007           configure.ac:45: error: expected source file, required through \
28008           AC_LIBSOURCES, not found
28009
28010 2010-06-10  Jim Meyering  <meyering@redhat.com>
28011
28012         inttostr: add a new function, inttostr, and tests
28013         The namesake function was not available.  The existence of the
28014         template file, inttostr.c makes its addition nontrivial.
28015         * lib/anytostr.c: Rename from inttostr.c.
28016         (anytostr): Rename from inttostr.
28017         * lib/inttostr.c: New file.
28018         * modules/inttostr (Files): Add anytostr.c.
28019         (Makefile.am): Set lib_SOURCES instead of ...
28020         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28021         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28022         * lib/offtostr.c: Likewise.
28023         * lib/uinttostr.c: Likewise.
28024         * lib/umaxtostr.c: Likewise.
28025         * modules/inttostr-tests: New file.
28026         * tests/test-inttostr.c: New file.  Test these functions.
28027
28028 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28029             Bruno Haible  <bruno@clisp.org>
28030
28031         Add "Extending Gnulib" chapter to manual.
28032         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28033         chapter.
28034         (Extending Gnulib): New chapter.
28035         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28036         chapter.
28037
28038 2010-06-09  Bruno Haible  <bruno@clisp.org>
28039
28040         Avoid relocwrapper link errors due to gnulib replacement functions.
28041         * lib/areadlink.c: Use the system's malloc, realloc functions.
28042         (areadlink): Set errno to ENOMEM explicitly.
28043         * modules/areadlink (Depends-on): Remove malloc-posix.
28044         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28045
28046 2010-06-09  Bruno Haible  <bruno@clisp.org>
28047
28048         Avoid relocwrapper link errors due to gnulib replacement functions.
28049         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28050         * lib/malloca.c: Likewise.
28051         * lib/relocatable.c: Likewise.
28052         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28053         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28054         * lib/setenv.c: Use the system's malloc, realloc functions.
28055         * lib/strerror.c: Use the system's sprintf function.
28056         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28057
28058 2010-06-04  Bruno Haible  <bruno@clisp.org>
28059
28060         Prefer documented low-level autoconf macro names.
28061         * m4/lib-link.m4: Use m4_translit instead of translit.
28062         * m4/environ.m4: Likewise.
28063         * m4/mathfunc.m4: Likewise.
28064         * m4/onceonly.m4: Likewise.
28065         * m4/stdint.m4: Likewise.
28066         Suggested by Eric Blake.
28067
28068 2010-06-04  Martin Lambers  <marlam@marlam.de>
28069             Bruno Haible  <bruno@clisp.org>
28070
28071         havelib: Allow library names with '+' characters.
28072         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28073         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28074
28075 2010-06-09  Bruno Haible  <bruno@clisp.org>
28076
28077         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28078         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28079         realloc failed.
28080
28081 2010-06-08  Peter Simons  <simons@cryp.to>
28082
28083         maint.mk: make the news-check rule more configurable
28084         * top/maint.mk (news-check-lines-spec): New variable.
28085         (news-check): Use "sed -n 1,10p" in place of "head".
28086
28087 2010-06-07  Jim Meyering  <meyering@redhat.com>
28088
28089         do-release-commit-and-tag: fix typo in --help
28090         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28091
28092         regex: avoid new dead-code warning with gcc-4.6.0
28093         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28094         if-block containing a while-loop.  It's been unused for at least
28095         5 years.
28096
28097 2010-06-05  Bruno Haible  <bruno@clisp.org>
28098
28099         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28100         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28101
28102 2010-06-04  Bruno Haible  <bruno@clisp.org>
28103
28104         Update to GNU gettext 0.18.1.
28105         * modules/gettext (configure.ac): Require gettext infrastructure from
28106         version 0.18.1.
28107
28108 2010-06-03  Bruno Haible  <bruno@clisp.org>
28109
28110         Don't use AC_LIBOBJ with file names in subdirectories.
28111         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28112         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28113         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28114         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28115         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28116         gl_LIBUNISTRING_LIBSOURCE.
28117         (Makefile.am): Augment lib_SOURCES here, conditionally.
28118         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28119
28120 2010-06-03  Bruno Haible  <bruno@clisp.org>
28121
28122         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28123         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28124         expansion does not end with a newline.
28125         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28126         unnecessary newline.
28127
28128 2010-06-03  Bruno Haible  <bruno@clisp.org>
28129
28130         Reduce dependencies.
28131         * tests/test-quotearg.h: New file, extracted from
28132         tests/test-quotearg.c.
28133         * tests/test-quotearg-simple.c: New file, extracted from
28134         tests/test-quotearg.c.
28135         * tests/test-quotearg.c: Don't include <ctype.h>.
28136         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28137         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28138         use_quote_double_quotes, use_quotearg_colon): Moved to
28139         tests/test-quotearg.h.
28140         (results_g, flag_results, custom_quotes, custom_results): Moved
28141         to tests/test-quotearg-simple.c.
28142         (main): Moved the part that does not depend on gettext to
28143         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28144         performed.
28145         * modules/quotearg-simple: New file.
28146         * modules/quotearg-simple-tests: New file.
28147         * modules/quotearg (Depends-on): Add quotearg-simple.
28148         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28149         (Files): Add tests/test-quotearg.h.
28150         Reported by Paolo Bonzini.
28151
28152 2010-06-03  Bruno Haible  <bruno@clisp.org>
28153
28154         Reduce dependencies.
28155         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28156
28157 2010-06-03  Bruno Haible  <bruno@clisp.org>
28158
28159         time: Undefine more broken macros.
28160         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28161         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28162         Reported by Eric Blake.
28163
28164 2010-06-03  Bruno Haible  <bruno@clisp.org>
28165
28166         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28167         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28168         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28169         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28170         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28171         Reported by Ludovic Courtès <ludo@gnu.org>.
28172
28173 2010-06-02  Eric Blake  <eblake@redhat.com>
28174
28175         time: work with mingw + pthreads-win32 library
28176         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28177         if timespec is defined only in pthread.h.
28178         * modules/time (Makefile.am): Substitute it.
28179         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28180         <pthread.h>, when needed.
28181         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28182         from the library.
28183
28184 2010-05-31  Bruno Haible  <bruno@clisp.org>
28185
28186         Avoid expanding two macros in the wrong order.
28187         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28188         gl_LIBUNISTRING if it is defined.
28189         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28190         autoconf >= 2.64.
28191         Reported by Ludovic Courtès <ludo@gnu.org>.
28192
28193 2010-05-27  Jim Meyering  <meyering@redhat.com>
28194
28195         maint.mk: also prohibit "#undef" of always-defined symbols
28196         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28197         Allow more than one space before the symbol name.
28198         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28199         the regexp uses alternation.
28200
28201 2010-05-26  Eric Blake  <eblake@redhat.com>
28202
28203         maint.mk: avoid echo -e
28204         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28205         Convert all uses of echo -* to printf.
28206         Reported by Matthias Bolte.
28207
28208 2010-05-25  Bruno Haible  <bruno@clisp.org>
28209
28210         Update to GNU gettext 0.18, part 2.
28211         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28212         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28213
28214 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28215
28216         Add missing include in test-pwrite.c.
28217         * tests/test-pwrite.c: Include string.h, for strcmp.
28218
28219 2010-05-24  Bruno Haible  <bruno@clisp.org>
28220
28221         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28222
28223 2010-05-24  Bruno Haible  <bruno@clisp.org>
28224
28225         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28226         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28227         iconveh_error argument.
28228         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28229         U_STRCONV_TO_LOCALE.
28230         * lib/unistr/u16-strcoll.c: Likewise.
28231         * lib/unistr/u32-strcoll.c: Likewise.
28232         * modules/unistr/u8-strcoll (Depends-on): Add
28233         uniconv/u8-strconv-to-enc, localcharset. Remove
28234         uniconv/u8-strconv-to-locale.
28235         (configure.ac): Bump version number.
28236         * modules/unistr/u16-strcoll (Depends-on): Add
28237         uniconv/u16-strconv-to-enc, localcharset. Remove
28238         uniconv/u16-strconv-to-locale.
28239         (configure.ac): Bump version number.
28240         * modules/unistr/u32-strcoll (Depends-on): Add
28241         uniconv/u32-strconv-to-enc, localcharset. Remove
28242         uniconv/u32-strconv-to-locale.
28243         (configure.ac): Bump version number.
28244
28245 2010-05-24  Bruno Haible  <bruno@clisp.org>
28246
28247         Avoid a test failure on NetBSD 5.0.
28248         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28249         an iconv() bug.
28250
28251 2010-05-24  Bruno Haible  <bruno@clisp.org>
28252
28253         Adjust #include directive style.
28254         * modules/regex (Includes): Recommend to write <regex.h>.
28255
28256 2010-05-24  Bruno Haible  <bruno@clisp.org>
28257
28258         regex: Don't require alloca.
28259         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28260         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28261         only inside if (0).
28262
28263 2010-05-23  Jim Meyering  <meyering@redhat.com>
28264
28265         test-renameat.c: include <sys/stat.h>
28266         * tests/test-renameat.c: Include <sys/stat.h>; required for
28267         definition of S_IS* macros.
28268
28269 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28270
28271         Update maintainer documentation for 'relocatable-prog' module.
28272         * doc/relocatable-maint.texi: Update.
28273         Comments by Bruno Haible.
28274
28275 2010-05-23  Bruno Haible  <bruno@clisp.org>
28276
28277         git-merge-changelog: Enable --split-merged-entry by default.
28278         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28279         (usage): Don't mention this option any more.
28280         Reported by Ralf Wildenhues.
28281
28282 2010-05-23  Jim Meyering  <meyering@redhat.com>
28283
28284         test-pwrite: do not leave behind a test file named "out"
28285         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28286         The trivial-looking use of init.sh is really necessary.
28287         It ensures that the temporary file, "out", is created in
28288         a temporary directory, and removed upon termination.
28289         * tests/test-pwrite.sh: Re-add file.
28290         * modules/pwrite-tests: Reference it.
28291
28292 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28293
28294         Fix output redirection buglet in init.sh.
28295         * tests/init.sh: Fix redirection of stderr.
28296
28297 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28298
28299         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28300
28301 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28302
28303         * modules/valgrind-tests: New file.
28304         * m4/valgrind-tests.m4: New file.
28305         * doc/valgrind-tests.texi: New file.
28306         * doc/gnulib.texi (Running self-tests under valgrind): New
28307         section.
28308
28309 2010-05-19  Bruno Haible  <bruno@clisp.org>
28310
28311         Clean up dead code in recent commit.
28312         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28313         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28314         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28315         Suggested by Paolo Bonzini.
28316
28317 2010-05-19  Bruno Haible  <bruno@clisp.org>
28318
28319         Avoid valgrind error reports from libunistring.
28320         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28321         * modules/libunistring (Files): Add it.
28322         * modules/libunistring-optional (Files): Likewise.
28323
28324 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28325             Bruno Haible  <bruno@clisp.org>
28326
28327         New module 'libunistring-optional'.
28328         * modules/libunistring-optional: New file.
28329         * m4/libunistring-base.m4: New file.
28330         * m4/libunistring-optional.m4: New file.
28331         * lib/unicase.in.h: Renamed from lib/unicase.h.
28332         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28333         * lib/unictype.in.h: Renamed from lib/unictype.h.
28334         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28335         * lib/uniname.in.h: Renamed from lib/uniname.h.
28336         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28337         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28338         * lib/unistr.in.h: Renamed from lib/unistr.h.
28339         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28340         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28341         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28342         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28343         gl_LIBUNISTRING. If the library was found, determine the installed
28344         version and set LIBUNISTRING_VERSION.
28345         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28346         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28347         handle a configuration option --with-included-libunistring.
28348         * modules/libunistring (Files): Add m4/absolute-header.m4.
28349         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28350         Add m4/libunistring-base.m4.
28351         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28352         (Makefile.am): Build unicase.h from unicase.in.h.
28353         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28354         Add m4/libunistring-base.m4.
28355         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28356         (Makefile.am): Build uniconv.h from uniconv.in.h.
28357         * modules/unictype/base (Files): Use unictype.in.h instead of
28358         unictype.h. Add m4/libunistring-base.m4.
28359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28360         (Makefile.am): Build unictype.h from unictype.in.h.
28361         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28362         Add m4/libunistring-base.m4.
28363         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28364         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28365         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28366         Add m4/libunistring-base.m4.
28367         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28368         (Makefile.am): Build uniname.h from uniname.in.h.
28369         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28370         Add m4/libunistring-base.m4.
28371         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28372         (Makefile.am): Build uninorm.h from uninorm.in.h.
28373         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28374         unistdio.h. Add m4/libunistring-base.m4.
28375         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28376         (Makefile.am): Build unistdio.h from unistdio.in.h.
28377         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28378         Add m4/libunistring-base.m4.
28379         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28380         (Makefile.am): Build unistr.h from unistr.in.h.
28381         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28382         Add m4/libunistring-base.m4.
28383         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28384         (Makefile.am): Build unitypes.h from unitypes.in.h.
28385         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28386         Add m4/libunistring-base.m4.
28387         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28388         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28389         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28390         uniwidth.h. Add m4/libunistring-base.m4.
28391         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28392         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28393         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28394         instead of augmenting lib_SOURCES.
28395         * modules/unicase/empty-suffix-context: Likewise.
28396         * modules/unicase/locale-language: Likewise.
28397         * modules/unicase/tolower: Likewise.
28398         * modules/unicase/totitle: Likewise.
28399         * modules/unicase/toupper: Likewise.
28400         * modules/unicase/u8-casecmp: Likewise.
28401         * modules/unicase/u8-casecoll: Likewise.
28402         * modules/unicase/u8-casefold: Likewise.
28403         * modules/unicase/u8-casexfrm: Likewise.
28404         * modules/unicase/u8-ct-casefold: Likewise.
28405         * modules/unicase/u8-ct-tolower: Likewise.
28406         * modules/unicase/u8-ct-totitle: Likewise.
28407         * modules/unicase/u8-ct-toupper: Likewise.
28408         * modules/unicase/u8-is-cased: Likewise.
28409         * modules/unicase/u8-is-casefolded: Likewise.
28410         * modules/unicase/u8-is-lowercase: Likewise.
28411         * modules/unicase/u8-is-titlecase: Likewise.
28412         * modules/unicase/u8-is-uppercase: Likewise.
28413         * modules/unicase/u8-prefix-context: Likewise.
28414         * modules/unicase/u8-suffix-context: Likewise.
28415         * modules/unicase/u8-tolower: Likewise.
28416         * modules/unicase/u8-totitle: Likewise.
28417         * modules/unicase/u8-toupper: Likewise.
28418         * modules/unicase/u16-casecmp: Likewise.
28419         * modules/unicase/u16-casecoll: Likewise.
28420         * modules/unicase/u16-casefold: Likewise.
28421         * modules/unicase/u16-casexfrm: Likewise.
28422         * modules/unicase/u16-ct-casefold: Likewise.
28423         * modules/unicase/u16-ct-tolower: Likewise.
28424         * modules/unicase/u16-ct-totitle: Likewise.
28425         * modules/unicase/u16-ct-toupper: Likewise.
28426         * modules/unicase/u16-is-cased: Likewise.
28427         * modules/unicase/u16-is-casefolded: Likewise.
28428         * modules/unicase/u16-is-lowercase: Likewise.
28429         * modules/unicase/u16-is-titlecase: Likewise.
28430         * modules/unicase/u16-is-uppercase: Likewise.
28431         * modules/unicase/u16-prefix-context: Likewise.
28432         * modules/unicase/u16-suffix-context: Likewise.
28433         * modules/unicase/u16-tolower: Likewise.
28434         * modules/unicase/u16-totitle: Likewise.
28435         * modules/unicase/u16-toupper: Likewise.
28436         * modules/unicase/u32-casecmp: Likewise.
28437         * modules/unicase/u32-casecoll: Likewise.
28438         * modules/unicase/u32-casefold: Likewise.
28439         * modules/unicase/u32-casexfrm: Likewise.
28440         * modules/unicase/u32-ct-casefold: Likewise.
28441         * modules/unicase/u32-ct-tolower: Likewise.
28442         * modules/unicase/u32-ct-totitle: Likewise.
28443         * modules/unicase/u32-ct-toupper: Likewise.
28444         * modules/unicase/u32-is-cased: Likewise.
28445         * modules/unicase/u32-is-casefolded: Likewise.
28446         * modules/unicase/u32-is-lowercase: Likewise.
28447         * modules/unicase/u32-is-titlecase: Likewise.
28448         * modules/unicase/u32-is-uppercase: Likewise.
28449         * modules/unicase/u32-prefix-context: Likewise.
28450         * modules/unicase/u32-suffix-context: Likewise.
28451         * modules/unicase/u32-tolower: Likewise.
28452         * modules/unicase/u32-totitle: Likewise.
28453         * modules/unicase/u32-toupper: Likewise.
28454         * modules/unicase/ulc-casecmp: Likewise.
28455         * modules/unicase/ulc-casecoll: Likewise.
28456         * modules/unicase/ulc-casexfrm: Likewise.
28457         * modules/uniconv/u8-conv-from-enc: Likewise.
28458         * modules/uniconv/u8-conv-to-enc: Likewise.
28459         * modules/uniconv/u8-strconv-from-enc: Likewise.
28460         * modules/uniconv/u8-strconv-from-locale: Likewise.
28461         * modules/uniconv/u8-strconv-to-enc: Likewise.
28462         * modules/uniconv/u8-strconv-to-locale: Likewise.
28463         * modules/uniconv/u16-conv-from-enc: Likewise.
28464         * modules/uniconv/u16-conv-to-enc: Likewise.
28465         * modules/uniconv/u16-strconv-from-enc: Likewise.
28466         * modules/uniconv/u16-strconv-from-locale: Likewise.
28467         * modules/uniconv/u16-strconv-to-enc: Likewise.
28468         * modules/uniconv/u16-strconv-to-locale: Likewise.
28469         * modules/uniconv/u32-conv-from-enc: Likewise.
28470         * modules/uniconv/u32-conv-to-enc: Likewise.
28471         * modules/uniconv/u32-strconv-from-enc: Likewise.
28472         * modules/uniconv/u32-strconv-from-locale: Likewise.
28473         * modules/uniconv/u32-strconv-to-enc: Likewise.
28474         * modules/uniconv/u32-strconv-to-locale: Likewise.
28475         * modules/unictype/bidicategory-byname: Likewise.
28476         * modules/unictype/bidicategory-name: Likewise.
28477         * modules/unictype/bidicategory-of: Likewise.
28478         * modules/unictype/bidicategory-test: Likewise.
28479         * modules/unictype/block-list: Likewise.
28480         * modules/unictype/block-test: Likewise.
28481         * modules/unictype/category-C: Likewise.
28482         * modules/unictype/category-Cc: Likewise.
28483         * modules/unictype/category-Cf: Likewise.
28484         * modules/unictype/category-Cn: Likewise.
28485         * modules/unictype/category-Co: Likewise.
28486         * modules/unictype/category-Cs: Likewise.
28487         * modules/unictype/category-L: Likewise.
28488         * modules/unictype/category-Ll: Likewise.
28489         * modules/unictype/category-Lm: Likewise.
28490         * modules/unictype/category-Lo: Likewise.
28491         * modules/unictype/category-Lt: Likewise.
28492         * modules/unictype/category-Lu: Likewise.
28493         * modules/unictype/category-M: Likewise.
28494         * modules/unictype/category-Mc: Likewise.
28495         * modules/unictype/category-Me: Likewise.
28496         * modules/unictype/category-Mn: Likewise.
28497         * modules/unictype/category-N: Likewise.
28498         * modules/unictype/category-Nd: Likewise.
28499         * modules/unictype/category-Nl: Likewise.
28500         * modules/unictype/category-No: Likewise.
28501         * modules/unictype/category-P: Likewise.
28502         * modules/unictype/category-Pc: Likewise.
28503         * modules/unictype/category-Pd: Likewise.
28504         * modules/unictype/category-Pe: Likewise.
28505         * modules/unictype/category-Pf: Likewise.
28506         * modules/unictype/category-Pi: Likewise.
28507         * modules/unictype/category-Po: Likewise.
28508         * modules/unictype/category-Ps: Likewise.
28509         * modules/unictype/category-S: Likewise.
28510         * modules/unictype/category-Sc: Likewise.
28511         * modules/unictype/category-Sk: Likewise.
28512         * modules/unictype/category-Sm: Likewise.
28513         * modules/unictype/category-So: Likewise.
28514         * modules/unictype/category-Z: Likewise.
28515         * modules/unictype/category-Zl: Likewise.
28516         * modules/unictype/category-Zp: Likewise.
28517         * modules/unictype/category-Zs: Likewise.
28518         * modules/unictype/category-and: Likewise.
28519         * modules/unictype/category-and-not: Likewise.
28520         * modules/unictype/category-byname: Likewise.
28521         * modules/unictype/category-name: Likewise.
28522         * modules/unictype/category-none: Likewise.
28523         * modules/unictype/category-of: Likewise.
28524         * modules/unictype/category-or: Likewise.
28525         * modules/unictype/category-test: Likewise.
28526         * modules/unictype/combining-class: Likewise.
28527         * modules/unictype/ctype-alnum: Likewise.
28528         * modules/unictype/ctype-alpha: Likewise.
28529         * modules/unictype/ctype-blank: Likewise.
28530         * modules/unictype/ctype-cntrl: Likewise.
28531         * modules/unictype/ctype-digit: Likewise.
28532         * modules/unictype/ctype-graph: Likewise.
28533         * modules/unictype/ctype-lower: Likewise.
28534         * modules/unictype/ctype-print: Likewise.
28535         * modules/unictype/ctype-punct: Likewise.
28536         * modules/unictype/ctype-space: Likewise.
28537         * modules/unictype/ctype-upper: Likewise.
28538         * modules/unictype/ctype-xdigit: Likewise.
28539         * modules/unictype/decimal-digit: Likewise.
28540         * modules/unictype/digit: Likewise.
28541         * modules/unictype/mirror: Likewise.
28542         * modules/unictype/numeric: Likewise.
28543         * modules/unictype/property-alphabetic: Likewise.
28544         * modules/unictype/property-ascii-hex-digit: Likewise.
28545         * modules/unictype/property-bidi-arabic-digit: Likewise.
28546         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28547         * modules/unictype/property-bidi-block-separator: Likewise.
28548         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28549         * modules/unictype/property-bidi-common-separator: Likewise.
28550         * modules/unictype/property-bidi-control: Likewise.
28551         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28552         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28553         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28554         * modules/unictype/property-bidi-european-digit: Likewise.
28555         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28556         * modules/unictype/property-bidi-left-to-right: Likewise.
28557         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28558         * modules/unictype/property-bidi-other-neutral: Likewise.
28559         * modules/unictype/property-bidi-pdf: Likewise.
28560         * modules/unictype/property-bidi-segment-separator: Likewise.
28561         * modules/unictype/property-bidi-whitespace: Likewise.
28562         * modules/unictype/property-byname: Likewise.
28563         * modules/unictype/property-combining: Likewise.
28564         * modules/unictype/property-composite: Likewise.
28565         * modules/unictype/property-currency-symbol: Likewise.
28566         * modules/unictype/property-dash: Likewise.
28567         * modules/unictype/property-decimal-digit: Likewise.
28568         * modules/unictype/property-default-ignorable-code-point: Likewise.
28569         * modules/unictype/property-deprecated: Likewise.
28570         * modules/unictype/property-diacritic: Likewise.
28571         * modules/unictype/property-extender: Likewise.
28572         * modules/unictype/property-format-control: Likewise.
28573         * modules/unictype/property-grapheme-base: Likewise.
28574         * modules/unictype/property-grapheme-extend: Likewise.
28575         * modules/unictype/property-grapheme-link: Likewise.
28576         * modules/unictype/property-hex-digit: Likewise.
28577         * modules/unictype/property-hyphen: Likewise.
28578         * modules/unictype/property-id-continue: Likewise.
28579         * modules/unictype/property-id-start: Likewise.
28580         * modules/unictype/property-ideographic: Likewise.
28581         * modules/unictype/property-ids-binary-operator: Likewise.
28582         * modules/unictype/property-ids-trinary-operator: Likewise.
28583         * modules/unictype/property-ignorable-control: Likewise.
28584         * modules/unictype/property-iso-control: Likewise.
28585         * modules/unictype/property-join-control: Likewise.
28586         * modules/unictype/property-left-of-pair: Likewise.
28587         * modules/unictype/property-line-separator: Likewise.
28588         * modules/unictype/property-logical-order-exception: Likewise.
28589         * modules/unictype/property-lowercase: Likewise.
28590         * modules/unictype/property-math: Likewise.
28591         * modules/unictype/property-non-break: Likewise.
28592         * modules/unictype/property-not-a-character: Likewise.
28593         * modules/unictype/property-numeric: Likewise.
28594         * modules/unictype/property-other-alphabetic: Likewise.
28595         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28596         * modules/unictype/property-other-grapheme-extend: Likewise.
28597         * modules/unictype/property-other-id-continue: Likewise.
28598         * modules/unictype/property-other-id-start: Likewise.
28599         * modules/unictype/property-other-lowercase: Likewise.
28600         * modules/unictype/property-other-math: Likewise.
28601         * modules/unictype/property-other-uppercase: Likewise.
28602         * modules/unictype/property-paired-punctuation: Likewise.
28603         * modules/unictype/property-paragraph-separator: Likewise.
28604         * modules/unictype/property-pattern-syntax: Likewise.
28605         * modules/unictype/property-pattern-white-space: Likewise.
28606         * modules/unictype/property-private-use: Likewise.
28607         * modules/unictype/property-punctuation: Likewise.
28608         * modules/unictype/property-quotation-mark: Likewise.
28609         * modules/unictype/property-radical: Likewise.
28610         * modules/unictype/property-sentence-terminal: Likewise.
28611         * modules/unictype/property-soft-dotted: Likewise.
28612         * modules/unictype/property-space: Likewise.
28613         * modules/unictype/property-terminal-punctuation: Likewise.
28614         * modules/unictype/property-test: Likewise.
28615         * modules/unictype/property-titlecase: Likewise.
28616         * modules/unictype/property-unassigned-code-value: Likewise.
28617         * modules/unictype/property-unified-ideograph: Likewise.
28618         * modules/unictype/property-uppercase: Likewise.
28619         * modules/unictype/property-variation-selector: Likewise.
28620         * modules/unictype/property-white-space: Likewise.
28621         * modules/unictype/property-xid-continue: Likewise.
28622         * modules/unictype/property-xid-start: Likewise.
28623         * modules/unictype/property-zero-width: Likewise.
28624         * modules/unictype/scripts: Likewise.
28625         * modules/unictype/syntax-c-ident: Likewise.
28626         * modules/unictype/syntax-c-whitespace: Likewise.
28627         * modules/unictype/syntax-java-ident: Likewise.
28628         * modules/unictype/syntax-java-whitespace: Likewise.
28629         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28630         * modules/unilbrk/u8-width-linebreaks: Likewise.
28631         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28632         * modules/unilbrk/u16-width-linebreaks: Likewise.
28633         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28634         * modules/unilbrk/u32-width-linebreaks: Likewise.
28635         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28636         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28637         * modules/uniname/uniname: Likewise.
28638         * modules/uninorm/canonical-decomposition: Likewise.
28639         * modules/uninorm/composition: Likewise.
28640         * modules/uninorm/decomposing-form: Likewise.
28641         * modules/uninorm/decomposition: Likewise.
28642         * modules/uninorm/filter: Likewise.
28643         * modules/uninorm/nfc: Likewise.
28644         * modules/uninorm/nfd: Likewise.
28645         * modules/uninorm/nfkc: Likewise.
28646         * modules/uninorm/nfkd: Likewise.
28647         * modules/uninorm/u8-normalize: Likewise.
28648         * modules/uninorm/u8-normcmp: Likewise.
28649         * modules/uninorm/u8-normcoll: Likewise.
28650         * modules/uninorm/u8-normxfrm: Likewise.
28651         * modules/uninorm/u16-normalize: Likewise.
28652         * modules/uninorm/u16-normcmp: Likewise.
28653         * modules/uninorm/u16-normcoll: Likewise.
28654         * modules/uninorm/u16-normxfrm: Likewise.
28655         * modules/uninorm/u32-normalize: Likewise.
28656         * modules/uninorm/u32-normcmp: Likewise.
28657         * modules/uninorm/u32-normcoll: Likewise.
28658         * modules/uninorm/u32-normxfrm: Likewise.
28659         * modules/unistdio/u8-asnprintf: Likewise.
28660         * modules/unistdio/u8-asprintf: Likewise.
28661         * modules/unistdio/u8-snprintf: Likewise.
28662         * modules/unistdio/u8-sprintf: Likewise.
28663         * modules/unistdio/u8-u8-asnprintf: Likewise.
28664         * modules/unistdio/u8-u8-asprintf: Likewise.
28665         * modules/unistdio/u8-u8-snprintf: Likewise.
28666         * modules/unistdio/u8-u8-sprintf: Likewise.
28667         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28668         * modules/unistdio/u8-u8-vasprintf: Likewise.
28669         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28670         * modules/unistdio/u8-u8-vsprintf: Likewise.
28671         * modules/unistdio/u8-vasnprintf: Likewise.
28672         * modules/unistdio/u8-vasprintf: Likewise.
28673         * modules/unistdio/u8-vsnprintf: Likewise.
28674         * modules/unistdio/u8-vsprintf: Likewise.
28675         * modules/unistdio/u16-asnprintf: Likewise.
28676         * modules/unistdio/u16-asprintf: Likewise.
28677         * modules/unistdio/u16-snprintf: Likewise.
28678         * modules/unistdio/u16-sprintf: Likewise.
28679         * modules/unistdio/u16-u16-asnprintf: Likewise.
28680         * modules/unistdio/u16-u16-asprintf: Likewise.
28681         * modules/unistdio/u16-u16-snprintf: Likewise.
28682         * modules/unistdio/u16-u16-sprintf: Likewise.
28683         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28684         * modules/unistdio/u16-u16-vasprintf: Likewise.
28685         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28686         * modules/unistdio/u16-u16-vsprintf: Likewise.
28687         * modules/unistdio/u16-vasnprintf: Likewise.
28688         * modules/unistdio/u16-vasprintf: Likewise.
28689         * modules/unistdio/u16-vsnprintf: Likewise.
28690         * modules/unistdio/u16-vsprintf: Likewise.
28691         * modules/unistdio/u32-asnprintf: Likewise.
28692         * modules/unistdio/u32-asprintf: Likewise.
28693         * modules/unistdio/u32-snprintf: Likewise.
28694         * modules/unistdio/u32-sprintf: Likewise.
28695         * modules/unistdio/u32-u32-asnprintf: Likewise.
28696         * modules/unistdio/u32-u32-asprintf: Likewise.
28697         * modules/unistdio/u32-u32-snprintf: Likewise.
28698         * modules/unistdio/u32-u32-sprintf: Likewise.
28699         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28700         * modules/unistdio/u32-u32-vasprintf: Likewise.
28701         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28702         * modules/unistdio/u32-u32-vsprintf: Likewise.
28703         * modules/unistdio/u32-vasnprintf: Likewise.
28704         * modules/unistdio/u32-vasprintf: Likewise.
28705         * modules/unistdio/u32-vsnprintf: Likewise.
28706         * modules/unistdio/u32-vsprintf: Likewise.
28707         * modules/unistdio/ulc-asnprintf: Likewise.
28708         * modules/unistdio/ulc-asprintf: Likewise.
28709         * modules/unistdio/ulc-fprintf: Likewise.
28710         * modules/unistdio/ulc-snprintf: Likewise.
28711         * modules/unistdio/ulc-sprintf: Likewise.
28712         * modules/unistdio/ulc-vasnprintf: Likewise.
28713         * modules/unistdio/ulc-vasprintf: Likewise.
28714         * modules/unistdio/ulc-vfprintf: Likewise.
28715         * modules/unistdio/ulc-vsnprintf: Likewise.
28716         * modules/unistdio/ulc-vsprintf: Likewise.
28717         * modules/unistr/u8-check: Likewise.
28718         * modules/unistr/u8-chr: Likewise.
28719         * modules/unistr/u8-cmp: Likewise.
28720         * modules/unistr/u8-cmp2: Likewise.
28721         * modules/unistr/u8-cpy: Likewise.
28722         * modules/unistr/u8-cpy-alloc: Likewise.
28723         * modules/unistr/u8-endswith: Likewise.
28724         * modules/unistr/u8-mblen: Likewise.
28725         * modules/unistr/u8-mbsnlen: Likewise.
28726         * modules/unistr/u8-mbtouc: Likewise.
28727         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28728         * modules/unistr/u8-mbtoucr: Likewise.
28729         * modules/unistr/u8-move: Likewise.
28730         * modules/unistr/u8-next: Likewise.
28731         * modules/unistr/u8-prev: Likewise.
28732         * modules/unistr/u8-set: Likewise.
28733         * modules/unistr/u8-startswith: Likewise.
28734         * modules/unistr/u8-stpcpy: Likewise.
28735         * modules/unistr/u8-stpncpy: Likewise.
28736         * modules/unistr/u8-strcat: Likewise.
28737         * modules/unistr/u8-strchr: Likewise.
28738         * modules/unistr/u8-strcmp: Likewise.
28739         * modules/unistr/u8-strcoll: Likewise.
28740         * modules/unistr/u8-strcpy: Likewise.
28741         * modules/unistr/u8-strcspn: Likewise.
28742         * modules/unistr/u8-strdup: Likewise.
28743         * modules/unistr/u8-strlen: Likewise.
28744         * modules/unistr/u8-strmblen: Likewise.
28745         * modules/unistr/u8-strmbtouc: Likewise.
28746         * modules/unistr/u8-strncat: Likewise.
28747         * modules/unistr/u8-strncmp: Likewise.
28748         * modules/unistr/u8-strncpy: Likewise.
28749         * modules/unistr/u8-strnlen: Likewise.
28750         * modules/unistr/u8-strpbrk: Likewise.
28751         * modules/unistr/u8-strrchr: Likewise.
28752         * modules/unistr/u8-strspn: Likewise.
28753         * modules/unistr/u8-strstr: Likewise.
28754         * modules/unistr/u8-strtok: Likewise.
28755         * modules/unistr/u8-to-u16: Likewise.
28756         * modules/unistr/u8-to-u32: Likewise.
28757         * modules/unistr/u8-uctomb: Likewise.
28758         * modules/unistr/u16-check: Likewise.
28759         * modules/unistr/u16-chr: Likewise.
28760         * modules/unistr/u16-cmp: Likewise.
28761         * modules/unistr/u16-cmp2: Likewise.
28762         * modules/unistr/u16-cpy: Likewise.
28763         * modules/unistr/u16-cpy-alloc: Likewise.
28764         * modules/unistr/u16-endswith: Likewise.
28765         * modules/unistr/u16-mblen: Likewise.
28766         * modules/unistr/u16-mbsnlen: Likewise.
28767         * modules/unistr/u16-mbtouc: Likewise.
28768         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28769         * modules/unistr/u16-mbtoucr: Likewise.
28770         * modules/unistr/u16-move: Likewise.
28771         * modules/unistr/u16-next: Likewise.
28772         * modules/unistr/u16-prev: Likewise.
28773         * modules/unistr/u16-set: Likewise.
28774         * modules/unistr/u16-startswith: Likewise.
28775         * modules/unistr/u16-stpcpy: Likewise.
28776         * modules/unistr/u16-stpncpy: Likewise.
28777         * modules/unistr/u16-strcat: Likewise.
28778         * modules/unistr/u16-strchr: Likewise.
28779         * modules/unistr/u16-strcmp: Likewise.
28780         * modules/unistr/u16-strcoll: Likewise.
28781         * modules/unistr/u16-strcpy: Likewise.
28782         * modules/unistr/u16-strcspn: Likewise.
28783         * modules/unistr/u16-strdup: Likewise.
28784         * modules/unistr/u16-strlen: Likewise.
28785         * modules/unistr/u16-strmblen: Likewise.
28786         * modules/unistr/u16-strmbtouc: Likewise.
28787         * modules/unistr/u16-strncat: Likewise.
28788         * modules/unistr/u16-strncmp: Likewise.
28789         * modules/unistr/u16-strncpy: Likewise.
28790         * modules/unistr/u16-strnlen: Likewise.
28791         * modules/unistr/u16-strpbrk: Likewise.
28792         * modules/unistr/u16-strrchr: Likewise.
28793         * modules/unistr/u16-strspn: Likewise.
28794         * modules/unistr/u16-strstr: Likewise.
28795         * modules/unistr/u16-strtok: Likewise.
28796         * modules/unistr/u16-to-u32: Likewise.
28797         * modules/unistr/u16-to-u8: Likewise.
28798         * modules/unistr/u16-uctomb: Likewise.
28799         * modules/unistr/u32-check: Likewise.
28800         * modules/unistr/u32-chr: Likewise.
28801         * modules/unistr/u32-cmp: Likewise.
28802         * modules/unistr/u32-cmp2: Likewise.
28803         * modules/unistr/u32-cpy: Likewise.
28804         * modules/unistr/u32-cpy-alloc: Likewise.
28805         * modules/unistr/u32-endswith: Likewise.
28806         * modules/unistr/u32-mblen: Likewise.
28807         * modules/unistr/u32-mbsnlen: Likewise.
28808         * modules/unistr/u32-mbtouc: Likewise.
28809         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28810         * modules/unistr/u32-mbtoucr: Likewise.
28811         * modules/unistr/u32-move: Likewise.
28812         * modules/unistr/u32-next: Likewise.
28813         * modules/unistr/u32-prev: Likewise.
28814         * modules/unistr/u32-set: Likewise.
28815         * modules/unistr/u32-startswith: Likewise.
28816         * modules/unistr/u32-stpcpy: Likewise.
28817         * modules/unistr/u32-stpncpy: Likewise.
28818         * modules/unistr/u32-strcat: Likewise.
28819         * modules/unistr/u32-strchr: Likewise.
28820         * modules/unistr/u32-strcmp: Likewise.
28821         * modules/unistr/u32-strcoll: Likewise.
28822         * modules/unistr/u32-strcpy: Likewise.
28823         * modules/unistr/u32-strcspn: Likewise.
28824         * modules/unistr/u32-strdup: Likewise.
28825         * modules/unistr/u32-strlen: Likewise.
28826         * modules/unistr/u32-strmblen: Likewise.
28827         * modules/unistr/u32-strmbtouc: Likewise.
28828         * modules/unistr/u32-strncat: Likewise.
28829         * modules/unistr/u32-strncmp: Likewise.
28830         * modules/unistr/u32-strncpy: Likewise.
28831         * modules/unistr/u32-strnlen: Likewise.
28832         * modules/unistr/u32-strpbrk: Likewise.
28833         * modules/unistr/u32-strrchr: Likewise.
28834         * modules/unistr/u32-strspn: Likewise.
28835         * modules/unistr/u32-strstr: Likewise.
28836         * modules/unistr/u32-strtok: Likewise.
28837         * modules/unistr/u32-to-u16: Likewise.
28838         * modules/unistr/u32-to-u8: Likewise.
28839         * modules/unistr/u32-uctomb: Likewise.
28840         * modules/uniwbrk/u8-wordbreaks: Likewise.
28841         * modules/uniwbrk/u16-wordbreaks: Likewise.
28842         * modules/uniwbrk/u32-wordbreaks: Likewise.
28843         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28844         * modules/uniwbrk/wordbreak-property: Likewise.
28845         * modules/uniwidth/u8-strwidth: Likewise.
28846         * modules/uniwidth/u8-width: Likewise.
28847         * modules/uniwidth/u16-strwidth: Likewise.
28848         * modules/uniwidth/u16-width: Likewise.
28849         * modules/uniwidth/u32-strwidth: Likewise.
28850         * modules/uniwidth/u32-width: Likewise.
28851         * modules/uniwidth/width: Likewise.
28852         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28853         with $(LIBUNISTRING).
28854         * modules/unicase/ignorable-tests: Likewise.
28855         * modules/unicase/locale-language-tests: Likewise.
28856         * modules/unicase/tolower-tests: Likewise.
28857         * modules/unicase/totitle-tests: Likewise.
28858         * modules/unicase/toupper-tests: Likewise.
28859         * modules/unicase/u8-casecmp-tests: Likewise.
28860         * modules/unicase/u8-casecoll-tests: Likewise.
28861         * modules/unicase/u8-casefold-tests: Likewise.
28862         * modules/unicase/u8-is-cased-tests: Likewise.
28863         * modules/unicase/u8-is-casefolded-tests: Likewise.
28864         * modules/unicase/u8-is-lowercase-tests: Likewise.
28865         * modules/unicase/u8-is-titlecase-tests: Likewise.
28866         * modules/unicase/u8-is-uppercase-tests: Likewise.
28867         * modules/unicase/u8-tolower-tests: Likewise.
28868         * modules/unicase/u8-totitle-tests: Likewise.
28869         * modules/unicase/u8-toupper-tests: Likewise.
28870         * modules/unicase/u16-casecmp-tests: Likewise.
28871         * modules/unicase/u16-casecoll-tests: Likewise.
28872         * modules/unicase/u16-casefold-tests: Likewise.
28873         * modules/unicase/u16-is-cased-tests: Likewise.
28874         * modules/unicase/u16-is-casefolded-tests: Likewise.
28875         * modules/unicase/u16-is-lowercase-tests: Likewise.
28876         * modules/unicase/u16-is-titlecase-tests: Likewise.
28877         * modules/unicase/u16-is-uppercase-tests: Likewise.
28878         * modules/unicase/u16-tolower-tests: Likewise.
28879         * modules/unicase/u16-totitle-tests: Likewise.
28880         * modules/unicase/u16-toupper-tests: Likewise.
28881         * modules/unicase/u32-casecmp-tests: Likewise.
28882         * modules/unicase/u32-casecoll-tests: Likewise.
28883         * modules/unicase/u32-casefold-tests: Likewise.
28884         * modules/unicase/u32-is-cased-tests: Likewise.
28885         * modules/unicase/u32-is-casefolded-tests: Likewise.
28886         * modules/unicase/u32-is-lowercase-tests: Likewise.
28887         * modules/unicase/u32-is-titlecase-tests: Likewise.
28888         * modules/unicase/u32-is-uppercase-tests: Likewise.
28889         * modules/unicase/u32-tolower-tests: Likewise.
28890         * modules/unicase/u32-totitle-tests: Likewise.
28891         * modules/unicase/u32-toupper-tests: Likewise.
28892         * modules/unicase/ulc-casecmp-tests: Likewise.
28893         * modules/unicase/ulc-casecoll-tests: Likewise.
28894         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28895         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28896         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28897         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28898         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28899         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28900         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28901         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28902         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28903         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28904         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28905         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28906         * modules/unictype/bidicategory-byname-tests: Likewise.
28907         * modules/unictype/bidicategory-name-tests: Likewise.
28908         * modules/unictype/bidicategory-of-tests: Likewise.
28909         * modules/unictype/bidicategory-test-tests: Likewise.
28910         * modules/unictype/block-list-tests: Likewise.
28911         * modules/unictype/block-of-tests: Likewise.
28912         * modules/unictype/block-test-tests: Likewise.
28913         * modules/unictype/category-C-tests: Likewise.
28914         * modules/unictype/category-Cc-tests: Likewise.
28915         * modules/unictype/category-Cf-tests: Likewise.
28916         * modules/unictype/category-Cn-tests: Likewise.
28917         * modules/unictype/category-Co-tests: Likewise.
28918         * modules/unictype/category-Cs-tests: Likewise.
28919         * modules/unictype/category-L-tests: Likewise.
28920         * modules/unictype/category-Ll-tests: Likewise.
28921         * modules/unictype/category-Lm-tests: Likewise.
28922         * modules/unictype/category-Lo-tests: Likewise.
28923         * modules/unictype/category-Lt-tests: Likewise.
28924         * modules/unictype/category-Lu-tests: Likewise.
28925         * modules/unictype/category-M-tests: Likewise.
28926         * modules/unictype/category-Mc-tests: Likewise.
28927         * modules/unictype/category-Me-tests: Likewise.
28928         * modules/unictype/category-Mn-tests: Likewise.
28929         * modules/unictype/category-N-tests: Likewise.
28930         * modules/unictype/category-Nd-tests: Likewise.
28931         * modules/unictype/category-Nl-tests: Likewise.
28932         * modules/unictype/category-No-tests: Likewise.
28933         * modules/unictype/category-P-tests: Likewise.
28934         * modules/unictype/category-Pc-tests: Likewise.
28935         * modules/unictype/category-Pd-tests: Likewise.
28936         * modules/unictype/category-Pe-tests: Likewise.
28937         * modules/unictype/category-Pf-tests: Likewise.
28938         * modules/unictype/category-Pi-tests: Likewise.
28939         * modules/unictype/category-Po-tests: Likewise.
28940         * modules/unictype/category-Ps-tests: Likewise.
28941         * modules/unictype/category-S-tests: Likewise.
28942         * modules/unictype/category-Sc-tests: Likewise.
28943         * modules/unictype/category-Sk-tests: Likewise.
28944         * modules/unictype/category-Sm-tests: Likewise.
28945         * modules/unictype/category-So-tests: Likewise.
28946         * modules/unictype/category-Z-tests: Likewise.
28947         * modules/unictype/category-Zl-tests: Likewise.
28948         * modules/unictype/category-Zp-tests: Likewise.
28949         * modules/unictype/category-Zs-tests: Likewise.
28950         * modules/unictype/category-and-not-tests: Likewise.
28951         * modules/unictype/category-and-tests: Likewise.
28952         * modules/unictype/category-byname-tests: Likewise.
28953         * modules/unictype/category-name-tests: Likewise.
28954         * modules/unictype/category-none-tests: Likewise.
28955         * modules/unictype/category-of-tests: Likewise.
28956         * modules/unictype/category-or-tests: Likewise.
28957         * modules/unictype/category-test-withtable-tests: Likewise.
28958         * modules/unictype/combining-class-tests: Likewise.
28959         * modules/unictype/ctype-alnum-tests: Likewise.
28960         * modules/unictype/ctype-alpha-tests: Likewise.
28961         * modules/unictype/ctype-blank-tests: Likewise.
28962         * modules/unictype/ctype-cntrl-tests: Likewise.
28963         * modules/unictype/ctype-digit-tests: Likewise.
28964         * modules/unictype/ctype-graph-tests: Likewise.
28965         * modules/unictype/ctype-lower-tests: Likewise.
28966         * modules/unictype/ctype-print-tests: Likewise.
28967         * modules/unictype/ctype-punct-tests: Likewise.
28968         * modules/unictype/ctype-space-tests: Likewise.
28969         * modules/unictype/ctype-upper-tests: Likewise.
28970         * modules/unictype/ctype-xdigit-tests: Likewise.
28971         * modules/unictype/decimal-digit-tests: Likewise.
28972         * modules/unictype/digit-tests: Likewise.
28973         * modules/unictype/mirror-tests: Likewise.
28974         * modules/unictype/numeric-tests: Likewise.
28975         * modules/unictype/property-alphabetic-tests: Likewise.
28976         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28977         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28978         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28979         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28980         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28981         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28982         * modules/unictype/property-bidi-control-tests: Likewise.
28983         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28984         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28985         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28986         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28987         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28988         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28989         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28990         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28991         * modules/unictype/property-bidi-pdf-tests: Likewise.
28992         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28993         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28994         * modules/unictype/property-byname-tests: Likewise.
28995         * modules/unictype/property-combining-tests: Likewise.
28996         * modules/unictype/property-composite-tests: Likewise.
28997         * modules/unictype/property-currency-symbol-tests: Likewise.
28998         * modules/unictype/property-dash-tests: Likewise.
28999         * modules/unictype/property-decimal-digit-tests: Likewise.
29000         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29001         * modules/unictype/property-deprecated-tests: Likewise.
29002         * modules/unictype/property-diacritic-tests: Likewise.
29003         * modules/unictype/property-extender-tests: Likewise.
29004         * modules/unictype/property-format-control-tests: Likewise.
29005         * modules/unictype/property-grapheme-base-tests: Likewise.
29006         * modules/unictype/property-grapheme-extend-tests: Likewise.
29007         * modules/unictype/property-grapheme-link-tests: Likewise.
29008         * modules/unictype/property-hex-digit-tests: Likewise.
29009         * modules/unictype/property-hyphen-tests: Likewise.
29010         * modules/unictype/property-id-continue-tests: Likewise.
29011         * modules/unictype/property-id-start-tests: Likewise.
29012         * modules/unictype/property-ideographic-tests: Likewise.
29013         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29014         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29015         * modules/unictype/property-ignorable-control-tests: Likewise.
29016         * modules/unictype/property-iso-control-tests: Likewise.
29017         * modules/unictype/property-join-control-tests: Likewise.
29018         * modules/unictype/property-left-of-pair-tests: Likewise.
29019         * modules/unictype/property-line-separator-tests: Likewise.
29020         * modules/unictype/property-logical-order-exception-tests: Likewise.
29021         * modules/unictype/property-lowercase-tests: Likewise.
29022         * modules/unictype/property-math-tests: Likewise.
29023         * modules/unictype/property-non-break-tests: Likewise.
29024         * modules/unictype/property-not-a-character-tests: Likewise.
29025         * modules/unictype/property-numeric-tests: Likewise.
29026         * modules/unictype/property-other-alphabetic-tests: Likewise.
29027         * modules/unictype/property-other-default-ignorable-code-point-tests:
29028         Likewise.
29029         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29030         * modules/unictype/property-other-id-continue-tests: Likewise.
29031         * modules/unictype/property-other-id-start-tests: Likewise.
29032         * modules/unictype/property-other-lowercase-tests: Likewise.
29033         * modules/unictype/property-other-math-tests: Likewise.
29034         * modules/unictype/property-other-uppercase-tests: Likewise.
29035         * modules/unictype/property-paired-punctuation-tests: Likewise.
29036         * modules/unictype/property-paragraph-separator-tests: Likewise.
29037         * modules/unictype/property-pattern-syntax-tests: Likewise.
29038         * modules/unictype/property-pattern-white-space-tests: Likewise.
29039         * modules/unictype/property-private-use-tests: Likewise.
29040         * modules/unictype/property-punctuation-tests: Likewise.
29041         * modules/unictype/property-quotation-mark-tests: Likewise.
29042         * modules/unictype/property-radical-tests: Likewise.
29043         * modules/unictype/property-sentence-terminal-tests: Likewise.
29044         * modules/unictype/property-soft-dotted-tests: Likewise.
29045         * modules/unictype/property-space-tests: Likewise.
29046         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29047         * modules/unictype/property-test-tests: Likewise.
29048         * modules/unictype/property-titlecase-tests: Likewise.
29049         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29050         * modules/unictype/property-unified-ideograph-tests: Likewise.
29051         * modules/unictype/property-uppercase-tests: Likewise.
29052         * modules/unictype/property-variation-selector-tests: Likewise.
29053         * modules/unictype/property-white-space-tests: Likewise.
29054         * modules/unictype/property-xid-continue-tests: Likewise.
29055         * modules/unictype/property-xid-start-tests: Likewise.
29056         * modules/unictype/property-zero-width-tests: Likewise.
29057         * modules/unictype/scripts-tests: Likewise.
29058         * modules/unictype/syntax-c-ident-tests: Likewise.
29059         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29060         * modules/unictype/syntax-java-ident-tests: Likewise.
29061         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29062         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29063         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29064         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29065         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29066         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29067         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29068         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29069         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29070         * modules/uniname/uniname-tests: Likewise.
29071         * modules/uninorm/canonical-decomposition-tests: Likewise.
29072         * modules/uninorm/compat-decomposition-tests: Likewise.
29073         * modules/uninorm/composition-tests: Likewise.
29074         * modules/uninorm/decomposing-form-tests: Likewise.
29075         * modules/uninorm/decomposition-tests: Likewise.
29076         * modules/uninorm/filter-tests: Likewise.
29077         * modules/uninorm/nfc-tests: Likewise.
29078         * modules/uninorm/nfd-tests: Likewise.
29079         * modules/uninorm/nfkc-tests: Likewise.
29080         * modules/uninorm/nfkd-tests: Likewise.
29081         * modules/uninorm/u8-normcmp-tests: Likewise.
29082         * modules/uninorm/u8-normcoll-tests: Likewise.
29083         * modules/uninorm/u16-normcmp-tests: Likewise.
29084         * modules/uninorm/u16-normcoll-tests: Likewise.
29085         * modules/uninorm/u32-normcmp-tests: Likewise.
29086         * modules/uninorm/u32-normcoll-tests: Likewise.
29087         * modules/unistdio/u8-asnprintf-tests: Likewise.
29088         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29089         * modules/unistdio/u8-vasprintf-tests: Likewise.
29090         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29091         * modules/unistdio/u8-vsprintf-tests: Likewise.
29092         * modules/unistdio/u16-asnprintf-tests: Likewise.
29093         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29094         * modules/unistdio/u16-vasprintf-tests: Likewise.
29095         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29096         * modules/unistdio/u16-vsprintf-tests: Likewise.
29097         * modules/unistdio/u32-asnprintf-tests: Likewise.
29098         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29099         * modules/unistdio/u32-vasprintf-tests: Likewise.
29100         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29101         * modules/unistdio/u32-vsprintf-tests: Likewise.
29102         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29103         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29104         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29105         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29106         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29107         * modules/unistr/u8-check-tests: Likewise.
29108         * modules/unistr/u8-chr-tests: Likewise.
29109         * modules/unistr/u8-cmp-tests: Likewise.
29110         * modules/unistr/u8-cmp2-tests: Likewise.
29111         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29112         * modules/unistr/u8-cpy-tests: Likewise.
29113         * modules/unistr/u8-mblen-tests: Likewise.
29114         * modules/unistr/u8-mbsnlen-tests: Likewise.
29115         * modules/unistr/u8-mbtouc-tests: Likewise.
29116         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29117         * modules/unistr/u8-mbtoucr-tests: Likewise.
29118         * modules/unistr/u8-move-tests: Likewise.
29119         * modules/unistr/u8-next-tests: Likewise.
29120         * modules/unistr/u8-prev-tests: Likewise.
29121         * modules/unistr/u8-set-tests: Likewise.
29122         * modules/unistr/u8-stpcpy-tests: Likewise.
29123         * modules/unistr/u8-stpncpy-tests: Likewise.
29124         * modules/unistr/u8-strcat-tests: Likewise.
29125         * modules/unistr/u8-strcmp-tests: Likewise.
29126         * modules/unistr/u8-strcoll-tests: Likewise.
29127         * modules/unistr/u8-strcpy-tests: Likewise.
29128         * modules/unistr/u8-strdup-tests: Likewise.
29129         * modules/unistr/u8-strlen-tests: Likewise.
29130         * modules/unistr/u8-strmblen-tests: Likewise.
29131         * modules/unistr/u8-strmbtouc-tests: Likewise.
29132         * modules/unistr/u8-strncat-tests: Likewise.
29133         * modules/unistr/u8-strncmp-tests: Likewise.
29134         * modules/unistr/u8-strncpy-tests: Likewise.
29135         * modules/unistr/u8-strnlen-tests: Likewise.
29136         * modules/unistr/u8-to-u16-tests: Likewise.
29137         * modules/unistr/u8-to-u32-tests: Likewise.
29138         * modules/unistr/u8-uctomb-tests: Likewise.
29139         * modules/unistr/u16-check-tests: Likewise.
29140         * modules/unistr/u16-chr-tests: Likewise.
29141         * modules/unistr/u16-cmp-tests: Likewise.
29142         * modules/unistr/u16-cmp2-tests: Likewise.
29143         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29144         * modules/unistr/u16-cpy-tests: Likewise.
29145         * modules/unistr/u16-mblen-tests: Likewise.
29146         * modules/unistr/u16-mbsnlen-tests: Likewise.
29147         * modules/unistr/u16-mbtouc-tests: Likewise.
29148         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29149         * modules/unistr/u16-mbtoucr-tests: Likewise.
29150         * modules/unistr/u16-move-tests: Likewise.
29151         * modules/unistr/u16-next-tests: Likewise.
29152         * modules/unistr/u16-prev-tests: Likewise.
29153         * modules/unistr/u16-set-tests: Likewise.
29154         * modules/unistr/u16-stpcpy-tests: Likewise.
29155         * modules/unistr/u16-stpncpy-tests: Likewise.
29156         * modules/unistr/u16-strcat-tests: Likewise.
29157         * modules/unistr/u16-strcmp-tests: Likewise.
29158         * modules/unistr/u16-strcoll-tests: Likewise.
29159         * modules/unistr/u16-strcpy-tests: Likewise.
29160         * modules/unistr/u16-strdup-tests: Likewise.
29161         * modules/unistr/u16-strlen-tests: Likewise.
29162         * modules/unistr/u16-strmblen-tests: Likewise.
29163         * modules/unistr/u16-strmbtouc-tests: Likewise.
29164         * modules/unistr/u16-strncat-tests: Likewise.
29165         * modules/unistr/u16-strncmp-tests: Likewise.
29166         * modules/unistr/u16-strncpy-tests: Likewise.
29167         * modules/unistr/u16-strnlen-tests: Likewise.
29168         * modules/unistr/u16-to-u32-tests: Likewise.
29169         * modules/unistr/u16-to-u8-tests: Likewise.
29170         * modules/unistr/u16-uctomb-tests: Likewise.
29171         * modules/unistr/u32-check-tests: Likewise.
29172         * modules/unistr/u32-chr-tests: Likewise.
29173         * modules/unistr/u32-cmp-tests: Likewise.
29174         * modules/unistr/u32-cmp2-tests: Likewise.
29175         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29176         * modules/unistr/u32-cpy-tests: Likewise.
29177         * modules/unistr/u32-mblen-tests: Likewise.
29178         * modules/unistr/u32-mbsnlen-tests: Likewise.
29179         * modules/unistr/u32-mbtouc-tests: Likewise.
29180         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29181         * modules/unistr/u32-mbtoucr-tests: Likewise.
29182         * modules/unistr/u32-move-tests: Likewise.
29183         * modules/unistr/u32-next-tests: Likewise.
29184         * modules/unistr/u32-prev-tests: Likewise.
29185         * modules/unistr/u32-set-tests: Likewise.
29186         * modules/unistr/u32-stpcpy-tests: Likewise.
29187         * modules/unistr/u32-stpncpy-tests: Likewise.
29188         * modules/unistr/u32-strcat-tests: Likewise.
29189         * modules/unistr/u32-strcmp-tests: Likewise.
29190         * modules/unistr/u32-strcoll-tests: Likewise.
29191         * modules/unistr/u32-strcpy-tests: Likewise.
29192         * modules/unistr/u32-strdup-tests: Likewise.
29193         * modules/unistr/u32-strlen-tests: Likewise.
29194         * modules/unistr/u32-strmblen-tests: Likewise.
29195         * modules/unistr/u32-strmbtouc-tests: Likewise.
29196         * modules/unistr/u32-strncat-tests: Likewise.
29197         * modules/unistr/u32-strncmp-tests: Likewise.
29198         * modules/unistr/u32-strncpy-tests: Likewise.
29199         * modules/unistr/u32-strnlen-tests: Likewise.
29200         * modules/unistr/u32-to-u16-tests: Likewise.
29201         * modules/unistr/u32-to-u8-tests: Likewise.
29202         * modules/unistr/u32-uctomb-tests: Likewise.
29203         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29204         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29205         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29206         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29207         * modules/uniwidth/u8-strwidth-tests: Likewise.
29208         * modules/uniwidth/u8-width-tests: Likewise.
29209         * modules/uniwidth/u16-strwidth-tests: Likewise.
29210         * modules/uniwidth/u16-width-tests: Likewise.
29211         * modules/uniwidth/u32-strwidth-tests: Likewise.
29212         * modules/uniwidth/u32-width-tests: Likewise.
29213         * modules/uniwidth/width-tests: Likewise.
29214
29215 2010-05-18  Richard Jones  <rjones@redhat.com>
29216
29217         doc: users.txt: list hivex
29218         * users.txt: Add hivex.
29219
29220 2010-05-18  Richard Jones  <rjones@redhat.com>
29221
29222         doc: users.txt: list febootstrap
29223         * users.txt: Add febootstrap.
29224
29225 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29226
29227         bootstrap: fix an error when gnulib is not used as a git submodule
29228         * build-aux/bootstrap (gnulib_path): If its length is zero then
29229         assign "gnulib" to it.
29230         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29231
29232 2010-05-16  Bruno Haible  <bruno@clisp.org>
29233
29234         Avoid autoconf warnings about AM_ICONV.
29235         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29236         2.64.
29237
29238 2010-05-16  Bruno Haible  <bruno@clisp.org>
29239
29240         absolute-header: Make the macro usable in more situations.
29241         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29242         from gl_ABSOLUTE_HEADER.
29243         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29244
29245 2010-05-16  James Youngman  <jay@gnu.org>
29246
29247         doc: update users.txt
29248         * users.txt: Add CSSC.
29249
29250 2010-05-16  Jim Meyering  <meyering@redhat.com>
29251
29252         init.sh: fix an error in the previous change; add more comments
29253         * tests/init.sh: Compare exit code in loop against 9, not 2.
29254         Patch by Bruno Haible.
29255         Make the two tests more similar by adding an empty "then" clause.
29256         Add comments.
29257
29258         init.sh: avoid unnecessary shell re-exec
29259         * tests/init.sh: Improve the re-exec-required check to first test the
29260         current shell.  If it passes the test, do not search for a shell that
29261         does pass, and do not re-exec.  This test is particularly contorted to
29262         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29263         of $(...) evokes a syntax error and causes immediate shell exit with
29264         status 2.  Bruno Haible reported that the re-exec made it impossible
29265         to single-step through any init.sh-using script.
29266
29267 2010-05-16  Bruno Haible  <bruno@clisp.org>
29268
29269         Fix collision between gnulib's and libintl's printf replacements.
29270         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29271         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29272         (printf): When using GNU C, map the __printf__ function to rpl_printf
29273         via __asm__. When not using GNU C, define rpl_printf instead of
29274         __printf__.
29275         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29276         commit.
29277         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29278         commit.
29279         * m4/asm-underscore.m4: New file.
29280         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29281         * modules/stdio (Files): Add m4/asm-underscore.m4.
29282         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29283         Reported by Ben Pfaff.
29284
29285 2010-05-16  Bruno Haible  <bruno@clisp.org>
29286
29287         verify: Avoid skipping the test on openSUSE 11.0.
29288         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29289
29290 2010-05-13  Bruno Haible  <bruno@clisp.org>
29291
29292         Avoid useless warnings from G++.
29293         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29294         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29295         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29296
29297 2010-05-11  Jim Meyering  <meyering@redhat.com>
29298
29299         maint.mk: tweak preceding change
29300         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29301         regexps tighter by anchoring at EOL, and make the new group "shy"
29302         for slightly decreased overhead.
29303
29304 2010-05-11  Eric Blake  <eblake@redhat.com>
29305
29306         maint.mk: gnulib doesn't guarantee NSIG
29307         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29308
29309 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29310
29311         test-pwrite.c: Remove unused variable declaration.
29312         * tests/test-pwrite.c (main): Remove read_buf declaration.
29313
29314         Remove useless test-pwrite.sh file.
29315         * tests/test-pwrite.sh: Delete file.
29316         * modules/pwrite-tests: Remove references.
29317         Reported by Bruno Haible.
29318
29319 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29320
29321         init.sh: fix a typo
29322         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29323
29324 2010-05-10  Jim Meyering  <meyering@redhat.com>
29325
29326         maint.mk: avoid using a temporary file in the always-defined-macros check
29327         * top/maint.mk (.re-defmac): Remove rule.
29328         (gl_trap_): Remove definition.
29329         (sc_prohibit_always-defined_macros): Rewrite not to create and
29330         depend on a temporary file.  Instead, depend on GNU grep's ability
29331         to read a list of regular expressions from stdin when given "-f -".
29332
29333 2010-05-09  Bruno Haible  <bruno@clisp.org>
29334
29335         Update to GNU gettext 0.18, part 1.
29336         * m4/gettext.m4: Update to GNU gettext 0.18.
29337         * m4/intl.m4: Likewise.
29338         * m4/po.m4: Likewise.
29339         * modules/gettext (Files): Add m4/fcntl-o.m4.
29340         (configure.ac): Require gettext infrastructure from version 0.18.
29341
29342 2010-05-09  Jim Meyering  <meyering@redhat.com>
29343
29344         init.sh: enable MALLOC_PERTURB_
29345         * tests/init.sh: Enable glibc's malloc-perturbing option.
29346
29347         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29348         With my recent change in init.sh from the two-line form:
29349             -#   : ${srcdir=.}
29350             -#   . "$srcdir/init.sh"; path_prepend_ .
29351             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29352         I noticed that using the one-line form would cause this test
29353         to fail with a false-positive, or to stop working altogether,
29354         depending on whether help-version changed or all the tests did.
29355         * top/maint.mk (_hv_regex): Remove this definition.
29356         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29357         (_hv_regex_strong): Use a stronger regex to check for conformance.
29358         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29359         Give a separate diagnostic for lack of conforming use.
29360
29361         maint.mk: prohibit definition of symbols defined by gnulib
29362         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29363         definition of symbols defined by gnulib.
29364
29365 2010-05-09  Bruno Haible  <bruno@clisp.org>
29366
29367         acl: Avoid test failure on Cygwin-hosted mingw.
29368         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29369
29370 2010-05-09  Bruno Haible  <bruno@clisp.org>
29371
29372         error: Use system's fcntl function.
29373         * lib/error.c (fcntl): Undefine.
29374
29375 2010-05-09  Jim Meyering  <meyering@redhat.com>
29376
29377         verify: adjust formatting to be more consistent
29378         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29379         argument-list '('s, and after one comma.
29380
29381 2010-05-09  Bruno Haible  <bruno@clisp.org>
29382
29383         error: More reliable output on mingw.
29384         * lib/error.c: Include <windows.h>.
29385         (is_open): New function.
29386         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29387         defined.
29388
29389 2010-05-09  Bruno Haible  <bruno@clisp.org>
29390
29391         vasnprintf: Fix syntax errors in libintl build on mingw.
29392         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29393         pad_ourselves and prec_ourselves after use.
29394
29395 2010-05-08  Bruno Haible  <bruno@clisp.org>
29396
29397         * lib/config.charset: Update comments for Cygwin 1.7.
29398         * lib/localcharset.c: Likewise.
29399
29400 2010-05-07  Jim Meyering  <meyering@redhat.com>
29401
29402         init.sh: improve comments
29403         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29404         . "${srcdir=.}/init.sh"; path_prepend_ .
29405         Add a note about path_prepend_ and the alternative of using
29406         TESTS_ENVIRONMENT.
29407
29408 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29409
29410         exclude: Unescape hashed patterns in wildcard mode.
29411         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29412         to the hash list.
29413         * tests/test-exclude8.sh: New test case.
29414         * modules/exclude-tests: Add new test.
29415
29416 2010-05-05  Eric Blake  <eblake@redhat.com>
29417
29418         verify: automate tests
29419         * modules/verify-tests: New module.
29420         * tests/test-verify.sh: New file.
29421         * tests/test-verify.c: Guard each negative test with a unique id.
29422         Also avoid warning about unused left hand of comma expressions.
29423
29424 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29425
29426         Further improvements to verify.h, suggested by Eric Blake.
29427         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29428         the GL_* versions, to avoid collision with OpenGL.
29429         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29430         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29431         than testing merely whether it's defined.
29432
29433         Modify verify.h to pacify gcc -Wredundant_decls.
29434         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29435         These use the prefix "GL_" since they're likely to be useful elsewhere.
29436         We may need to break them out into a different .h file.
29437         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29438         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29439         of verify_function__.
29440
29441 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29442
29443         Tests for module pwrite.
29444         * modules/pwrite-tests: New file.
29445         * tests/test-pwrite.sh: New file.
29446         * tests/test-pwrite.c: New file.
29447
29448         New module pwrite.
29449         * lib/unistd.in.h (pwrite): New declaration.
29450         * lib/pwrite.c: New file, from glibc with modifications.
29451         * m4/pwrite.m4: New file.
29452         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29453         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29454         REPLACE_PWRITE.
29455         * modules/pwrite: New file.
29456         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29457         REPLACE_PWRITE.
29458         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29459         * doc/posix-functions/pwrite.texi: Mention the new module.
29460
29461 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29462
29463         pread: Update documentation.
29464         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29465
29466 2010-05-04  Eric Blake  <eblake@redhat.com>
29467
29468         docs: update cygwin progress
29469         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29470         this bug.
29471         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29472         Added in cygwin 1.7.2.
29473         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29474         Likewise.
29475         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29476         Likewise.
29477         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29478         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29479         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29480         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29481         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29482         Mention nproc module.
29483         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29484         bug in cygwin 1.7.5 addition.
29485         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29486         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29487         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29488         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29489         1.7.5.
29490         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29491         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29492         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29493         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29494         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29495         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29496         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29497         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29498         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29499         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29500         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29501         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29502         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29503         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29504         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29505         Likewise.
29506         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29507         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29508         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29509         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29510         Likewise.
29511         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29512         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29513         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29514         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29515         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29516         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29517         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29518         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29519         Likewise.
29520         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29521         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29522         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29523         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29524         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29525         Likewise.
29526         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29527         Likewise.
29528         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29529         Likewise.
29530         * doc/glibc-functions/xdrrec_endofrecord.texi
29531         (xdrrec_endofrecord): Likewise.
29532         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29533         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29534         Likewise.
29535         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29536         Likewise.
29537
29538 2010-05-04  Jim Meyering  <meyering@redhat.com>
29539
29540         gendocs.sh: make its "-s FILE" option more useful
29541         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29542         $PACKAGE to reflect the probably-different basename of "FILE".
29543
29544 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29545
29546         bootstrap: don't ignore download_po_files failure
29547         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29548         failure.
29549
29550 2010-05-03  Jim Meyering  <meyering@redhat.com>
29551
29552         maint.mk: allow to pass options to gendocs.sh
29553         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29554         (gendocs_options_): New overridable variable.
29555
29556         gnu-web-doc-update: don't ignore configure or build failure
29557         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29558
29559         announce-gen: backslash-escape '@'s in --help output
29560         * build-aux/announce-gen: Fix syntax errors.
29561
29562         maint.mk, announce-gen: allow project-specific announcement mail headers
29563         * top/maint.mk (translation_project_): Define default.
29564         (announcement_Cc_, announcement_mail_headers_): Likewise.
29565         (announcement): Invoke announce-gen with new --mail-headers option.
29566         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29567
29568         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29569         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29570         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29571         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29572         line in the "err2" output file when running "make check" in verbose
29573         mode (i.e., with set -x enabled).
29574
29575 2010-05-03  Bruno Haible  <bruno@clisp.org>
29576
29577         wctob: Fix for weird platforms.
29578         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29579         argument value.
29580
29581 2010-05-03  Jim Meyering  <meyering@redhat.com>
29582
29583         maint.mk: prohibit unwarranted use of <strings.h>
29584         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29585         strings.h in a file that does not also use strcasecmp, strncasecmp,
29586         ffs or ffsll.
29587
29588         maint.mk: remove obsolete comments
29589         * top/maint.mk: Remove stale, commented-out rules.
29590
29591 2010-05-02  Bruno Haible  <bruno@clisp.org>
29592
29593         wcwidth: Declare also when it's aliased.
29594         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29595         macro.
29596
29597 2010-05-02  Bruno Haible  <bruno@clisp.org>
29598
29599         Fix regression from 2010-04-25.
29600         * gnulib-tool (func_modules_transitive_closure): Check the status of
29601         all modules, not only of the tests that are of the form foo-tests where
29602         foo is a module.
29603
29604 2010-05-02  Bruno Haible  <bruno@clisp.org>
29605
29606         wctob: Work around nasty Cygwin 1.7.2 bug.
29607         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29608         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29609
29610 2010-05-01  Bruno Haible  <bruno@clisp.org>
29611
29612         fpurge: Sharper test.
29613         * tests/test-fpurge.c (main): Add one more ftell check.
29614         * modules/fpurge-tests (Depends-on): Add ftell.
29615         Suggested by Eric Blake.
29616
29617 2010-05-01  Bruno Haible  <bruno@clisp.org>
29618
29619         ftello: Another test.
29620         * tests/test-ftello3.c: New file.
29621         * modules/ftello-tests (Files): Add it.
29622         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29623         MOSTLYCLEANFILES.
29624
29625         ftell: Another test.
29626         * tests/test-ftell3.c: New file.
29627         * modules/ftell-tests (Files): Add it.
29628         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29629         MOSTLYCLEANFILES.
29630
29631 2010-05-01  Bruno Haible  <bruno@clisp.org>
29632
29633         ftell, ftello: Work around Solaris bug.
29634         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29635         * lib/ftello.c: Include stdio-impl.h.
29636         (ftello): On Solaris, when _IOWRT is set, compute the result without
29637         looking at _IOREAD.
29638         * modules/ftello (Files): Add lib/stdio-impl.h.
29639         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29640         * doc/posix-functions/ftello.texi: Likewise.
29641         Reported by Eric Blake.
29642
29643 2010-05-01  Bruno Haible  <bruno@clisp.org>
29644
29645         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29646         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29647         the _IOWRT flag is also set.
29648
29649 2010-05-01  Bruno Haible  <bruno@clisp.org>
29650
29651         Fix doc about a HP-UX stdio bug.
29652         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29653         * doc/posix-functions/ftello.texi: Likewise.
29654
29655 2010-05-01  Bruno Haible  <bruno@clisp.org>
29656
29657         lseek test: Fix failure on Solaris.
29658         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29659         output.
29660
29661 2010-04-30  Jim Meyering  <meyering@redhat.com>
29662
29663         bootstrap: don't ignore failure to generate po*/Makevars
29664         * build-aux/bootstrap (with_gettext): Don't ignore failure
29665         to create po/Makevars or runtime-po/Makevars.
29666
29667 2010-04-29  Eric Blake  <eblake@redhat.com>
29668
29669         headers: relax license to LGPLv2+
29670         * modules/fcntl-h (License): Relax license.
29671         * modules/getopt-posix (License): Likewise.
29672         * modules/locale (License): Likewise.
29673         * modules/math (License): Likewise.
29674         * modules/pty (License): Likewise.
29675         * modules/sched (License): Likewise.
29676         * modules/search (License): Likewise.
29677         * modules/spawn (License): Likewise.
29678         * modules/stdarg (License): Likewise.
29679         * modules/sysexits (License): Likewise.
29680
29681 2010-04-29  Jim Meyering  <meyering@redhat.com>
29682
29683         inttypes: relax license to LGPLv2+
29684         * modules/inttypes (License): Relax license.
29685
29686 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29687
29688         * top/maint.mk (indent): Run twice to produce idempotent results.
29689
29690 2010-04-28  Bruno Haible  <bruno@clisp.org>
29691
29692         getdate: Generate getdate.c in the source directory.
29693         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29694         MOSTLYCLEANFILES.
29695         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29696
29697 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29698
29699         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29700         is not declared as a const *; avoid warnings in that case.
29701
29702 2010-04-28  Eric Blake  <eblake@redhat.com>
29703
29704         canonicalize-lgpl: avoid compiler warning
29705         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29706         declaration' / 'extraneous semicolon' warning with some compilers.
29707         Reported by Andreas Gruenbacher.
29708
29709 2010-04-28  Jim Meyering  <meyering@redhat.com>
29710
29711         init.sh: ensure a more reliable exit status when exiting via trap
29712         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29713         Inspired by patches from Dmitry V. Levin.
29714         Also trap on signal 3 (SIGQUIT).
29715
29716 2010-04-27  Bruno Haible  <bruno@clisp.org>
29717
29718         Update doc about utimes().
29719         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29720         'utimens' module.
29721         Reported by Andreas Gruenbacher <agruen@suse.de>.
29722
29723 2010-04-27  Eric Blake  <eblake@redhat.com>
29724
29725         full-read, full-write: relax license
29726         * modules/full-read (License): Drop to LGPLv2+.
29727         * modules/full-write (License): Likewise.
29728         * modules/safe-read (License): Likewise.
29729         * modules/safe-write (License): Likewise.
29730
29731         pthread: mention library for linking
29732         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29733
29734 2010-04-27  Jim Meyering  <meyering@redhat.com>
29735
29736         maint.mk: fix a bug introduced in last change
29737         * top/maint.mk (gl_assured_headers_): Now that all names are on
29738         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29739         is not anchored to end of word, it should be adequate.
29740
29741         maint.mk: avoid side-effect in latest syntax-check
29742         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29743         to run commands via $(shell...), and hence to incur cost only when
29744         the new rule is actually run.
29745
29746         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29747         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29748         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29749         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29750         (gl_assured_headers_, az_, AZ_): Define.
29751         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29752
29753 2010-04-26  Jim Meyering  <jim@meyering.net>
29754             Bruno Haible  <bruno@clisp.org>
29755
29756         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29757         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29758         Prompted by an exchange with Gilles Espinasse.
29759
29760 2010-04-26  Jim Meyering  <meyering@redhat.com>
29761
29762         git-version-gen: aesthetic tweak
29763         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29764         so that the command remains on a single line.
29765
29766 2010-04-26  Eric Blake  <eblake@redhat.com>
29767
29768         git-version-gen: allow use on EBCDIC hosts
29769         * build-aux/git-version-gen (dirty): Use literal rather than tying
29770         ourselves to ascii.
29771         Reported by Steve Goetze.
29772
29773 2010-04-25  Bruno Haible  <bruno@clisp.org>
29774
29775         netdb: Add support for GNULIB_POSIXCHECK.
29776         * lib/netdb.in.h: Include warn-on-use.h.
29777         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29778         functions are used when GNULIB_POSIXCHECK is defined and the
29779         getaddrinfo module is not in use.
29780         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29781         freeaddrinfo, gai_strerror, getnameinfo are declared.
29782         * modules/netdb (Depends-on): Add warn-on-use.
29783         (Makefile.am): Include warn-on-use.h in netdb.h.
29784
29785 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29786
29787         build: avoid "make check" failure without .git/ directory
29788         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29789         there is no .git/ directory.
29790
29791 2010-04-25  Bruno Haible  <bruno@clisp.org>
29792
29793         ptsname: Fix misuse of ttyname_r.
29794         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29795         of errno.
29796
29797 2010-04-25  Bruno Haible  <bruno@clisp.org>
29798
29799         ttyname_r: Make it work on Solaris 10.
29800         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29801         if the system function has the POSIX declaration. Test whether the
29802         function fails if the buffer is less than 128 bytes large.
29803         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29804         system's ttyname_r function. Provide a reasonably large buffer.
29805         * modules/ttyname_r (Depends-on): Add extensions.
29806         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29807
29808 2010-04-25  Bruno Haible  <bruno@clisp.org>
29809
29810         Use the 'extensions' module for some more functions on Solaris.
29811         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29812         module.
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/getpwnam_r.texi: Likewise.
29817         * doc/posix-functions/getpwuid_r.texi: Likewise.
29818         * doc/posix-functions/readdir_r.texi: Likewise.
29819         * doc/posix-functions/sigwait.texi: Likewise.
29820         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29821         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29822
29823 2010-04-25  Bruno Haible  <bruno@clisp.org>
29824
29825         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29826         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29827         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29828         * lib/ttyname_r.c: Include <limits.h>.
29829         (ttyname_r): Define using the system's ttyname_r function, if it exists
29830         and not on Solaris.
29831         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29832         set.
29833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29834         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29835         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29836         Reported by Simon Josefsson.
29837
29838 2010-04-25  Bruno Haible  <bruno@clisp.org>
29839
29840         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29841         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29842         * doc/posix-functions/ctime_r.texi: Likewise.
29843         * doc/posix-functions/getgrgid_r.texi: Likewise.
29844         * doc/posix-functions/getgrnam_r.texi: Likewise.
29845         * doc/posix-functions/getlogin_r.texi: Likewise.
29846         * doc/posix-functions/getpwnam_r.texi: Likewise.
29847         * doc/posix-functions/getpwuid_r.texi: Likewise.
29848         * doc/posix-functions/readdir_r.texi: Likewise.
29849         * doc/posix-functions/sigwait.texi: Likewise.
29850         * doc/posix-functions/ttyname_r.texi: Likewise.
29851         Reported by Simon Josefsson.
29852
29853 2010-04-25  Bruno Haible  <bruno@clisp.org>
29854
29855         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29856         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29857         also to --create-testdir.
29858         (func_acceptable): Don't consider the status of *-tests modules here.
29859         (func_modules_transitive_closure): Consider it here, before including a
29860         test module.
29861         (func_import, func_create_testdir): Set inc_all_direct_tests,
29862         inc_all_indirect_tests.
29863         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29864         --create-testdir and --create-megatestdir.
29865
29866 2010-04-25  Bruno Haible  <bruno@clisp.org>
29867
29868         gnulib-tool: Add --without-*-tests options.
29869         * gnulib-tool (func_usage): Document the --without-*-tests options.
29870         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29871         excl_unportable_tests): New variables.
29872         Fail if they are specified with --import or --update.
29873         (func_acceptable): Respect the excl_*_tests variables.
29874         (func_import): Set the excl_*_tests variables to empty.
29875
29876 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29877             Bruno Haible  <bruno@clisp.org>
29878
29879         Work around a MacOS X 10.4 bug with openpty.
29880         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29881         * tests/test-openpty.c (main): Close the master side explicitly.
29882
29883 2010-04-25  Bruno Haible  <bruno@clisp.org>
29884
29885         strnlen: Fix a C++ test error on MacOS X and Solaris.
29886         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29887         the function is not declared.
29888         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29889         Simon Josefsson.
29890
29891 2010-04-24  Bruno Haible  <bruno@clisp.org>
29892
29893         Avoid a gcc warning.
29894         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29895         of correct type for %08lx directive.
29896         Reported by Eric Blake.
29897
29898 2010-04-24  Bruno Haible  <bruno@clisp.org>
29899
29900         vasnprintf: Correct errno value in case of out-of-memory.
29901         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29902         or sprintf. Use the errno value from SNPRINTF or sprintf.
29903         Reported by Ian Beckwith <ianb@erislabs.net>.
29904
29905 2010-04-24  Bruno Haible  <bruno@clisp.org>
29906
29907         ansi-c++-opt: Find correct compiler when cross-compiling.
29908         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29909         AC_CHECK_PROGS.
29910         Reported by Simon Josefsson.
29911
29912 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29913
29914         vc-list-files: Add support for subversion
29915         * build-aux/vc-list-files: Use "svn list" to generate the list of
29916         files controlled by subversion.
29917
29918 2010-04-23  Jim Meyering  <meyering@redhat.com>
29919
29920         vc-list-files tests: convert to use init.sh
29921         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29922         path_prepend_.
29923         Use Exit, not exit.
29924         Use skip_ rather than open coding it.
29925         Remove trap set-up and compare definitions.
29926         * tests/test-vc-list-files-git.sh: Likewise.
29927         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29928
29929 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29930
29931         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29932         backup files.
29933
29934 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29935
29936         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29937
29938 2010-04-20  Eric Blake  <eblake@redhat.com>
29939
29940         tests: be robust to ignored SIGPIPE
29941         * tests/test-select-in.sh: Consume all output.
29942         * tests/test-lseek.sh: Check correct exit status, while avoiding
29943         EPIPE.
29944
29945 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29946             Bruno Haible  <bruno@clisp.org>
29947
29948         visibility: Don't use -fvisibility if it leads to a warning.
29949         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29950         yes, don't pretend that visibility works if it leads to a warning.
29951         Reported by Mike Gran <spk121@yahoo.com>.
29952
29953 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29954
29955         * build-aux/bootstrap: Use "git -h" for testing for supported options
29956         instead of "git --help".  The short-form option only shows a summary,
29957         and doesn't layout the full man page.  Grep for the full option name
29958         in the summary, too.
29959
29960 2010-04-19  Bruno Haible  <bruno@clisp.org>
29961
29962         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29963         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29964         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29965         mention of RELOCATABLE_STRIP.
29966         Reported by Sylvain Beucler <beuc@beuc.net>.
29967
29968 2010-04-19  Bruno Haible  <bruno@clisp.org>
29969
29970         * lib/diffseq.h: Fix typo in comment.
29971         Reported by Eric Blake.
29972
29973 2010-04-19  Bruno Haible  <bruno@clisp.org>
29974
29975         ioctl: Move autoconf macro to a .m4 file.
29976         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29977         * modules/ioctl (Files): Add it.
29978         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29979         Reported by Ian Beckwith <ianb@erislabs.net>.
29980
29981 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29982             Bruno Haible  <bruno@clisp.org>
29983
29984         diffseq: Accommodate use-case with abstract arrays.
29985         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29986         is not defined.
29987         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29988         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29989
29990 2010-04-18  Bruno Haible  <bruno@clisp.org>
29991
29992         * doc/posix-headers/stdbool.texi: More precise wording.
29993
29994 2010-04-17  Jim Meyering  <meyering@redhat.com>
29995
29996         maint.mk: use gnu-style indentation in an embedded perl script
29997         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29998         Rename variable: s/two/last_two_bytes/
29999
30000 2010-04-16  Eric Blake  <eblake@redhat.com>
30001
30002         test-stdbool: skip test that fails with Solaris CC
30003         * tests/test-stdbool.c (f): Skip test that causes compilation
30004         error under buggy C++ compiler.
30005         * lib/stdbool.in.h: Document the limitation.
30006         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30007
30008         setenv: allow compilation with C++
30009         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30010         register keyword.
30011
30012         stdint: allow test to pass with C++
30013         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30014
30015         getopt: allow compilation with C++
30016         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30017         struct.
30018         * lib/getopt.c (_getopt_internal_r): Use correct type.
30019         Reported by Dagobert Michelson, via Joel E. Denny.
30020
30021 2010-04-16  Bruno Haible  <bruno@clisp.org>
30022
30023         Override netdb.h always.
30024         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30025         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30026         Reported by Ludovic Courtès <ludo@gnu.org>.
30027
30028 2010-04-15  Bruno Haible  <bruno@clisp.org>
30029
30030         openpty: Fix mistake from 2010-03-21.
30031         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30032         Reported by Simon Josefsson.
30033
30034 2010-04-15  Eric Blake  <eblake@redhat.com>
30035
30036         test-forkpty: fix expected signature
30037         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30038         Reported by Simon Josefsson.
30039
30040 2010-04-15  Jim Meyering  <meyering@redhat.com>
30041
30042         maint.mk: texinfo_suffix_re_: correct the default regexp
30043         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30044
30045         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30046         make it configurable via texinfo_suffix_re_.
30047
30048 2010-04-14  Eric Blake  <eblake@redhat.com>
30049
30050         strtok_r: relax license to LGPLv2+
30051         * modules/strtok_r (License): Relax license.
30052         Reported by Matthias Bolte.
30053
30054 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30055
30056         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30057         version 1.4.4 by default instead of requiring the libgcrypt
30058         version used during build.  This makes it possible to use the
30059         application with older but still binary compatible libgcrypt
30060         versions.
30061
30062 2010-04-13  Eric Blake  <eblake@redhat.com>
30063
30064         getopt-gnu: match recent glibc fixes and posix ruling
30065         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30066         '+' handling, when requesting extensions.
30067         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30068         'W;' handling.
30069         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30070         * doc/posix-functions/getopt.texi (getopt): Document this.
30071         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30072         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30073         Likewise.
30074
30075         getopt: merge bug fixes from glibc
30076         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30077         diagnostics.  Honor '+:' correctly.  Reject ';'.
30078
30079         getopt-posix: detect MacOS bug
30080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30081         optind when missing a required argument.
30082         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30083         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30084         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30085         Likewise.
30086
30087         getopt-posix: avoid spurious failure on Solaris
30088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30089         an indicator that setting optind=1 is sufficient for reset.
30090
30091         getopt-posix: avoid spurious failure on FreeBSD
30092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30093         in POSIX mode, since the m4 test uses it.
30094
30095         gnulib-tool: silence warning on BSD sh
30096         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30097
30098 2010-04-13  Jim Meyering  <meyering@redhat.com>
30099
30100         doc: users.txt: GNU patch now uses gnulib
30101         * users.txt: Add patch.
30102
30103 2010-04-12  Jim Meyering  <meyering@redhat.com>
30104
30105         maint.mk: generate more concise timing data for syntax-check rules
30106         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30107         " done" from each line that reports a syntax-check test duration.
30108
30109 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30110
30111         git-version-gen: use "git update-index..." rather than "git status"
30112         * build-aux/git-version-gen: Use git update-index --refresh, not
30113         "git status".  With some versions of git, "git status" would fail
30114         to update the index and result in an unwarranted "-dirty" suffix.
30115
30116 2010-04-11  Jim Meyering  <meyering@redhat.com>
30117
30118         openat: correct formatting (no semantic change)
30119         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30120         Suggested by Bruno Haible.
30121
30122 2010-04-11  Bruno Haible  <bruno@clisp.org>
30123
30124         Stricter declaration checking in testdirs.
30125         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30126         If for_tests is true, augment AM_CPPFLAGS to define
30127         GNULIB_STRICT_CHECKING.
30128         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30129         GNULIB_STRICT_CHECKING is defined, verify that the function is
30130         declared.
30131
30132 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30133             Bruno Haible  <bruno@clisp.org>
30134
30135         libunistring: Improve configure output.
30136         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30137         Don't say "consider installing GNU libunistring" when checking again
30138         with libiconv.
30139
30140 2010-04-11  Bruno Haible  <bruno@clisp.org>
30141
30142         libunistring: Correct value of $LTLIBUNISTRING.
30143         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30144         correct the value of $LTLIBUNISTRING.
30145
30146 2010-04-11  Bruno Haible  <bruno@clisp.org>
30147
30148         havelib: Add static libraries to LIBS in the right order.
30149         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30150         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30151
30152 2010-04-11  Bruno Haible  <bruno@clisp.org>
30153
30154         libunistring: Detect libunistring also when it depends on libiconv.
30155         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30156         the second AC_LIB_HAVE_LINKFLAGS invocation.
30157
30158 2010-04-11  James Youngman  <jay@gnu.org>
30159
30160         close-stream: declare local scalars to be "const"
30161         * lib/close-stream.c (close_stream): Make boolean variables const
30162         to document the fact that we set but do not change them.
30163
30164 2010-04-11  Bruno Haible  <bruno@clisp.org>
30165
30166         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30167
30168 2010-04-11  Jim Meyering  <meyering@redhat.com>
30169
30170         maint.mk: don't include dist-check.mk
30171         * top/maint.mk: Remove bogus include directive.
30172
30173         maint.mk: improve empty-line-at-EOF check
30174         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30175         solution, rather than tail+Perl-based one.  The latter would read
30176         a few kilobytes from the end of each file, and did not handle empty
30177         files properly.
30178
30179         maint.mk: print the elapsed time for each syntax-check rule
30180         * top/maint.mk (sc_m_rules_): Save start time in a file.
30181         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30182         (local-check): Interpose the .z rules
30183
30184 2010-04-11  Jim Meyering  <meyering@redhat.com>
30185
30186         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30187         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30188         empty file with one that ends in an empty line.
30189
30190 2010-04-10  Bruno Haible  <bruno@clisp.org>
30191
30192         mkdir: Make it work on mingw64.
30193         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30194         * lib/mkdir.c: Update comment.
30195         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30196
30197 2010-04-10  Bruno Haible  <bruno@clisp.org>
30198
30199         Don't override improved macro from newer autoconf.
30200         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30201         autoconf >= 2.62.
30202         Reported by Joel E. Denny <jdenny@clemson.edu>.
30203
30204 2010-04-10  Jim Meyering  <meyering@redhat.com>
30205
30206         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30207         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30208
30209         maint.mk: correct a diagnostic
30210         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30211         in diagnostic; now use $prohibit.
30212
30213 2010-04-10  Bruno Haible  <address@hidden>
30214
30215         fchownat: Fix a C++ test error on Solaris 8.
30216         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30217         the function does not exist.
30218
30219 2010-04-10  Bruno Haible  <bruno@clisp.org>
30220
30221         vasnprintf: Add more tests.
30222         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30223         (test_function): Test converting an invalid wide string.
30224
30225         vasnprintf: Correct handling of unconvertible wide string arguments.
30226         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30227         VASNPRINTF.
30228         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30229         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30230         smaller than the expected maximum need for the directive. Set errno to
30231         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30232         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30234         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30235         * modules/vasnprintf (Files): Add m4/printf.m4.
30236         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30237
30238 2010-04-10  Bruno Haible  <bruno@clisp.org>
30239
30240         vasnprintf: Fix crash in %ls directive.
30241         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30242         string is passed as argument to %ls, with no precision and no width.
30243         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30244
30245 2010-04-10  Bruno Haible  <bruno@clisp.org>
30246
30247         vasnprintf: Fix multiple test failures on mingw.
30248         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30249         _snprintf, or snwprintf, not _snwprintf.
30250
30251 2010-04-10  Bruno Haible  <bruno@clisp.org>
30252
30253         write: Fix a C++ test error on mingw.
30254         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30255
30256 2010-04-10  Bruno Haible  <bruno@clisp.org>
30257
30258         vasnprintf test: Reduce code duplication.
30259         * tests/test-vasnprintf.c (test_function): New function, extracted from
30260         test_vasnprintf.
30261         (test_vasnprintf, test_asnprintf): Invoke it.
30262
30263 2010-04-10  Bruno Haible  <bruno@clisp.org>
30264
30265         strnlen: Fix warning in C++ mode on MacOS X.
30266         * lib/string.in.h (strnlen): Use the modern idiom.
30267         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30268         defining strnlen as a macro already in <config.h>.
30269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30270         REPLACE_STRNLEN.
30271         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30272         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30273
30274 2010-04-08  James Youngman  <jay@gnu.org>
30275
30276         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30277         the example.
30278
30279 2010-04-09  Jim Meyering  <meyering@redhat.com>
30280
30281         maint.mk: print better diagnostic when there is no $(_hv_file)
30282         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30283         announce that when $(_hv_file) (aka help-version) does not exist.
30284
30285         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30286         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30287         not try to interpret its random input bytes.  Jarno Rajahalme reported
30288         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30289         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30290         (mktempd_): Likewise, just in case.
30291
30292         ftruncate: add two years to projected module removal date: 2012
30293         * m4/ftruncate.m4: Adjust comments.
30294
30295         ftruncate: mark module as obsolete; even MinGW provides it, now
30296         * modules/ftruncate (Status): Obsolete.
30297         (Notice): Say that.
30298         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30299         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30300
30301 2010-04-08  Bruno Haible  <bruno@clisp.org>
30302
30303         Fix side effects from tests-related modules.
30304         * modules/dprintf-posix (Comment): New section.
30305         * modules/fprintf-posix (Comment): Likewise.
30306         * modules/obstack-printf-posix (Comment): Likewise.
30307         * modules/printf-posix (Comment): Likewise.
30308         * modules/snprintf-posix (Comment): Likewise.
30309         * modules/sprintf-posix (Comment): Likewise.
30310         * modules/vasnprintf-posix (Comment): Likewise.
30311         * modules/vasprintf-posix (Comment): Likewise.
30312         * modules/vdprintf-posix (Comment): Likewise.
30313         * modules/vfprintf-posix (Comment): Likewise.
30314         * modules/vprintf-posix (Comment): Likewise.
30315         * modules/vsnprintf-posix (Comment): Likewise.
30316         * modules/vsprintf-posix (Comment): Likewise.
30317         * modules/xprintf-posix (Comment): Likewise.
30318         * modules/xvasprintf-posix (Comment): Likewise.
30319         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30320         * modules/floorf-tests (Depends-on): Likewise.
30321         * modules/round-tests (Depends-on): Likewise.
30322         * modules/roundf-tests (Depends-on): Likewise.
30323         * modules/trunc-tests (Depends-on): Likewise.
30324         * modules/truncf-tests (Depends-on): Likewise.
30325         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30326         'fprintf-posix' module is not present.
30327         * tests/test-floorf2.c (check): Likewise.
30328         * tests/test-trunc2.c (check): Likewise.
30329         * tests/test-truncf2.c (check): Likewise.
30330         * tests/test-round2.c (equal): Likewise.
30331         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30332
30333 2010-04-07  Karl Berry  <karl@gnu.org>
30334
30335         * config/srclist.txt,
30336         * config/srclistvars.sh,
30337         * config/srclist-update: doc fixes.
30338
30339 2010-04-07  Jim Meyering  <meyering@redhat.com>
30340
30341         maint.mk: add a PATH crosschecking syntax-check rule
30342         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30343         Useful if you use a test like the one in help-version (coreutils,
30344         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30345         printed by prog --version.
30346
30347 2010-04-06  Bruno Haible  <bruno@clisp.org>
30348
30349         Fix link error on mingw.
30350         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30351         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30352
30353 2010-04-06  Bruno Haible  <bruno@clisp.org>
30354
30355         Assume rmdir exists.
30356         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30357
30358 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30359
30360         doc: update users.txt
30361         * users.txt: Add gcal.
30362
30363 2010-04-06  Jim Meyering  <meyering@redhat.com>
30364
30365         init.sh: simply unset TMPDIR rather than risking env -i
30366         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30367         although it probably works fine on all Unix-based systems, some
30368         systems (Cygwin?) cannot tolerate a totally cleared environment.
30369         Suggestion from Eric Blake.
30370
30371 2010-04-06  Jim Meyering  <meyering@redhat.com>
30372
30373         init.sh: portability fix: use env's POSIX-specified -i option not -u
30374         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30375         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30376
30377 2010-04-05  Bruno Haible  <bruno@clisp.org>
30378
30379         btowc: Work around Cygwin 1.7.2 bug.
30380         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30381         does not map NUL to 0.
30382         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30383
30384 2010-04-05  Bruno Haible  <bruno@clisp.org>
30385
30386         Make the multithread modules work on Cygwin 1.7.2.
30387         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30388         imported symbols can be declared weak, so that it returns "no" on
30389         Cygwin 1.7.2.
30390
30391 2010-04-05  Bruno Haible  <bruno@clisp.org>
30392
30393         Use the module 'strncat'.
30394         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30395
30396         Tests for module 'strncat'.
30397         * modules/strncat-tests: New file.
30398         * tests/test-strncat.c: New file.
30399
30400         New module 'strncat'.
30401         * lib/string.in.h (strncat): New declaration.
30402         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30403         * m4/strncat.m4: New file, based on m4/memchr.m4.
30404         * modules/strncat: New file.
30405         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30406         is declared.
30407         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30408         REPLACE_STRNCAT.
30409         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30410         REPLACE_STRNCAT.
30411         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30412         module.
30413         * tests/test-string-c++.cc: Check signature of strncat.
30414
30415 2010-04-05  Jim Meyering  <meyering@redhat.com>
30416
30417         xstrtoumax-tests: convert to use init.sh
30418         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30419         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30420         Use Exit, not exit.
30421         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30422
30423         xstrtoimax-tests: convert to use init.sh
30424         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30425         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30426         Use Exit, not exit.
30427         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30428
30429 2010-04-05  Bruno Haible  <bruno@clisp.org>
30430
30431         sys_socket: Avoid #define replacements in C++ mode.
30432         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30433         warning to the function if possible, rather than #defining the symbol
30434         to a dysfunctional alias.
30435
30436 2010-04-05  Bruno Haible  <bruno@clisp.org>
30437
30438         fseeko: Fix C++ test error on mingw.
30439         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30440         gl_FUNC_FSEEKO.
30441         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30442         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30443         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30444         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30445
30446 2010-04-05  Bruno Haible  <bruno@clisp.org>
30447
30448         duplocale: Improve test output.
30449         * tests/test-duplocale.c (main): Print reason for skipped test.
30450
30451 2010-04-05  Bruno Haible  <bruno@clisp.org>
30452
30453         Assume rmdir exists.
30454         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30455         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30456
30457 2010-04-05  Bruno Haible  <bruno@clisp.org>
30458
30459         Fix link error on Solaris 8 with cc.
30460         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30461
30462 2010-04-05  Bruno Haible  <bruno@clisp.org>
30463
30464         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30465         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30466
30467 2010-04-05  Bruno Haible  <bruno@clisp.org>
30468
30469         vasprintf: Update documentation.
30470         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30471
30472 2010-04-05  Bruno Haible  <bruno@clisp.org>
30473
30474         ptsname: Improve test.
30475         * tests/test-ptsname.c (main): Also try the various master names of BSD
30476         systems.
30477
30478 2010-04-05  Bruno Haible  <bruno@clisp.org>
30479
30480         memchr: Avoid a possible C++ test error.
30481         * lib/string.in.h (memchr): Provide declaration if function is missing.
30482         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30483         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30485         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30486
30487 2010-04-05  Bruno Haible  <bruno@clisp.org>
30488
30489         strtok_r: Improve idiom.
30490         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30491         AC_LIBOBJ is used.
30492
30493 2010-04-05  Bruno Haible  <bruno@clisp.org>
30494
30495         strdup: Improve idiom.
30496         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30497         AC_LIBOBJ is used.
30498         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30499         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30500         when AC_LIBOBJ is used.
30501
30502 2010-04-05  Bruno Haible  <bruno@clisp.org>
30503
30504         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30505         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30506         don't set REPLACE_MBSINIT to 1.
30507         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30508         don't set REPLACE_MBRTOWC to 1.
30509         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30510         exist, don't set REPLACE_MBSRTOWCS to 1.
30511         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30512         exist, don't set REPLACE_MBSNRTOWCS to 1.
30513         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30514         don't set REPLACE_WCRTOMB to 1.
30515         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30516         exist, don't set REPLACE_WCSRTOMBS to 1.
30517         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30518         exist, don't set REPLACE_WCSNRTOMBS to 1.
30519
30520 2010-04-05  Bruno Haible  <bruno@clisp.org>
30521
30522         ldexpl: Improve idiom.
30523         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30524         make sure to set HAVE_DECL_LDEXPL to 0.
30525
30526 2010-04-05  Jim Meyering  <meyering@redhat.com>
30527
30528         xstrtol-tests: convert to use init.sh
30529         * modules/xstrtol-tests (Files): Add tests/init.sh.
30530         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30531         Use Exit, not exit.
30532         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30533
30534         atexit-tests: convert to use init.sh
30535         * modules/atexit-tests (Files): Add tests/init.sh.
30536         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30537         Use Exit, not exit.
30538         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30539
30540         init.sh: fix typo
30541         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30542
30543         init.sh: make it easier for a test script to write to the tty, ...
30544         when using automake's parallel-tests mode.
30545         * tests/init.sh (stderr_fileno_): Define overridable variable.
30546         (warn_): New function, to use it.
30547         (fail_, skip_, framework_failure_): Use warn_.
30548
30549 2010-04-04  Bruno Haible  <bruno@clisp.org>
30550
30551         btowc: Avoid warning.
30552         * lib/btowc.c: Include <stdlib.h>.
30553         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30554
30555 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30556             Bruno Haible  <bruno@clisp.org>
30557
30558         wchar: Port to NetBSD 1.5.
30559         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30560         * lib/wctype.in.h (WEOF): Likewise.
30561
30562 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30563             Bruno Haible  <bruno@clisp.org>
30564
30565         Port extended stdio to NetBSD 1.5.
30566         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30567         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30568         older.
30569
30570 2010-04-04  Bruno Haible  <bruno@clisp.org>
30571
30572         string: Remove unused substitution.
30573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30574         HAVE_DECL_STRERROR.
30575         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30576
30577 2010-04-04  Bruno Haible  <bruno@clisp.org>
30578
30579         strtod: Avoid a possible C++ test error.
30580         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30581         set REPLACE_STRTOD.
30582
30583 2010-04-04  Bruno Haible  <bruno@clisp.org>
30584
30585         strerror: Update documentation.
30586         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30587
30588 2010-04-04  Bruno Haible  <bruno@clisp.org>
30589
30590         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30591         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30592         _GL_CXXALIAS_SYS_CAST.
30593
30594 2010-04-04  Bruno Haible  <bruno@clisp.org>
30595
30596         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30597         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30598         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30599         REPLACE_FREXPL to 1.
30600         * doc/posix-functions/frexpl.texi: Update documentation.
30601
30602 2010-04-04  Bruno Haible  <bruno@clisp.org>
30603
30604         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30605         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30606
30607 2010-04-04  Bruno Haible  <bruno@clisp.org>
30608
30609         Implement nanosleep for native Windows.
30610         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30611
30612 2010-04-04  Bruno Haible  <bruno@clisp.org>
30613
30614         math: Fix some C++ test errors on Solaris 8.
30615         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30616
30617 2010-04-04  Bruno Haible  <bruno@clisp.org>
30618
30619         math: Fix some C++ test errors on Cygwin.
30620         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30621         truncl): Provide declaration if the system does not have it.
30622         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30623         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30624         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30625         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30626         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30627         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30628         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30629         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30630         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30631         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30632         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30633         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30634         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30635         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30636         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30637         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30639         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30640         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30641         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30642         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30643         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30644
30645 2010-04-04  Bruno Haible  <bruno@clisp.org>
30646
30647         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30648         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30649         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30650         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30651         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30652         * m4/isinf.m4 (gl_ISINF): Likewise.
30653         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30654
30655 2010-04-04  Bruno Haible  <bruno@clisp.org>
30656
30657         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30658         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30659
30660 2010-04-04  Bruno Haible  <bruno@clisp.org>
30661
30662         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30663         * modules/tmpfile (configure.ac): Update.
30664
30665         tmpfile: Fix C++ test error on mingw.
30666         * lib/stdio.in.h (tmpfile): New declaration.
30667         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30668         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30669         * modules/tmpfile (Depends-on): Add stdio.
30670         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30671         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30672         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30673         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30674         REPLACE_TMPFILE.
30675         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30676
30677 2010-04-04  Bruno Haible  <bruno@clisp.org>
30678
30679         ioctl: Fix C++ test error on mingw.
30680         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30681         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30682         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30683
30684 2010-04-03  Bruno Haible  <bruno@clisp.org>
30685
30686         wcwidth: Fix C++ test error on mingw.
30687         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30689         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30690
30691 2010-04-03  Bruno Haible  <bruno@clisp.org>
30692
30693         nanosleep: Fix C++ test error on mingw.
30694         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30695         * lib/time.in.h (nanosleep): Use modern idiom.
30696         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30697         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30698         REPLACE_NANOSLEEP to 1.
30699         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30700         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30701
30702 2010-04-03  Bruno Haible  <bruno@clisp.org>
30703
30704         strptime: Fix C++ test error on mingw.
30705         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30706         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30707         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30708         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30709         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30710         not REPLACE_STRPTIME.
30711         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30712         REPLACE_STRPTIME.
30713
30714 2010-04-03  Bruno Haible  <bruno@clisp.org>
30715
30716         timegm: Fix C++ test error on mingw.
30717         * lib/time.in.h (timegm): Use modern idiom.
30718         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30719         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30720         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30721         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30722
30723 2010-04-03  Bruno Haible  <bruno@clisp.org>
30724
30725         timegm: Assume declaration if function exists.
30726         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30727         if it exists. Don't clobber ac_cv_func_timegm.
30728
30729 2010-04-03  Bruno Haible  <bruno@clisp.org>
30730
30731         time_r: Fix C++ test error on mingw.
30732         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30733         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30734         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30735         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30736         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30737
30738 2010-04-03  Bruno Haible  <bruno@clisp.org>
30739
30740         time_r: Minor updates.
30741         * modules/time_r (Description): Mention the provided functions.
30742         * lib/time_r.c: Don't include <string.h>.
30743         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30744         * doc/posix-functions/localtime_r.texi: Likewise.
30745
30746 2010-04-03  Bruno Haible  <bruno@clisp.org>
30747
30748         time: Fix regression introduced on 2010-03-08.
30749         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30750         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30751
30752 2010-04-03  Jim Meyering  <meyering@redhat.com>
30753
30754         maint.mk: don't silently disable project-specific syntax-check rules
30755         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30756         that they need to convert their project-specific syntax-check rules
30757         to use the new _sc_search_regexp.
30758
30759 2010-04-03  Bruno Haible  <bruno@clisp.org>
30760
30761         fchdir: Fix regression introduced on 2010-03-08.
30762         * lib/unistd.in.h (fchdir): Fix declaration.
30763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30765         REPLACE_FCHDIR.
30766         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30767         REPLACE_FCHDIR.
30768
30769 2010-04-03  Bruno Haible  <bruno@clisp.org>
30770
30771         getpagesize: Fix C++ test error on mingw.
30772         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30773         system does not declare the function.
30774         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30775         declared.
30776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30777         HAVE_DECL_GETPAGESIZE.
30778         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30779
30780 2010-04-03  Bruno Haible  <bruno@clisp.org>
30781
30782         stdio: Make C++ tests work on mingw.
30783         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30784         does not declare the function.
30785
30786 2010-04-03  Bruno Haible  <bruno@clisp.org>
30787
30788         ftello: Fix C++ test error on mingw.
30789         * lib/stdio.in.h (ftello): Use modern idiom.
30790         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30791         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30792         is missing and that it needs to be replaced.
30793         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30795         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30796
30797 2010-04-03  Bruno Haible  <bruno@clisp.org>
30798
30799         fseeko: Fix C++ test error on mingw.
30800         * lib/stdio.in.h (fseeko): Use modern idiom.
30801         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30802         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30803         is missing and that it needs to be replaced.
30804         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30806         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30807
30808 2010-04-03  Bruno Haible  <bruno@clisp.org>
30809
30810         mkstemp: Fix C++ test error on mingw.
30811         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30812         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30813         function is missing and that it needs to be replaced.
30814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30815         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30816
30817 2010-04-03  Bruno Haible  <bruno@clisp.org>
30818
30819         stpncpy: Fix C++ test error on mingw.
30820         * lib/string.in.h (stpncpy): Use modern idiom.
30821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30822         function is missing and that it needs to be replaced.
30823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30824         REPLACE_STPNCPY.
30825         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30826
30827 2010-04-03  Bruno Haible  <bruno@clisp.org>
30828
30829         sys_stat: Fix C++ test error on mingw.
30830         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30831         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30832
30833 2010-04-03  Bruno Haible  <bruno@clisp.org>
30834
30835         pty: Update doc.
30836         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30837
30838 2010-04-03  Bruno Haible  <bruno@clisp.org>
30839
30840         unistd: Fix C++ test error on mingw.
30841         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30842
30843 2010-04-03  Bruno Haible  <bruno@clisp.org>
30844
30845         Update doc regarding mingw.
30846         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30847         * doc/glibc-functions/login_tty.texi: Likewise.
30848         * doc/glibc-functions/forkpty.texi: Likewise.
30849
30850 2010-04-03  Bruno Haible  <bruno@clisp.org>
30851
30852         stdlib: Avoid compilation failure of c-strtold on mingw.
30853         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30854
30855 2010-04-03  Bruno Haible  <bruno@clisp.org>
30856
30857         locale: Make C++ tests work on Cygwin and mingw.
30858         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30859         cannot provide the function.
30860         Reported by Simon Josefsson.
30861
30862 2010-04-03  Bruno Haible  <bruno@clisp.org>
30863
30864         localename: Port to MacOS X 10.6.
30865         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30866         memory layout of the locales in MacOS X 10.6 as well.
30867         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30868
30869 2010-04-02  Bruno Haible  <bruno@clisp.org>
30870
30871         gnulib-tool: Ensure that long-running tests are executed last.
30872         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30873         running tests after the one for the other tests.
30874
30875 2010-04-02  Bruno Haible  <bruno@clisp.org>
30876
30877         gnulib-tool: Ensure the tests in the main directory are executed first.
30878         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30879         start with the current directory.
30880
30881 2010-04-02  Bruno Haible  <bruno@clisp.org>
30882
30883         Tests for module 'havelib', moved here from GNU gettext.
30884         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30885         modifications.
30886         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30887         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30888         with modifications.
30889         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30890         modifications.
30891         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30892         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30893         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30894         with modifications.
30895         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30896         with modifications.
30897         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30898         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30899         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30900         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30901         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30902         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30903         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30904         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30905         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30906         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30907         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30908         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30909         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30910         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30911         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30912         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30913         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30914         with modifications.
30915         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30916         with modifications.
30917         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30918         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30919         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30920         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30921         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30922         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30923         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30924         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30925         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30926         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30927         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30928         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30929         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30930         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30931         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30932         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30933         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30934         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30935         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30936         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30937         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30938         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30939         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30940         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30941         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30942         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30943         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30944         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30945         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30946         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30947         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30948         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30949         * tests/havelib/rpathx/rpathx.c: New file, from
30950         gettext/autoconf-lib-link.
30951         * tests/havelib/rpathx/Makefile.am: New file, from
30952         gettext/autoconf-lib-link.
30953         * tests/havelib/rpathx/configure.ac: New file, from
30954         gettext/autoconf-lib-link with modifications.
30955         * tests/havelib/rpathy/rpathy.c: New file, from
30956         gettext/autoconf-lib-link.
30957         * tests/havelib/rpathy/Makefile.am: New file, from
30958         gettext/autoconf-lib-link.
30959         * tests/havelib/rpathy/configure.ac: New file, from
30960         gettext/autoconf-lib-link with modifications.
30961         * tests/havelib/rpathz/rpathz.c: New file, from
30962         gettext/autoconf-lib-link.
30963         * tests/havelib/rpathz/Makefile.am: New file, from
30964         gettext/autoconf-lib-link.
30965         * tests/havelib/rpathz/configure.ac: New file, from
30966         gettext/autoconf-lib-link with modifications.
30967         * tests/havelib/rpathlx/usex.c: New file, from
30968         gettext/autoconf-lib-link.
30969         * tests/havelib/rpathlx/Makefile.am: New file, from
30970         gettext/autoconf-lib-link.
30971         * tests/havelib/rpathlx/configure.ac: New file, from
30972         gettext/autoconf-lib-link with modifications.
30973         * tests/havelib/rpathly/usey.c: New file, from
30974         gettext/autoconf-lib-link.
30975         * tests/havelib/rpathly/Makefile.am: New file, from
30976         gettext/autoconf-lib-link.
30977         * tests/havelib/rpathly/configure.ac: New file, from
30978         gettext/autoconf-lib-link with modifications.
30979         * tests/havelib/rpathlz/usez.c: New file, from
30980         gettext/autoconf-lib-link.
30981         * tests/havelib/rpathlz/Makefile.am: New file, from
30982         gettext/autoconf-lib-link.
30983         * tests/havelib/rpathlz/configure.ac: New file, from
30984         gettext/autoconf-lib-link with modifications.
30985         * tests/havelib/rpathlyx/usey.c: New file, from
30986         gettext/autoconf-lib-link.
30987         * tests/havelib/rpathlyx/Makefile.am: New file, from
30988         gettext/autoconf-lib-link.
30989         * tests/havelib/rpathlyx/configure.ac: New file, from
30990         gettext/autoconf-lib-link with modifications.
30991         * tests/havelib/rpathlzyx/usez.c: New file, from
30992         gettext/autoconf-lib-link.
30993         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30994         gettext/autoconf-lib-link.
30995         * tests/havelib/rpathlzyx/configure.ac: New file, from
30996         gettext/autoconf-lib-link with modifications.
30997         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30998         with modifications.
30999
31000 2010-04-02  Bruno Haible  <bruno@clisp.org>
31001
31002         gnulib-tool: Create distributed built sources also for the tests.
31003         * gnulib-tool (func_create_testdir): Also generate distributed built
31004         sources in the tests directory.
31005
31006 2010-04-02  Bruno Haible  <bruno@clisp.org>
31007
31008         gnulib-tool: Obey user's environment variables.
31009         * gnulib-tool (func_create_testdir): When creating built sources,
31010         respect the environment variables for autoconf, automake, etc. given by
31011         the user.
31012
31013 2010-04-02  Bruno Haible  <bruno@clisp.org>
31014
31015         gnulib-tool: Provide the value of --m4-base to modules.
31016         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31017         of gl_m4_base.
31018
31019 2010-04-02  Eric Blake  <eblake@redhat.com>
31020
31021         maint.mk: fix some fallout
31022         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31023         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31024
31025 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31026
31027         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31028         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31029         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31030         (sc_cast_of_x_alloc_return_value): Likewise.
31031         (sc_cast_of_alloca_return_value): Likewise.
31032         (sc_space_tab): Likewise.
31033         (sc_prohibit_atoi_atof): Likewise.
31034         (sc_prohibit_magic_number_exit): Likewise.
31035         (sc_error_exit_success): Likewise.
31036         (sc_file_system): Likewise.
31037         (sc_prohibit_have_config_h): Likewise.
31038         (sc_require_config_h): Likewise.
31039         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31040         (sc_obsolete_symbols): Likewise.
31041         (sc_changelog): Likewise.
31042         (sc_program_name): Likewise.
31043         (sc_the_the): Likewise.
31044         (sc_trailing_blank): Likewise.
31045         (sc_two_space_separator_in_usage): Likewise.
31046         (sc_useless_cpp_parens): Likewise.
31047         (sc_GPL_version): Likewise.
31048         (sc_GFDL_version): Likewise.
31049         (sc_texinfo_acronym): Likewise.
31050         (sc_prohibit_cvs_keyword): Likewise.
31051         (sc_prohibit_stat_st_blocks): Likewise.
31052         (sc_prohibit_S_IS_definition): Likewise.
31053         (sc_redundant_const): Likewise.
31054         (sc_makefile_TAB_only_indentation): Likewise.
31055         (sc_m4_quote_check): Likewise.
31056         (sc_makefile_path_separator_check): Likewise.
31057         (sc_copyright_check): Likewise.
31058         (sc_Wundef_boolean): Likewise.
31059         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31060
31061         maint.mk: match 0 or more whitespace-before-function-call '('
31062         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31063         that have zero or two-and-more spaces between the function name
31064         and the open parenthesis.
31065         (sc_error_message_warn_fatal): Likewise.
31066         (sc_error_message_uppercase): Likewise.
31067         (sc_error_message_period): Likewise.
31068
31069 2010-03-31  Eric Blake  <eblake@redhat.com>
31070
31071         maint.mk: check for [ as well as test
31072         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31073         Based on a libvirt report by Matthias Bolte.
31074
31075         gnumakefile: don't squelch _version output
31076         * top/GNUmakefile (_version): Create one-shot dependency rather
31077         than using $(shell) when version must be regenerated.
31078         (_autoreconf): Run verbosely, by default.
31079
31080         sys_time: avoid compiler warnings
31081         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31082         unconditional, fixing regression from 2010-03-29.
31083         Reported by Simon Josefsson.
31084
31085 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31086
31087         maint.mk: s/_header_without_use/_sc_header_without_use/
31088         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31089         (sc_prohibit_assert_without_use): Use the new name.
31090         (sc_prohibit_close_stream_without_use): Likewise.
31091         (sc_prohibit_getopt_without_use): Likewise.
31092         (sc_prohibit_quotearg_without_use): Likewise.
31093         (sc_prohibit_quote_without_use): Likewise.
31094         (sc_prohibit_long_options_without_use): Likewise.
31095         (sc_prohibit_inttostr_without_use): Likewise.
31096         (sc_prohibit_ignore_value_without_use): Likewise.
31097         (sc_prohibit_error_without_use): Likewise.
31098         (sc_prohibit_xalloc_without_use): Likewise.
31099         (sc_prohibit_hash_without_use): Likewise.
31100         (sc_prohibit_hash_pjw_without_use): Likewise.
31101         (sc_prohibit_safe_read_without_use): Likewise.
31102         (sc_prohibit_argmatch_without_use): Likewise.
31103         (sc_prohibit_canonicalize_without_use): Likewise.
31104         (sc_prohibit_root_dev_ino_without_use): Likewise.
31105         (sc_prohibit_openat_without_use): Likewise.
31106         (sc_prohibit_c_ctype_without_use): Likewise.
31107         (sc_prohibit_signal_without_use): Likewise.
31108         (sc_prohibit_intprops_without_use): Likewise.
31109
31110 2010-03-30  Eric Blake  <eblake@redhat.com>
31111
31112         maint: improve module indicators
31113         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31114         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31115         columns, and avoid extra macro expansion.
31116
31117         fdopendir: work around FreeBSD bug
31118         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31119         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31120         * modules/dirent (Makefile.am): Substitute it.
31121         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31122         declaration.
31123         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31124         fix.
31125         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31126
31127 2010-03-29  Bruno Haible  <bruno@clisp.org>
31128
31129         Emit #pragma system_header after the inclusion guard, not before.
31130         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31131         guard that spans the entire file, not before. This enables an
31132         optimization in GCC's preprocessor.
31133         * lib/ctype.in.h: Likewise.
31134         * lib/dirent.in.h: Likewise.
31135         * lib/errno.in.h: Likewise.
31136         * lib/float.in.h: Likewise.
31137         * lib/getopt.in.h: Likewise.
31138         * lib/iconv.in.h: Likewise.
31139         * lib/langinfo.in.h: Likewise.
31140         * lib/locale.in.h: Likewise.
31141         * lib/math.in.h: Likewise.
31142         * lib/netdb.in.h: Likewise.
31143         * lib/netinet_in.in.h: Likewise.
31144         * lib/pty.in.h: Likewise.
31145         * lib/sched.in.h: Likewise.
31146         * lib/se-selinux.in.h: Likewise.
31147         * lib/search.in.h: Likewise.
31148         * lib/spawn.in.h: Likewise.
31149         * lib/stdarg.in.h: Likewise.
31150         * lib/stdint.in.h: Likewise.
31151         * lib/string.in.h: Likewise.
31152         * lib/strings.in.h: Likewise.
31153         * lib/sys_file.in.h: Likewise.
31154         * lib/sys_ioctl.in.h: Likewise.
31155         * lib/sys_time.in.h: Likewise.
31156         * lib/sys_times.in.h: Likewise.
31157         * lib/sys_utsname.in.h: Likewise.
31158         * lib/sys_wait.in.h: Likewise.
31159         * lib/sysexits.in.h: Likewise.
31160         * lib/wctype.in.h: Likewise.
31161
31162 2010-03-28  James Youngman  <jay@gnu.org>
31163
31164         save-cwd: don't leak a file descriptor when the caller execs.
31165         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31166         saved file descriptor.
31167         * modules/save-cwd (Depends-on): Depend on cloexec.
31168
31169 2010-03-29  Bruno Haible  <bruno@clisp.org>
31170
31171         Remove vestiges of fts-lgpl module.
31172         * lib/fts_.h: Assume GNULIB_FTS is 1.
31173         * lib/fts.c: Likewise.
31174         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31175
31176 2010-03-28  Bruno Haible  <bruno@clisp.org>
31177
31178         Fix definition of tests witness macro.
31179         * gnulib-tool (func_import): Fix definition of witness macro.
31180
31181 2010-03-28  Bruno Haible  <bruno@clisp.org>
31182
31183         Fix ioctl's protoype on glibc systems.
31184         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31185         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31186         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31187         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31188         signature. If not, arrange to replace the ioctl function.
31189         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31190         REPLACE_IOCTL.
31191         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31192         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31193         Reported by Ludovic Courtès <ludo@gnu.org>.
31194
31195 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31196
31197         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31198         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31199         made it so grep -r --include=GLOB* ... did not work.
31200
31201 2010-03-26  Jim Meyering  <meyering@redhat.com>
31202             Eric Blake  <eblake@redhat.com>
31203
31204         maint.mk: prohibit use of test's -o and -a operators
31205         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31206
31207 2010-03-28  Bruno Haible  <bruno@clisp.org>
31208
31209         Remove unused GNULIB_XYZ macro definitions.
31210         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31211         invocation.
31212
31213 2010-03-28  Bruno Haible  <bruno@clisp.org>
31214
31215         Mark privileged tests modules.
31216         * modules/idpriv-drop-tests (Status): New section.
31217         * modules/idpriv-droptemp-tests (Status): New section.
31218
31219 2010-03-28  Bruno Haible  <bruno@clisp.org>
31220
31221         Split C++ tests into separate tests modules.
31222         * modules/dirent-c++-tests: New file, extracted from
31223         modules/dirent-tests.
31224         * modules/dirent-tests: Depend on it.
31225         * modules/fcntl-h-c++-tests: New file, extracted from
31226         modules/fcntl-h-tests.
31227         * modules/fcntl-h-tests: Depend on it.
31228         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31229         * modules/glob-tests: Depend on it.
31230         * modules/iconv-h-c++-tests: New file, extracted from
31231         modules/iconv-h-tests.
31232         * modules/iconv-h-tests: Depend on it.
31233         * modules/langinfo-c++-tests: New file, extracted from
31234         modules/langinfo-tests.
31235         * modules/langinfo-tests: Depend on it.
31236         * modules/locale-c++-tests: New file, extracted from
31237         modules/locale-tests.
31238         * modules/locale-tests: Depend on it.
31239         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31240         * modules/math-tests: Depend on it.
31241         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31242         * modules/pty-tests: Depend on it.
31243         * modules/search-c++-tests: New file, extracted from
31244         modules/search-tests.
31245         * modules/search-tests: Depend on it.
31246         * modules/signal-c++-tests: New file, extracted from
31247         modules/signal-tests.
31248         * modules/signal-tests: Depend on it.
31249         * modules/spawn-c++-tests: New file, extracted from
31250         modules/spawn-tests.
31251         * modules/spawn-tests: Depend on it.
31252         * modules/stdio-c++-tests: New file, extracted from
31253         modules/stdio-tests.
31254         * modules/stdio-tests: Depend on it.
31255         * modules/stdlib-c++-tests: New file, extracted from
31256         modules/stdlib-tests.
31257         * modules/stdlib-tests: Depend on it.
31258         * modules/string-c++-tests: New file, extracted from
31259         modules/string-tests.
31260         * modules/string-tests: Depend on it.
31261         * modules/sys_ioctl-c++-tests: New file, extracted from
31262         modules/sys_ioctl-tests.
31263         * modules/sys_ioctl-tests: Depend on it.
31264         * modules/sys_select-c++-tests: New file, extracted from
31265         modules/sys_select-tests.
31266         * modules/sys_select-tests: Depend on it.
31267         * modules/sys_socket-c++-tests: New file, extracted from
31268         modules/sys_socket-tests.
31269         * modules/sys_socket-tests: Depend on it.
31270         * modules/sys_stat-c++-tests: New file, extracted from
31271         modules/sys_stat-tests.
31272         * modules/sys_stat-tests: Depend on it.
31273         * modules/sys_time-c++-tests: New file, extracted from
31274         modules/sys_time-tests.
31275         * modules/sys_time-tests: Depend on it.
31276         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31277         * modules/time-tests: Depend on it.
31278         * modules/unistd-c++-tests: New file, extracted from
31279         modules/unistd-tests.
31280         * modules/unistd-tests: Depend on it.
31281         * modules/wchar-c++-tests: New file, extracted from
31282         modules/wchar-tests.
31283         * modules/wchar-tests: Depend on it.
31284         * modules/wctype-c++-tests: New file, extracted from
31285         modules/wctype-tests.
31286         * modules/wctype-tests: Depend on it.
31287         Reported by Simon Josefsson.
31288
31289 2010-03-28  Bruno Haible  <bruno@clisp.org>
31290
31291         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31292         * gnulib-tool (func_exists_module): New function, extracted from
31293         func_verify_module.
31294         (func_verify_module): Use it.
31295         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31296         'foo' only if 'foo' exists.
31297         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31298         module.
31299
31300 2010-03-28  Bruno Haible  <bruno@clisp.org>
31301
31302         gnulib-tool: Add support for special categories of tests.
31303         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31304         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31305         (func_usage): Document them.
31306         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31307         inc_unportable_tests, inc_all_tests): New variables.
31308         (func_acceptable): Consider these variables.
31309         (func_modules_transitive_closure): Make it work when the 'Status' field
31310         consists of multiple words.
31311         (func_import): Store and restore the values of inc_cxx_tests,
31312         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31313         inc_all_tests in gnulib-comp.m4.
31314         (func_create_testdir): Set inc_all_tests to true.
31315         * doc/gnulib.texi (Extra tests modules): New section.
31316         Suggested by Jim Meyering.
31317
31318 2010-03-28  Bruno Haible  <bruno@clisp.org>
31319
31320         ansi-c++-opt: Allow turning off the C++ build by default.
31321         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31322         gl_CXX_CHOICE_DEFAULT_NO is defined.
31323         Requested by Eric Blake.
31324
31325 2010-03-28  Bruno Haible  <bruno@clisp.org>
31326
31327         unistd: Avoid #define replacements in C++ mode.
31328         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31329         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31330         setsockopt, shutdown, select): In C++, attach a warning to the function
31331         if possible, rather than #defining the symbol to a dysfunctional alias.
31332         Reported by John W. Eaton <jwe@gnu.org>.
31333
31334 2010-03-28  Bruno Haible  <bruno@clisp.org>
31335
31336         Fix link errors on mingw.
31337         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31338         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31339         $(LIBSOCKET).
31340         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31341         $(LIBSOCKET).
31342
31343 2010-03-28  Bruno Haible  <bruno@clisp.org>
31344             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31345
31346         lib-ignore: Determine different options for different compilers.
31347         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31348         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31349         Add comments.
31350         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31351         * NEWS: Mention the change.
31352
31353 2010-03-27  Bruno Haible  <bruno@clisp.org>
31354
31355         Remove unused GNULIB_XYZ macro definitions.
31356         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31357         * modules/fseek (configure.ac): Likewise.
31358         * modules/ioctl (configure.ac): Likewise.
31359         * modules/open (configure.ac): Likewise.
31360         * modules/stdlib-safer (configure.ac): Likewise.
31361
31362 2010-03-27  Bruno Haible  <bruno@clisp.org>
31363
31364         Add a remark about certain modules.
31365         * modules/malloc (Comment): New section.
31366         * modules/realloc (Comment): Likewise.
31367         * modules/sigpipe (Comment): Likewise.
31368
31369 2010-03-27  Bruno Haible  <bruno@clisp.org>
31370
31371         Resolve conflict between the two kinds of module indicators.
31372         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31373         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31374         * modules/canonicalize (configure.ac): Invoke
31375         gl_MODULE_INDICATOR_FOR_TESTS.
31376         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31377         GNULIB_XYZ.
31378         * tests/test-dirent-c++.cc: Likewise.
31379         * tests/test-dirent-safer.c: Likewise.
31380         * tests/test-dup2.c: Likewise.
31381         * tests/test-fchdir.c: Likewise.
31382         * tests/test-fcntl-h-c++.cc: Likewise.
31383         * tests/test-getopt.c: Likewise.
31384         * tests/test-getopt.h: Likewise.
31385         * tests/test-langinfo-c++.cc: Likewise.
31386         * tests/test-locale-c++.cc: Likewise.
31387         * tests/test-math-c++.cc: Likewise.
31388         * tests/test-pty-c++.cc: Likewise.
31389         * tests/test-search-c++.cc: Likewise.
31390         * tests/test-signal-c++.cc: Likewise.
31391         * tests/test-spawn-c++.cc: Likewise.
31392         * tests/test-stdio-c++.cc: Likewise.
31393         * tests/test-stdlib-c++.cc: Likewise.
31394         * tests/test-string-c++.cc: Likewise.
31395         * tests/test-sys_ioctl-c++.cc: Likewise.
31396         * tests/test-sys_select-c++.cc: Likewise.
31397         * tests/test-sys_socket-c++.cc: Likewise.
31398         * tests/test-sys_stat-c++.cc: Likewise.
31399         * tests/test-sys_time-c++.cc: Likewise.
31400         * tests/test-time-c++.cc: Likewise.
31401         * tests/test-unistd-c++.cc: Likewise.
31402         * tests/test-wchar-c++.cc: Likewise.
31403         * tests/uninorm/test-u8-nfc.c: Likewise.
31404         * tests/uninorm/test-u8-nfd.c: Likewise.
31405         * tests/uninorm/test-u8-nfkc.c: Likewise.
31406         * tests/uninorm/test-u8-nfkd.c: Likewise.
31407         * tests/uninorm/test-u16-nfc.c: Likewise.
31408         * tests/uninorm/test-u16-nfd.c: Likewise.
31409         * tests/uninorm/test-u16-nfkc.c: Likewise.
31410         * tests/uninorm/test-u16-nfkd.c: Likewise.
31411         * tests/uninorm/test-u32-nfc.c: Likewise.
31412         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31413         * tests/uninorm/test-u32-nfd.c: Likewise.
31414         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31415         * tests/uninorm/test-u32-nfkc.c: Likewise.
31416         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31417         * tests/uninorm/test-u32-nfkd.c: Likewise.
31418         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31419         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31420
31421 2010-03-27  Bruno Haible  <bruno@clisp.org>
31422
31423         Distinguish two kinds of module indicators.
31424         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31425         gl_MODULE_INDICATOR.
31426         (gl_MODULE_INDICATOR): New macro.
31427         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31428         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31429         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31430         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31431         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31432         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31433         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31434         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31435         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31436         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31437         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31438         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31439         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31440         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31441         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31442         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31443         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31444         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31445         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31446         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31447         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31448         * modules/cloexec (configure.ac): Likewise.
31449         * modules/getopt-gnu (configure.ac): Likewise.
31450         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31451         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31452         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31453         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31454
31455 2010-03-27  Bruno Haible  <bruno@clisp.org>
31456
31457         New module description field 'Comment'.
31458         * gnulib-tool: New option --extract-comment.
31459         (func_usage): Document it.
31460         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31461         (func_get_comment): New function.
31462         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31463
31464 2010-03-27  Bruno Haible  <bruno@clisp.org>
31465
31466         Addendum to 2010-02-07 commit.
31467         * gnulib-tool (func_usage): Document --extract-applicability option.
31468
31469 2010-03-27  Bruno Haible  <bruno@clisp.org>
31470
31471         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31472         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31473         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31474         rather than link errors.
31475
31476 2010-03-27  Bruno Haible  <bruno@clisp.org>
31477
31478         Avoid side effects from tests-related modules on the compilation of lib.
31479         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31480         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31481         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31482         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31483         macro.
31484         (func_import): Define a witness macro. Assign it a value that depends
31485         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31486         tests-related modules.
31487         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31488         Reported by Jim Meyering.
31489
31490 2010-03-27  Bruno Haible  <bruno@clisp.org>
31491
31492         Factorize common .m4 code.
31493         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31494         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31495         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31496         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31497         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31498         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31499         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31500         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31501         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31502         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31503         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31504         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31505         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31506         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31507         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31508         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31509         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31510         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31512         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31513         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31514         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31515         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31516         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31517         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31518         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31519         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31520         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31521         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31522         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31523         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31524         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31525
31526 2010-03-27  Bruno Haible  <bruno@clisp.org>
31527
31528         Fix a compilation error on Cygwin with g++ >= 4.3.
31529         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31530         if it is undefined or if we alias it to chmod.
31531         (lstat): Don't warn about the use of this function if it is undefined
31532         or if we alias it to stat.
31533         Reported by Simon Josefsson.
31534
31535 2010-03-27  Bruno Haible  <bruno@clisp.org>
31536
31537         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31538         * modules/getlogin (configure.ac): Update.
31539
31540         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31541         * modules/getlogin_r (configure.ac): Update.
31542
31543         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31544         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31545         * modules/inet_ntop (configure.ac): Update.
31546
31547         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31548         * modules/inet_pton (configure.ac): Update.
31549
31550         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31551         * modules/mbslen (configure.ac): Update.
31552
31553         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31554         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31555         * modules/forkpty (configure.ac): Update.
31556         * modules/openpty (configure.ac): Update.
31557
31558 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31559
31560         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31561         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31562
31563 2010-03-25  Eric Blake  <eblake@redhat.com>
31564
31565         maint: use pragma consistently across replacement headers
31566         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31567         * lib/dirent.in.h (system_header): Likewise.
31568         * lib/errno.in.h (system_header): Likewise.
31569         * lib/float.in.h (system_header): Likewise.
31570         * lib/getopt.in.h (system_header): Likewise.
31571         * lib/iconv.in.h (system_header): Likewise.
31572         * lib/inttypes.in.h (system_header): Likewise.
31573         * lib/langinfo.in.h (system_header): Likewise.
31574         * lib/locale.in.h (system_header): Likewise.
31575         * lib/math.in.h (system_header): Likewise.
31576         * lib/netdb.in.h (system_header): Likewise.
31577         * lib/netinet_in.in.h (system_header): Likewise.
31578         * lib/pty.in.h (system_header): Likewise.
31579         * lib/sched.in.h (system_header): Likewise.
31580         * lib/se-selinux.in.h (system_header): Likewise.
31581         * lib/search.in.h (system_header): Likewise.
31582         * lib/spawn.in.h (system_header): Likewise.
31583         * lib/stdarg.in.h (system_header): Likewise.
31584         * lib/stdint.in.h (system_header): Likewise.
31585         * lib/string.in.h (system_header): Likewise.
31586         * lib/strings.in.h (system_header): Likewise.
31587         * lib/sys_file.in.h (system_header): Likewise.
31588         * lib/sys_ioctl.in.h (system_header): Likewise.
31589         * lib/sys_socket.in.h (system_header): Likewise.
31590         * lib/sys_times.in.h (system_header): Likewise.
31591         * lib/sys_utsname.in.h (system_header): Likewise.
31592         * lib/sys_wait.in.h (system_header): Likewise.
31593         * lib/sysexits.in.h (system_header): Likewise.
31594         * lib/unistd.in.h (system_header): Likewise.
31595         * lib/wctype.in.h (system_header): Likewise.
31596
31597         arpa/inet: fix mingw compilation warning
31598         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31599         Reported by Matthew Bolte.
31600
31601 2010-03-25  Bruno Haible  <bruno@clisp.org>
31602
31603         Avoid collision between gnulib wrapper and libintl wrapper.
31604         * lib/printf.c (printf): Don't define if a printf wrapper is already
31605         defined in intl/printf.c.
31606         Reported by Michel Boaventura <michel@michelboaventura.com>.
31607
31608 2010-03-25  Bruno Haible  <bruno@clisp.org>
31609
31610         Use ANSI C.
31611         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31612
31613 2010-03-25  Bruno Haible  <bruno@clisp.org>
31614
31615         Minor formatting changes.
31616         * lib/acosl.c: Insert space before function argument list.
31617         * lib/argz.c: Likewise.
31618         * lib/asinl.c: Likewise.
31619         * lib/expl.c: Likewise.
31620         * lib/gen-uni-tables.c: Likewise.
31621         * lib/gettext.h: Likewise.
31622         * lib/glthread/lock.h: Likewise.
31623         * lib/tanl.c: Likewise.
31624         * lib/uniname/uniname.c: Likewise.
31625         * tests/test-idpriv-drop.c: Likewise.
31626         * tests/test-idpriv-droptemp.c: Likewise.
31627         * tests/test-lock.c: Likewise.
31628         * tests/test-tls.c: Likewise.
31629         * lib/argp-help.c: Insert space before function-like macro argument
31630         list.
31631         * lib/memcmp.c: Likewise.
31632         * tests/test-base64.c: Likewise.
31633         * lib/localename.c: Insert space before sizeof's argument list.
31634         * lib/safe-alloc.h: Likewise.
31635         * lib/file-set.h: Insert space before macro argument list.
31636         * tests/test-argp.c: Likewise.
31637         * lib/argp-namefrob.h: Insert space before function parameter list.
31638         * lib/getaddrinfo.c: Likewise.
31639         * lib/netdb.in.h: Likewise.
31640         * lib/parse-duration.h: Likewise.
31641         * lib/parse-duration.c: Likewise.
31642         * lib/poll.c: Likewise.
31643         * lib/select.c: Likewise.
31644         * lib/trim.h: Likewise.
31645         * tests/test-usleep.c: Likewise.
31646         * lib/ldexpl.c: Insert space before function parameter list and before
31647         function argument list.
31648         * lib/logl.c: Likewise.
31649         * lib/sqrtl.c: Likewise.
31650         * lib/trim.c: Likewise.
31651         * lib/cosl.c: Use GNU style indentation. Insert space before function
31652         argument list.
31653         * lib/sinl.c: Likewise.
31654         * lib/tsearch.c: Insert space after 'for'.
31655         Reported by Jim Meyering.
31656
31657 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31658
31659         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31660         config header before grepping, as it's not present before
31661         autoreconf/configure are run.  Reported by Simon Josefsson.
31662
31663 2010-03-23  Bruno Haible  <bruno@clisp.org>
31664
31665         pt_chown: Make it work with automake < 1.11.
31666         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31667         Reported by Simon Josefsson.
31668
31669 2010-03-23  Bruno Haible  <bruno@clisp.org>
31670
31671         pt_chown: Don't depend on GPLed modules.
31672         * lib/pt_chown.c: Don't include idpriv.h.
31673         (main): Don't drop privileges.
31674         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31675         Reported by Simon Josefsson.
31676
31677 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31678
31679         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31680         suggestions from karl@freefriends.org (Karl Berry).
31681
31682 2010-03-22  Eric Blake  <eblake@redhat.com>
31683
31684         gethostname: further tweaks
31685         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31686         are overriding gethostname.
31687         Suggested by Bruno Haible.
31688
31689 2010-03-21  Bruno Haible  <bruno@clisp.org>
31690
31691         Fix comments.
31692         * lib/forkpty.c (rpl_forkpty): Fix comment.
31693         * lib/openpty.c (rpl_openpty): Likewise.
31694         Reported by Eric Blake.
31695
31696 2010-03-22  Eric Blake  <eblake@redhat.com>
31697
31698         gethostname: fix build on mingw
31699         * lib/unistd.in.h (includes): Work around fact that mingw
31700         <winsock2.h> re-includes <unistd.h>, by avoiding any
31701         redeclarations if we are being included by <winsock2.h>.
31702         Reported by Matthias Bolte.
31703
31704 2010-03-21  Bruno Haible  <bruno@clisp.org>
31705
31706         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31707         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31708         modifications.
31709         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31710         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31711         provide the replacement.
31712         * modules/forkpty (Depends-on): Add openpty, login_tty.
31713         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31714         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31715         * doc/glibc-functions/forkpty.texi: More supported platforms.
31716         * config/srclist.txt: Add forkpty.c (commented).
31717
31718 2010-03-21  Bruno Haible  <bruno@clisp.org>
31719
31720         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31721         (Makefile.am): Verify that PTY_LIB is defined.
31722
31723         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31724
31725 2010-03-21  Bruno Haible  <bruno@clisp.org>
31726
31727         Tests for module 'login_tty'.
31728         * modules/login_tty-tests: New file.
31729         * tests/test-login_tty.c: New file.
31730
31731         New module 'login_tty'.
31732         * lib/login_tty.c: New file.
31733         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31734         * modules/login_tty: New file.
31735         * doc/glibc-functions/login_tty.texi: Mention the new module.
31736
31737 2010-03-21  Bruno Haible  <bruno@clisp.org>
31738
31739         login_tty: Documentation.
31740         * doc/glibc-functions/login_tty.texi: New file.
31741         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31742
31743 2010-03-21  Bruno Haible  <bruno@clisp.org>
31744
31745         pty: Consistent macro naming.
31746         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31747         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31748         * modules/pty (configure.ac): Update.
31749
31750 2010-03-21  Bruno Haible  <bruno@clisp.org>
31751
31752         Tests for openpty: Make stricter.
31753         * tests/test-openpty.c (main): Add test of canonical processing and
31754         erase.
31755         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31756
31757         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31758         * lib/openpty.c (openpty): New replacement function.
31759         * lib/pty.in.h: Include <termios.h>.
31760         (openpty): Update declaration. Add comments.
31761         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31762         is not declared, arrange to provide the replacement. Check for _getpty
31763         and posix_openpt.
31764         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31765         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31766         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31767         * modules/pty-tests (test_pty_c___LDADD): New variable.
31768         * doc/glibc-functions/openpty.texi: More supported platforms.
31769
31770 2010-03-21  Bruno Haible  <bruno@clisp.org>
31771
31772         setenv: Tweaks.
31773         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31774         the test program.
31775         * doc/posix-functions/setenv.texi: Update platforms list.
31776
31777 2010-03-21  Bruno Haible  <bruno@clisp.org>
31778
31779         New module 'unlockpt'.
31780         * lib/unlockpt.c: New file, from glibc with modifications.
31781         * m4/unlockpt.m4: New file.
31782         * modules/unlockpt: New file.
31783         * lib/stdlib.in.h (unlockpt): New declaration.
31784         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31785         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31786         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31787         HAVE_UNLOCKPT.
31788         * doc/posix-functions/unlockpt.texi: Mention the new module.
31789         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31790         * config/srclist.txt: Add unlockpt.c (commented).
31791
31792 2010-03-21  Jim Meyering  <meyering@redhat.com>
31793
31794         maint.mk: prohibit inclusion of "intprops.h" without use
31795         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31796
31797 2010-03-21  Bruno Haible  <bruno@clisp.org>
31798
31799         New module 'grantpt'.
31800         * lib/grantpt.c: New file, from glibc with modifications.
31801         * m4/grantpt.m4: New file.
31802         * modules/grantpt: New file.
31803         * lib/stdlib.in.h (grantpt): New declaration.
31804         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31805         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31806         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31807         HAVE_GRANTPT.
31808         * doc/posix-functions/grantpt.texi: Mention the new module.
31809         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31810         * config/srclist.txt: Add grantpt.c (commented).
31811
31812 2010-03-21  Bruno Haible  <bruno@clisp.org>
31813
31814         New module 'pt_chown'.
31815         * lib/pt_chown.c: New file, from glibc with modifications.
31816         * lib/pty-private.h: New file, from glibc with modifications.
31817         * modules/pt_chown: New file.
31818         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31819
31820 2010-03-21  Bruno Haible  <bruno@clisp.org>
31821
31822         Tests for module 'ptsname'.
31823         * modules/ptsname-tests: New file.
31824         * tests/test-ptsname.c: New file.
31825
31826         New module 'ptsname'.
31827         * lib/ptsname.c: New file, from glibc with modifications.
31828         * m4/ptsname.m4: New file.
31829         * modules/ptsname: New file.
31830         * lib/stdlib.in.h (ptsname): New declaration.
31831         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31832         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31833         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31834         HAVE_PTSNAME.
31835         * doc/posix-functions/ptsname.texi: Mention the new module.
31836         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31837         * config/srclist.txt: Add ptsname.c (commented).
31838
31839 2010-03-21  Bruno Haible  <bruno@clisp.org>
31840
31841         Tests for module 'ttyname_r'.
31842         * modules/ttyname_r-tests: New file.
31843         * tests/test-ttyname_r.c: New file.
31844
31845         New module 'ttyname_r'.
31846         * lib/ttyname_r.c: New file.
31847         * m4/ttyname_r.m4: New file.
31848         * modules/ttyname_r: New file.
31849         * lib/unistd.in.h (ttyname_r): New declaration.
31850         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31851         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31852         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31853         HAVE_TTYNAME_R.
31854         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31855         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31856
31857 2010-03-20  Bruno Haible  <bruno@clisp.org>
31858
31859         signal: Undefine macro definitions in C++ mode.
31860         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31861         sigfillset): Undefine macro definitions from the system header in C++
31862         mode.
31863         Reported by John W. Eaton <jwe@gnu.org>.
31864
31865 2010-03-20  Bruno Haible  <bruno@clisp.org>
31866
31867         Ensure no #include statements inside extern "C" { ... }.
31868         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31869         contain #include statements.
31870         * lib/time.in.h: Likewise.
31871
31872 2010-03-20  Bruno Haible  <bruno@clisp.org>
31873
31874         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31875         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31876         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31877         Reported by John W. Eaton <jwe@gnu.org>.
31878
31879 2010-03-20  Bruno Haible  <bruno@clisp.org>
31880
31881         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31882         Reported by Jim Meyering.
31883
31884 2010-03-20  Bruno Haible  <bruno@clisp.org>
31885
31886         pipe: Set errno upon failure.
31887         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31888         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31889         errno value in error message.
31890
31891 2010-03-20  Bruno Haible  <bruno@clisp.org>
31892             Jim Meyering  <meyering@redhat.com>
31893
31894         lchown: Avoid "unused variable" warning.
31895         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31896
31897 2010-03-20  Bruno Haible  <bruno@clisp.org>
31898
31899         Work around unlink() bug on MacOS X 10.5.6.
31900         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31901         attempting to unlink a parent directory.
31902         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31903         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31904         activate for the replacement function.
31905         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31906
31907 2010-03-20  Bruno Haible  <bruno@clisp.org>
31908
31909         Fix link errors on Solaris 8.
31910         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31911         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31912
31913 2010-03-19  Jim Meyering  <meyering@redhat.com>
31914
31915         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31916         The _LIBC implementation of build_range_exp correctly honors the
31917         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31918         However, the non-_LIBC implementation would ignore that syntax-bit
31919         flag and return REG_ERANGE unconditionally.
31920         This change makes it honor that flag.
31921         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31922         Make two pointer parameters "const".
31923         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31924         (parse_bracket_exp): Update caller.
31925
31926         regex.m4: correct the reversed range endpoint ([b-a]) test
31927         * m4/regex.m4: When requiring that [b-a] evoke failure,
31928         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31929         test pass once again for x86-based systems.
31930
31931 2010-03-19  Bruno Haible  <bruno@clisp.org>
31932
31933         scandir: Fix link error on Solaris 8.
31934         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31935         macros.
31936
31937 2010-03-19  Bruno Haible  <bruno@clisp.org>
31938
31939         getusershell: Fix documentation.
31940         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31941         module.
31942         * doc/glibc-functions/setusershell.texi: Likewise.
31943
31944         getusershell: Provide declaration, missing on Solaris 9.
31945         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31946         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31947         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31948         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31950         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31951         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31952         HAVE_GETUSERSHELL.
31953         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31954
31955 2010-03-19  Bruno Haible  <bruno@clisp.org>
31956
31957         wctype: Provide iswblank function.
31958         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31959         exists and is fine.
31960         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31961         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31962         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31963         * doc/posix-functions/iswblank.texi: Update.
31964
31965 2010-03-19  Bruno Haible  <bruno@clisp.org>
31966
31967         Tests of module 'pty' in C++ mode.
31968         * modules/pty-tests: New file.
31969         * tests/test-pty-c++.cc: New file.
31970         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31971
31972 2010-03-19  Eric Blake  <eblake@redhat.com>
31973
31974         logb: fix documentation
31975         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31976         1.5 declaration bug.
31977
31978         forkpty, openpty: prefer glibc's const-safe prototype
31979         * lib/forkpty.c (rpl_forkpty): New file.
31980         * lib/openpty.c (rpl_openpty): Likewise.
31981         * modules/forkpty (Files): Distribute it.
31982         * modules/openpty (Files): Likewise.
31983         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31984         check...
31985         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31986         replacement for for non-const BSD signature.
31987         * modules/pty (Makefile.am): Substitute witnesses.
31988         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31989         * tests/test-forkpty.c: Update signature check.
31990         * tests/test-openpty.c: Likewise.
31991         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31992         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31993
31994         forkpty, openpty: split functions into new modules
31995         * modules/pty (Makefile.am): Substitute new witnesses.
31996         (Libraries): Move library detection...
31997         * modules/forkpty: ...into new module.
31998         * modules/openpty: Another new module.
31999         * modules/pty-tests: Rename and split...
32000         * modules/forkpty-tests: ...to this...
32001         * modules/openpty-tests: ...and this.
32002         * tests/test-pty.c: Rename and split...
32003         * tests/test-forkpty.c: ...to this...
32004         * tests/test-openpty.c: ...and this.
32005         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32006         (gl_PTY): Split library searching...
32007         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32008         (gl_FORKPTY, gl_OPENPTY): New macros.
32009         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32010         * NEWS: Mention the split.
32011         * MODULES.html.sh (Misc): Document the modules.
32012         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32013         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32014
32015         pty: improve replacement header
32016         * lib/pty.in.h: New file.
32017         * modules/pty (Files): Ship it.
32018         (Makefile.am): Always build replacement.
32019         * m4/pty.m4: Rename...
32020         * m4/pty_h.m4: ...to this.
32021         (gl_PTY): Modernize setting of witness macros; update check of
32022         forkpty to take proper advantage of cache.
32023         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32024
32025         getopt: avoid compiler warning
32026         * lib/getopt.c (attribute_hidden): Remove unused macro.
32027
32028 2010-03-18  Bruno Haible  <bruno@clisp.org>
32029
32030         Fix link errors on Solaris 8.
32031         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32032         * modules/search-tests (test_search_c___LDADD): Likewise.
32033         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32034         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32035         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32036         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32037         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32038         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32039         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32040
32041 2010-03-18  Bruno Haible  <bruno@clisp.org>
32042
32043         Fix bug introduced on 2010-03-14.
32044         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32045         (gl_SPAWN_H): Require it.
32046         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32047         Reported by Simon Josefsson.
32048
32049 2010-03-18  Bruno Haible  <bruno@clisp.org>
32050
32051         Fix typo introduced on 2009-12-31.
32052         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32053         posix_spawn_file_actions_adddup2.
32054
32055 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32056         and Eric Blake  <eblake@redhat.com>
32057
32058         test-vc-list-files-git: make more robust
32059         * tests/test-vc-list-files-git.sh: Unset problematic environment
32060         variables.  Chain commands together.
32061
32062 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32063
32064         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32065         `AC_CHECK_DECL' invocation.
32066
32067 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32068
32069         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32070         appears before executable statements. Suggested by Petr Sumbera
32071         <Petr.Sumbera@Sun.COM>.
32072
32073 2010-03-14  Bruno Haible  <bruno@clisp.org>
32074
32075         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32076         portability problems. Instead use a simpler test.
32077         (main): Check that invalid arguments are rejected only on Linux.
32078
32079 2010-03-14  Bruno Haible  <bruno@clisp.org>
32080
32081         Fix bug introduced on 2009-12-31.
32082         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32083         gl_PREREQ_SYS_H_WINSOCK2 always.
32084         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32085         SYS_SOCKET_H variable.
32086         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32087         Update comments.
32088         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32089         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32090         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32091         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32092         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32093
32094 2010-03-14  Bruno Haible  <bruno@clisp.org>
32095
32096         Fix values returned by sinl, cosl.
32097         * lib/trigl.h: Add specification comments.
32098         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32099         that combines the values from the precomputed table with the values of
32100         the Chebyshev polynomials.
32101
32102 2010-03-14  Bruno Haible  <bruno@clisp.org>
32103
32104         Fix compilation error when modules 'posix_spawn[p]' are not used.
32105         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32107
32108 2010-03-14  Bruno Haible  <bruno@clisp.org>
32109
32110         Fix compilation error on mingw when module 'time_r' is not used.
32111         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32112         is 1.
32113         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32114         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32115         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32116         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32117
32118 2010-03-14  Bruno Haible  <bruno@clisp.org>
32119
32120         Fix compilation error with Sun C.
32121         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32122         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32123         instead of GCC specific ULONG_LONG_MAX.
32124         * lib/xstrtoll.c: Likewise.
32125         * lib/xstrtoull.c: Likewise.
32126
32127 2010-03-13  Bruno Haible  <bruno@clisp.org>
32128
32129         Allow the user to disable C++ code and tests.
32130         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32131         (gl_PROG_ANSI_CXX): Require it.
32132
32133 2010-03-13  Bruno Haible  <bruno@clisp.org>
32134
32135         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32136         cases.
32137
32138 2010-03-13  Bruno Haible  <bruno@clisp.org>
32139
32140         Test that gnulib does not break the standard C++ headers.
32141         * tests/test-locale-c++2.cc: New file.
32142         * modules/locale-tests (Files): Add it.
32143         (Makefile.am): Compile it for test-locale-c++.
32144         * tests/test-math-c++2.cc: New file.
32145         * modules/math-tests (Files): Add it.
32146         (Makefile.am): Compile it for test-math-c++.
32147         * tests/test-signal-c++2.cc: New file.
32148         * modules/signal-tests (Files): Add it.
32149         (Makefile.am): Compile it for test-signal-c++.
32150         * tests/test-stdio-c++2.cc: New file.
32151         * modules/stdio-tests (Files): Add it.
32152         (Makefile.am): Compile it for test-stdio-c++.
32153         * tests/test-stdlib-c++2.cc: New file.
32154         * modules/stdlib-tests (Files): Add it.
32155         (Makefile.am): Compile it for test-stdlib-c++.
32156         * tests/test-string-c++2.cc: New file.
32157         * modules/string-tests (Files): Add it.
32158         (Makefile.am): Compile it for test-string-c++.
32159         * tests/test-time-c++2.cc: New file.
32160         * modules/time-tests (Files): Add it.
32161         (Makefile.am): Compile it for test-time-c++.
32162         Reported by John W. Eaton <jwe@gnu.org>.
32163
32164 2010-03-13  Bruno Haible  <bruno@clisp.org>
32165
32166         * gnulib-tool (func_usage): Clarify which options are available for
32167         --create-testdir and --create-megatestdir.
32168
32169 2010-03-13  Bruno Haible  <bruno@clisp.org>
32170
32171         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32172         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32173         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32174         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32175         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32176         when appropriate.
32177         Reported by Jim Meyering.
32178
32179 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32180
32181         * gnulib-tool (func_import): Explain origin of code.
32182
32183 2010-03-12  Bruno Haible  <bruno@clisp.org>
32184
32185         Fix problem with automake's definition of CXXLINK.
32186         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32187         Reported by Simon Josefsson and Ludovic Courtès.
32188
32189 2010-03-12  Bruno Haible  <bruno@clisp.org>
32190
32191         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32192         stable releases.
32193
32194 2010-03-11  Bruno Haible  <bruno@clisp.org>
32195
32196         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32197         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32198         whether the system provides one variant or multiple variants of the
32199         function.
32200         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32201         C++ compilers.
32202         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32203         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32204         Reported by Jim Meyering.
32205
32206 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32207
32208         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32209
32210 2010-03-08  Bruno Haible  <bruno@clisp.org>
32211
32212         gnulib-tool: Add support for --libtool in --create-testdir.
32213         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32214         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32215
32216 2010-03-08  Eric Blake  <eblake@redhat.com>
32217
32218         gnulib-tool.texi: mention possibility of git submodule
32219         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32220         submodules.
32221         * doc/.gitignore: Ignore another generated file.
32222
32223 2010-03-08  Karl Berry  <karl@gnu.org>
32224
32225         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32226         of committing gnulib files while skipping others.
32227
32228 2010-03-07  Bruno Haible  <bruno@clisp.org>
32229
32230         Tests of module 'wctype' in C++ mode.
32231         * tests/test-wctype-c++.cc: New file.
32232         * modules/wctype-tests (Files): Add it and tests/signature.h.
32233         (Depends-on): Add ansi-c++-opt.
32234         (Makefile.am): Arrange to compile and run test-wctype-c++.
32235
32236         Tests of module 'wchar' in C++ mode.
32237         * tests/test-wchar-c++.cc: New file.
32238         * modules/wchar-tests (Files): Add it and tests/signature.h.
32239         (Depends-on): Add ansi-c++-opt.
32240         (Makefile.am): Arrange to compile and run test-wchar-c++.
32241         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32242         gl_MODULE_INDICATOR.
32243
32244         Tests of module 'unistd' in C++ mode.
32245         * tests/test-unistd-c++.cc: New file.
32246         * modules/unistd-tests (Files): Add it and tests/signature.h.
32247         (Depends-on): Add ansi-c++-opt.
32248         (Makefile.am): Arrange to compile and run test-unistd-c++.
32249         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32250         gl_MODULE_INDICATOR.
32251
32252         Tests of module 'time' in C++ mode.
32253         * tests/test-time-c++.cc: New file.
32254         * modules/time-tests (Files): Add it and tests/signature.h.
32255         (Depends-on): Add ansi-c++-opt.
32256         (Makefile.am): Arrange to compile and run test-time-c++.
32257         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32258
32259         Tests of module 'sys_time' in C++ mode.
32260         * tests/test-sys_time-c++.cc: New file.
32261         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32262         (Depends-on): Add ansi-c++-opt.
32263         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32264         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32265         gl_MODULE_INDICATOR.
32266
32267         Tests of module 'sys_stat' in C++ mode.
32268         * tests/test-sys_stat-c++.cc: New file.
32269         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32270         (Depends-on): Add ansi-c++-opt.
32271         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32272         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32273         gl_MODULE_INDICATOR.
32274
32275         Tests of module 'sys_socket' in C++ mode.
32276         * tests/test-sys_socket-c++.cc: New file.
32277         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32278         (Depends-on): Add ansi-c++-opt.
32279         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32280         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32281         gl_MODULE_INDICATOR.
32282
32283         Tests of module 'sys_select' in C++ mode.
32284         * tests/test-sys_select-c++.cc: New file.
32285         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32286         (Depends-on): Add ansi-c++-opt.
32287         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32288         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32289         gl_MODULE_INDICATOR.
32290
32291         Tests of module 'sys_ioctl' in C++ mode.
32292         * tests/test-sys_ioctl-c++.cc: New file.
32293         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32294         (Depends-on): Add ansi-c++-opt.
32295         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32296         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32297         gl_MODULE_INDICATOR.
32298
32299         Tests of module 'string' in C++ mode.
32300         * tests/test-string-c++.cc: New file.
32301         * modules/string-tests (Files): Add it and tests/signature.h.
32302         (Depends-on): Add ansi-c++-opt.
32303         (Makefile.am): Arrange to compile and run test-string-c++.
32304         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32305         gl_MODULE_INDICATOR.
32306
32307         Tests of module 'stdlib' in C++ mode.
32308         * tests/test-stdlib-c++.cc: New file.
32309         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32310         (Depends-on): Add ansi-c++-opt.
32311         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32312         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32313         gl_MODULE_INDICATOR.
32314
32315         Tests of module 'stdio' in C++ mode.
32316         * tests/test-stdio-c++.cc: New file.
32317         * modules/stdio-tests (Files): Add it and tests/signature.h.
32318         (Depends-on): Add ansi-c++-opt.
32319         (Makefile.am): Arrange to compile and run test-stdio-c++.
32320         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32321         gl_MODULE_INDICATOR.
32322
32323         Tests of module 'spawn' in C++ mode.
32324         * tests/test-spawn-c++.cc: New file.
32325         * modules/spawn-tests (Files): Add it and tests/signature.h.
32326         (Depends-on): Add ansi-c++-opt.
32327         (Makefile.am): Arrange to compile and run test-spawn-c++.
32328         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32329         gl_MODULE_INDICATOR.
32330
32331         Tests of module 'signal' in C++ mode.
32332         * tests/test-signal-c++.cc: New file.
32333         * modules/signal-tests (Files): Add it and tests/signature.h.
32334         (Depends-on): Add ansi-c++-opt.
32335         (Makefile.am): Arrange to compile and run test-signal-c++.
32336         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32337         gl_MODULE_INDICATOR.
32338
32339         Tests of module 'search' in C++ mode.
32340         * tests/test-search-c++.cc: New file.
32341         * modules/search-tests (Files): Add it and tests/signature.h.
32342         (Depends-on): Add ansi-c++-opt.
32343         (Makefile.am): Arrange to compile and run test-search-c++.
32344         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32345         gl_MODULE_INDICATOR.
32346
32347         Tests of module 'math' in C++ mode.
32348         * tests/test-math-c++.cc: New file.
32349         * modules/math-tests (Files): Add it and tests/signature.h.
32350         (Depends-on): Add ansi-c++-opt.
32351         (Makefile.am): Arrange to compile and run test-math-c++.
32352         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32353
32354         Tests of module 'locale' in C++ mode.
32355         * tests/test-locale-c++.cc: New file.
32356         * modules/locale-tests (Files): Add it and tests/signature.h.
32357         (Depends-on): Add ansi-c++-opt.
32358         (Makefile.am): Arrange to compile and run test-locale-c++.
32359         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32360         gl_MODULE_INDICATOR.
32361
32362         Tests of module 'langinfo' in C++ mode.
32363         * tests/test-langinfo-c++.cc: New file.
32364         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32365         (Depends-on): Add ansi-c++-opt.
32366         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32367         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32368         gl_MODULE_INDICATOR.
32369
32370         Tests of module 'iconv-h' in C++ mode.
32371         * tests/test-iconv-h-c++.cc: New file.
32372         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32373         (Depends-on): Add ansi-c++-opt.
32374         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32375
32376         Tests of module 'glob' in C++ mode.
32377         * tests/test-glob-c++.cc: New file.
32378         * modules/glob-tests (Files): Add it.
32379         (Depends-on): Add ansi-c++-opt.
32380         (Makefile.am): Arrange to compile and run test-glob-c++.
32381
32382         Tests of module 'fcntl-h' in C++ mode.
32383         * tests/test-fcntl-h-c++.cc: New file.
32384         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32385         (Depends-on): Add ansi-c++-opt.
32386         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32387         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32388         gl_MODULE_INDICATOR.
32389
32390         Tests of module 'dirent' in C++ mode.
32391         * tests/test-dirent-c++.cc: New file.
32392         * modules/dirent-tests (Files): Add it and tests/signature.h.
32393         (Depends-on): Add ansi-c++-opt.
32394         (Makefile.am): Arrange to compile and run test-dirent-c++.
32395         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32396         gl_MODULE_INDICATOR.
32397
32398         New module 'ansi-c++-opt'.
32399         * modules/ansi-c++-opt: New file.
32400         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32401
32402         Document C++ namespace mode.
32403         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32404
32405         wctype: Avoid #define replacements in C++ mode.
32406         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32407         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32408         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32409         In C++, define a namespaced alias symbol.
32410         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32411         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32412         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32413         rule.
32414
32415         wchar: Avoid #define replacements in C++ mode.
32416         * lib/wchar.in.h: Include c++defs.h.
32417         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32418         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32419         symbol.
32420         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32421         * modules/wchar (Depends-on): Add c++defs.
32422         (Makefile.am): Update wchar.h rule.
32423
32424         unistd: Avoid #define replacements in C++ mode.
32425         * lib/unistd.in.h: Include c++defs.h.
32426         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32427         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32428         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32429         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32430         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32431         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32432         symbol.
32433         (environ): Update.
32434         * modules/unistd (Depends-on): Add c++defs.
32435         (Makefile.am): Update unistd.h rule.
32436
32437         time: Avoid #define replacements in C++ mode.
32438         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32439         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32440         define a namespaced alias symbol.
32441         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32442         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32443         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32444         * modules/time (Depends-on): Add c++defs, warn-on-use.
32445         (Makefile.am): Update time.h rule.
32446         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32447         * modules/nanosleep (configure.ac): Likewise.
32448         * modules/strptime (configure.ac): Likewise.
32449         * modules/timegm (configure.ac): Likewise.
32450
32451         sys_time: Avoid #define replacements in C++ mode.
32452         * lib/sys_time.in.h: Include c++defs.h.
32453         (gettimeofday): In C++, define a namespaced alias symbol.
32454         * modules/sys_time (Depends-on): Add c++defs.
32455         (Makefile.am): Update sys/time.h rule.
32456
32457         sys_stat: Avoid #define replacements in C++ mode.
32458         * lib/sys_stat.in.h: Include c++defs.h.
32459         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32460         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32461         namespaced alias symbol.
32462         In C++, define a namespaced alias symbol.
32463         * modules/sys_stat (Depends-on): Add c++defs.
32464         (Makefile.am): Update sys/stat.h rule.
32465
32466         sys_socket: Avoid #define replacements in C++ mode.
32467         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32468         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32469         definitions also when the system has a <sys/socket.h>.
32470         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32471         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32472         In C++, define a namespaced alias symbol.
32473         * modules/sys_socket (Depends-on): Add c++defs.
32474         (Makefile.am): Update sys/socket.h rule.
32475
32476         sys_select: Avoid #define replacements in C++ mode.
32477         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32478         definitions also when the system has a <sys/select.h>.
32479         (select): In C++, define a namespaced alias symbol.
32480         * modules/sys_select (Depends-on): Add c++defs.
32481         (Makefile.am): Update sys/select.h rule.
32482
32483         sys_ioctl: Avoid #define replacements in C++ mode.
32484         * lib/sys_ioctl.in.h: Include c++defs.h.
32485         (ioctl): In C++, define a namespaced alias symbol.
32486         * modules/sys_ioctl (Depends-on): Add c++defs.
32487         (Makefile.am): Update sys/ioctl.h rule.
32488
32489         string: Avoid #define replacements in C++ mode.
32490         * lib/string.in.h: Include c++defs.h.
32491         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32492         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32493         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32494         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32495         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32496         * modules/string (Depends-on): Add c++defs.
32497         (Makefile.am): Update string.h rule.
32498
32499         stdlib: Avoid #define replacements in C++ mode.
32500         * lib/stdlib.in.h: Include c++defs.h.
32501         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32502         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32503         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32504         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32505         symbol.
32506         * modules/stdlib (Depends-on): Add c++defs.
32507         (Makefile.am): Update stdlib.h rule.
32508
32509         stdio: Avoid #define replacements in C++ mode.
32510         * lib/stdio.in.h: Include c++defs.h.
32511         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32512         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32513         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32514         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32515         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32516         namespaced alias symbol.
32517         * modules/stdio (Depends-on): Add c++defs.
32518         (Makefile.am): Update stdio.h rule.
32519
32520         spawn: Avoid #define replacements in C++ mode.
32521         * lib/spawn.in.h: Include c++defs.h.
32522         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32523         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32524         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32525         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32526         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32527         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32528         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32529         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32530         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32531         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32532         In C++, define a namespaced alias symbol.
32533         * modules/spawn (Depends-on): Add c++defs.
32534         (Makefile.am): Update spawn.h rule.
32535
32536         signal: Avoid #define replacements in C++ mode.
32537         * lib/signal.in.h: Include c++defs.h.
32538         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32539         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32540         namespaced alias symbol.
32541         * modules/signal (Depends-on): Add c++defs.
32542         (Makefile.am): Update signal.h rule.
32543
32544         search: Avoid #define replacements in C++ mode.
32545         * lib/search.in.h: Include c++defs.h.
32546         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32547         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32548         symbol.
32549         * modules/search (Depends-on): Add c++defs.
32550         (Makefile.am): Update search.h rule.
32551
32552         math: Avoid #define replacements in C++ mode.
32553         * lib/math.in.h: Include c++defs.h.
32554         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32555         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32556         trunc, truncl): In C++, define a namespaced alias symbol.
32557         * modules/math (Depends-on): Add c++defs.
32558         (Makefile.am): Update math.h rule.
32559
32560         locale: Avoid #define replacements in C++ mode.
32561         * lib/locale.in.h: Include c++defs.h.
32562         (duplocale): In C++, define a namespaced alias symbol.
32563         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32564         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32565         * modules/locale (Depends-on): Add c++defs.
32566         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32567
32568         langinfo: Avoid #define replacements in C++ mode.
32569         * lib/langinfo.in.h: Include c++defs.h.
32570         (nl_langinfo): In C++, define a namespaced alias symbol.
32571         * modules/langinfo (Depends-on): Add c++defs.
32572         (Makefile.am): Update langinfo.h rule.
32573
32574         iconv-h: Avoid #define replacements in C++ mode.
32575         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32576         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32577         symbol.
32578         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32579         whenever iconv is present.
32580         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32581         (Makefile.am): Update iconv.h rule.
32582
32583         glob: Avoid #define replacements in C++ mode.
32584         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32585         (_gl_glob_errfunc_fn): New type.
32586         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32587         symbol.
32588         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32589         (Makefile.am): Update glob.h rule.
32590
32591         fcntl-h: Avoid #define replacements in C++ mode.
32592         * lib/fcntl.in.h: Include c++defs.h.
32593         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32594         * modules/fcntl-h (Depends-on): Add c++defs.
32595         (Makefile.am): Update fcntl.h rule.
32596
32597         dirent: Avoid #define replacements in C++ mode.
32598         * lib/dirent.in.h: Include c++defs.h.
32599         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32600         namespaced alias symbol.
32601         (dirfd): Update declaration.
32602         * modules/dirent (Depends-on): Add c++defs.
32603         (Makefile.am): Update dirent.h rule.
32604
32605         ctype: Make it usable in C++ code.
32606         * lib/ctype.in.h: Include c++defs.h.
32607         (isblank): Declare as extern "C".
32608         * modules/ctype (Depends-on): Add c++defs.
32609         (Makefile.am): Update ctype.h rule.
32610
32611         New module 'c++defs'.
32612         * modules/c++defs: New file.
32613         * build-aux/c++defs.h: New file.
32614         Reported by John W. Eaton <jwe@gnu.org>.
32615
32616 2010-03-07  Bruno Haible  <bruno@clisp.org>
32617
32618         logb: Provide missing declaration for Cygwin.
32619         * lib/math.in.h (logb): New declaration.
32620         * m4/logb.m4: New file.
32621         * modules/logb (Files): Add m4/logb.m4.
32622         (Depends-on): Add math.
32623         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32624         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32626         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32627         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32628
32629 2010-03-07  Bruno Haible  <bruno@clisp.org>
32630
32631         Fix test-cond link error.
32632         * tests/test-cond.c: Include <stdio.h>.
32633
32634 2010-03-07  Bruno Haible  <bruno@clisp.org>
32635
32636         Fix test-dirent-safer link error.
32637         * modules/dirent-safer-tests (Makefile.am): Define
32638         test_dirent_safer_LDADD.
32639
32640 2010-03-07  Bruno Haible  <bruno@clisp.org>
32641
32642         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32643         among default module list.
32644
32645 2010-03-07  Bruno Haible  <bruno@clisp.org>
32646
32647         Fix link error on platforms with GNU libiconv.
32648         * modules/unistr/u8-strcoll-tests (Makefile): Define
32649         test_u8_strcoll_LDADD.
32650         * modules/unistr/u16-strcoll-tests (Makefile): Define
32651         test_u16_strcoll_LDADD.
32652         * modules/unistr/u32-strcoll-tests (Makefile): Define
32653         test_u32_strcoll_LDADD.
32654
32655 2010-03-07  Bruno Haible  <bruno@clisp.org>
32656
32657         Use POSIX declarations for socket functions.
32658         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32659         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32660         rpl_sendto): Change declaration to match POSIX.
32661         * lib/connect.c (rpl_connect): Likewise.
32662         * lib/accept.c (rpl_accept): Likewise.
32663         * lib/bind.c (rpl_bind): Likewise.
32664         * lib/getpeername.c (rpl_getpeername): Likewise.
32665         * lib/getsockname.c (rpl_getsockname): Likewise.
32666         * lib/recv.c (rpl_recv): Likewise.
32667         * lib/send.c (rpl_send): Likewise.
32668         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32669         * lib/sendto.c (rpl_sendto): Likewise.
32670
32671 2010-03-06  Bruno Haible  <bruno@clisp.org>
32672
32673         Clarify access, euidaccess, faccessat.
32674         * doc/posix-functions/faccessat.texi: Mention security problem under
32675         "Other problems", not "Portability problems".
32676         * doc/posix-functions/access.texi: Likewise. Mention a related security
32677         problem.
32678         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32679         * lib/euidaccess.c: Add comments about platforms.
32680         * lib/unistd.in.h (access, euidaccess): Add warnings.
32681
32682 2010-03-07  Bruno Haible  <bruno@clisp.org>
32683
32684         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32685         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32686         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32687         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32688         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32689         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32690         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32691         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32692         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32693         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32694         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32695         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32696         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32697         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32698         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32699         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32700         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32701         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32702         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32703         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32704         Likewise.
32705         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32706         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32707         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32708         Likewise.
32709         * tests/test-spawn.c (main): Make it work when
32710         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32711
32712 2010-03-07  Bruno Haible  <bruno@clisp.org>
32713
32714         Fix incorrect Makefile.am generation in German locale.
32715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32716         Execute sed command with character range in C locale.
32717
32718 2010-03-06  Bruno Haible  <bruno@clisp.org>
32719
32720         Tests for module 'iconv-h'.
32721         * modules/iconv-h-tests: New file.
32722         * tests/test-iconv-h.c: New file.
32723
32724         New module 'iconv-h'.
32725         * modules/iconv-h: New file.
32726         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32727         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32728         (configure.ac): Remove gl_ICONV_H.
32729         (Makefile.am): Remove rule for iconv.h.
32730
32731 2010-03-06  Bruno Haible  <bruno@clisp.org>
32732
32733         More consistent naming of *.m4 files.
32734         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32735         * modules/wctype (Files): Update.
32736
32737         More consistent naming of *.m4 files.
32738         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32739         * modules/wchar (Files): Update.
32740
32741 2010-03-06  Jim Meyering  <meyering@redhat.com>
32742
32743         euidaccess: relax license to LGPLv2+
32744         * modules/euidaccess (License): Relax to LGPLv2+.
32745
32746 2010-03-06  Bruno Haible  <bruno@clisp.org>
32747
32748         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32749         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32750         (Makefile.am): Augment lib_SOURCES instead.
32751
32752 2010-03-04  Jim Meyering  <meyering@redhat.com>
32753
32754         utime: remove obsolete module
32755         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32756         unnecessary for years, and has been marked as obsolete for 10 months.
32757         * modules/utime: Remove file.
32758         * lib/utime.c: Remove file.
32759         * m4/utime.m4: Remove file.
32760         * m4/utimes-null.m4: Remove file.
32761         * doc/posix-functions/utime.texi (utime): Remove reference to
32762         the module.  Move the sole "fixed by gnulib" item into the
32763         "problems not fixed by Gnulib" list.
32764         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32765
32766 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32767
32768         * modules/exit (License): Relax license to LGPLv2+.
32769         (Status): Mark as obsolete.
32770         * NEWS: Mention deprecated 'exit' module.
32771         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32772         of now obsolete 'exit'.
32773
32774 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32775
32776         fts-lgpl: remove unused module
32777         * modules/fts-lgpl: Remove.
32778         * MODULES.html.sh (func_all_modules): Adjust.
32779         * check-module (find_included_lib_files): Adjust.
32780         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32781
32782 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32783
32784         copy-acl: enhance Solaris ACL error handling
32785         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32786         * lib/set-mode-acl.c (qset_acl): Likewise.
32787
32788 2010-03-02  Bruno Haible  <bruno@clisp.org>
32789
32790         spawn: Don't override the system defined values on FreeBSD 8.
32791         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32792         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32793         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32794         if HAVE_POSIX_SPAWN is 1.
32795         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32796
32797 2010-03-01  Bruno Haible  <bruno@clisp.org>
32798
32799         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32800         regarding Automake.
32801
32802 2010-02-25  Bruno Haible  <bruno@clisp.org>
32803
32804         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32805         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32806         setting, not afterwards.
32807         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32808
32809 2010-02-24  Eric Blake  <eblake@redhat.com>
32810
32811         bootstrap, git-version-gen: use timestamp
32812         * build-aux/git-version-gen (scriptversion): Force UTC.
32813         * build-aux/bootstrap (scriptversion): New variable.
32814
32815         bootstrap: allow older git
32816         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32817         older than 1.6.4.  Requested by the libvirt project.
32818
32819 2010-02-23  Eric Blake  <eblake@redhat.com>
32820
32821         warn-on-use: work with old autoconf
32822         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32823         AS_VAR semantics of autoconf 2.60.
32824         Reported by Bruno Haible.
32825
32826         bootstrap: improve some comments
32827         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32828         clarification comments.
32829
32830         gettimeofday: provide correct function
32831         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32832         when replacement is declared, otherwise provide gettimeofday.
32833         Reported by Michael Goffioul.
32834
32835 2010-02-23  Jim Meyering  <meyering@redhat.com>
32836
32837         lib-ignore: relax license to "unlimited", not LGPLv2+
32838         * modules/lib-ignore (License): Relax to "unlimited".
32839
32840 2010-02-23  Jim Meyering  <meyering@redhat.com>
32841
32842         lib-ignore: relax license to LGPLv2+
32843         * modules/lib-ignore (License): Relax to LGPLv2+.
32844
32845 2010-02-22  Eric Blake  <eblake@redhat.com>
32846
32847         lseek: avoid bash 3.2 broken pipe bug
32848         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32849         warning from bash 3.2.
32850         Reported by Ben Pfaff, with analysis from Bruno Haible.
32851
32852         bootstrap: support non-FSF copyright holder
32853         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32854         bootstrap.conf override of COPYRIGHT_HOLDER.
32855         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32856
32857         bootstrap: interoperate with gettext 0.14.1
32858         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32859
32860         bootstrap: allow for alternate submodule location
32861         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32862         hardcoding submodule location.
32863         (gnulib_mk): Allow direct use of Makefile.am.
32864
32865         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32866         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32867         rather than reconfiguring where the submodule points.
32868
32869         gettimeofday: restore support for platforms that lack function
32870         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32871         replacement if function is missing.
32872         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32873         * modules/sys_time (Makefile.am): Substitute it.
32874         * lib/sys_time.in.h (gettimeofday): Check it.
32875         Reported by Michael Goffioul.
32876
32877 2010-02-21  Bruno Haible  <bruno@clisp.org>
32878
32879         * lib/stdio.in.h (obstack_printf): Fix typo.
32880
32881 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32882
32883         vc-list-files: use bzr ls's -R option
32884         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32885         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32886
32887 2010-02-21  Jim Meyering  <meyering@redhat.com>
32888
32889         init.sh: fix EXEEXT shims to work also for names like test-prog
32890         * tests/init.sh: Re-exec a better shell, when needed.
32891         If the current shell lacks support for posix $(...), an init.sh-using
32892         test will now try to find a shell that supports that.  If EXEEXT is
32893         nonempty, we also require support for hyphen-in-alias-name and shell
32894         substitutions like ${var#glob}.  Failure to find such a shell results
32895         in a skipped test.
32896
32897 2010-02-21  Bruno Haible  <bruno@clisp.org>
32898
32899         Really work around around "broken pipe" error message from bash 3.2.
32900         * gnulib-tool (func_reset_sigpipe): Remove function.
32901         (echo): In bash 3.2, define to a function that uses printf.
32902         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32903
32904 2010-02-20  Bruno Haible  <bruno@clisp.org>
32905
32906         Restore support for automake 1.9.6 with autoconf 2.61.
32907         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32908         Reported by James Youngman <jay@gnu.org>.
32909
32910 2010-02-20  Bruno Haible  <bruno@clisp.org>
32911
32912         Improve *printf warning condition.
32913         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32914         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32915         and the function is overridden due to SIGPIPE emulation.
32916
32917 2010-02-20  Bruno Haible  <bruno@clisp.org>
32918
32919         * lib/stdio.in.h: Tweak comments.
32920
32921 2010-02-19  Bruno Haible  <bruno@clisp.org>
32922
32923         Make it easier to find modules. New gnulib-tool option '--find'.
32924         * gnulib-tool: New option --find.
32925         (func_usage): Document it.
32926         (func_sanitize_modulelist): New function, extracted from
32927         func_all_modules.
32928         (func_all_modules): Invoke it.
32929         * doc/gnulib-tool.texi (Which modules?): New node.
32930
32931 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32932
32933         * lib/sys_select.in.h: Provide select replacement even if
32934         sys/select.h exists on a system, for Interix.
32935
32936 2010-02-18  Jim Meyering  <meyering@redhat.com>
32937
32938         init.sh: don't use $(...) just yet
32939         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32940         to accommodate e.g., Solaris' /bin/sh.
32941
32942 2010-02-17  Bruno Haible  <bruno@clisp.org>
32943
32944         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32945         Reported by Ludovic Courtès <ludo@gnu.org>.
32946
32947 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32948
32949         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32950         linking with -lintl.
32951
32952 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32953
32954         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32955         if not provided by the system's netdb.h.  Reported by
32956         ludo@gnu.org (Ludovic Courtès).
32957
32958 2010-02-15  Jim Meyering  <meyering@redhat.com>
32959
32960         init.sh: improve portability and efficiency
32961         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32962         "dummy" in a for loop.
32963         Use '!', not '^' to select the complement of a character set used
32964         in a "case" statement.
32965         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32966         Suggestions from Eric Blake.
32967
32968         init.sh: automatically accommodate programs with the .exe suffix
32969         Automatically arrange for an invocation of "prog" to execute the
32970         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32971         may use the simpler "prog", yet still work when built on a system
32972         that requires specifying the added suffix.
32973         Do this by constructing a function named "prog" that invokes
32974         "prog.exe" for each .exe file in selected directories.
32975         * tests/init.sh (find_exe_basenames_): New function.
32976         (create_exe_shim_functions_): New function.
32977         (path_prepend_): Use it.
32978
32979         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32980         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32981         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32982
32983 2010-02-14  Jim Meyering  <meyering@redhat.com>
32984
32985         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32986         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32987         (sc_prohibit_hash_pjw_without_use): New rule.
32988
32989         maint.mk: allow the default upload destination dir to be overridden
32990         * top/maint.mk (upload_dest_dir_): Define with a default that
32991         preserves the status quo.
32992         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32993         Reported by Peter Simons.
32994
32995         maint.mk: prohibit inclusion of "hash.h" without_use
32996         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32997
32998 2010-02-10  Jim Meyering  <meyering@redhat.com>
32999
33000         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33001         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33002
33003 2010-02-09  Eric Blake  <ebb9@byu.net>
33004         and Bruno Haible  <bruno@clisp.org>
33005
33006         obstack-printf-posix: ensure declaration
33007         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33008         extracted from gl_FUNC_OBSTACK_PRINTF.
33009         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33010         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33011         Likewise.
33012         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33013         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33014         0.
33015
33016 2010-02-08  Bruno Haible  <bruno@clisp.org>
33017
33018         gnulib-tool: Fix typo in 2010-02-07 commit.
33019         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33020         Reported by Eric Blake.
33021
33022 2010-02-07  Bruno Haible  <bruno@clisp.org>
33023
33024         gnulib-tool: Fix up caching patches.
33025         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33026         option --no-cache. Use associative arrays when supported by the shell.
33027         (sed_comments): New variable.
33028         (modcache): Renamed from do_cache.
33029         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33030         abbreviate unnecessarily.
33031         (have_associative): New variable.
33032         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33033         way also for ksh and zsh.
33034         (func_init_sed_convert_to_cache_statements): New function, extracted
33035         from func_cache_lookup_module. Add support for associative arrays.
33036         Don't set the c_MODULE_cached variable here. Ignore all lines before
33037         the first field header. Remove only the final newline, not all trailing
33038         newlines. Support empty fields correctly. Limit the use of 'eval' to
33039         assignments.
33040         (func_get_description, func_get_status, func_get_notice,
33041         func_get_applicability, func_get_filelist, func_get_dependencies,
33042         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33043         func_get_automake_snippet, func_get_include_directive,
33044         func_get_link_directive, func_get_license, func_get_maintainer):
33045         Update documentation. List the unoptimized code first. Add support for
33046         associative arrays. Limit the use of 'eval' to assignments.
33047         (func_get_applicability): Undo stylistic pessimisations.
33048         (func_get_automake_snippet, func_get_include_directive): Reduce code
33049         duplication.
33050         (func_modules_transitive_closure, func_modules_add_dummy,
33051         func_modules_notice, func_modules_to_filelist, func_add_file,
33052         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33053         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33054         func_create_testdir, func_create_megatestdir): Update documentation.
33055
33056 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33057
33058         * gnulib-tool (func_cache_lookup_module): Store the module name
33059         belonging to the cache variable; error out if two different
33060         module names map to the same cache variable name.
33061
33062 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33063
33064         gnulib-tool: Make caching optional.
33065         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33066         Update matching short versions of --no-changelog.
33067         (func_usage): Update.
33068         (sed_extract_cache_prog): Renamed from ...
33069         (sed_extract_prog): ... this; revert to old extraction script.
33070         (func_get_description, func_get_status)
33071         (func_get_notice, func_get_applicability, func_get_filelist)
33072         (func_get_dependencies, func_get_autoconf_early_snippet)
33073         (func_get_autoconf_snippet, func_get_automake_snippet)
33074         (func_get_include_directive, func_get_link_directive)
33075         (func_get_license, func_get_maintainer): If $do_cache is false,
33076         use old, non-caching extraction scripts.
33077         Suggestion by Bruno Haible.
33078
33079 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33080
33081         gnulib-tool: cache module metainformation.
33082         * gnulib-tool (sed_extract_prog): Match newline before each
33083         header, and rewrite header to a shell variable suffix.
33084         (func_cache_var, func_cache_lookup_module): New functions,
33085         to turn a module name into a cache variable prefix, and to
33086         look up and cache module metainformation.
33087         (func_get_description, func_get_status)
33088         (func_get_notice, func_get_applicability, func_get_filelist)
33089         (func_get_dependencies, func_get_autoconf_early_snippet)
33090         (func_get_autoconf_snippet, func_get_automake_snippet)
33091         (func_get_include_directive, func_get_link_directive)
33092         (func_get_license, func_get_maintainer): Use
33093         func_cache_lookup_module.
33094
33095 2010-02-07  Bruno Haible  <bruno@clisp.org>
33096
33097         fnctl: Fix missing dependency.
33098         * modules/fcntl (Depends-on): Add getdtablesize.
33099         Reported by John W. Eaton <jwe@gnu.org>.
33100
33101 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33102
33103         Argp: fix recognition of short alias options.
33104
33105         * lib/argp-parse.c (convert_options): Fix improper use of
33106         `|' between character values.
33107         * tests/test-argp.c (group1_option): New alias option
33108         --read (-r).
33109         (group1_parser): Special handling for 'r'.
33110         (test15): New test case.
33111         (test_fun): Add test15.
33112         * tests/test-argp-2.sh: Update expected --help and --usage
33113         outputs.
33114
33115 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33116
33117         * tests/test-argp.c: Fix indentation.
33118
33119 2010-02-04  Eric Blake  <ebb9@byu.net>
33120
33121         gettimeofday: expose type of second argument
33122         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33123         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33124         * tests/test-gettimeofday.c: Use it to silence warning.
33125         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33126         the issue.
33127
33128 2010-02-03  Jim Meyering  <meyering@redhat.com>
33129
33130         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33131         * lib/regcomp.c (TYPE_SIGNED): Define.
33132         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33133
33134         regcomp.c: avoid a new -Wshadow warning
33135         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33136
33137 2010-02-01  Jim Meyering  <meyering@redhat.com>
33138
33139         removing useless parentheses in cpp #define directives
33140         For motivation, see commit c0221df4, "define STREQ(a,b)
33141         consistently, removing useless parentheses"
33142         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33143         * lib/mountlist.c (MNT_IGNORE): Likewise.
33144         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33145
33146 2010-02-01  Eric Blake  <ebb9@byu.net>
33147
33148         sys_time: use link-warning
33149         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33150         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33151         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33152         * modules/sys_time (Depends-on): Add warn-on-use.
33153         (Makefile.am): Always build replacement.
33154         (configure.ac): Update substitutions.
33155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33156         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33157         bother with SYS_TIME_H.
33158         * modules/gettimeofday (configure.ac): Declare indicator.
33159         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33160         in use.
33161
33162         closein-tests: silence compiler warning
33163         * tests/test-closein.c (main): Ignore fread result.
33164         * modules/closein-tests (Depends-on): Add ignore-value.
33165
33166         tests: silence warning about system return
33167         * tests/test-areadlink-with-size.c (main): Ignore system result.
33168         * tests/test-areadlink.c (main): Likewise.
33169         * tests/test-areadlinkat-with-size.c (main): Likewise.
33170         * tests/test-areadlinkat.c (main): Likewise.
33171         * tests/test-canonicalize-lgpl.c (main): Likewise.
33172         * tests/test-canonicalize.c (main): Likewise.
33173         * tests/test-chown.c (main): Likewise.
33174         * tests/test-fchownat.c (main): Likewise.
33175         * tests/test-fdutimensat.c (main): Likewise.
33176         * tests/test-fstatat.c (main): Likewise.
33177         * tests/test-futimens.c (main): Likewise.
33178         * tests/test-lchown.c (main): Likewise.
33179         * tests/test-link.c (main): Likewise.
33180         * tests/test-linkat.c (main): Likewise.
33181         * tests/test-lstat.c (main): Likewise.
33182         * tests/test-mkdir.c (main): Likewise.
33183         * tests/test-mkdirat.c (main): Likewise.
33184         * tests/test-mkfifo.c (main): Likewise.
33185         * tests/test-mkfifoat.c (main): Likewise.
33186         * tests/test-mknod.c (main): Likewise.
33187         * tests/test-readlink.c (main): Likewise.
33188         * tests/test-remove.c (main): Likewise.
33189         * tests/test-rename.c (main): Likewise.
33190         * tests/test-renameat.c (main): Likewise.
33191         * tests/test-rmdir.c (main): Likewise.
33192         * tests/test-symlink.c (main): Likewise.
33193         * tests/test-symlinkat.c (main): Likewise.
33194         * tests/test-unlink.c (main): Likewise.
33195         * tests/test-unlinkat.c (main): Likewise.
33196         * tests/test-utimens.c (main): Likewise.
33197         * tests/test-utimensat.c (main): Likewise.
33198         * modules/areadlink-tests (Depends-on): Add ignore-value.
33199         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33200         * modules/areadlinkat-tests (Depends-on): Likewise.
33201         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33202         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33203         * modules/canonicalize-tests (Depends-on): Likewise.
33204         * modules/chown-tests (Depends-on): Likewise.
33205         * modules/fdutimensat-tests (Depends-on): Likewise.
33206         * modules/futimens-tests (Depends-on): Likewise.
33207         * modules/lchown-tests (Depends-on): Likewise.
33208         * modules/link-tests (Depends-on): Likewise.
33209         * modules/linkat-tests (Depends-on): Likewise.
33210         * modules/lstat-tests (Depends-on): Likewise.
33211         * modules/mkdir-tests (Depends-on): Likewise.
33212         * modules/mkfifo-tests (Depends-on): Likewise.
33213         * modules/mkfifoat-tests (Depends-on): Likewise.
33214         * modules/mknod-tests (Depends-on): Likewise.
33215         * modules/openat-tests (Depends-on): Likewise.
33216         * modules/readlink-tests (Depends-on): Likewise.
33217         * modules/remove-tests (Depends-on): Likewise.
33218         * modules/rename-tests (Depends-on): Likewise.
33219         * modules/renameat-tests (Depends-on): Likewise.
33220         * modules/rmdir-tests (Depends-on): Likewise.
33221         * modules/symlink-tests (Depends-on): Likewise.
33222         * modules/symlinkat-tests (Depends-on): Likewise.
33223         * modules/unlink-tests (Depends-on): Likewise.
33224         * modules/utimens-tests (Depends-on): Likewise.
33225         * modules/utimensat-tests (Depends-on): Likewise.
33226
33227 2010-01-31  Bruno Haible  <bruno@clisp.org>
33228
33229         Perform the same test for many <math.h> functions.
33230         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33231         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33232         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33233         of gl_MATHFUNC.
33234         * modules/acos (configure.ac): Likewise.
33235         * modules/asin (configure.ac): Likewise.
33236         * modules/atan (configure.ac): Likewise.
33237         * modules/atan2 (configure.ac): Likewise.
33238         * modules/cbrt (configure.ac): Likewise.
33239         * modules/copysign (configure.ac): Likewise.
33240         * modules/cos (configure.ac): Likewise.
33241         * modules/cosh (configure.ac): Likewise.
33242         * modules/erf (configure.ac): Likewise.
33243         * modules/erfc (configure.ac): Likewise.
33244         * modules/exp (configure.ac): Likewise.
33245         * modules/fmod (configure.ac): Likewise.
33246         * modules/hypot (configure.ac): Likewise.
33247         * modules/j0 (configure.ac): Likewise.
33248         * modules/j1 (configure.ac): Likewise.
33249         * modules/jn (configure.ac): Likewise.
33250         * modules/lgamma (configure.ac): Likewise.
33251         * modules/log (configure.ac): Likewise.
33252         * modules/log10 (configure.ac): Likewise.
33253         * modules/log1p (configure.ac): Likewise.
33254         * modules/pow (configure.ac): Likewise.
33255         * modules/remainder (configure.ac): Likewise.
33256         * modules/sin (configure.ac): Likewise.
33257         * modules/sinh (configure.ac): Likewise.
33258         * modules/tan (configure.ac): Likewise.
33259         * modules/tanh (configure.ac): Likewise.
33260         * modules/y0 (configure.ac): Likewise.
33261         * modules/y1 (configure.ac): Likewise.
33262         * modules/yn (configure.ac): Likewise.
33263         Suggested by Paolo Bonzini.
33264
33265 2010-01-31  Bruno Haible  <bruno@clisp.org>
33266
33267         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33268
33269 2010-01-31  Bruno Haible  <bruno@clisp.org>
33270
33271         Work around getdelim() bug on FreeBSD 8.0.
33272         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33273         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33274         not work.
33275         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33276         is 1.
33277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33278         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33279         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33280         a non-zero size.
33281         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33282
33283 2010-01-31  Bruno Haible  <bruno@clisp.org>
33284
33285         Work around getline() bug on FreeBSD 8.0.
33286         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33287         and a non-zero size.
33288         * tests/test-getline.c (main): Likewise.
33289         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33290         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33291
33292 2010-01-28  Eric Blake  <ebb9@byu.net>
33293
33294         regex: fix build failure
33295         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33296         platforms.
33297
33298 2010-01-28  Jim Meyering  <meyering@redhat.com>
33299
33300         regex: do not ignore memory allocation failure
33301         * lib/regex_internal.c (create_cd_newstate): Detect
33302         re_node_set_init_copy failure.   Extracted from glibc commit
33303         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33304
33305         regex: sync more white-space changes from libc
33306         * lib/regex_internal.c: White-space only changes.
33307         * lib/regexec.c: Likewise.
33308
33309         regex: add many uses of __attribute_warn_unused_result__
33310         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33311         * lib/regexec.c: Likewise.
33312         Extracted from a messy glibc commit.
33313
33314         regcomp.c: spelling and merge-artifact from glibc
33315         * lib/regcomp.c: Merge remainder of glibc's
33316         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33317
33318         regcomp.c: sync white-space changes from glibc
33319         * lib/regcomp.c: Merge to accommodate white space
33320         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33321
33322         regcomp.c: do not ignore internal return values
33323         * lib/regcomp.c: Do not ignore internal return values.
33324         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33325         but without its white-space changes and spelling fixes.
33326
33327         regex_internal.h: define __attribute_warn_unused_result__
33328         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33329
33330         maint: add a syntax-check rule to check for vulnerable Makefile.in
33331         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33332
33333 2010-01-27  Jim Meyering  <meyering@redhat.com>
33334
33335         ncftpput-ftp: clean up spaces
33336         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33337         Remove trailing blanks.
33338
33339 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33340
33341         * build-aux/git-version-gen: Fix copyright statement.
33342         * build-aux/gnupload: Likewise.
33343         * tests/test-arcfour.c: Likewise.
33344         * tests/test-arctwo.c: Likewise.
33345         * tests/test-count-one-bits.c: Likewise.
33346         * tests/test-crc.c: Likewise.
33347         * tests/test-des.c: Likewise.
33348         * tests/test-gc-arcfour.c: Likewise.
33349         * tests/test-gc-arctwo.c: Likewise.
33350         * tests/test-gc-des.c: Likewise.
33351         * tests/test-gc-hmac-md5.c: Likewise.
33352         * tests/test-gc-hmac-sha1.c: Likewise.
33353         * tests/test-gc-md2.c: Likewise.
33354         * tests/test-gc-md4.c: Likewise.
33355         * tests/test-gc-md5.c: Likewise.
33356         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33357         * tests/test-gc-rijndael.c: Likewise.
33358         * tests/test-gc-sha1.c: Likewise.
33359         * tests/test-gc.c: Likewise.
33360         * tests/test-gethostname.c: Likewise.
33361         * tests/test-gettimeofday.c: Likewise.
33362         * tests/test-hash.c: Likewise.
33363         * tests/test-hmac-md5.c: Likewise.
33364         * tests/test-hmac-sha1.c: Likewise.
33365         * tests/test-md2.c: Likewise.
33366         * tests/test-md4.c: Likewise.
33367         * tests/test-md5.c: Likewise.
33368         * tests/test-memchr.c: Likewise.
33369         * tests/test-memchr2.c: Likewise.
33370         * tests/test-memcmp.c: Likewise.
33371         * tests/test-memmem.c: Likewise.
33372         * tests/test-memrchr.c: Likewise.
33373         * tests/test-rawmemchr.c: Likewise.
33374         * tests/test-read-file.c: Likewise.
33375         * tests/test-rijndael.c: Likewise.
33376         * tests/test-sockets.c: Likewise.
33377         * tests/test-strchrnul.c: Likewise.
33378         * tests/test-strstr.c: Likewise.
33379         * tests/test-strtod.c: Likewise.
33380         * build-aux/ncftpput-ftp: Likewise.
33381
33382 2010-01-26  Eric Blake  <ebb9@byu.net>
33383
33384         ignore-value: update recommended header name
33385         * modules/ignore-value (Include): Only use <> for headers that
33386         exist in glibc.
33387
33388 2010-01-26  Jim Meyering  <meyering@redhat.com>
33389
33390         test-userspec.c: avoid compiler warnings
33391         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33392         and "initialization discards qualifiers..." warnings.
33393         Put the first "uid" in its own scope, and make char* members "const".
33394
33395 2010-01-25  Bruno Haible  <bruno@clisp.org>
33396
33397         gnulib-tool: Make warning diagnostics consistent.
33398         * gnulib-tool (func_warning): New function.
33399         Use it everywhere where gnulib-tool produces output to stderr and it is
33400         not a fatal error.
33401
33402 2010-01-25  Bruno Haible  <bruno@clisp.org>
33403
33404         Fix test dependencies.
33405         * modules/xstrtol-tests (Depends-on): Add inttypes.
33406         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33407
33408 2010-01-25 Pádraig Brady <P@draigBrady.com>
33409
33410         syntax-check: detect incorrect boolean macro values in config.h
33411         * modules/maintainer-makefile (configure.ac): Parameterize the location
33412         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33413         The logic is from Eric Blake and the location indicated by Jim Meyering.
33414         Note the more natural CONFIG_HEADER name is prohibited by automake
33415         for backwards compatibility reasons.
33416         * top/maint.mk (sc_Wundef_boolean): New rule.
33417
33418 2010-01-25  Jim Meyering  <meyering@redhat.com>
33419
33420         bootstrap: detect MacOS 10.6's shasum, too
33421         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33422         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33423
33424 2010-01-23  Jim Meyering  <meyering@redhat.com>
33425
33426         xstrtoll: new module
33427         * modules/xstrtoll: New file.
33428         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33429         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33430         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33431         ./configure fails if you use this module and lack "long long".
33432         * modules/xstrtoll-tests: New module.
33433         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33434         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33435         new init.sh-based test framework.
33436
33437 2010-01-24  Bruno Haible  <bruno@clisp.org>
33438
33439         Tests for module 'yn'.
33440         * modules/yn-tests: New file.
33441         * tests/test-yn.c: New file.
33442
33443         Tests for module 'y1'.
33444         * modules/y1-tests: New file.
33445         * tests/test-y1.c: New file.
33446
33447         Tests for module 'y0'.
33448         * modules/y0-tests: New file.
33449         * tests/test-y0.c: New file.
33450
33451         Tests for module 'tanh'.
33452         * modules/tanh-tests: New file.
33453         * tests/test-tanh.c: New file.
33454
33455         Tests for module 'tan'.
33456         * modules/tan-tests: New file.
33457         * tests/test-tan.c: New file.
33458
33459         Tests for module 'sqrt'.
33460         * modules/sqrt-tests: New file.
33461         * tests/test-sqrt.c: New file.
33462
33463         Tests for module 'sinh'.
33464         * modules/sinh-tests: New file.
33465         * tests/test-sinh.c: New file.
33466
33467         Tests for module 'sin'.
33468         * modules/sin-tests: New file.
33469         * tests/test-sin.c: New file.
33470
33471         Tests for module 'rint'.
33472         * modules/rint-tests: New file.
33473         * tests/test-rint.c: New file.
33474
33475         Tests for module 'remainder'.
33476         * modules/remainder-tests: New file.
33477         * tests/test-remainder.c: New file.
33478
33479         Tests for module 'pow'.
33480         * modules/pow-tests: New file.
33481         * tests/test-pow.c: New file.
33482
33483         Tests for module 'nextafter'.
33484         * modules/nextafter-tests: New file.
33485         * tests/test-nextafter.c: New file.
33486
33487         Tests for module 'modf'.
33488         * modules/modf-tests: New file.
33489         * tests/test-modf.c: New file.
33490
33491         Tests for module 'logb'.
33492         * modules/logb-tests: New file.
33493         * tests/test-logb.c: New file.
33494
33495         Tests for module 'log1p'.
33496         * modules/log1p-tests: New file.
33497         * tests/test-log1p.c: New file.
33498
33499         Tests for module 'log10'.
33500         * modules/log10-tests: New file.
33501         * tests/test-log10.c: New file.
33502
33503         Tests for module 'log'.
33504         * modules/log-tests: New file.
33505         * tests/test-log.c: New file.
33506
33507         Tests for module 'lgamma'.
33508         * modules/lgamma-tests: New file.
33509         * tests/test-lgamma.c: New file.
33510
33511         Tests for module 'ldexp'.
33512         * modules/ldexp-tests: New file.
33513         * tests/test-ldexp.c: New file.
33514
33515         Tests for module 'jn'.
33516         * modules/jn-tests: New file.
33517         * tests/test-jn.c: New file.
33518
33519         Tests for module 'j1'.
33520         * modules/j1-tests: New file.
33521         * tests/test-j1.c: New file.
33522
33523         Tests for module 'j0'.
33524         * modules/j0-tests: New file.
33525         * tests/test-j0.c: New file.
33526
33527         Tests for module 'hypot'.
33528         * modules/hypot-tests: New file.
33529         * tests/test-hypot.c: New file.
33530
33531         Tests for module 'fmod'.
33532         * modules/fmod-tests: New file.
33533         * tests/test-fmod.c: New file.
33534
33535         Tests for module 'fabs'.
33536         * modules/fabs-tests: New file.
33537         * tests/test-fabs.c: New file.
33538
33539         Tests for module 'exp'.
33540         * modules/exp-tests: New file.
33541         * tests/test-exp.c: New file.
33542
33543         Tests for module 'erfc'.
33544         * modules/erfc-tests: New file.
33545         * tests/test-erfc.c: New file.
33546
33547         Tests for module 'erf'.
33548         * modules/erf-tests: New file.
33549         * tests/test-erf.c: New file.
33550
33551         Tests for module 'cosh'.
33552         * modules/cosh-tests: New file.
33553         * tests/test-cosh.c: New file.
33554
33555         Tests for module 'cos'.
33556         * modules/cos-tests: New file.
33557         * tests/test-cos.c: New file.
33558
33559         Tests for module 'copysign'.
33560         * modules/copysign-tests: New file.
33561         * tests/test-copysign.c: New file.
33562
33563         Tests for module 'cbrt'.
33564         * modules/cbrt-tests: New file.
33565         * tests/test-cbrt.c: New file.
33566
33567         Tests for module 'atan2'.
33568         * modules/atan2-tests: New file.
33569         * tests/test-atan2.c: New file.
33570
33571         Tests for module 'atan'.
33572         * modules/atan-tests: New file.
33573         * tests/test-atan.c: New file.
33574
33575         Tests for module 'asin'.
33576         * modules/asin-tests: New file.
33577         * tests/test-asin.c: New file.
33578
33579         Tests for module 'acos'.
33580         * modules/acos-tests: New file.
33581         * tests/test-acos.c: New file.
33582
33583 2010-01-24  Bruno Haible  <bruno@clisp.org>
33584
33585         Fix tests for common <math.h> functions.
33586         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33587         code snippet that references the function pointer, rather than merely
33588         calling the function. Substitute the FUNC_LIBM variable.
33589         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33590         * modules/acos (configure.ac): Likewise.
33591         * modules/asin (configure.ac): Likewise.
33592         * modules/atan (configure.ac): Likewise.
33593         * modules/atan2 (configure.ac): Likewise.
33594         * modules/cbrt (configure.ac): Likewise.
33595         * modules/copysign (configure.ac): Likewise.
33596         * modules/cos (configure.ac): Likewise.
33597         * modules/cosh (configure.ac): Likewise.
33598         * modules/erf (configure.ac): Likewise.
33599         * modules/erfc (configure.ac): Likewise.
33600         * modules/exp (configure.ac): Likewise.
33601         * modules/fabs (configure.ac): Likewise.
33602         * modules/fmod (configure.ac): Likewise.
33603         * modules/hypot (configure.ac): Likewise.
33604         * modules/j0 (configure.ac): Likewise.
33605         * modules/j1 (configure.ac): Likewise.
33606         * modules/jn (configure.ac): Likewise.
33607         * modules/ldexp (configure.ac): Likewise.
33608         * modules/lgamma (configure.ac): Likewise.
33609         * modules/log (configure.ac): Likewise.
33610         * modules/log10 (configure.ac): Likewise.
33611         * modules/log1p (configure.ac): Likewise.
33612         * modules/logb (configure.ac): Likewise.
33613         * modules/modf (configure.ac): Likewise.
33614         * modules/nextafter (configure.ac): Likewise.
33615         * modules/pow (configure.ac): Likewise.
33616         * modules/remainder (configure.ac): Likewise.
33617         * modules/rint (configure.ac): Likewise.
33618         * modules/sin (configure.ac): Likewise.
33619         * modules/sinh (configure.ac): Likewise.
33620         * modules/tan (configure.ac): Likewise.
33621         * modules/tanh (configure.ac): Likewise.
33622         * modules/y0 (configure.ac): Likewise.
33623         * modules/y1 (configure.ac): Likewise.
33624         * modules/yn (configure.ac): Likewise.
33625
33626 2010-01-24  Bruno Haible  <bruno@clisp.org>
33627
33628         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33629         * tests/test-acosl.c (x): New variable.
33630         (main): Store argument in x and fetch it from x.
33631         * tests/test-asinl.c (x): New variable.
33632         (main): Store argument in x and fetch it from x.
33633         * tests/test-atanl.c (x): New variable.
33634         (main): Store argument in x and fetch it from x.
33635         * tests/test-cosl.c (x): New variable.
33636         (main): Store argument in x and fetch it from x.
33637         * tests/test-expl.c (x): New variable.
33638         (main): Store argument in x and fetch it from x.
33639         * tests/test-logl.c (x): New variable.
33640         (main): Store argument in x and fetch it from x.
33641         * tests/test-sinl.c (x): New variable.
33642         (main): Store argument in x and fetch it from x.
33643         * tests/test-sqrtl.c (x): New variable.
33644         (main): Store argument in x and fetch it from x.
33645         * tests/test-tanl.c (x): New variable.
33646         (main): Store argument in x and fetch it from x.
33647
33648 2010-01-24  Bruno Haible  <bruno@clisp.org>
33649
33650         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33651         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33652         assignments to the initial TESTS_ENVIRONMENT.
33653         * doc/gnulib.texi (Unit test modules): Document it.
33654         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33655         TESTS_ENVIRONMENT.
33656         * modules/btowc-tests (Makefile.am): Likewise.
33657         * modules/c-stack-tests (Makefile.am): Likewise.
33658         * modules/c-strcase-tests (Makefile.am): Likewise.
33659         * modules/copy-file-tests (Makefile.am): Likewise.
33660         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33661         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33662         * modules/mbrtowc-tests (Makefile.am): Likewise.
33663         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33664         * modules/mbscasestr-tests (Makefile.am): Likewise.
33665         * modules/mbschr-tests (Makefile.am): Likewise.
33666         * modules/mbscspn-tests (Makefile.am): Likewise.
33667         * modules/mbsinit-tests (Makefile.am): Likewise.
33668         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33669         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33670         * modules/mbspbrk-tests (Makefile.am): Likewise.
33671         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33672         * modules/mbsrchr-tests (Makefile.am): Likewise.
33673         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33674         * modules/mbsspn-tests (Makefile.am): Likewise.
33675         * modules/mbsstr-tests (Makefile.am): Likewise.
33676         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33677         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33678         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33679         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33680         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33681         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33682         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33683         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33684         * modules/wcrtomb-tests (Makefile.am): Likewise.
33685         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33686         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33687         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33688         assignments from TESTS_ENVIRONMENT.
33689         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33690         augmentation.
33691         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33692         * modules/atexit-tests (Makefile.am): Likewise.
33693         * modules/binary-io-tests (Makefile.am): Likewise.
33694         * modules/closein-tests (Makefile.am): Likewise.
33695         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33696         * modules/exclude-tests (Makefile.am): Likewise.
33697         * modules/fflush-tests (Makefile.am): Likewise.
33698         * modules/fpending-tests (Makefile.am): Likewise.
33699         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33700         * modules/freadahead-tests (Makefile.am): Likewise.
33701         * modules/freadptr-tests (Makefile.am): Likewise.
33702         * modules/freadseek-tests (Makefile.am): Likewise.
33703         * modules/fseek-tests (Makefile.am): Likewise.
33704         * modules/fseeko-tests (Makefile.am): Likewise.
33705         * modules/ftell-tests (Makefile.am): Likewise.
33706         * modules/ftello-tests (Makefile.am): Likewise.
33707         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33708         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33709         * modules/lseek-tests (Makefile.am): Likewise.
33710         * modules/parse-duration-tests (Makefile.am): Likewise.
33711         * modules/perror-tests (Makefile.am): Likewise.
33712         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33713         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33714         * modules/pipe-tests (Makefile.am): Likewise.
33715         * modules/pread-tests (Makefile.am): Likewise.
33716         * modules/printf-posix-tests (Makefile.am): Likewise.
33717         * modules/select-tests (Makefile.am): Likewise.
33718         * modules/sigpipe-tests (Makefile.am): Likewise.
33719         * modules/tsearch-tests (Makefile.am): Likewise.
33720         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33721         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33722         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33723         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33724         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33725         * modules/version-etc-tests (Makefile.am): Likewise.
33726         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33727         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33728         * modules/xalloc-die-tests (Makefile.am): Likewise.
33729         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33730         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33731         * modules/xstrtol-tests (Makefile.am): Likewise.
33732         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33733         * modules/yesno-tests (Makefile.am): Likewise.
33734         Suggested by Jim Meyering.
33735
33736 2010-01-24  Bruno Haible  <bruno@clisp.org>
33737
33738         More documentation.
33739         * doc/gnulib.texi (Writing modules): New chapter.
33740         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33741         the new chapter.
33742
33743 2010-01-24  Jim Meyering  <meyering@redhat.com>
33744
33745         maint.mk: do not prepend "./" after filtering
33746         * top/maint.mk (_prepend_srcdir_prefix): New variable
33747         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33748         "./" when $(srcdir) is ".".
33749
33750         define STREQ(a,b) consistently, removing useless parentheses
33751         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33752         since the only risk is that "a" or "b" contains an unparenthesized
33753         comma, but if either did that, STREQ would have 3 or more arguments.
33754         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33755         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33756         * lib/hash-triple.c (STREQ): Likewise.
33757         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33758         * lib/getugroups.c (STREQ): Likewise.
33759
33760 2010-01-23  Jim Meyering  <meyering@redhat.com>
33761
33762         maint.mk: fix syntax-check in a non-srcdir build directory
33763         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33764         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33765
33766 2010-01-22  Jim Meyering  <meyering@redhat.com>
33767
33768         userspec: add unit tests
33769         * tests/test-userspec.c: New file.
33770         * modules/userspec-tests: Likewise.
33771
33772 2010-01-21  Jim Meyering  <meyering@redhat.com>
33773
33774         maint.mk: handle source file names containing "." robustly
33775         * top/maint.mk (_dot_escaped_srcdir): Define.
33776         (VC_LIST): Use it in LHS of sed substitution.
33777
33778 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33779
33780         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33781         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33782         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33783         from a non-srcdir build.
33784
33785 2010-01-20  Eric Blake  <ebb9@byu.net>
33786
33787         warn-on-use: use instead of link-warning
33788         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33789         * modules/unistd (Depends-on, Makefile.am): Likewise.
33790         * modules/arpa_inet (Depends-on): Replace link-warning with
33791         warn-on-use.
33792         (Makefile.am): Update rules accordingly.
33793         * modules/ctype (Depends-on, Makefile.am): Likewise.
33794         * modules/dirent (Depends-on, Makefile.am): Likewise.
33795         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33796         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33797         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33798         * modules/locale (Depends-on, Makefile.am): Likewise.
33799         * modules/math (Depends-on, Makefile.am): Likewise.
33800         * modules/search (Depends-on, Makefile.am): Likewise.
33801         * modules/signal (Depends-on, Makefile.am): Likewise.
33802         * modules/spawn (Depends-on, Makefile.am): Likewise.
33803         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33804         * modules/string (Depends-on, Makefile.am): Likewise.
33805         * modules/strings (Depends-on, Makefile.am): Likewise.
33806         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33807         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33808         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33809         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33810         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33811         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33812         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33813         * modules/wchar (Depends-on, Makefile.am): Likewise.
33814         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33815         should be poisoned.
33816         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33817         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33818         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33819         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33820         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33821         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33822         * m4/math_h.m4 (gl_MATH_H): Likewise.
33823         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33824         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33825         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33826         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33827         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33828         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33829         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33830         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33832         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33834         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33835         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33836         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33837         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33838         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33839         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33840         GL_LINK_WARNING.
33841         * lib/ctype.in.h: Likewise.
33842         * lib/dirent.in.h: Likewise.
33843         * lib/fcntl.in.h: Likewise.
33844         * lib/inttypes.in.h: Likewise.
33845         * lib/langinfo.in.h: Likewise.
33846         * lib/locale.in.h: Likewise.
33847         * lib/math.in.h: Likewise.
33848         * lib/search.in.h: Likewise.
33849         * lib/signal.in.h: Likewise.
33850         * lib/spawn.in.h: Likewise.
33851         * lib/stdio.in.h: Likewise.
33852         * lib/stdlib.in.h: Likewise.
33853         * lib/string.in.h: Likewise.
33854         * lib/strings.in.h: Likewise.
33855         * lib/sys_file.in.h: Likewise.
33856         * lib/sys_ioctl.in.h: Likewise.
33857         * lib/sys_select.in.h: Likewise.
33858         * lib/sys_socket.in.h: Likewise.
33859         * lib/sys_stat.in.h: Likewise.
33860         * lib/sys_times.in.h: Likewise.
33861         * lib/sys_utsname.in.h: Likewise.
33862         * lib/unistd.in.h: Likewise.
33863         * lib/wchar.in.h: Likewise.
33864
33865 2010-01-20  Bruno Haible  <bruno@clisp.org>
33866
33867         Avoid duplicate -lm.
33868         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33869         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33870         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33871         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33872         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33873         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33874         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33875         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33876         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33877         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33878         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33879         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33880         Reported by Paolo Bonzini.
33881
33882 2010-01-19  Bruno Haible  <bruno@clisp.org>
33883
33884         langinfo, nl_langinfo: Relicense under LGPLv2+.
33885         * modules/langinfo (License): Change to LGPLv2+.
33886         * modules/nl_langinfo (License): Likewise.
33887         Patch by David Lutterkort <lutter@redhat.com>.
33888
33889 2010-01-19  Bruno Haible  <bruno@clisp.org>
33890
33891         Avoid compilation error with cc on OSF/1 5.1.
33892         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33893         statement, not before.
33894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33895
33896 2010-01-18  Bruno Haible  <bruno@clisp.org>
33897
33898         Avoid a link error due to the __printf__ symbol.
33899         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33900         and 2.6.x.
33901         (__format__, __printf__): Remove definitions.
33902         * lib/argp-fmtstream.h: Likewise.
33903         * lib/argp.h: Likewise.
33904         * lib/error.h: Likewise.
33905         * lib/vasnprintf.h: Likewise.
33906         * lib/xprintf.h: Likewise.
33907         * lib/xvasprintf.h: Likewise.
33908         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33909
33910 2010-01-18  Bruno Haible  <bruno@clisp.org>
33911
33912         Tests for module 'tanl'.
33913         * modules/tanl-tests: New file.
33914         * tests/test-tanl.c: New file.
33915
33916         Tests for module 'sqrtl'.
33917         * modules/sqrtl-tests: New file.
33918         * tests/test-sqrtl.c: New file.
33919
33920         Tests for module 'sinl'.
33921         * modules/sinl-tests: New file.
33922         * tests/test-sinl.c: New file.
33923
33924         Tests for module 'logl'.
33925         * modules/logl-tests: New file.
33926         * tests/test-logl.c: New file.
33927
33928         Tests for module 'expl'.
33929         * modules/expl-tests: New file.
33930         * tests/test-expl.c: New file.
33931
33932         Tests for module 'cosl'.
33933         * modules/cosl-tests: New file.
33934         * tests/test-cosl.c: New file.
33935
33936         Tests for module 'atanl'.
33937         * modules/atanl-tests: New file.
33938         * tests/test-atanl.c: New file.
33939
33940         Tests for module 'asinl'.
33941         * modules/asinl-tests: New file.
33942         * tests/test-asinl.c: New file.
33943
33944         Tests for module 'acosl'.
33945         * modules/acosl-tests: New file.
33946         * tests/test-acosl.c: New file.
33947
33948         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33949         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33950         tanl): Use the standard gnulib idiom.
33951         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33952         * lib/sinl.c: Likewise.
33953         * lib/tanl.c: Don't include trigl.c.
33954         (kernel_tanl): Make static.
33955         * lib/sincosl.c: Include trigl.h first.
33956         * lib/trigl.c: Likewise.
33957         * m4/acosl.m4: New file.
33958         * m4/asinl.m4: New file.
33959         * m4/atanl.m4: New file.
33960         * m4/cosl.m4: New file.
33961         * m4/expl.m4: New file.
33962         * m4/logl.m4: New file.
33963         * m4/sinl.m4: New file.
33964         * m4/sqrtl.m4: New file.
33965         * m4/tanl.m4: New file.
33966         * m4/mathl.m4: Remove file.
33967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33968         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33969         Don't initialize GNULIB_MATHL.
33970         * modules/acosl: New file.
33971         * modules/asinl: New file.
33972         * modules/atanl: New file.
33973         * modules/cosl: New file.
33974         * modules/expl: New file.
33975         * modules/logl: New file.
33976         * modules/sinl: New file.
33977         * modules/sqrtl: New file.
33978         * modules/tanl: New file.
33979         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33980         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33981         substitute GNULIB_MATHL.
33982         * modules/mathl: Rewritten.
33983         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33984         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33985         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33986         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33987         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33988         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33989         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33990         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33991         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33992
33993 2010-01-18  Bruno Haible  <bruno@clisp.org>
33994
33995         sqrt: Make gl_FUNC_SQRT requirable.
33996         * m4/sqrt.m4: New file.
33997         * modules/sqrt (Files): Add it.
33998         (configure.ac): Invoke gl_FUNC_SQRT.
33999
34000 2010-01-18  Bruno Haible  <bruno@clisp.org>
34001
34002         New modules for common <math.h> functions.
34003         * m4/mathfunc.m4: New file.
34004         * modules/acos: New file.
34005         * modules/asin: New file.
34006         * modules/atan: New file.
34007         * modules/atan2: New file.
34008         * modules/cbrt: New file.
34009         * modules/copysign: New file.
34010         * modules/cos: New file.
34011         * modules/cosh: New file.
34012         * modules/erf: New file.
34013         * modules/erfc: New file.
34014         * modules/exp: New file.
34015         * modules/fabs: New file.
34016         * modules/fmod: New file.
34017         * modules/hypot: New file.
34018         * modules/j0: New file.
34019         * modules/j1: New file.
34020         * modules/jn: New file.
34021         * modules/ldexp: New file.
34022         * modules/lgamma: New file.
34023         * modules/log: New file.
34024         * modules/log10: New file.
34025         * modules/log1p: New file.
34026         * modules/logb: New file.
34027         * modules/modf: New file.
34028         * modules/nextafter: New file.
34029         * modules/pow: New file.
34030         * modules/remainder: New file.
34031         * modules/rint: New file.
34032         * modules/sin: New file.
34033         * modules/sinh: New file.
34034         * modules/sqrt: New file.
34035         * modules/tan: New file.
34036         * modules/tanh: New file.
34037         * modules/y0: New file.
34038         * modules/y1: New file.
34039         * modules/yn: New file.
34040         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34041         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34042         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34043         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34044         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34045         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34046         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34047         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34048         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34049         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34050         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34051         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34052         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34053         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34054         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34055         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34056         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34057         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34058         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34059         * doc/posix-functions/log.texi: Mention the 'log' module.
34060         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34061         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34062         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34063         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34064         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34065         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34066         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34067         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34068         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34069         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34070         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34071         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34072         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34073         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34074         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34075         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34076
34077 2010-01-18  Jim Meyering  <meyering@redhat.com>
34078
34079         ignore-value: relax license to LGPLv2+
34080         * modules/ignore-value (License): Relax to LGPLv2+.
34081
34082         getdate: don't leak when TZ contains two or more '"'s
34083         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34084         double quote in TZ after the first one.
34085
34086         readtokens: do not leak internal token_lengths buffer
34087         * lib/readtokens.c (readtokens): Free the local, lengths,
34088         when the supplied "token_lengths" parameter is NULL.
34089
34090 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34091
34092         Fix a couple of missing LIBTHREAD link failures on AIX.
34093         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34094         $(LIBTHREAD).
34095         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34096
34097         Link test-poll against INET_PTON_LIB.
34098         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34099         for inet_pton on Solaris 10.
34100
34101 2010-01-17  Bruno Haible  <bruno@clisp.org>
34102
34103         unistdio/*-sprintf: Fix typo in module description.
34104         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34105         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34106         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34107         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34108         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34109         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34110         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34111         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34112
34113 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34114
34115         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34116         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34117         variables in shell case patterns, for AIX and HP-UX ksh.
34118
34119         Split large sed scripts, for HP-UX sed.
34120         * modules/stdio: Split sed scripts around 50 sed commands,
34121         to avoid HP-UX limit of 99 commands, in the near future.
34122         * modules/string: Likewise.
34123         * modules/unistd: Likewise.
34124
34125         gnulib-tool: avoid writing in the current directory.
34126         * gnulib-tool (func_emit_lib_Makefile_am)
34127         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34128         not in the current directory, so concurrent gnulib-tool
34129         instances do not interfere.
34130
34131 2010-01-16  Jim Meyering  <meyering@redhat.com>
34132
34133         doc: update users.txt
34134         * users.txt: Add grep.
34135         (diffutils, gzip): Update URLs.
34136
34137 2010-01-12  Bruno Haible  <bruno@clisp.org>
34138
34139         posix_spawn: Avoid test failure on Cygwin.
34140         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34141         characters.
34142         Reported by Simon Josefsson.
34143
34144 2010-01-12  Bruno Haible  <bruno@clisp.org>
34145
34146         * tests/test-cond.c (main): When skipping the test, show the reason.
34147
34148 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34149
34150         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34151
34152 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34153
34154         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34155         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34156
34157 2010-01-12  Eric Blake  <ebb9@byu.net>
34158
34159         build: guarantee AS_VAR_IF
34160         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34161         (gl_AS_VAR_IF): Move...
34162         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34163         Reported by Simon Josefsson.
34164
34165 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34166
34167         * lib/stdio.in.h: Fix typo.
34168
34169 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34170
34171         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34172         libgpg-error.
34173
34174 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34175
34176         * tests/test-xalloc-die.sh: Use $EXEEXT.
34177
34178 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34179             Bruno Haible  <bruno@clisp.org>
34180
34181         getlogin, getlogin_r: Avoid test failure.
34182         * tests/test-getlogin.c: Include <stdio.h>.
34183         (main): Skip the test when the function fails because stdin is not a
34184         tty.
34185         * tests/test-getlogin_r.c: Include <stdio.h>.
34186         (main): Skip the test when the function fails because stdin is not a
34187         tty.
34188
34189 2010-01-11  Eric Blake  <ebb9@byu.net>
34190
34191         tests: avoid more large file warnings
34192         * tests/test-fflush.c: Avoid warning about ftell use.
34193         * tests/test-fseek.c: Avoid warning about fseek use.
34194
34195 2010-01-10  Bruno Haible  <bruno@clisp.org>
34196
34197         nproc: Work better on Linux when /proc and /sys are not mounted.
34198         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34199         as lower bound when, on glibc/Linux systems,
34200         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34201         Suggested by Pádraig Brady <P@draigbrady.com>.
34202         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34203
34204         nproc: Refactor.
34205         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34206         extracted from num_processors.
34207         (num_processors): Call it.
34208
34209 2010-01-11  Jim Meyering  <meyering@redhat.com>
34210
34211         utimecmp: avoid new warning from upcoming gcc-4.5.0
34212         * lib/utimecmp.c (BILLION): Define using #define rather than an
34213         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34214
34215 2010-01-11  Eric Blake  <ebb9@byu.net>
34216
34217         math: add portability warnings for classification macros
34218         * modules/math (Depends-on): Add warn-on-use.
34219         (Makefile.am): Provide new substitutions.
34220         * m4/math_h.m4 (gl_MATH_H): Require inline.
34221         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34222         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34223         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34224         implement warnings.
34225
34226         unistd: warn on use of environ without module
34227         * modules/unistd (Depends-on): Add warn-on-use.
34228         (Makefile.am): Provide new substitutions.
34229         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34230         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34231
34232         stdio: warn on suspicious uses
34233         * modules/stdio (Depends-on): Add warn-on-use.
34234         (Makefile.am): Provide new substitutions.
34235         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34236         fseeko.
34237         * lib/stdio.in.h (gets): Always warn on use.
34238         (fseek, ftell): Adjust when warnings are issued, and honor
34239         _GL_NO_LARGE_FILES as a way to silence the warning.
34240         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34241         any warning about large file offsets.
34242         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34243         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34244         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34245         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34246         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34247         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34248         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34249         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34250
34251         warn-on-use: new module
34252         * modules/warn-on-use: New file.
34253         * build-aux/warn-on-use.h: Likewise.
34254         * m4/warn-on-use.m4: Likewise.
34255         * MODULES.html.sh (Support for building): Mention it.
34256
34257 2010-01-10  Bruno Haible  <bruno@clisp.org>
34258
34259         Tests for module 'unistr/u32-strdup'.
34260         * modules/unistr/u32-strdup-tests: New file.
34261         * tests/unistr/test-u32-strdup.c: New file.
34262
34263         Tests for module 'unistr/u16-strdup'.
34264         * modules/unistr/u16-strdup-tests: New file.
34265         * tests/unistr/test-u16-strdup.c: New file.
34266
34267         Tests for module 'unistr/u8-strdup'.
34268         * modules/unistr/u8-strdup-tests: New file.
34269         * tests/unistr/test-u8-strdup.c: New file.
34270         * tests/unistr/test-strdup.h: New file.
34271
34272         Tests for module 'unistr/u32-strncmp'.
34273         * modules/unistr/u32-strncmp-tests: New file.
34274         * tests/unistr/test-u32-strncmp.c: New file.
34275
34276         Tests for module 'unistr/u16-strncmp'.
34277         * modules/unistr/u16-strncmp-tests: New file.
34278         * tests/unistr/test-u16-strncmp.c: New file.
34279
34280         Tests for module 'unistr/u8-strncmp'.
34281         * modules/unistr/u8-strncmp-tests: New file.
34282         * tests/unistr/test-u8-strncmp.c: New file.
34283         * tests/unistr/test-strncmp.h: New file.
34284
34285         Tests for module 'unistr/u32-strcoll'.
34286         * modules/unistr/u32-strcoll-tests: New file.
34287         * tests/unistr/test-u32-strcoll.c: New file.
34288
34289         Tests for module 'unistr/u16-strcoll'.
34290         * modules/unistr/u16-strcoll-tests: New file.
34291         * tests/unistr/test-u16-strcoll.c: New file.
34292
34293         Tests for module 'unistr/u8-strcoll'.
34294         * modules/unistr/u8-strcoll-tests: New file.
34295         * tests/unistr/test-u8-strcoll.c: New file.
34296
34297         Tests for module 'unistr/u32-strcmp'.
34298         * modules/unistr/u32-strcmp-tests: New file.
34299         * tests/unistr/test-u32-strcmp.c: New file.
34300         * tests/unistr/test-u32-strcmp.h: New file.
34301
34302         Tests for module 'unistr/u16-strcmp'.
34303         * modules/unistr/u16-strcmp-tests: New file.
34304         * tests/unistr/test-u16-strcmp.c: New file.
34305         * tests/unistr/test-u16-strcmp.h: New file.
34306
34307         Tests for module 'unistr/u8-strcmp'.
34308         * modules/unistr/u8-strcmp-tests: New file.
34309         * tests/unistr/test-u8-strcmp.c: New file.
34310         * tests/unistr/test-u8-strcmp.h: New file.
34311         * tests/unistr/test-strcmp.h: New file.
34312
34313         Tests for module 'unistr/u32-strncat'.
34314         * modules/unistr/u32-strncat-tests: New file.
34315         * tests/unistr/test-u32-strncat.c: New file.
34316
34317         Tests for module 'unistr/u16-strncat'.
34318         * modules/unistr/u16-strncat-tests: New file.
34319         * tests/unistr/test-u16-strncat.c: New file.
34320
34321         Tests for module 'unistr/u8-strncat'.
34322         * modules/unistr/u8-strncat-tests: New file.
34323         * tests/unistr/test-u8-strncat.c: New file.
34324         * tests/unistr/test-strncat.h: New file.
34325
34326         Tests for module 'unistr/u32-strcat'.
34327         * modules/unistr/u32-strcat-tests: New file.
34328         * tests/unistr/test-u32-strcat.c: New file.
34329
34330         Tests for module 'unistr/u16-strcat'.
34331         * modules/unistr/u16-strcat-tests: New file.
34332         * tests/unistr/test-u16-strcat.c: New file.
34333
34334         Tests for module 'unistr/u8-strcat'.
34335         * modules/unistr/u8-strcat-tests: New file.
34336         * tests/unistr/test-u8-strcat.c: New file.
34337         * tests/unistr/test-strcat.h: New file.
34338
34339         Tests for module 'unistr/u32-stpncpy'.
34340         * modules/unistr/u32-stpncpy-tests: New file.
34341         * tests/unistr/test-u32-stpncpy.c: New file.
34342
34343         Tests for module 'unistr/u16-stpncpy'.
34344         * modules/unistr/u16-stpncpy-tests: New file.
34345         * tests/unistr/test-u16-stpncpy.c: New file.
34346
34347         Tests for module 'unistr/u8-stpncpy'.
34348         * modules/unistr/u8-stpncpy-tests: New file.
34349         * tests/unistr/test-u8-stpncpy.c: New file.
34350         * tests/unistr/test-stpncpy.h: New file.
34351
34352         Tests for module 'unistr/u32-strncpy'.
34353         * modules/unistr/u32-strncpy-tests: New file.
34354         * tests/unistr/test-u32-strncpy.c: New file.
34355
34356         Tests for module 'unistr/u16-strncpy'.
34357         * modules/unistr/u16-strncpy-tests: New file.
34358         * tests/unistr/test-u16-strncpy.c: New file.
34359
34360         Tests for module 'unistr/u8-strncpy'.
34361         * modules/unistr/u8-strncpy-tests: New file.
34362         * tests/unistr/test-u8-strncpy.c: New file.
34363         * tests/unistr/test-strncpy.h: New file.
34364
34365         Tests for module 'unistr/u32-stpcpy'.
34366         * modules/unistr/u32-stpcpy-tests: New file.
34367         * tests/unistr/test-u32-stpcpy.c: New file.
34368
34369         Tests for module 'unistr/u16-stpcpy'.
34370         * modules/unistr/u16-stpcpy-tests: New file.
34371         * tests/unistr/test-u16-stpcpy.c: New file.
34372
34373         Tests for module 'unistr/u8-stpcpy'.
34374         * modules/unistr/u8-stpcpy-tests: New file.
34375         * tests/unistr/test-u8-stpcpy.c: New file.
34376         * tests/unistr/test-stpcpy.h: New file.
34377
34378         Tests for module 'unistr/u32-strcpy'.
34379         * modules/unistr/u32-strcpy-tests: New file.
34380         * tests/unistr/test-u32-strcpy.c: New file.
34381
34382         Tests for module 'unistr/u16-strcpy'.
34383         * modules/unistr/u16-strcpy-tests: New file.
34384         * tests/unistr/test-u16-strcpy.c: New file.
34385
34386         Tests for module 'unistr/u8-strcpy'.
34387         * modules/unistr/u8-strcpy-tests: New file.
34388         * tests/unistr/test-u8-strcpy.c: New file.
34389         * tests/unistr/test-strcpy.h: New file.
34390
34391         Tests for module 'unistr/u32-strnlen'.
34392         * modules/unistr/u32-strnlen-tests: New file.
34393         * tests/unistr/test-u32-strnlen.c: New file.
34394
34395         Tests for module 'unistr/u16-strnlen'.
34396         * modules/unistr/u16-strnlen-tests: New file.
34397         * tests/unistr/test-u16-strnlen.c: New file.
34398
34399         Tests for module 'unistr/u8-strnlen'.
34400         * modules/unistr/u8-strnlen-tests: New file.
34401         * tests/unistr/test-u8-strnlen.c: New file.
34402         * tests/unistr/test-strnlen.h: New file.
34403
34404         Tests for module 'unistr/u32-strlen'.
34405         * modules/unistr/u32-strlen-tests: New file.
34406         * tests/unistr/test-u32-strlen.c: New file.
34407
34408         Tests for module 'unistr/u16-strlen'.
34409         * modules/unistr/u16-strlen-tests: New file.
34410         * tests/unistr/test-u16-strlen.c: New file.
34411
34412         Tests for module 'unistr/u8-strlen'.
34413         * modules/unistr/u8-strlen-tests: New file.
34414         * tests/unistr/test-u8-strlen.c: New file.
34415
34416         Tests for module 'unistr/u32-prev'.
34417         * modules/unistr/u32-prev-tests: New file.
34418         * tests/unistr/test-u32-prev.c: New file.
34419
34420         Tests for module 'unistr/u16-prev'.
34421         * modules/unistr/u16-prev-tests: New file.
34422         * tests/unistr/test-u16-prev.c: New file.
34423
34424         Tests for module 'unistr/u8-prev'.
34425         * modules/unistr/u8-prev-tests: New file.
34426         * tests/unistr/test-u8-prev.c: New file.
34427
34428         Tests for module 'unistr/u32-next'.
34429         * modules/unistr/u32-next-tests: New file.
34430         * tests/unistr/test-u32-next.c: New file.
34431
34432         Tests for module 'unistr/u16-next'.
34433         * modules/unistr/u16-next-tests: New file.
34434         * tests/unistr/test-u16-next.c: New file.
34435
34436         Tests for module 'unistr/u8-next'.
34437         * modules/unistr/u8-next-tests: New file.
34438         * tests/unistr/test-u8-next.c: New file.
34439
34440         Tests for module 'unistr/u32-strmbtouc'.
34441         * modules/unistr/u32-strmbtouc-tests: New file.
34442         * tests/unistr/test-u32-strmbtouc.c: New file.
34443
34444         Tests for module 'unistr/u16-strmbtouc'.
34445         * modules/unistr/u16-strmbtouc-tests: New file.
34446         * tests/unistr/test-u16-strmbtouc.c: New file.
34447
34448         Tests for module 'unistr/u8-strmbtouc'.
34449         * modules/unistr/u8-strmbtouc-tests: New file.
34450         * tests/unistr/test-u8-strmbtouc.c: New file.
34451
34452         Tests for module 'unistr/u32-strmblen'.
34453         * modules/unistr/u32-strmblen-tests: New file.
34454         * tests/unistr/test-u32-strmblen.c: New file.
34455
34456         Tests for module 'unistr/u16-strmblen'.
34457         * modules/unistr/u16-strmblen-tests: New file.
34458         * tests/unistr/test-u16-strmblen.c: New file.
34459
34460         Tests for module 'unistr/u8-strmblen'.
34461         * modules/unistr/u8-strmblen-tests: New file.
34462         * tests/unistr/test-u8-strmblen.c: New file.
34463
34464         Tests for module 'unistr/u32-cpy-alloc'.
34465         * modules/unistr/u32-cpy-alloc-tests: New file.
34466         * tests/unistr/test-u32-cpy-alloc.c: New file.
34467
34468         Tests for module 'unistr/u16-cpy-alloc'.
34469         * modules/unistr/u16-cpy-alloc-tests: New file.
34470         * tests/unistr/test-u16-cpy-alloc.c: New file.
34471
34472         Tests for module 'unistr/u8-cpy-alloc'.
34473         * modules/unistr/u8-cpy-alloc-tests: New file.
34474         * tests/unistr/test-u8-cpy-alloc.c: New file.
34475         * tests/unistr/test-cpy-alloc.h: New file.
34476
34477         Tests for module 'unistr/u32-mbsnlen'.
34478         * modules/unistr/u32-mbsnlen-tests: New file.
34479         * tests/unistr/test-u32-mbsnlen.c: New file.
34480
34481         Tests for module 'unistr/u16-mbsnlen'.
34482         * modules/unistr/u16-mbsnlen-tests: New file.
34483         * tests/unistr/test-u16-mbsnlen.c: New file.
34484
34485         Tests for module 'unistr/u8-mbsnlen'.
34486         * modules/unistr/u8-mbsnlen-tests: New file.
34487         * tests/unistr/test-u8-mbsnlen.c: New file.
34488
34489         Tests for module 'unistr/u32-chr'.
34490         * modules/unistr/u32-chr-tests: New file.
34491         * tests/unistr/test-u32-chr.c: New file.
34492
34493         Tests for module 'unistr/u16-chr'.
34494         * modules/unistr/u16-chr-tests: New file.
34495         * tests/unistr/test-u16-chr.c: New file.
34496
34497         Tests for module 'unistr/u8-chr'.
34498         * modules/unistr/u8-chr-tests: New file.
34499         * tests/unistr/test-u8-chr.c: New file.
34500         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34501
34502         Tests for module 'unistr/u32-cmp2'.
34503         * modules/unistr/u32-cmp2-tests: New file.
34504         * tests/unistr/test-u32-cmp2.c: New file.
34505
34506         Tests for module 'unistr/u16-cmp2'.
34507         * modules/unistr/u16-cmp2-tests: New file.
34508         * tests/unistr/test-u16-cmp2.c: New file.
34509
34510         Tests for module 'unistr/u8-cmp2'.
34511         * modules/unistr/u8-cmp2-tests: New file.
34512         * tests/unistr/test-u8-cmp2.c: New file.
34513         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34514
34515         Tests for module 'unistr/u32-cmp'.
34516         * modules/unistr/u32-cmp-tests: New file.
34517         * tests/unistr/test-u32-cmp.c: New file.
34518
34519         Tests for module 'unistr/u16-cmp'.
34520         * modules/unistr/u16-cmp-tests: New file.
34521         * tests/unistr/test-u16-cmp.c: New file.
34522
34523         Tests for module 'unistr/u8-cmp'.
34524         * modules/unistr/u8-cmp-tests: New file.
34525         * tests/unistr/test-u8-cmp.c: New file.
34526         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34527
34528         Tests for module 'unistr/u32-set'.
34529         * modules/unistr/u32-set-tests: New file.
34530         * tests/unistr/test-u32-set.c: New file.
34531
34532         Tests for module 'unistr/u16-set'.
34533         * modules/unistr/u16-set-tests: New file.
34534         * tests/unistr/test-u16-set.c: New file.
34535
34536         Tests for module 'unistr/u8-set'.
34537         * modules/unistr/u8-set-tests: New file.
34538         * tests/unistr/test-u8-set.c: New file.
34539         * tests/unistr/test-set.h: New file.
34540
34541         Tests for module 'unistr/u32-move'.
34542         * modules/unistr/u32-move-tests: New file.
34543         * tests/unistr/test-u32-move.c: New file.
34544
34545         Tests for module 'unistr/u16-move'.
34546         * modules/unistr/u16-move-tests: New file.
34547         * tests/unistr/test-u16-move.c: New file.
34548
34549         Tests for module 'unistr/u8-move'.
34550         * modules/unistr/u8-move-tests: New file.
34551         * tests/unistr/test-u8-move.c: New file.
34552         * tests/unistr/test-move.h: New file.
34553
34554         Tests for module 'unistr/u32-cpy'.
34555         * modules/unistr/u32-cpy-tests: New file.
34556         * tests/unistr/test-u32-cpy.c: New file.
34557
34558         Tests for module 'unistr/u16-cpy'.
34559         * modules/unistr/u16-cpy-tests: New file.
34560         * tests/unistr/test-u16-cpy.c: New file.
34561
34562         Tests for module 'unistr/u8-cpy'.
34563         * modules/unistr/u8-cpy-tests: New file.
34564         * tests/unistr/test-u8-cpy.c: New file.
34565         * tests/unistr/test-cpy.h: New file.
34566
34567 2010-01-09  Bruno Haible  <bruno@clisp.org>
34568
34569         Tests for module 'unistr/u32-uctomb'.
34570         * modules/unistr/u32-uctomb-tests: New file.
34571         * tests/unistr/test-u32-uctomb.c: New file.
34572
34573         Tests for module 'unistr/u16-uctomb'.
34574         * modules/unistr/u16-uctomb-tests: New file.
34575         * tests/unistr/test-u16-uctomb.c: New file.
34576
34577         Tests for module 'unistr/u8-uctomb'.
34578         * modules/unistr/u8-uctomb-tests: New file.
34579         * tests/unistr/test-u8-uctomb.c: New file.
34580
34581         Tests for module 'unistr/u32-mbtoucr'.
34582         * modules/unistr/u32-mbtoucr-tests: New file.
34583         * tests/unistr/test-u32-mbtoucr.c: New file.
34584
34585         Tests for module 'unistr/u16-mbtoucr'.
34586         * modules/unistr/u16-mbtoucr-tests: New file.
34587         * tests/unistr/test-u16-mbtoucr.c: New file.
34588
34589         Tests for module 'unistr/u8-mbtoucr'.
34590         * modules/unistr/u8-mbtoucr-tests: New file.
34591         * tests/unistr/test-u8-mbtoucr.c: New file.
34592
34593         Tests for module 'unistr/u32-mbtouc'.
34594         * modules/unistr/u32-mbtouc-tests: New file.
34595         * tests/unistr/test-u32-mbtouc.c: New file.
34596
34597         Tests for module 'unistr/u16-mbtouc'.
34598         * modules/unistr/u16-mbtouc-tests: New file.
34599         * tests/unistr/test-u16-mbtouc.c: New file.
34600
34601         Tests for module 'unistr/u8-mbtouc'.
34602         * modules/unistr/u8-mbtouc-tests: New file.
34603         * tests/unistr/test-u8-mbtouc.c: New file.
34604
34605         Tests for module 'unistr/u32-mbtouc-unsafe'.
34606         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34607         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34608         * tests/unistr/test-u32-mbtouc.h: New file.
34609
34610         Tests for module 'unistr/u16-mbtouc-unsafe'.
34611         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34612         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34613         * tests/unistr/test-u16-mbtouc.h: New file.
34614
34615         Tests for module 'unistr/u8-mbtouc-unsafe'.
34616         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34617         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34618         * tests/unistr/test-u8-mbtouc.h: New file.
34619
34620         Tests for module 'unistr/u32-mblen'.
34621         * modules/unistr/u32-mblen-tests: New file.
34622         * tests/unistr/test-u32-mblen.c: New file.
34623
34624         Tests for module 'unistr/u16-mblen'.
34625         * modules/unistr/u16-mblen-tests: New file.
34626         * tests/unistr/test-u16-mblen.c: New file.
34627
34628         Tests for module 'unistr/u8-mblen'.
34629         * modules/unistr/u8-mblen-tests: New file.
34630         * tests/unistr/test-u8-mblen.c: New file.
34631
34632         Tests for module 'unistr/u32-to-u16'.
34633         * modules/unistr/u32-to-u16-tests: New file.
34634         * tests/unistr/test-u32-to-u16.c: New file.
34635
34636         Tests for module 'unistr/u32-to-u8'.
34637         * modules/unistr/u32-to-u8-tests: New file.
34638         * tests/unistr/test-u32-to-u8.c: New file.
34639
34640         Tests for module 'unistr/u16-to-u32'.
34641         * modules/unistr/u16-to-u32-tests: New file.
34642         * tests/unistr/test-u16-to-u32.c: New file.
34643
34644         Tests for module 'unistr/u16-to-u8'.
34645         * modules/unistr/u16-to-u8-tests: New file.
34646         * tests/unistr/test-u16-to-u8.c: New file.
34647
34648         Tests for module 'unistr/u8-to-u32'.
34649         * modules/unistr/u8-to-u32-tests: New file.
34650         * tests/unistr/test-u8-to-u32.c: New file.
34651
34652         Tests for module 'unistr/u8-to-u16'.
34653         * modules/unistr/u8-to-u16-tests: New file.
34654         * tests/unistr/test-u8-to-u16.c: New file.
34655
34656         Tests for module 'unistr/u32-check'.
34657         * modules/unistr/u32-check-tests: New file.
34658         * tests/unistr/test-u32-check.c: New file.
34659
34660         Tests for module 'unistr/u16-check'.
34661         * modules/unistr/u16-check-tests: New file.
34662         * tests/unistr/test-u16-check.c: New file.
34663
34664         Tests for module 'unistr/u8-check'.
34665         * modules/unistr/u8-check-tests: New file.
34666         * tests/unistr/test-u8-check.c: New file.
34667
34668         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34669         (category_equals): New function.
34670         (main): Add more tests.
34671         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34672
34673         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34674
34675 2010-01-10  Bruno Haible  <bruno@clisp.org>
34676
34677         unistr/u*-strcoll: Try harder to distinguish different strings.
34678         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34679         compare s1 and s2 to see if they are different.
34680
34681 2010-01-10  Bruno Haible  <bruno@clisp.org>
34682
34683         unistr/u*-stpncpy: Fix the return value.
34684         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34685         description of the return value consistent with stpncpy in glibc.
34686         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34687         written non-NUL unit.
34688
34689 2010-01-10  Bruno Haible  <bruno@clisp.org>
34690
34691         unistr/u*-next: Add missing dependencies.
34692         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34693         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34694         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34695
34696 2010-01-10  Bruno Haible  <bruno@clisp.org>
34697
34698         unistr/u8-mbsnlen: Fix return value for incomplete character.
34699         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34700         u8_mblen.
34701         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34702         Remove unistr/u8-mblen.
34703         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34704         u16_mblen.
34705         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34706         Remove unistr/u16-mblen.
34707
34708 2010-01-10  Bruno Haible  <bruno@clisp.org>
34709
34710         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34711         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34712         Reported by Brian Gough <bjg@gnu.org> and
34713         Chris Clayton <chris2553@googlemail.com> via
34714         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34715
34716 2010-01-09  Bruno Haible  <bruno@clisp.org>
34717
34718         unistr/u16-to-u32: Reject invalid input.
34719         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34720         u16_mbtouc.
34721         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34722         Remove unistr/u16-mbtouc.
34723
34724         unistr/u16-to-u8: Reject invalid input.
34725         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34726         u16_mbtouc.
34727         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34728         Remove unistr/u16-mbtouc.
34729
34730         unistr/u8-to-u32: Reject invalid input.
34731         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34732         u8_mbtouc.
34733         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34734         Remove unistr/u8-mbtouc.
34735
34736         unistr/u8-to-u16: Reject invalid input.
34737         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34738         u8_mbtouc.
34739         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34740         Remove unistr/u8-mbtouc.
34741
34742 2010-01-09  Bruno Haible  <bruno@clisp.org>
34743
34744         Tests for module 'getlogin'.
34745         * modules/getlogin-tests: New file.
34746         * tests/test-getlogin.c: New file.
34747
34748         New module 'getlogin'.
34749         * lib/unistd.in.h (getlogin): New declaration.
34750         * lib/getlogin.c: New file.
34751         * m4/getlogin.m4: New file.
34752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34753         HAVE_GETLOGIN.
34754         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34755         HAVE_GETLOGIN.
34756         * modules/getlogin: New file.
34757         * doc/posix-functions/getlogin.texi: Mention the new module.
34758         Reported by John W. Eaton <jwe@gnu.org>.
34759
34760 2010-01-09  Bruno Haible  <bruno@clisp.org>
34761
34762         getlogin_r: Support for native Windows.
34763         * lib/getlogin_r.c: Include <windows.h>
34764         (getlogin_r): Implement for native Windows.
34765         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34766         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34767         via John W. Eaton <jwe@gnu.org>.
34768
34769 2010-01-09  Bruno Haible  <bruno@clisp.org>
34770
34771         getlogin_r: Small fixes.
34772         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34773         succeeds.
34774         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34775         before testing whether getlogin_r is declared. No need to set
34776         HAVE_DECL_GETLOGIN_R to 1.
34777         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34778
34779 2010-01-09  Bruno Haible  <bruno@clisp.org>
34780
34781         * lib/unistd.in.h (getlogin_r): Add comment.
34782
34783 2010-01-09  Bruno Haible  <bruno@clisp.org>
34784
34785         Tests for module 'getlogin_r'.
34786         * modules/getlogin_r-tests: New file.
34787         * tests/test-getlogin_r.c: New file.
34788
34789 2010-01-09  Jim Meyering  <meyering@redhat.com>
34790
34791         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34792         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34793         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34794
34795 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34796
34797         * lib/dup2.c (rpl_dup2): Improve comment.
34798
34799 2010-01-08  Eric Blake  <ebb9@byu.net>
34800
34801         maint.mk: allow packages to add makefile @@ exceptions
34802         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34803         (sc_makefile_check): Rename...
34804         (sc_makefile_at_at_check): ...to this, and use hook.
34805
34806         dup2: work around mingw bug
34807         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34808         Reported by Simon Josefsson.
34809
34810 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34811
34812         glob: Fix C++ compilation.
34813         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34814         C++.
34815
34816 2010-01-07  Bruno Haible  <bruno@clisp.org>
34817
34818         Fix indentation of wctype.in.h, broken since 2007-01-06.
34819         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34820
34821 2010-01-07  Bruno Haible  <bruno@clisp.org>
34822
34823         mbslen: Avoid collision with system function.
34824         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34825         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34826         * m4/mbslen.m4: New file.
34827         * modules/mbslen (Files): Add it.
34828         (configure.ac): Invoke gl_MBSLEN.
34829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34830         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34831         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34832         via Ian Beckwith <ianb@erislabs.net>.
34833
34834 2010-01-07  Bruno Haible  <bruno@clisp.org>
34835
34836         dirent: Document the last fix.
34837         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34838
34839 2010-01-07  Bruno Haible  <bruno@clisp.org>
34840
34841         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34842         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34843         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34844         va_list are defined.
34845         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34846         Reported by Eric Blake.
34847
34848 2010-01-07  Bruno Haible  <bruno@clisp.org>
34849
34850         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34851         * modules/xlist (Depends-on): Add 'list',
34852         * modules/xoset (Depends-on): Add 'oset'.
34853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34854
34855 2010-01-07  Bruno Haible  <bruno@clisp.org>
34856
34857         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34858         * doc/posix-functions/strncasecmp.texi: Likewise.
34859
34860 2010-01-07  Bruno Haible  <bruno@clisp.org>
34861
34862         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34863
34864 2010-01-07  John W. Eaton  <jwe@octave.org>
34865
34866         wctype: allow C++ use
34867         * lib/wctype.in.h: Add extern "C" block for C++.
34868
34869 2010-01-06  Eric Blake  <ebb9@byu.net>
34870
34871         maint.mk: detect incorrect GFDL usage
34872         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34873
34874 2010-01-06  Jim Meyering  <meyering@redhat.com>
34875         and Eric Blake  <ebb9@byu.net>
34876
34877         maint.mk: ignore multi-line copyright in NEWS
34878         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34879
34880 2010-01-06  Eric Blake  <ebb9@byu.net>
34881
34882         select: add missing dependency
34883         * modules/select-tests (Depends-on): Move sockets dependency...
34884         * modules/select (Depends-on): ...here.
34885         Reported by Ian Beckwith.
34886
34887         doc: regenerate INSTALL
34888         * doc/INSTALL: Reflect recent autoconf update.
34889         * doc/INSTALL.ISO: Likewise.
34890         * doc/INSTALL.UTF-8: Likewise.
34891
34892         pread: fix compilation on glibc
34893         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34894         Reported by Ralf Wildenhues.
34895
34896         dirent: fix test failure
34897         * lib/dirent.in.h (includes): Guarantee ino_t.
34898         Reported by Ralf Wildenhues.
34899
34900 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34901
34902         linkat, renameat: avoid bad free
34903         * lib/at-func2.c (at_func2): Fix typo.
34904         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34905
34906 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34907
34908         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34909         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34910         to avoid failure of symlink test later.
34911
34912 2010-01-06  Eric Blake  <ebb9@byu.net>
34913
34914         stdio, unistd: guarantee ssize_t
34915         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34916         2008 are exposed when needed.
34917         * lib/stdio.in.h (includes): Likewise.
34918         Reported by Ralf Wildenhues.
34919
34920 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34921
34922         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34923         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34924         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34925
34926 2010-01-06  Jim Meyering  <meyering@redhat.com>
34927
34928         readtokens: this module *does* require xalloc.h
34929         It uses only functions that were omitted by the old syntax-check rule.
34930         * lib/readtokens.c: Include "xalloc.h" once again.
34931         * modules/readtokens (Depends-on): Add xalloc.
34932         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34933
34934 2010-01-05  Eric Blake  <ebb9@byu.net>
34935
34936         maint: support 'make announcement' from a VPATH build
34937         * top/maint.mk (announcement): Look for correct NEWS file.
34938
34939 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34940
34941         utimens (fdutimens): ignore a negative FD, per contract
34942         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34943         when we have a valid file descriptor.  Otherwise, using a brand
34944         new glibc (with just-patched futimens that now fails with EBADF)
34945         would cause this function to fail with ENOSYS.
34946         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34947         See also http://bugzilla.redhat.com/552320.
34948
34949 2010-01-05  Eric Blake  <ebb9@byu.net>
34950
34951         strcase: document what it provides
34952         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34953         gnulib module.
34954         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34955         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34956
34957 2010-01-05  Jim Meyering  <meyering@redhat.com>
34958
34959         maint: remove useless inclusions of "xalloc.h"
34960         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34961         * lib/readtokens.c: Likewise.
34962         * lib/same.c: Likewise.
34963         * modules/getloadavg (Depends-on): Remove xalloc.
34964         * modules/readtokens: Likewise.
34965         * modules/same: Likewise.
34966
34967         maint.mk: include 4 more function names in alloca.h-checking regexp
34968         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34969         regexp.  Before, we would give a false-positive (saying alloca.h
34970         is included unnecessarily) when the only uses involved omitted symbols.
34971
34972         xalloc.h: use consistent formatting
34973         * lib/xalloc.h: Move declarations to start in the first column.
34974
34975 2010-01-05  Eric Blake  <ebb9@byu.net>
34976
34977         mkdir: avoid xalloc
34978         * lib/mkdir.c (includes): Drop unused header.
34979         Reported by John W. Eaton.
34980
34981 2010-01-04  Jim Meyering  <meyering@redhat.com>
34982
34983         nl_langinfo: avoid configure-time syntax error
34984         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34985         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34986         the empty string.  Don't let that provoke a shell syntax error.
34987
34988         regcomp, regexec, fnmatch: avoid array bounds read error
34989         * lib/regcomp.c (build_equiv_class): From glibc:
34990         Use only the low 24 bits of a findidx return value as an index
34991         into the weights array.  Patch by Ulrich Drepper:
34992         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34993         * lib/regexec.c (check_node_accept_bytes): Likewise.
34994         * lib/fnmatch_loop.c (FCT): Likewise.
34995
34996         regcomp: skip collseq lookup when there are no rules
34997         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34998         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34999
35000         regcomp: recognize ill-formed { } expressions
35001         * lib/regcomp.c (parse_dup_op): From glibc:
35002         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35003
35004         regcomp: fix typo in comment
35005         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35006         s/satisfy/satisfies/.
35007
35008         regcomp: sync from glibc: remove dead store
35009         * lib/regcomp.c (duplicate_node_closure): Remove useless
35010         search_duplicated_node call and dead store.
35011
35012         regcomp: sync from glibc; always use nl_langinfo
35013         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35014         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35015         * modules/regex (Depends-on): Add nl_langinfo.
35016
35017 2010-01-04  Eric Blake  <ebb9@byu.net>
35018
35019         fdopendir: fix configure test
35020         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35021
35022 2010-01-01  Bruno Haible  <bruno@clisp.org>
35023
35024         wchar: Remove unused configure check.
35025         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35026
35027 2010-01-01  Eric Blake  <ebb9@byu.net>
35028
35029         headers: make check of system header explicit
35030         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35031         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35032         ourselves.
35033         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35034         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35035         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35036         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35037         internals.
35038         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35039         missing.
35040         Suggested by Bruno Haible.
35041
35042 2010-01-01  Jim Meyering  <meyering@redhat.com>
35043
35044         ChangeLog: tweak to eliminate unnecessary copyright line
35045         * ChangeLog: Remove a copyright line that was mistakenly updated
35046         by today's update-copyright run.  Reported by Eric Blake.
35047
35048         test-update-copyright: don't let envvar setting cause test failure
35049         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35050
35051 2010-01-01  Bruno Haible  <bruno@clisp.org>
35052
35053         localename: Avoid gcc warning.
35054         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35055         function if it is not used.
35056
35057 2010-01-01  Jim Meyering  <meyering@redhat.com>
35058
35059         update nearly all FSF copyright year lists to include 2010
35060         Use the same procedure as for 2009, outlined in
35061         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35062
35063         version-etc: set COPYRIGHT_YEAR to 2010
35064         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35065
35066 2009-12-31  Eric Blake  <ebb9@byu.net>
35067
35068         doc: correct availability of cygwin 1.5.x getopt
35069         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35070         variables.
35071         * doc/posix-functions/opterr.texi (opterr): Likewise.
35072         * doc/posix-functions/optind.texi (optind): Likewise.
35073         * doc/posix-functions/optopt.texi (optopt): Likewise.
35074         * doc/posix-functions/tzname.texi (tzname): Likewise.
35075
35076         openat: update maintainer
35077         * modules/openat (Maintainer): Add myself.
35078
35079         utimens: avoid shadowing warning
35080         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35081         buffers into one, to avoid shadowing, as well as avoiding a
35082         redundant stat.
35083         Reported by Jim Meyering.
35084
35085         test-dup2: avoid compiler warning
35086         * tests/test-dup2.c (is_inheritable): Only define if used.
35087
35088 2010-01-01  Bruno Haible  <bruno@clisp.org>
35089
35090         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35091         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35092         defined, use wctomb instead of wcrtomb.
35093
35094 2010-01-01  Bruno Haible  <bruno@clisp.org>
35095
35096         iconv: Reject native Solaris iconv.
35097         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35098         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35099
35100 2009-12-31  Bruno Haible  <bruno@clisp.org>
35101
35102         * tests/test-signal.c (main): Remove test of 'SIG'.
35103
35104 2009-12-31  Bruno Haible  <bruno@clisp.org>
35105
35106         spawn: Fix incomplete fix.
35107         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35108         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35109         warnings for GNULIB_POSIXCHECK again.
35110         Reported by Eric Blake.
35111
35112 2009-12-31  Bruno Haible  <bruno@clisp.org>
35113
35114         Avoid namespace pollution on glibc systems.
35115         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35116         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35117         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35118         glibc systems.
35119
35120 2009-12-31  Bruno Haible  <bruno@clisp.org>
35121
35122         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35123         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35124         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35125         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35126         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35127         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35128         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35129
35130 2009-12-31  Bruno Haible  <bruno@clisp.org>
35131
35132         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35133         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35134         afterwards.
35135
35136 2009-12-31  Bruno Haible  <bruno@clisp.org>
35137
35138         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35139         SYS_UTSNAME_H.
35140
35141 2009-12-31  Bruno Haible  <bruno@clisp.org>
35142
35143         spawn: Fix misapplied patch.
35144         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35145         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35146         warnings for GNULIB_POSIXCHECK.
35147
35148 2009-12-31  Bruno Haible  <bruno@clisp.org>
35149
35150         times: Update after sys_times changed.
35151         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35152         * modules/times (Files): Add it.
35153         (configure.ac): Invoke gl_FUNC_TIMES.
35154
35155 2009-12-31  Bruno Haible  <bruno@clisp.org>
35156
35157         Use AC_C_INLINE where necessary.
35158         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35159         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35160         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35161         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35162         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35163         * m4/mbiter.m4 (gl_MBITER): Likewise.
35164         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35165         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35166         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35167         * modules/u64 (configure.ac): Likewise.
35168
35169 2009-12-31  Bruno Haible  <bruno@clisp.org>
35170
35171         Use AC_C_INLINE instead of module 'inline' where possible.
35172         * modules/inline (Description): Clarify purpose.
35173         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35174         * modules/count-one-bits (Depends-on): Remove inline.
35175         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35176         * modules/openat (Depends-on): Remove inline.
35177         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35178         instead of depending on module 'inline'.
35179         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35180         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35181         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35182         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35183         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35184         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35185         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35186         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35187         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35188         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35189         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35190         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35191         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35192         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35193         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35194         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35195         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35196         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35197         Likewise.
35198         * modules/unictype/property-ascii-hex-digit (Depends-on,
35199         configure.ac): Likewise.
35200         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35201         configure.ac): Likewise.
35202         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35203         configure.ac): Likewise.
35204         * modules/unictype/property-bidi-block-separator (Depends-on,
35205         configure.ac): Likewise.
35206         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35207         configure.ac): Likewise.
35208         * modules/unictype/property-bidi-common-separator (Depends-on,
35209         configure.ac): Likewise.
35210         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35211         Likewise.
35212         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35213         configure.ac): Likewise.
35214         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35215         configure.ac): Likewise.
35216         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35217         configure.ac): Likewise.
35218         * modules/unictype/property-bidi-european-digit (Depends-on,
35219         configure.ac): Likewise.
35220         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35221         configure.ac): Likewise.
35222         * modules/unictype/property-bidi-left-to-right (Depends-on,
35223         configure.ac): Likewise.
35224         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35225         configure.ac): Likewise.
35226         * modules/unictype/property-bidi-other-neutral (Depends-on,
35227         configure.ac): Likewise.
35228         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35229         Likewise.
35230         * modules/unictype/property-bidi-segment-separator (Depends-on,
35231         configure.ac): Likewise.
35232         * modules/unictype/property-bidi-whitespace (Depends-on,
35233         configure.ac): Likewise.
35234         * modules/unictype/property-combining (Depends-on, configure.ac):
35235         Likewise.
35236         * modules/unictype/property-composite (Depends-on, configure.ac):
35237         Likewise.
35238         * modules/unictype/property-currency-symbol (Depends-on,
35239         configure.ac): Likewise.
35240         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35241         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35242         Likewise.
35243         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35244         configure.ac): Likewise.
35245         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35246         Likewise.
35247         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35248         Likewise.
35249         * modules/unictype/property-extender (Depends-on, configure.ac):
35250         Likewise.
35251         * modules/unictype/property-format-control (Depends-on, configure.ac):
35252         Likewise.
35253         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35254         Likewise.
35255         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35256         Likewise.
35257         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35258         Likewise.
35259         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35260         Likewise.
35261         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35262         Likewise.
35263         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35264         Likewise.
35265         * modules/unictype/property-id-start (Depends-on, configure.ac):
35266         Likewise.
35267         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35268         Likewise.
35269         * modules/unictype/property-ids-binary-operator (Depends-on,
35270         configure.ac): Likewise.
35271         * modules/unictype/property-ids-trinary-operator (Depends-on,
35272         configure.ac): Likewise.
35273         * modules/unictype/property-ignorable-control (Depends-on,
35274         configure.ac): Likewise.
35275         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35276         Likewise.
35277         * modules/unictype/property-join-control (Depends-on, configure.ac):
35278         Likewise.
35279         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35280         Likewise.
35281         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35282         Likewise.
35283         * modules/unictype/property-logical-order-exception (Depends-on,
35284         configure.ac): Likewise.
35285         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35286         Likewise.
35287         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35288         * modules/unictype/property-non-break (Depends-on, configure.ac):
35289         Likewise.
35290         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35291         Likewise.
35292         * modules/unictype/property-numeric (Depends-on, configure.ac):
35293         Likewise.
35294         * modules/unictype/property-other-alphabetic (Depends-on,
35295         configure.ac): Likewise.
35296         * modules/unictype/property-other-default-ignorable-code-point
35297         (Depends-on, configure.ac): Likewise.
35298         * modules/unictype/property-other-grapheme-extend (Depends-on,
35299         configure.ac): Likewise.
35300         * modules/unictype/property-other-id-continue (Depends-on,
35301         configure.ac): Likewise.
35302         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35303         Likewise.
35304         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35305         Likewise.
35306         * modules/unictype/property-other-math (Depends-on, configure.ac):
35307         Likewise.
35308         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35309         Likewise.
35310         * modules/unictype/property-paired-punctuation (Depends-on,
35311         configure.ac): Likewise.
35312         * modules/unictype/property-paragraph-separator (Depends-on,
35313         configure.ac): Likewise.
35314         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35315         Likewise.
35316         * modules/unictype/property-pattern-white-space (Depends-on,
35317         configure.ac): Likewise.
35318         * modules/unictype/property-private-use (Depends-on, configure.ac):
35319         Likewise.
35320         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35321         Likewise.
35322         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35323         Likewise.
35324         * modules/unictype/property-radical (Depends-on, configure.ac):
35325         Likewise.
35326         * modules/unictype/property-sentence-terminal (Depends-on,
35327         configure.ac): Likewise.
35328         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35329         Likewise.
35330         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35331         * modules/unictype/property-terminal-punctuation (Depends-on,
35332         configure.ac): Likewise.
35333         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35334         Likewise.
35335         * modules/unictype/property-unassigned-code-value (Depends-on,
35336         configure.ac): Likewise.
35337         * modules/unictype/property-unified-ideograph (Depends-on,
35338         configure.ac): Likewise.
35339         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35340         Likewise.
35341         * modules/unictype/property-variation-selector (Depends-on,
35342         configure.ac): Likewise.
35343         * modules/unictype/property-white-space (Depends-on, configure.ac):
35344         Likewise.
35345         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35346         Likewise.
35347         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35348         Likewise.
35349         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35350         Likewise.
35351         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35352         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35353         Likewise.
35354
35355 2009-12-31  Bruno Haible  <bruno@clisp.org>
35356
35357         Remove unnecessary AC_C_INLINE invocation.
35358         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35359         since 2009-08-21.
35360
35361 2009-12-31  Jim Meyering  <meyering@redhat.com>
35362
35363         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35364         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35365         With this change, we can all remove the gpg_key_ID = ... definition
35366         from our respective cfg.mk files.
35367
35368         maint.mk: create announcement template in ~/, not in /tmp
35369         * top/maint.mk (emit_upload_commands): Adjust.
35370         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35371         Remove temporary file, .ci-msg.
35372
35373 2009-12-31  Eric Blake  <ebb9@byu.net>
35374
35375         link-warning: always build headers with link warnings
35376         * modules/arpa_inet (Makefile.am): Always build replacement
35377         header.
35378         * modules/ctype (Makefile.am): Likewise.
35379         * modules/dirent (Makefile.am): Likewise.
35380         * modules/inttypes (Makefile.am): Likewise.
35381         * modules/langinfo (Makefile.am): Likewise.
35382         * modules/locale (Makefile.am): Likewise.
35383         * modules/spawn (Makefile.am): Likewise.
35384         * modules/sys_file (Makefile.am): Likewise.
35385         * modules/sys_ioctl (Makefile.am): Likewise.
35386         * modules/sys_select (Makefile.am): Likewise.
35387         * modules/sys_socket (Makefile.am): Likewise.
35388         * modules/sys_times (Makefile.am): Likewise.
35389         * modules/sys_utsname (Makefile.am): Likewise.
35390         * modules/sys_wait (Makefile.am): Likewise.
35391         * modules/wchar (Makefile.am): Likewise.
35392         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35393         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35394         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35395         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35396         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35397         Likewise.
35398         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35399         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35400         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35401         Likewise.
35402         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35403         Likewise.
35404         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35405         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35406         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35407         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35408         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35409         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35410         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35411         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35412         (gl_WCHAR_H_DEFAULTS): Likewise.
35413
35414 2009-12-31  Eric Blake  <ebb9@byu.net>
35415
35416         signal, spawn: use link warnings
35417         * lib/signal.in.h (sigset_t): Make unconditional.
35418         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35419         (sigpending, sigprocmask, sigaction): Add link warnings.
35420         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35421         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35422         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35423         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35424         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35425         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35426         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35427         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35428         (posix_spawn_file_actions_destroy)
35429         (posix_spawn_file_actions_addopen)
35430         (posix_spawn_file_actions_addclose)
35431         (posix_spawn_file_actions_adddup2): Likewise.
35432         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35433         * tests/test-signal.c (main): Enhance test.
35434
35435         spawn: improve wrapper support
35436         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35437         (gl_SPAWN_H_DEFAULTS): New defaults.
35438         * modules/spawn (Makefile.am): Substitute them.
35439         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35440         Only declare if missing or broken.
35441
35442         sys_times, sys_utsname: use include_next
35443         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35444         header.
35445         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35446         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35447         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35448         * modules/sys_times (Depends-on): Add include_next.
35449         (Makefile.am): Substitute additional values.
35450         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35451         * lib/sys_times.in.h (includes): Include native header, if
35452         available.
35453         * lib/sys_utsname.in.h (includes): Likewise.
35454         * tests/test-sys_times.c (main): Enhance test.
35455
35456         fdutimensat: revert prior patch
35457         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35458         utimens.h.
35459         Reported by Bruno Haible.
35460
35461 2009-12-30  Eric Blake  <ebb9@byu.net>
35462
35463         sys_wait: drop link-warning dependency
35464         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35465         link-warning efforts.
35466         * lib/sys_wait.in.h: Likewise.
35467
35468         fdutimensat: remove bogus dependency
35469         * modules/fdutimensat (Depends-on): Drop inline.
35470
35471         unistd: fix typo
35472         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35473
35474 2009-12-30  Bruno Haible  <bruno@clisp.org>
35475
35476         Fix compilation error with Solaris cc.
35477         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35478         * lib/unicase/u16-is-invariant.c: Likewise.
35479         * lib/unicase/u32-is-invariant.c: Likewise.
35480         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35481
35482 2009-12-30  Bruno Haible  <bruno@clisp.org>
35483
35484         Fix test crash.
35485         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35486         locales.
35487         Reported by Simon Josefsson <simon@josefsson.org>.
35488
35489 2009-12-30  Bruno Haible  <bruno@clisp.org>
35490
35491         Fix compilation error on most platforms.
35492         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35493         Reported by Simon Josefsson <simon@josefsson.org>
35494         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35495
35496 2009-12-30  Eric Blake  <ebb9@byu.net>
35497
35498         futimens, utimensat: work around ntfs-3g bug
35499         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35500         a ctime bug is present, and expand workaround to cover ntfs-3g.
35501         * lib/utimens.c (fdutimens, lutimens): Likewise.
35502         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35503         (validate_timespec): Adjust return value.
35504         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35505         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35506         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35507
35508 2009-12-29  Eric Blake  <ebb9@byu.net>
35509
35510         link-warning: make usage consistent
35511         * modules/ctype (Depends-on): Add link-warning.
35512         (Makefile.am): Update rules accordingly.
35513         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35514         * modules/locale (Depends-on, Makefile.am): Likewise.
35515         * modules/sys_file (Makefile.am): Likewise.
35516         * modules/getopt-posix (Makefile.am): Delete unused link warning
35517         efforts.
35518         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35519         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35520         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35521         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35522
35523         stdio: remove unused variables
35524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35525         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35526         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35527
35528         tests: test more substitute headers
35529         * modules/ctype-tests: New file.
35530         * modules/dirent-tests: Likewise.
35531         * modules/spawn-tests: Likewise.
35532         * modules/sys_file-tests: Likewise.
35533         * modules/sys_ioctl-tests: Likewise.
35534         * modules/sys_wait-tests: Likewise.
35535         * tests/test-ctype.c: Likewise.
35536         * tests/test-dirent.c: Likewise.
35537         * tests/test-spawn.c: Likewise.
35538         * tests/test-sys_file.c: Likewise.
35539         * tests/test-sys_ioctl.c: Likewise.
35540         * tests/test-sys_wait.c: Likewise.
35541         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35542         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35543         whether or not flock is in use.
35544
35545         tests: remove License section from module
35546         * modules/arpa_inet-tests: Remove unneeded section.
35547         * modules/byteswap-tests: Likewise.
35548         * modules/ceilf-tests: Likewise.
35549         * modules/ceill-tests: Likewise.
35550         * modules/crypto/des-tests: Likewise.
35551         * modules/crypto/gc-arcfour-tests: Likewise.
35552         * modules/crypto/gc-arctwo-tests: Likewise.
35553         * modules/crypto/gc-des-tests: Likewise.
35554         * modules/crypto/gc-hmac-md5-tests: Likewise.
35555         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35556         * modules/crypto/gc-md2-tests: Likewise.
35557         * modules/crypto/gc-md4-tests: Likewise.
35558         * modules/crypto/gc-md5-tests: Likewise.
35559         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35560         * modules/crypto/gc-rijndael-tests: Likewise.
35561         * modules/crypto/gc-sha1-tests: Likewise.
35562         * modules/crypto/gc-tests: Likewise.
35563         * modules/crypto/md2-tests: Likewise.
35564         * modules/crypto/md4-tests: Likewise.
35565         * modules/fcntl-h-tests: Likewise.
35566         * modules/floorf-tests: Likewise.
35567         * modules/floorl-tests: Likewise.
35568         * modules/frexp-nolibm-tests: Likewise.
35569         * modules/frexp-tests: Likewise.
35570         * modules/frexpl-nolibm-tests: Likewise.
35571         * modules/frexpl-tests: Likewise.
35572         * modules/getaddrinfo-tests: Likewise.
35573         * modules/inttypes-tests: Likewise.
35574         * modules/isfinite-tests: Likewise.
35575         * modules/isinf-tests: Likewise.
35576         * modules/ldexpl-tests: Likewise.
35577         * modules/locale-tests: Likewise.
35578         * modules/math-tests: Likewise.
35579         * modules/netdb-tests: Likewise.
35580         * modules/netinet_in-tests: Likewise.
35581         * modules/printf-frexp-tests: Likewise.
35582         * modules/printf-frexpl-tests: Likewise.
35583         * modules/priv-set-tests: Likewise.
35584         * modules/random_r-tests: Likewise.
35585         * modules/round-tests: Likewise.
35586         * modules/roundf-tests: Likewise.
35587         * modules/roundl-tests: Likewise.
35588         * modules/search-tests: Likewise.
35589         * modules/select-tests: Likewise.
35590         * modules/signal-tests: Likewise.
35591         * modules/stdbool-tests: Likewise.
35592         * modules/stddef-tests: Likewise.
35593         * modules/stdint-tests: Likewise.
35594         * modules/stdio-tests: Likewise.
35595         * modules/stdlib-tests: Likewise.
35596         * modules/string-tests: Likewise.
35597         * modules/strings-tests: Likewise.
35598         * modules/sys_select-tests: Likewise.
35599         * modules/sys_socket-tests: Likewise.
35600         * modules/sys_stat-tests: Likewise.
35601         * modules/sys_time-tests: Likewise.
35602         * modules/sys_utsname-tests: Likewise.
35603         * modules/sysexits-tests: Likewise.
35604         * modules/time-tests: Likewise.
35605         * modules/trunc-tests: Likewise.
35606         * modules/truncf-tests: Likewise.
35607         * modules/truncl-tests: Likewise.
35608         * modules/tsearch-tests: Likewise.
35609         * modules/unistd-tests: Likewise.
35610         * modules/wchar-tests: Likewise.
35611         * modules/wctype-tests: Likewise.
35612
35613         tests: fix license on several tests
35614         * tests/test-des.c: Update to GPLv3+.
35615         * tests/test-flock.c: Likewise.
35616         * tests/test-fsync.c: Likewise.
35617         * tests/test-futimens.h: Likewise.
35618         * tests/test-gc-arcfour.c: Likewise.
35619         * tests/test-gc-arctwo.c: Likewise.
35620         * tests/test-gc-des.c: Likewise.
35621         * tests/test-gc-hmac-md5.c: Likewise.
35622         * tests/test-gc-hmac-sha1.c: Likewise.
35623         * tests/test-gc-md2.c: Likewise.
35624         * tests/test-gc-md4.c: Likewise.
35625         * tests/test-gc-md5.c: Likewise.
35626         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35627         * tests/test-gc-rijndael.c: Likewise.
35628         * tests/test-gc-sha1.c: Likewise.
35629         * tests/test-gc.c: Likewise.
35630         * tests/test-getcwd.c: Likewise.
35631         * tests/test-link.c: Likewise.
35632         * tests/test-link.h: Likewise.
35633         * tests/test-lutimens.h: Likewise.
35634         * tests/test-md2.c: Likewise.
35635         * tests/test-md4.c: Likewise.
35636         * tests/test-mkdir.h: Likewise.
35637         * tests/test-rename.c: Likewise.
35638         * tests/test-rename.h: Likewise.
35639         * tests/test-safe-alloc.c: Likewise.
35640         * tests/test-utimens-common.h: Likewise.
35641         * tests/test-utimens.h: Likewise.
35642
35643         maint: sync license texts
35644         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35645         * doc/gpl-3.0.texi: Revert copyright year update.
35646         * doc/lgpl-3.0.texi: Likewise.
35647
35648 2009-12-29  Jim Meyering  <meyering@redhat.com>
35649
35650         update nearly all FSF copyright year lists to include 2009
35651         The files named by the following are exempted:
35652             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35653               test -f "$dst" && { echo "$dst"; continue; }
35654               test -d "$dst" || continue
35655               echo "$dst"/$(basename "$src")
35656             done > exempt
35657             git ls-files tests/unictype >> exempt
35658         In the remaining files, convert to all-interval notation if
35659         - there is already at least one year interval like 2000-2003
35660         - the file is maintained by me
35661         - the file is in lib/uni*/, where that style already prevails
35662         Otherwise, use update-copyright's default.
35663
35664 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35665         and Eric Blake  <ebb9@byu.net>
35666
35667         tests: don't require debug system() to pass
35668         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35669         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35670         * tests/test-unlink.h (test_unlink_func): Likewise.
35671         * tests/test-fstatat.c (main): ...into callers.
35672         * tests/test-lstat.c (main): Likewise.
35673         * tests/test-rmdir.c (main): Likewise.
35674         * tests/test-unlink.c (main): Likewise.
35675         * tests/test-unlinkat.c (main): Likewise.
35676         * tests/test-areadlink-with-size.c (main): Don't require a
35677         debug-only system call to pass, aiding cross-testing to mingw.
35678         * tests/test-areadlink.c (main): Likewise.
35679         * tests/test-areadlinkat-with-size.c (main): Likewise.
35680         * tests/test-areadlinkat.c (main): Likewise.
35681         * tests/test-canonicalize-lgpl.c (main): Likewise.
35682         * tests/test-canonicalize.c (main): Likewise.
35683         * tests/test-chown.c (main): Likewise.
35684         * tests/test-fchownat.c (main): Likewise.
35685         * tests/test-lchown.c (main): Likewise.
35686         * tests/test-fdutimensat.c (main): Likewise.
35687         * tests/test-futimens.c (main): Likewise.
35688         * tests/test-link.c (main): Likewise.
35689         * tests/test-linkat.c (main): Likewise.
35690         * tests/test-mkdir.c (main): Likewise.
35691         * tests/test-mkdirat.c (main): Likewise.
35692         * tests/test-mkfifo.c (main): Likewise.
35693         * tests/test-mkfifoat.c (main): Likewise.
35694         * tests/test-mknod.c (main): Likewise.
35695         * tests/test-readlink.c (main): Likewise.
35696         * tests/test-remove.c (main): Likewise.
35697         * tests/test-rename.c (main): Likewise.
35698         * tests/test-renameat.c (main): Likewise.
35699         * tests/test-symlink.c (main): Likewise.
35700         * tests/test-symlinkat.c (main): Likewise.
35701         * tests/test-utimens.c (main): Likewise.
35702         * tests/test-utimensat.c (main): Likewise.
35703
35704 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35705
35706         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35707         on $(UNUSED_PARAMETER_H) to avoid build failure.
35708
35709 2009-12-28  Jim Meyering  <meyering@redhat.com>
35710
35711         update-copyright: you may specify a max. line length other than 72
35712         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35713
35714         maint: use consistent FSF copyright line syntax
35715         * lib/posixtm.c: Add missing comma in FSF copyright line.
35716         * lib/posixtm.h: Likewise.
35717         * lib/getugroups.c: Add missing ", Inc.".
35718
35719         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35720         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35721         FSF copyright line.  Remove trailing blanks.
35722
35723 2009-12-28  Eric Blake  <ebb9@byu.net>
35724
35725         test-dup2: reduce dependencies
35726         * modules/cloexec (Configure.ac): Set witness.
35727         * modules/dup2-tests (Depends-on): Drop cloexec.
35728         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35729         not present.
35730         Suggested by Bruno Haible.
35731
35732 2009-12-26  Bruno Haible  <bruno@clisp.org>
35733
35734         Remove an unneeded dependency.
35735         * modules/fseterr (Depends-on): Remove dup2.
35736
35737 2009-12-26  Eric Blake  <ebb9@byu.net>
35738
35739         tests: use macros.h in more places
35740         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35741         (ASSERT_STREAM): Provide default of stderr.
35742         * tests/test-dirent-safer.c: Include macros.h, using alternate
35743         stream for assertions.
35744         * tests/test-dup-safer.c: Likewise.
35745         * tests/test-freopen-safer.c: Likewise.
35746         * tests/test-getopt.c: Likewise.
35747         * tests/test-openat-safer.c: Likewise.
35748         * tests/test-pipe.c: Likewise.
35749         * tests/test-popen-safer.c: Likewise.
35750         * modules/dirent-safer-tests (Files): Include macros.h.
35751         * modules/unistd-safer-tests (Files): Likewise.
35752         * modules/freopen-safer-tests (Files): Likewise.
35753         * modules/getopt-posix-tests (Files): Likewise.
35754         * modules/openat-safer-tests (Files): Likewise.
35755         * modules/pipe-tests (Files): Likewise.
35756
35757 2009-12-26  Bruno Haible  <bruno@clisp.org>
35758
35759         javacomp: Portability fix.
35760         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35761         that it also works on Solaris.
35762
35763 2009-12-26  Bruno Haible  <bruno@clisp.org>
35764
35765         localename: Fix storage allocation of gl_locale_name_thread's result.
35766         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35767         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35768         all platforms that have 'uselocale'.
35769         (gl_locale_name_thread_unsafe): New function, extracted from
35770         gl_locale_name_thread.
35771         (gl_locale_name_thread): Call struniq on all platforms that have
35772         'uselocale'.
35773         * tests/test-localename.c (test_locale_name_thread): Check that the
35774         resulting strings are permanently allocated.
35775         * modules/localename-tests (Depends-on): Add strdup.
35776
35777 2009-12-26  Bruno Haible  <bruno@clisp.org>
35778
35779         * tests/test-localename.c (categories): Fill in the strings.
35780
35781 2009-12-26  Jim Meyering  <meyering@redhat.com>
35782
35783         isdir: complete the removal of m4/isdir.m4
35784         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35785
35786         isdir: clean up, since at least grep still uses it
35787         * lib/isdir.c: Include "isdir.h".
35788         (S_ISDIR): Remove now-unneeded definition.
35789         * modules/isdir (Files): Add lib/isdir.h.
35790         * lib/isdir.h: New file, with declaration.
35791         * m4/isdir.m4: Remove file -- unneeded.
35792
35793 2009-12-25  Bruno Haible  <bruno@clisp.org>
35794
35795         selinux-h: Make generated .h files standalone.
35796         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35797         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35798         * lib/se-selinux.in.h: Likewise.
35799         * modules/selinux-h (Depends-on): Add unused-parameter.
35800         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35801         selinux/selinux.h and selinux/context.h.
35802         Suggested by Eric Blake.
35803
35804 2009-12-25  Bruno Haible  <bruno@clisp.org>
35805
35806         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35807         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35808         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35809         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35810         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35811
35812 2009-12-24  Bruno Haible  <bruno@clisp.org>
35813
35814         openat: Fix warning.
35815         * lib/openat-proc.c: Include <unistd.h>.
35816
35817 2009-12-24  Bruno Haible  <bruno@clisp.org>
35818
35819         New module 'unused-parameter'.
35820         * build-aux/unused-parameter.h: New file, extracted from earlier
35821         gnulib-common.m4.
35822         * modules/unused-parameter: New file.
35823         * lib/unistr.h: Include unused-parameter.h.
35824         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35825         _GL_UNUSED.
35826         * modules/unistr/base (Depends-on): Add unused-parameter.
35827
35828 2009-12-24  Bruno Haible  <bruno@clisp.org>
35829
35830         Add missing dependencies to 'extensions' module.
35831         * m4/extensions.m4: Add comment.
35832         * modules/accept4 (Depends-on): Add extensions.
35833         * modules/dup3 (Depends-on): Likewise.
35834         * modules/fcntl (Depends-on): Likewise.
35835         * modules/futimens (Depends-on): Likewise.
35836         * modules/mknod (Depends-on): Likewise.
35837         * modules/pipe2 (Depends-on): Likewise.
35838         * modules/stat-time (Depends-on): Likewise.
35839         * modules/strcasestr-simple (Depends-on): Likewise.
35840         * modules/strsignal (Depends-on): Likewise.
35841         * modules/utimensat (Depends-on): Likewise.
35842         * modules/localcharset (Depends-on): Likewise. Needed because of
35843         gl_FCNTL_O_FLAGS.
35844         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35845         AC_TYPE_MBSTATE_T.
35846         * modules/wcsnrtombs (Depends-on): Likewise.
35847         * modules/wcsrtombs (Depends-on): Likewise.
35848
35849 2009-12-24  Bruno Haible  <bruno@clisp.org>
35850
35851         binary-io: Avoid gcc warning due to SET_BINARY.
35852         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35853         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35854
35855 2009-12-24  Bruno Haible  <bruno@clisp.org>
35856
35857         Avoid future namespace pollution on glibc systems.
35858         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35859         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35860         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35861         glibc systems.
35862
35863 2009-12-24  Bruno Haible  <bruno@clisp.org>
35864
35865         Refactor common macros used in tests.
35866         * tests/macros.h: New file.
35867         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35868         and/or <stdlib.h>, if appropriate.
35869         (ASSERT, SIZEOF): Remove macros.
35870         * tests/test-areadlink-with-size.c: Likewise.
35871         * tests/test-areadlinkat.c: Likewise.
35872         * tests/test-areadlinkat-with-size.c: Likewise.
35873         * tests/test-argmatch.c: Likewise.
35874         * tests/test-argv-iter.c: Likewise.
35875         * tests/test-array-mergesort.c: Likewise.
35876         * tests/test-array_list.c: Likewise.
35877         * tests/test-array_oset.c: Likewise.
35878         * tests/test-avltree_list.c: Likewise.
35879         * tests/test-avltree_oset.c: Likewise.
35880         * tests/test-avltreehash_list.c: Likewise.
35881         * tests/test-base64.c: Likewise.
35882         * tests/test-binary-io.c: Likewise.
35883         * tests/test-bitrotate.c: Likewise.
35884         * tests/test-btowc.c: Likewise.
35885         * tests/test-byteswap.c: Likewise.
35886         * tests/test-c-ctype.c: Likewise.
35887         * tests/test-c-stack.c: Likewise.
35888         * tests/test-c-strcasecmp.c: Likewise.
35889         * tests/test-c-strcasestr.c: Likewise.
35890         * tests/test-c-strncasecmp.c: Likewise.
35891         * tests/test-c-strstr.c: Likewise.
35892         * tests/test-canonicalize-lgpl.c: Likewise.
35893         * tests/test-canonicalize.c: Likewise.
35894         * tests/test-carray_list.c: Likewise.
35895         * tests/test-ceilf1.c: Likewise.
35896         * tests/test-ceilf2.c: Likewise.
35897         * tests/test-ceill.c: Likewise.
35898         * tests/test-chown.c: Likewise.
35899         * tests/test-cloexec.c: Likewise.
35900         * tests/test-copy-acl.c: Likewise.
35901         * tests/test-copy-file.c: Likewise.
35902         * tests/test-count-one-bits.c: Likewise.
35903         * tests/test-dprintf-posix.c: Likewise.
35904         * tests/test-dup2.c: Likewise.
35905         * tests/test-dup3.c: Likewise.
35906         * tests/test-duplocale.c: Likewise.
35907         * tests/test-fbufmode.c: Likewise.
35908         * tests/test-fchdir.c: Likewise.
35909         * tests/test-fchownat.c: Likewise.
35910         * tests/test-fcntl-safer.c: Likewise.
35911         * tests/test-fcntl.c: Likewise.
35912         * tests/test-fdopendir.c: Likewise.
35913         * tests/test-fdutimensat.c: Likewise.
35914         * tests/test-fflush2.c: Likewise.
35915         * tests/test-file-has-acl.c: Likewise.
35916         * tests/test-filevercmp.c: Likewise.
35917         * tests/test-flock.c: Likewise.
35918         * tests/test-floorf1.c: Likewise.
35919         * tests/test-floorf2.c: Likewise.
35920         * tests/test-floorl.c: Likewise.
35921         * tests/test-fnmatch.c: Likewise.
35922         * tests/test-fopen.h: Likewise.
35923         * tests/test-fpending.c: Likewise.
35924         * tests/test-fprintf-posix.c: Likewise.
35925         * tests/test-fpurge.c: Likewise.
35926         * tests/test-freadable.c: Likewise.
35927         * tests/test-freadahead.c: Likewise.
35928         * tests/test-freading.c: Likewise.
35929         * tests/test-freadptr.c: Likewise.
35930         * tests/test-freadptr2.c: Likewise.
35931         * tests/test-freadseek.c: Likewise.
35932         * tests/test-freopen.c: Likewise.
35933         * tests/test-frexp.c: Likewise.
35934         * tests/test-frexpl.c: Likewise.
35935         * tests/test-fseek.c: Likewise.
35936         * tests/test-fseeko.c: Likewise.
35937         * tests/test-fstatat.c: Likewise.
35938         * tests/test-fstrcmp.c: Likewise.
35939         * tests/test-fsync.c: Likewise.
35940         * tests/test-ftell.c: Likewise.
35941         * tests/test-ftello.c: Likewise.
35942         * tests/test-func.c: Likewise.
35943         * tests/test-futimens.c: Likewise.
35944         * tests/test-fwritable.c: Likewise.
35945         * tests/test-fwriting.c: Likewise.
35946         * tests/test-getcwd.c: Likewise.
35947         * tests/test-getdate.c: Likewise.
35948         * tests/test-getdelim.c: Likewise.
35949         * tests/test-getdtablesize.c: Likewise.
35950         * tests/test-getgroups.c: Likewise.
35951         * tests/test-getline.c: Likewise.
35952         * tests/test-getndelim2.c: Likewise.
35953         * tests/test-glob.c: Likewise.
35954         * tests/test-hash.c: Likewise.
35955         * tests/test-i-ring.c: Likewise.
35956         * tests/test-iconv-utf.c: Likewise.
35957         * tests/test-iconv.c: Likewise.
35958         * tests/test-idpriv-drop.c: Likewise.
35959         * tests/test-idpriv-droptemp.c: Likewise.
35960         * tests/test-inet_ntop.c: Likewise.
35961         * tests/test-inet_pton.c: Likewise.
35962         * tests/test-isblank.c: Likewise.
35963         * tests/test-isfinite.c: Likewise.
35964         * tests/test-isinf.c: Likewise.
35965         * tests/test-isnan.c: Likewise.
35966         * tests/test-isnand.h: Likewise.
35967         * tests/test-isnanf.h: Likewise.
35968         * tests/test-isnanl.h: Likewise.
35969         * tests/test-lchown.c: Likewise.
35970         * tests/test-ldexpl.c: Likewise.
35971         * tests/test-link.c: Likewise.
35972         * tests/test-linkat.c: Likewise.
35973         * tests/test-linked_list.c: Likewise.
35974         * tests/test-linkedhash_list.c: Likewise.
35975         * tests/test-localename.c: Likewise.
35976         * tests/test-lseek.c: Likewise.
35977         * tests/test-lstat.c: Likewise.
35978         * tests/test-mbmemcasecmp.c: Likewise.
35979         * tests/test-mbmemcasecoll.c: Likewise.
35980         * tests/test-mbrtowc.c: Likewise.
35981         * tests/test-mbscasecmp.c: Likewise.
35982         * tests/test-mbscasestr1.c: Likewise.
35983         * tests/test-mbscasestr2.c: Likewise.
35984         * tests/test-mbscasestr3.c: Likewise.
35985         * tests/test-mbscasestr4.c: Likewise.
35986         * tests/test-mbschr.c: Likewise.
35987         * tests/test-mbscspn.c: Likewise.
35988         * tests/test-mbsinit.c: Likewise.
35989         * tests/test-mbsncasecmp.c: Likewise.
35990         * tests/test-mbsnrtowcs.c: Likewise.
35991         * tests/test-mbspbrk.c: Likewise.
35992         * tests/test-mbspcasecmp.c: Likewise.
35993         * tests/test-mbsrchr.c: Likewise.
35994         * tests/test-mbsrtowcs.c: Likewise.
35995         * tests/test-mbsspn.c: Likewise.
35996         * tests/test-mbsstr1.c: Likewise.
35997         * tests/test-mbsstr2.c: Likewise.
35998         * tests/test-mbsstr3.c: Likewise.
35999         * tests/test-memchr.c: Likewise.
36000         * tests/test-memchr2.c: Likewise.
36001         * tests/test-memcmp.c: Likewise.
36002         * tests/test-memmem.c: Likewise.
36003         * tests/test-memrchr.c: Likewise.
36004         * tests/test-mkdir.c: Likewise.
36005         * tests/test-mkdirat.c: Likewise.
36006         * tests/test-mkfifo.c: Likewise.
36007         * tests/test-mkfifoat.c: Likewise.
36008         * tests/test-mknod.c: Likewise.
36009         * tests/test-nanosleep.c: Likewise.
36010         * tests/test-nl_langinfo.c: Likewise.
36011         * tests/test-obstack-printf.c: Likewise.
36012         * tests/test-open.c: Likewise.
36013         * tests/test-openat.c: Likewise.
36014         * tests/test-pipe-filter-gi1.c: Likewise.
36015         * tests/test-pipe-filter-gi2-main.c: Likewise.
36016         * tests/test-pipe-filter-ii1.c: Likewise.
36017         * tests/test-pipe-filter-ii2-main.c: Likewise.
36018         * tests/test-pipe2.c: Likewise.
36019         * tests/test-popen.h: Likewise.
36020         * tests/test-posixtm.c: Likewise.
36021         * tests/test-pread.c: Likewise.
36022         * tests/test-printf-frexp.c: Likewise.
36023         * tests/test-printf-frexpl.c: Likewise.
36024         * tests/test-printf-posix.c: Likewise.
36025         * tests/test-priv-set.c: Likewise.
36026         * tests/test-quotearg.c: Likewise.
36027         * tests/test-random_r.c: Likewise.
36028         * tests/test-rawmemchr.c: Likewise.
36029         * tests/test-rbtree_list.c: Likewise.
36030         * tests/test-rbtree_oset.c: Likewise.
36031         * tests/test-rbtreehash_list.c: Likewise.
36032         * tests/test-readlink.c: Likewise.
36033         * tests/test-remove.c: Likewise.
36034         * tests/test-rename.c: Likewise.
36035         * tests/test-renameat.c: Likewise.
36036         * tests/test-rmdir.c: Likewise.
36037         * tests/test-round1.c: Likewise.
36038         * tests/test-roundf1.c: Likewise.
36039         * tests/test-roundl.c: Likewise.
36040         * tests/test-safe-alloc.c: Likewise.
36041         * tests/test-sameacls.c: Likewise.
36042         * tests/test-set-mode-acl.c: Likewise.
36043         * tests/test-setenv.c: Likewise.
36044         * tests/test-sigaction.c: Likewise.
36045         * tests/test-signbit.c: Likewise.
36046         * tests/test-sleep.c: Likewise.
36047         * tests/test-snprintf-posix.c: Likewise.
36048         * tests/test-snprintf.c: Likewise.
36049         * tests/test-sprintf-posix.c: Likewise.
36050         * tests/test-stat-time.c: Likewise.
36051         * tests/test-stat.c: Likewise.
36052         * tests/test-strcasestr.c: Likewise.
36053         * tests/test-strchrnul.c: Likewise.
36054         * tests/test-strerror.c: Likewise.
36055         * tests/test-striconv.c: Likewise.
36056         * tests/test-striconveh.c: Likewise.
36057         * tests/test-striconveha.c: Likewise.
36058         * tests/test-strsignal.c: Likewise.
36059         * tests/test-strstr.c: Likewise.
36060         * tests/test-strtod.c: Likewise.
36061         * tests/test-strverscmp.c: Likewise.
36062         * tests/test-symlink.c: Likewise.
36063         * tests/test-symlinkat.c: Likewise.
36064         * tests/test-trunc1.c: Likewise.
36065         * tests/test-trunc2.c: Likewise.
36066         * tests/test-truncf1.c: Likewise.
36067         * tests/test-truncf2.c: Likewise.
36068         * tests/test-truncl.c: Likewise.
36069         * tests/test-uname.c: Likewise.
36070         * tests/test-unlink.c: Likewise.
36071         * tests/test-unlinkat.c: Likewise.
36072         * tests/test-unsetenv.c: Likewise.
36073         * tests/test-usleep.c: Likewise.
36074         * tests/test-utimens.c: Likewise.
36075         * tests/test-utimensat.c: Likewise.
36076         * tests/test-vasnprintf-posix.c: Likewise.
36077         * tests/test-vasnprintf-posix2.c: Likewise.
36078         * tests/test-vasnprintf.c: Likewise.
36079         * tests/test-vasprintf-posix.c: Likewise.
36080         * tests/test-vasprintf.c: Likewise.
36081         * tests/test-vdprintf-posix.c: Likewise.
36082         * tests/test-vfprintf-posix.c: Likewise.
36083         * tests/test-vprintf-posix.c: Likewise.
36084         * tests/test-vsnprintf-posix.c: Likewise.
36085         * tests/test-vsnprintf.c: Likewise.
36086         * tests/test-vsprintf-posix.c: Likewise.
36087         * tests/test-wcrtomb.c: Likewise.
36088         * tests/test-wcsnrtombs.c: Likewise.
36089         * tests/test-wcsrtombs.c: Likewise.
36090         * tests/test-wctype.c: Likewise.
36091         * tests/test-wcwidth.c: Likewise.
36092         * tests/test-xfprintf-posix.c: Likewise.
36093         * tests/test-xmemdup0.c: Likewise.
36094         * tests/test-xprintf-posix.c: Likewise.
36095         * tests/test-xvasprintf.c: Likewise.
36096         * tests/unicase/test-locale-language.c: Likewise.
36097         * tests/unicase/test-mapping-part1.h: Likewise.
36098         * tests/unicase/test-predicate-part1.h: Likewise.
36099         * tests/unicase/test-u8-casecmp.c: Likewise.
36100         * tests/unicase/test-u8-casecoll.c: Likewise.
36101         * tests/unicase/test-u8-casefold.c: Likewise.
36102         * tests/unicase/test-u8-is-cased.c: Likewise.
36103         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36104         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36105         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36106         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36107         * tests/unicase/test-u8-tolower.c: Likewise.
36108         * tests/unicase/test-u8-totitle.c: Likewise.
36109         * tests/unicase/test-u8-toupper.c: Likewise.
36110         * tests/unicase/test-u16-casecmp.c: Likewise.
36111         * tests/unicase/test-u16-casecoll.c: Likewise.
36112         * tests/unicase/test-u16-casefold.c: Likewise.
36113         * tests/unicase/test-u16-is-cased.c: Likewise.
36114         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36115         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36116         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36117         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36118         * tests/unicase/test-u16-tolower.c: Likewise.
36119         * tests/unicase/test-u16-totitle.c: Likewise.
36120         * tests/unicase/test-u16-toupper.c: Likewise.
36121         * tests/unicase/test-u32-casecmp.c: Likewise.
36122         * tests/unicase/test-u32-casecoll.c: Likewise.
36123         * tests/unicase/test-u32-casefold.c: Likewise.
36124         * tests/unicase/test-u32-is-cased.c: Likewise.
36125         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36126         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36127         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36128         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36129         * tests/unicase/test-u32-tolower.c: Likewise.
36130         * tests/unicase/test-u32-totitle.c: Likewise.
36131         * tests/unicase/test-u32-toupper.c: Likewise.
36132         * tests/unicase/test-ulc-casecmp.c: Likewise.
36133         * tests/unicase/test-ulc-casecoll.c: Likewise.
36134         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36135         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36136         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36137         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36138         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36139         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36140         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36141         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36142         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36143         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36144         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36145         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36146         * tests/unictype/test-bidi_byname.c: Likewise.
36147         * tests/unictype/test-bidi_name.c: Likewise.
36148         * tests/unictype/test-bidi_of.c: Likewise.
36149         * tests/unictype/test-bidi_test.c: Likewise.
36150         * tests/unictype/test-block_list.c: Likewise.
36151         * tests/unictype/test-block_of.c: Likewise.
36152         * tests/unictype/test-block_test.c: Likewise.
36153         * tests/unictype/test-categ_and.c: Likewise.
36154         * tests/unictype/test-categ_and_not.c: Likewise.
36155         * tests/unictype/test-categ_byname.c: Likewise.
36156         * tests/unictype/test-categ_name.c: Likewise.
36157         * tests/unictype/test-categ_none.c: Likewise.
36158         * tests/unictype/test-categ_of.c: Likewise.
36159         * tests/unictype/test-categ_or.c: Likewise.
36160         * tests/unictype/test-categ_test_withtable.c: Likewise.
36161         * tests/unictype/test-combining.c: Likewise.
36162         * tests/unictype/test-decdigit.c: Likewise.
36163         * tests/unictype/test-digit.c: Likewise.
36164         * tests/unictype/test-mirror.c: Likewise.
36165         * tests/unictype/test-numeric.c: Likewise.
36166         * tests/unictype/test-pr_byname.c: Likewise.
36167         * tests/unictype/test-pr_test.c: Likewise.
36168         * tests/unictype/test-predicate-part1.h: Likewise.
36169         * tests/unictype/test-scripts.c: Likewise.
36170         * tests/unictype/test-sy_c_ident.c: Likewise.
36171         * tests/unictype/test-sy_java_ident.c: Likewise.
36172         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36173         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36174         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36175         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36176         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36177         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36178         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36179         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36180         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36181         * tests/uninorm/test-compat-decomposition.c: Likewise.
36182         * tests/uninorm/test-composition.c: Likewise.
36183         * tests/uninorm/test-decomposing-form.c: Likewise.
36184         * tests/uninorm/test-decomposition.c: Likewise.
36185         * tests/uninorm/test-u8-nfc.c: Likewise.
36186         * tests/uninorm/test-u8-nfd.c: Likewise.
36187         * tests/uninorm/test-u8-nfkc.c: Likewise.
36188         * tests/uninorm/test-u8-nfkd.c: Likewise.
36189         * tests/uninorm/test-u8-normcmp.c: Likewise.
36190         * tests/uninorm/test-u8-normcoll.c: Likewise.
36191         * tests/uninorm/test-u16-nfc.c: Likewise.
36192         * tests/uninorm/test-u16-nfd.c: Likewise.
36193         * tests/uninorm/test-u16-nfkc.c: Likewise.
36194         * tests/uninorm/test-u16-nfkd.c: Likewise.
36195         * tests/uninorm/test-u16-normcmp.c: Likewise.
36196         * tests/uninorm/test-u16-normcoll.c: Likewise.
36197         * tests/uninorm/test-u32-nfc.c: Likewise.
36198         * tests/uninorm/test-u32-nfd.c: Likewise.
36199         * tests/uninorm/test-u32-nfkc.c: Likewise.
36200         * tests/uninorm/test-u32-nfkd.c: Likewise.
36201         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36202         * tests/uninorm/test-u32-normcmp.c: Likewise.
36203         * tests/uninorm/test-u32-normcoll.c: Likewise.
36204         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36205         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36206         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36207         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36208         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36209         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36210         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36211         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36212         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36213         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36214         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36215         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36216         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36217         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36218         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36219         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36220         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36221         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36222         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36223         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36224         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36225         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36226         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36227         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36228         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36229         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36230         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36231         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36232         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36233         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36234         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36235         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36236         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36237         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36238         * tests/uniwidth/test-u8-width.c: Likewise.
36239         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36240         * tests/uniwidth/test-u16-width.c: Likewise.
36241         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36242         * tests/uniwidth/test-u32-width.c: Likewise.
36243         * tests/uniwidth/test-uc_width.c: Likewise.
36244         * tests/uniwidth/test-uc_width2.c: Likewise.
36245         * modules/acl-tests (Files): Add tests/macros.h.
36246         * modules/areadlink-tests (Files): Likewise.
36247         * modules/areadlink-with-size-tests (Files): Likewise.
36248         * modules/areadlinkat-tests (Files): Likewise.
36249         * modules/areadlinkat-with-size-tests (Files): Likewise.
36250         * modules/argmatch-tests (Files): Likewise.
36251         * modules/argv-iter-tests (Files): Likewise.
36252         * modules/array-list-tests (Files): Likewise.
36253         * modules/array-mergesort-tests (Files): Likewise.
36254         * modules/array-oset-tests (Files): Likewise.
36255         * modules/avltree-list-tests (Files): Likewise.
36256         * modules/avltree-oset-tests (Files): Likewise.
36257         * modules/avltreehash-list-tests (Files): Likewise.
36258         * modules/base64-tests (Files): Likewise.
36259         * modules/binary-io-tests (Files): Likewise.
36260         * modules/bitrotate-tests (Files): Likewise.
36261         * modules/btowc-tests (Files): Likewise.
36262         * modules/byteswap-tests (Files): Likewise.
36263         * modules/c-ctype-tests (Files): Likewise.
36264         * modules/c-stack-tests (Files): Likewise.
36265         * modules/c-strcase-tests (Files): Likewise.
36266         * modules/c-strcasestr-tests (Files): Likewise.
36267         * modules/c-strstr-tests (Files): Likewise.
36268         * modules/canonicalize-lgpl-tests (Files): Likewise.
36269         * modules/canonicalize-tests (Files): Likewise.
36270         * modules/carray-list-tests (Files): Likewise.
36271         * modules/ceilf-tests (Files): Likewise.
36272         * modules/ceill-tests (Files): Likewise.
36273         * modules/chown-tests (Files): Likewise.
36274         * modules/cloexec-tests (Files): Likewise.
36275         * modules/copy-file-tests (Files): Likewise.
36276         * modules/count-one-bits-tests (Files): Likewise.
36277         * modules/dprintf-posix-tests (Files): Likewise.
36278         * modules/dup2-tests (Files): Likewise.
36279         * modules/dup3-tests (Files): Likewise.
36280         * modules/duplocale-tests (Files): Likewise.
36281         * modules/fbufmode-tests (Files): Likewise.
36282         * modules/fchdir-tests (Files): Likewise.
36283         * modules/fcntl-safer-tests (Files): Likewise.
36284         * modules/fcntl-tests (Files): Likewise.
36285         * modules/fdopendir-tests (Files): Likewise.
36286         * modules/fdutimensat-tests (Files): Likewise.
36287         * modules/fflush-tests (Files): Likewise.
36288         * modules/filevercmp-tests (Files): Likewise.
36289         * modules/flock-tests (Files): Likewise.
36290         * modules/floorf-tests (Files): Likewise.
36291         * modules/floorl-tests (Files): Likewise.
36292         * modules/fnmatch-tests (Files): Likewise.
36293         * modules/fopen-safer-tests (Files): Likewise.
36294         * modules/fopen-tests (Files): Likewise.
36295         * modules/fpending-tests (Files): Likewise.
36296         * modules/fprintf-posix-tests (Files): Likewise.
36297         * modules/fpurge-tests (Files): Likewise.
36298         * modules/freadable-tests (Files): Likewise.
36299         * modules/freadahead-tests (Files): Likewise.
36300         * modules/freading-tests (Files): Likewise.
36301         * modules/freadptr-tests (Files): Likewise.
36302         * modules/freadseek-tests (Files): Likewise.
36303         * modules/freopen-tests (Files): Likewise.
36304         * modules/frexp-nolibm-tests (Files): Likewise.
36305         * modules/frexp-tests (Files): Likewise.
36306         * modules/frexpl-nolibm-tests (Files): Likewise.
36307         * modules/frexpl-tests (Files): Likewise.
36308         * modules/fseek-tests (Files): Likewise.
36309         * modules/fseeko-tests (Files): Likewise.
36310         * modules/fstrcmp-tests (Files): Likewise.
36311         * modules/fsync-tests (Files): Likewise.
36312         * modules/ftell-tests (Files): Likewise.
36313         * modules/ftello-tests (Files): Likewise.
36314         * modules/func-tests (Files): Likewise.
36315         * modules/futimens-tests (Files): Likewise.
36316         * modules/fwritable-tests (Files): Likewise.
36317         * modules/fwriting-tests (Files): Likewise.
36318         * modules/getcwd-tests (Files): Likewise.
36319         * modules/getdate-tests (Files): Likewise.
36320         * modules/getdelim-tests (Files): Likewise.
36321         * modules/getdtablesize-tests (Files): Likewise.
36322         * modules/getgroups-tests (Files): Likewise.
36323         * modules/getline-tests (Files): Likewise.
36324         * modules/getndelim2-tests (Files): Likewise.
36325         * modules/glob-tests (Files): Likewise.
36326         * modules/hash-tests (Files): Likewise.
36327         * modules/i-ring-tests (Files): Likewise.
36328         * modules/iconv-tests (Files): Likewise.
36329         * modules/iconv_open-utf-tests (Files): Likewise.
36330         * modules/idpriv-drop-tests (Files): Likewise.
36331         * modules/idpriv-droptemp-tests (Files): Likewise.
36332         * modules/inet_ntop-tests (Files): Likewise.
36333         * modules/inet_pton-tests (Files): Likewise.
36334         * modules/isblank-tests (Files): Likewise.
36335         * modules/isfinite-tests (Files): Likewise.
36336         * modules/isinf-tests (Files): Likewise.
36337         * modules/isnan-tests (Files): Likewise.
36338         * modules/isnand-nolibm-tests (Files): Likewise.
36339         * modules/isnand-tests (Files): Likewise.
36340         * modules/isnanf-nolibm-tests (Files): Likewise.
36341         * modules/isnanf-tests (Files): Likewise.
36342         * modules/isnanl-nolibm-tests (Files): Likewise.
36343         * modules/isnanl-tests (Files): Likewise.
36344         * modules/lchown-tests (Files): Likewise.
36345         * modules/ldexpl-tests (Files): Likewise.
36346         * modules/link-tests (Files): Likewise.
36347         * modules/linkat-tests (Files): Likewise.
36348         * modules/linked-list-tests (Files): Likewise.
36349         * modules/linkedhash-list-tests (Files): Likewise.
36350         * modules/localename-tests (Files): Likewise.
36351         * modules/lseek-tests (Files): Likewise.
36352         * modules/lstat-tests (Files): Likewise.
36353         * modules/mbmemcasecmp-tests (Files): Likewise.
36354         * modules/mbmemcasecoll-tests (Files): Likewise.
36355         * modules/mbrtowc-tests (Files): Likewise.
36356         * modules/mbscasecmp-tests (Files): Likewise.
36357         * modules/mbscasestr-tests (Files): Likewise.
36358         * modules/mbschr-tests (Files): Likewise.
36359         * modules/mbscspn-tests (Files): Likewise.
36360         * modules/mbsinit-tests (Files): Likewise.
36361         * modules/mbsncasecmp-tests (Files): Likewise.
36362         * modules/mbsnrtowcs-tests (Files): Likewise.
36363         * modules/mbspbrk-tests (Files): Likewise.
36364         * modules/mbspcasecmp-tests (Files): Likewise.
36365         * modules/mbsrchr-tests (Files): Likewise.
36366         * modules/mbsrtowcs-tests (Files): Likewise.
36367         * modules/mbsspn-tests (Files): Likewise.
36368         * modules/mbsstr-tests (Files): Likewise.
36369         * modules/memchr-tests (Files): Likewise.
36370         * modules/memchr2-tests (Files): Likewise.
36371         * modules/memcmp-tests (Files): Likewise.
36372         * modules/memmem-tests (Files): Likewise.
36373         * modules/memrchr-tests (Files): Likewise.
36374         * modules/mkdir-tests (Files): Likewise.
36375         * modules/mkfifo-tests (Files): Likewise.
36376         * modules/mkfifoat-tests (Files): Likewise.
36377         * modules/mknod-tests (Files): Likewise.
36378         * modules/nanosleep-tests (Files): Likewise.
36379         * modules/nl_langinfo-tests (Files): Likewise.
36380         * modules/obstack-printf-tests (Files): Likewise.
36381         * modules/open-tests (Files): Likewise.
36382         * modules/openat-tests (Files): Likewise.
36383         * modules/pipe-filter-gi-tests (Files): Likewise.
36384         * modules/pipe-filter-ii-tests (Files): Likewise.
36385         * modules/pipe2-tests (Files): Likewise.
36386         * modules/popen-safer-tests (Files): Likewise.
36387         * modules/popen-tests (Files): Likewise.
36388         * modules/posixtm-tests (Files): Likewise.
36389         * modules/pread-tests (Files): Likewise.
36390         * modules/printf-frexp-tests (Files): Likewise.
36391         * modules/printf-frexpl-tests (Files): Likewise.
36392         * modules/printf-posix-tests (Files): Likewise.
36393         * modules/priv-set-tests (Files): Likewise.
36394         * modules/quotearg-tests (Files): Likewise.
36395         * modules/random_r-tests (Files): Likewise.
36396         * modules/rawmemchr-tests (Files): Likewise.
36397         * modules/rbtree-list-tests (Files): Likewise.
36398         * modules/rbtree-oset-tests (Files): Likewise.
36399         * modules/rbtreehash-list-tests (Files): Likewise.
36400         * modules/readlink-tests (Files): Likewise.
36401         * modules/remove-tests (Files): Likewise.
36402         * modules/rename-tests (Files): Likewise.
36403         * modules/renameat-tests (Files): Likewise.
36404         * modules/rmdir-tests (Files): Likewise.
36405         * modules/round-tests (Files): Likewise.
36406         * modules/roundf-tests (Files): Likewise.
36407         * modules/roundl-tests (Files): Likewise.
36408         * modules/safe-alloc-tests (Files): Likewise.
36409         * modules/setenv-tests (Files): Likewise.
36410         * modules/sigaction-tests (Files): Likewise.
36411         * modules/signbit-tests (Files): Likewise.
36412         * modules/sleep-tests (Files): Likewise.
36413         * modules/snprintf-posix-tests (Files): Likewise.
36414         * modules/snprintf-tests (Files): Likewise.
36415         * modules/sprintf-posix-tests (Files): Likewise.
36416         * modules/stat-tests (Files): Likewise.
36417         * modules/stat-time-tests (Files): Likewise.
36418         * modules/strcasestr-tests (Files): Likewise.
36419         * modules/strchrnul-tests (Files): Likewise.
36420         * modules/strerror-tests (Files): Likewise.
36421         * modules/striconv-tests (Files): Likewise.
36422         * modules/striconveh-tests (Files): Likewise.
36423         * modules/striconveha-tests (Files): Likewise.
36424         * modules/strsignal-tests (Files): Likewise.
36425         * modules/strstr-tests (Files): Likewise.
36426         * modules/strtod-tests (Files): Likewise.
36427         * modules/strverscmp-tests (Files): Likewise.
36428         * modules/symlink-tests (Files): Likewise.
36429         * modules/symlinkat-tests (Files): Likewise.
36430         * modules/trunc-tests (Files): Likewise.
36431         * modules/truncf-tests (Files): Likewise.
36432         * modules/truncl-tests (Files): Likewise.
36433         * modules/uname-tests (Files): Likewise.
36434         * modules/unicase/cased-tests (Files): Likewise.
36435         * modules/unicase/ignorable-tests (Files): Likewise.
36436         * modules/unicase/locale-language-tests (Files): Likewise.
36437         * modules/unicase/tolower-tests (Files): Likewise.
36438         * modules/unicase/totitle-tests (Files): Likewise.
36439         * modules/unicase/toupper-tests (Files): Likewise.
36440         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36441         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36442         * modules/unicase/u8-casefold-tests (Files): Likewise.
36443         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36444         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36445         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36446         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36447         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36448         * modules/unicase/u8-tolower-tests (Files): Likewise.
36449         * modules/unicase/u8-totitle-tests (Files): Likewise.
36450         * modules/unicase/u8-toupper-tests (Files): Likewise.
36451         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36452         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36453         * modules/unicase/u16-casefold-tests (Files): Likewise.
36454         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36455         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36456         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36457         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36458         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36459         * modules/unicase/u16-tolower-tests (Files): Likewise.
36460         * modules/unicase/u16-totitle-tests (Files): Likewise.
36461         * modules/unicase/u16-toupper-tests (Files): Likewise.
36462         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36463         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36464         * modules/unicase/u32-casefold-tests (Files): Likewise.
36465         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36466         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36467         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36468         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36469         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36470         * modules/unicase/u32-tolower-tests (Files): Likewise.
36471         * modules/unicase/u32-totitle-tests (Files): Likewise.
36472         * modules/unicase/u32-toupper-tests (Files): Likewise.
36473         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36474         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36475         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36476         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36477         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36478         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36479         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36480         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36481         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36482         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36483         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36484         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36485         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36486         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36487         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36488         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36489         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36490         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36491         * modules/unictype/block-list-tests (Files): Likewise.
36492         * modules/unictype/block-of-tests (Files): Likewise.
36493         * modules/unictype/block-test-tests (Files): Likewise.
36494         * modules/unictype/category-C-tests (Files): Likewise.
36495         * modules/unictype/category-Cc-tests (Files): Likewise.
36496         * modules/unictype/category-Cf-tests (Files): Likewise.
36497         * modules/unictype/category-Cn-tests (Files): Likewise.
36498         * modules/unictype/category-Co-tests (Files): Likewise.
36499         * modules/unictype/category-Cs-tests (Files): Likewise.
36500         * modules/unictype/category-L-tests (Files): Likewise.
36501         * modules/unictype/category-Ll-tests (Files): Likewise.
36502         * modules/unictype/category-Lm-tests (Files): Likewise.
36503         * modules/unictype/category-Lo-tests (Files): Likewise.
36504         * modules/unictype/category-Lt-tests (Files): Likewise.
36505         * modules/unictype/category-Lu-tests (Files): Likewise.
36506         * modules/unictype/category-M-tests (Files): Likewise.
36507         * modules/unictype/category-Mc-tests (Files): Likewise.
36508         * modules/unictype/category-Me-tests (Files): Likewise.
36509         * modules/unictype/category-Mn-tests (Files): Likewise.
36510         * modules/unictype/category-N-tests (Files): Likewise.
36511         * modules/unictype/category-Nd-tests (Files): Likewise.
36512         * modules/unictype/category-Nl-tests (Files): Likewise.
36513         * modules/unictype/category-No-tests (Files): Likewise.
36514         * modules/unictype/category-P-tests (Files): Likewise.
36515         * modules/unictype/category-Pc-tests (Files): Likewise.
36516         * modules/unictype/category-Pd-tests (Files): Likewise.
36517         * modules/unictype/category-Pe-tests (Files): Likewise.
36518         * modules/unictype/category-Pf-tests (Files): Likewise.
36519         * modules/unictype/category-Pi-tests (Files): Likewise.
36520         * modules/unictype/category-Po-tests (Files): Likewise.
36521         * modules/unictype/category-Ps-tests (Files): Likewise.
36522         * modules/unictype/category-S-tests (Files): Likewise.
36523         * modules/unictype/category-Sc-tests (Files): Likewise.
36524         * modules/unictype/category-Sk-tests (Files): Likewise.
36525         * modules/unictype/category-Sm-tests (Files): Likewise.
36526         * modules/unictype/category-So-tests (Files): Likewise.
36527         * modules/unictype/category-Z-tests (Files): Likewise.
36528         * modules/unictype/category-Zl-tests (Files): Likewise.
36529         * modules/unictype/category-Zp-tests (Files): Likewise.
36530         * modules/unictype/category-Zs-tests (Files): Likewise.
36531         * modules/unictype/category-and-not-tests (Files): Likewise.
36532         * modules/unictype/category-and-tests (Files): Likewise.
36533         * modules/unictype/category-byname-tests (Files): Likewise.
36534         * modules/unictype/category-name-tests (Files): Likewise.
36535         * modules/unictype/category-none-tests (Files): Likewise.
36536         * modules/unictype/category-of-tests (Files): Likewise.
36537         * modules/unictype/category-or-tests (Files): Likewise.
36538         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36539         * modules/unictype/combining-class-tests (Files): Likewise.
36540         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36541         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36542         * modules/unictype/ctype-blank-tests (Files): Likewise.
36543         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36544         * modules/unictype/ctype-digit-tests (Files): Likewise.
36545         * modules/unictype/ctype-graph-tests (Files): Likewise.
36546         * modules/unictype/ctype-lower-tests (Files): Likewise.
36547         * modules/unictype/ctype-print-tests (Files): Likewise.
36548         * modules/unictype/ctype-punct-tests (Files): Likewise.
36549         * modules/unictype/ctype-space-tests (Files): Likewise.
36550         * modules/unictype/ctype-upper-tests (Files): Likewise.
36551         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36552         * modules/unictype/decimal-digit-tests (Files): Likewise.
36553         * modules/unictype/digit-tests (Files): Likewise.
36554         * modules/unictype/mirror-tests (Files): Likewise.
36555         * modules/unictype/numeric-tests (Files): Likewise.
36556         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36557         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36558         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36559         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36560         Likewise.
36561         * modules/unictype/property-bidi-block-separator-tests (Files):
36562         Likewise.
36563         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36564         Likewise.
36565         * modules/unictype/property-bidi-common-separator-tests (Files):
36566         Likewise.
36567         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36568         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36569         Likewise.
36570         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36571         Likewise.
36572         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36573         Likewise.
36574         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36575         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36576         Likewise.
36577         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36578         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36579         Likewise.
36580         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36581         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36582         * modules/unictype/property-bidi-segment-separator-tests (Files):
36583         Likewise.
36584         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36585         * modules/unictype/property-byname-tests (Files): Likewise.
36586         * modules/unictype/property-combining-tests (Files): Likewise.
36587         * modules/unictype/property-composite-tests (Files): Likewise.
36588         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36589         * modules/unictype/property-dash-tests (Files): Likewise.
36590         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36591         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36592         Likewise.
36593         * modules/unictype/property-deprecated-tests (Files): Likewise.
36594         * modules/unictype/property-diacritic-tests (Files): Likewise.
36595         * modules/unictype/property-extender-tests (Files): Likewise.
36596         * modules/unictype/property-format-control-tests (Files): Likewise.
36597         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36598         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36599         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36600         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36601         * modules/unictype/property-hyphen-tests (Files): Likewise.
36602         * modules/unictype/property-id-continue-tests (Files): Likewise.
36603         * modules/unictype/property-id-start-tests (Files): Likewise.
36604         * modules/unictype/property-ideographic-tests (Files): Likewise.
36605         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36606         * modules/unictype/property-ids-trinary-operator-tests (Files):
36607         Likewise.
36608         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36609         * modules/unictype/property-iso-control-tests (Files): Likewise.
36610         * modules/unictype/property-join-control-tests (Files): Likewise.
36611         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36612         * modules/unictype/property-line-separator-tests (Files): Likewise.
36613         * modules/unictype/property-logical-order-exception-tests (Files):
36614         Likewise.
36615         * modules/unictype/property-lowercase-tests (Files): Likewise.
36616         * modules/unictype/property-math-tests (Files): Likewise.
36617         * modules/unictype/property-non-break-tests (Files): Likewise.
36618         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36619         * modules/unictype/property-numeric-tests (Files): Likewise.
36620         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36621         * modules/unictype/property-other-default-ignorable-code-point-tests
36622         (Files): Likewise.
36623         * modules/unictype/property-other-grapheme-extend-tests (Files):
36624         Likewise.
36625         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36626         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36627         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36628         * modules/unictype/property-other-math-tests (Files): Likewise.
36629         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36630         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36631         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36632         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36633         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36634         * modules/unictype/property-private-use-tests (Files): Likewise.
36635         * modules/unictype/property-punctuation-tests (Files): Likewise.
36636         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36637         * modules/unictype/property-radical-tests (Files): Likewise.
36638         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36639         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36640         * modules/unictype/property-space-tests (Files): Likewise.
36641         * modules/unictype/property-terminal-punctuation-tests (Files):
36642         Likewise.
36643         * modules/unictype/property-test-tests (Files): Likewise.
36644         * modules/unictype/property-titlecase-tests (Files): Likewise.
36645         * modules/unictype/property-unassigned-code-value-tests (Files):
36646         Likewise.
36647         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36648         * modules/unictype/property-uppercase-tests (Files): Likewise.
36649         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36650         * modules/unictype/property-white-space-tests (Files): Likewise.
36651         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36652         * modules/unictype/property-xid-start-tests (Files): Likewise.
36653         * modules/unictype/property-zero-width-tests (Files): Likewise.
36654         * modules/unictype/scripts-tests (Files): Likewise.
36655         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36656         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36657         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36658         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36659         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36660         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36661         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36662         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36663         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36664         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36665         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36666         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36667         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36668         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36669         * modules/uninorm/composition-tests (Files): Likewise.
36670         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36671         * modules/uninorm/decomposition-tests (Files): Likewise.
36672         * modules/uninorm/filter-tests (Files): Likewise.
36673         * modules/uninorm/nfc-tests (Files): Likewise.
36674         * modules/uninorm/nfd-tests (Files): Likewise.
36675         * modules/uninorm/nfkc-tests (Files): Likewise.
36676         * modules/uninorm/nfkd-tests (Files): Likewise.
36677         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36678         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36679         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36680         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36681         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36682         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36683         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36684         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36685         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36686         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36687         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36688         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36689         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36690         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36691         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36692         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36693         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36694         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36695         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36696         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36697         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36698         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36699         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36700         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36701         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36702         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36703         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36704         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36705         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36706         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36707         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36708         * modules/uniwidth/u8-width-tests (Files): Likewise.
36709         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36710         * modules/uniwidth/u16-width-tests (Files): Likewise.
36711         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36712         * modules/uniwidth/u32-width-tests (Files): Likewise.
36713         * modules/uniwidth/width-tests (Files): Likewise.
36714         * modules/unlink-tests (Files): Likewise.
36715         * modules/unsetenv-tests (Files): Likewise.
36716         * modules/usleep-tests (Files): Likewise.
36717         * modules/utimens-tests (Files): Likewise.
36718         * modules/utimensat-tests (Files): Likewise.
36719         * modules/vasnprintf-posix-tests (Files): Likewise.
36720         * modules/vasnprintf-tests (Files): Likewise.
36721         * modules/vasprintf-posix-tests (Files): Likewise.
36722         * modules/vasprintf-tests (Files): Likewise.
36723         * modules/vdprintf-posix-tests (Files): Likewise.
36724         * modules/vfprintf-posix-tests (Files): Likewise.
36725         * modules/vprintf-posix-tests (Files): Likewise.
36726         * modules/vsnprintf-posix-tests (Files): Likewise.
36727         * modules/vsnprintf-tests (Files): Likewise.
36728         * modules/vsprintf-posix-tests (Files): Likewise.
36729         * modules/wcrtomb-tests (Files): Likewise.
36730         * modules/wcsnrtombs-tests (Files): Likewise.
36731         * modules/wcsrtombs-tests (Files): Likewise.
36732         * modules/wctype-tests (Files): Likewise.
36733         * modules/wcwidth-tests (Files): Likewise.
36734         * modules/xmemdup0-tests (Files): Likewise.
36735         * modules/xprintf-posix-tests (Files): Likewise.
36736         * modules/xvasprintf-tests (Files): Likewise.
36737
36738 2009-12-24  Eric Blake  <ebb9@byu.net>
36739
36740         test-nanosleep: fix typo
36741         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36742         patch.
36743         Reported by Bruno Haible.
36744
36745 2009-12-24  Bruno Haible  <bruno@clisp.org>
36746
36747         Reduce namespace pollution on glibc systems.
36748         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36749         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36750         systems.
36751         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36752         <getopt.h> on glibc systems.
36753         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36754         systems.
36755         * lib/fcntl.c: Include <unistd.h> here instead.
36756
36757 2009-12-24  Bruno Haible  <bruno@clisp.org>
36758
36759         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36760
36761 2009-12-24  Eric Blake  <ebb9@byu.net>
36762
36763         tests: add signature checks
36764         * tests/signature.h (SIGNATURE_CHECK): New file.
36765         * modules/atexit-tests (Files): Use it.
36766         * modules/btowc-tests (Files): Likewise.
36767         * modules/canonicalize-lgpl-tests (Files): Likewise.
36768         * modules/ceilf-tests (Files): Likewise.
36769         * modules/ceill-tests (Files): Likewise.
36770         * modules/chown-tests (Files): Likewise.
36771         * modules/dprintf-posix-tests (Files): Likewise.
36772         * modules/dup2-tests (Files): Likewise.
36773         * modules/dup3-tests (Files): Likewise.
36774         * modules/duplocale-tests (Files): Likewise.
36775         * modules/fchdir-tests (Files): Likewise.
36776         * modules/fcntl-tests (Files): Likewise.
36777         * modules/fdopendir-tests (Files): Likewise.
36778         * modules/fflush-tests (Files): Likewise.
36779         * modules/flock-tests (Files): Likewise.
36780         * modules/floorf-tests (Files): Likewise.
36781         * modules/floorl-tests (Files): Likewise.
36782         * modules/fnmatch-tests (Files): Likewise.
36783         * modules/fopen-tests (Files): Likewise.
36784         * modules/fprintf-posix-tests (Files): Likewise.
36785         * modules/freopen-tests (Files): Likewise.
36786         * modules/frexp-nolibm-tests (Files): Likewise.
36787         * modules/frexp-tests (Files): Likewise.
36788         * modules/frexpl-nolibm-tests (Files): Likewise.
36789         * modules/frexpl-tests (Files): Likewise.
36790         * modules/fseek-tests (Files): Likewise.
36791         * modules/fseeko-tests (Files): Likewise.
36792         * modules/fsync-tests (Files): Likewise.
36793         * modules/ftell-tests (Files): Likewise.
36794         * modules/ftello-tests (Files): Likewise.
36795         * modules/futimens-tests (Files): Likewise.
36796         * modules/getaddrinfo-tests (Files): Likewise.
36797         * modules/getcwd-tests (Files): Likewise.
36798         * modules/getdelim-tests (Files): Likewise.
36799         * modules/getdtablesize-tests (Files): Likewise.
36800         * modules/getgroups-tests (Files): Likewise.
36801         * modules/gethostname-tests (Files): Likewise.
36802         * modules/getline-tests (Files): Likewise.
36803         * modules/getopt-posix-tests (Files): Likewise.
36804         * modules/gettimeofday-tests (Files): Likewise.
36805         * modules/glob-tests (Files): Likewise.
36806         * modules/iconv-tests (Files): Likewise.
36807         * modules/inet_ntop-tests (Files): Likewise.
36808         * modules/inet_pton-tests (Files): Likewise.
36809         * modules/isblank-tests (Files): Likewise.
36810         * modules/lchown-tests (Files): Likewise.
36811         * modules/ldexpl-tests (Files): Likewise.
36812         * modules/link-tests (Files): Likewise.
36813         * modules/linkat-tests (Files): Likewise.
36814         * modules/lseek-tests (Files): Likewise.
36815         * modules/lstat-tests (Files): Likewise.
36816         * modules/mbrtowc-tests (Files): Likewise.
36817         * modules/mbsinit-tests (Files): Likewise.
36818         * modules/mbsnrtowcs-tests (Files): Likewise.
36819         * modules/mbsrtowcs-tests (Files): Likewise.
36820         * modules/memchr-tests (Files): Likewise.
36821         * modules/memcmp-tests (Files): Likewise.
36822         * modules/memmem-tests (Files): Likewise.
36823         * modules/memrchr-tests (Files): Likewise.
36824         * modules/mkdir-tests (Files): Likewise.
36825         * modules/mkfifo-tests (Files): Likewise.
36826         * modules/mkfifoat-tests (Files): Likewise.
36827         * modules/mknod-tests (Files): Likewise.
36828         * modules/nanosleep-tests (Files): Likewise.
36829         * modules/nl_langinfo-tests (Files): Likewise.
36830         * modules/obstack-printf-tests (Files): Likewise.
36831         * modules/open-tests (Files): Likewise.
36832         * modules/openat-tests (Files): Likewise.
36833         * modules/perror-tests (Files): Likewise.
36834         * modules/pipe2-tests (Files): Likewise.
36835         * modules/poll-tests (Files): Likewise.
36836         * modules/popen-tests (Files): Likewise.
36837         * modules/posix_spawn-tests (Files): Likewise.
36838         * modules/posix_spawnp-tests (Files): Likewise.
36839         * modules/pread-tests (Files): Likewise.
36840         * modules/printf-posix-tests (Files): Likewise.
36841         * modules/pty-tests (Files): Likewise.
36842         * modules/random_r-tests (Files): Likewise.
36843         * modules/rawmemchr-tests (Files): Likewise.
36844         * modules/readlink-tests (Files): Likewise.
36845         * modules/remove-tests (Files): Likewise.
36846         * modules/rename-tests (Files): Likewise.
36847         * modules/renameat-tests (Files): Likewise.
36848         * modules/rmdir-tests (Files): Likewise.
36849         * modules/round-tests (Files): Likewise.
36850         * modules/roundf-tests (Files): Likewise.
36851         * modules/roundl-tests (Files): Likewise.
36852         * modules/select-tests (Files): Likewise.
36853         * modules/setenv-tests (Files): Likewise.
36854         * modules/sigaction-tests (Files): Likewise.
36855         * modules/sleep-tests (Files): Likewise.
36856         * modules/snprintf-posix-tests (Files): Likewise.
36857         * modules/snprintf-tests (Files): Likewise.
36858         * modules/sprintf-posix-tests (Files): Likewise.
36859         * modules/stat-tests (Files): Likewise.
36860         * modules/strcasestr-tests (Files): Likewise.
36861         * modules/strchrnul-tests (Files): Likewise.
36862         * modules/strerror-tests (Files): Likewise.
36863         * modules/strsignal-tests (Files): Likewise.
36864         * modules/strstr-tests (Files): Likewise.
36865         * modules/strtod-tests (Files): Likewise.
36866         * modules/strverscmp-tests (Files): Likewise.
36867         * modules/symlink-tests (Files): Likewise.
36868         * modules/symlinkat-tests (Files): Likewise.
36869         * modules/times-tests (Files): Likewise.
36870         * modules/trunc-tests (Files): Likewise.
36871         * modules/truncf-tests (Files): Likewise.
36872         * modules/truncl-tests (Files): Likewise.
36873         * modules/tsearch-tests (Files): Likewise.
36874         * modules/uname-tests (Files): Likewise.
36875         * modules/unlink-tests (Files): Likewise.
36876         * modules/unsetenv-tests (Files): Likewise.
36877         * modules/usleep-tests (Files): Likewise.
36878         * modules/utimensat-tests (Files): Likewise.
36879         * modules/vasprintf-tests (Files): Likewise.
36880         * modules/vdprintf-posix-tests (Files): Likewise.
36881         * modules/vfprintf-posix-tests (Files): Likewise.
36882         * modules/vprintf-posix-tests (Files): Likewise.
36883         * modules/vsnprintf-posix-tests (Files): Likewise.
36884         * modules/vsnprintf-tests (Files): Likewise.
36885         * modules/vsprintf-posix-tests (Files): Likewise.
36886         * modules/wcrtomb-tests (Files): Likewise.
36887         * modules/wcsnrtombs-tests (Files): Likewise.
36888         * modules/wcsrtombs-tests (Files): Likewise.
36889         * modules/wcwidth-tests (Files): Likewise.
36890         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36891         * tests/test-isinf.c (isinf): Likewise.
36892         * tests/test-isnan.c (isnan): Likewise.
36893         * tests/test-signbit.c (signbit): Likewise.
36894         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36895         declaration, either as macro or with correct signature.
36896         (select): Ensure function under test is declared with correct
36897         signature in correct header.
36898         * tests/test-atexit.c (atexit): Likewise.
36899         * tests/test-btowc.c (btowc): Likewise.
36900         * tests/test-canonicalize-lgpl.c (realpath)
36901         (canonicalize_file_name): Likewise.
36902         * tests/test-ceilf1.c (ceilf): Likewise.
36903         * tests/test-ceill.c (ceill): Likewise.
36904         * tests/test-chown.c (chown): Likewise.
36905         * tests/test-dprintf-posix.c (dprintf): Likewise.
36906         * tests/test-dup2.c (dup2): Likewise.
36907         * tests/test-dup3.c (dup3): Likewise.
36908         * tests/test-duplocale.c (duplocale): Likewise.
36909         * tests/test-fchdir.c (fchdir): Likewise.
36910         * tests/test-fchownat.c (fchownat): Likewise.
36911         * tests/test-fcntl.c (fcntl): Likewise.
36912         * tests/test-fdopendir.c (fdopendir): Likewise.
36913         * tests/test-fflush.c (fflush): Likewise.
36914         * tests/test-flock.c (flock): Likewise.
36915         * tests/test-floorf1.c (floorf): Likewise.
36916         * tests/test-floorl.c (floorl): Likewise.
36917         * tests/test-fnmatch.c (fnmatch): Likewise.
36918         * tests/test-fopen.c (fopen): Likewise.
36919         * tests/test-fprintf-posix.c (fprintf): Likewise.
36920         * tests/test-freopen.c (freopen): Likewise.
36921         * tests/test-frexp.c (frexp): Likewise.
36922         * tests/test-frexpl.c (frexpl): Likewise.
36923         * tests/test-fseek.c (fseek): Likewise.
36924         * tests/test-fseeko.c (fseeko): Likewise.
36925         * tests/test-fstatat.c (fstatat): Likewise.
36926         * tests/test-fsync.c (fsync): Likewise.
36927         * tests/test-ftell.c (ftell): Likewise.
36928         * tests/test-ftello.c (ftello): Likewise.
36929         * tests/test-futimens.c (futimens): Likewise.
36930         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36931         (gai_strerror): Likewise.
36932         * tests/test-getcwd.c (getcwd): Likewise.
36933         * tests/test-getdelim.c (getdelim): Likewise.
36934         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36935         * tests/test-getgroups.c (getgroups): Likewise.
36936         * tests/test-gethostname.c (gethostname): Likewise.
36937         * tests/test-getline.c (getline): Likewise.
36938         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36939         Likewise.
36940         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36941         * tests/test-glob.c (glob, globfree): Likewise.
36942         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36943         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36944         * tests/test-inet_pton.c (inet_pton): Likewise.
36945         * tests/test-isblank.c (isblank): Likewise.
36946         * tests/test-lchown.c (lchown): Likewise.
36947         * tests/test-ldexpl.c (ldexpl): Likewise.
36948         * tests/test-link.c (link): Likewise.
36949         * tests/test-linkat.c (linkat): Likewise.
36950         * tests/test-lseek.c (lseek): Likewise.
36951         * tests/test-lstat.c (lstat): Likewise.
36952         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36953         * tests/test-mbsinit.c (mbsinit): Likewise.
36954         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36955         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36956         * tests/test-memchr.c (memchr): Likewise.
36957         * tests/test-memcmp.c (memcmp): Likewise.
36958         * tests/test-memmem.c (memmem): Likewise.
36959         * tests/test-memrchr.c (memrchr): Likewise.
36960         * tests/test-mkdir.c (mkdir): Likewise.
36961         * tests/test-mkdirat.c (mkdirat): Likewise.
36962         * tests/test-mkfifo.c (mkfifo): Likewise.
36963         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36964         * tests/test-mknod.c (mknod): Likewise.
36965         * tests/test-nanosleep.c (nanosleep): Likewise.
36966         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36967         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36968         Likewise.
36969         * tests/test-open.c (open): Likewise.
36970         * tests/test-openat.c (openat): Likewise.
36971         * tests/test-perror.c (perror): Likewise.
36972         * tests/test-pipe2.c (pipe2): Likewise.
36973         * tests/test-poll.c (poll): Likewise.
36974         * tests/test-popen.c (popen, pclose): Likewise.
36975         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36976         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36977         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36978         (posix_spawn_file_actions_destroy)
36979         (posix_spawn_file_actions_addclose)
36980         (posix_spawn_file_actions_addopen)
36981         (posix_spawn_file_actions_adddup2): Likewise.
36982         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36983         * tests/test-pread.c (pread): Likewise.
36984         * tests/test-printf-posix.c (printf): Likewise.
36985         * tests/test-pty.c (openpty, forkpty): Likewise.
36986         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36987         (random_r): Likewise.
36988         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36989         * tests/test-readlink.c (readlink): Likewise.
36990         * tests/test-remove.c (remove): Likewise.
36991         * tests/test-rename.c (rename): Likewise.
36992         * tests/test-renameat.c (renameat): Likewise.
36993         * tests/test-rmdir.c (rmdir): Likewise.
36994         * tests/test-round1.c (round): Likewise.
36995         * tests/test-roundf1.c (roundf): Likewise.
36996         * tests/test-roundl.c (roundl): Likewise.
36997         * tests/test-setenv.c (setenv): Likewise.
36998         * tests/test-sigaction.c (sigaction): Likewise.
36999         * tests/test-sleep.c (sleep): Likewise.
37000         * tests/test-snprintf.c (snprintf): Likewise.
37001         * tests/test-sprintf-posix.c (sprintf): Likewise.
37002         * tests/test-stat.c (stat): Likewise.
37003         * tests/test-stpncpy.c (stpncpy): Likewise.
37004         * tests/test-strcasestr.c (strcasestr): Likewise.
37005         * tests/test-strchrnul.c (strchrnul): Likewise.
37006         * tests/test-strerror.c (strerror): Likewise.
37007         * tests/test-strsignal.c (strsignal): Likewise.
37008         * tests/test-strstr.c (strstr): Likewise.
37009         * tests/test-strtod.c (strtod): Likewise.
37010         * tests/test-strverscmp.c (strverscmp): Likewise.
37011         * tests/test-symlink.c (symlink): Likewise.
37012         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37013         * tests/test-times.c (times): Likewise.
37014         * tests/test-trunc1.c (trunc): Likewise.
37015         * tests/test-truncf1.c (truncf): Likewise.
37016         * tests/test-truncl.c (truncl): Likewise.
37017         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37018         Likewise.
37019         * tests/test-uname.c (uname): Likewise.
37020         * tests/test-unlink.c (unlink): Likewise.
37021         * tests/test-unlinkat.c (unlinkat): Likewise.
37022         * tests/test-unsetenv.c (unsetenv): Likewise.
37023         * tests/test-usleep.c (usleep): Likewise.
37024         * tests/test-utimensat.c (utimensat): Likewise.
37025         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37026         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37027         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37028         * tests/test-vprintf-posix.c (vprintf): Likewise.
37029         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37030         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37031         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37032         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37033         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37034         * tests/test-wcwidth.c (wcwidth): Likewise.
37035
37036         build: pull in conditional headers during GNULIB_POSIXCHECK
37037         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37038         definitions from any conditionally-included headers.
37039         * lib/stdlib.in.h (includes): Likewise.
37040         * lib/unistd.in.h (includes): Likewise.
37041
37042 2009-12-24  Bruno Haible  <bruno@clisp.org>
37043
37044         * tests/test-argv-iter.c: Include header file being tested immediately
37045         after config.h.
37046         * tests/test-base64.c: Likewise.
37047         * tests/test-flock.c: Likewise.
37048         * tests/test-fsync.c: Likewise.
37049         * tests/test-getdate.c: Likewise.
37050         * tests/test-getndelim2.c: Likewise.
37051         * tests/test-isfinite.c: Likewise.
37052         * tests/test-isinf.c: Likewise.
37053         * tests/test-strerror.c: Likewise.
37054         * tests/test-strsignal.c: Likewise.
37055
37056 2009-12-23  Eric Blake  <ebb9@byu.net>
37057
37058         unistd: work around cygwin bug
37059         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37060         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37061         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37062
37063 2009-12-23  Bruno Haible  <bruno@clisp.org>
37064
37065         localename: More tests.
37066         * tests/test-localename.c (SIZEOF): New macro.
37067         (categories): New variable.
37068         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37069         test_locale_name_default): Add test w.r.t. thread locale.
37070         (test_locale_name_thread): New function.
37071         (main): Invoke it.
37072
37073         localename: Make aware of thread locale.
37074         * lib/localename.h (gl_locale_name_thread): New declaration.
37075         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37076         behaviour with respect to thread locale.
37077         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37078         <langinfo.h>, glthread/lock.h.
37079         (SIZE_BITS): New macro.
37080         (string_hash): New function.
37081         (struct hash_node): New type.
37082         (HASH_TABLE_SIZE): New macro.
37083         (struniq_hash_table, struniq_lock): New variables.
37084         (struniq): New function.
37085         (gl_locale_name_thread): New function.
37086         (gl_locale_name): Invoke it.
37087         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37088         * modules/localename (Depends-on): Add lock.
37089         Reported by Mike Gran <spk121@yahoo.com>.
37090
37091 2009-12-23  Eric Blake  <ebb9@byu.net>
37092
37093         va-args: new module
37094         * modules/va-args: New file.
37095         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37096         * MODULES.html.sh (Core language properties): Mention it.
37097
37098         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37099         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37100         named alias for __attribute__((__unused__)).
37101         * lib/chown.c: Update client.
37102         * lib/fchmodat.c: Likewise.
37103         * lib/fts.c: Likewise.
37104         * lib/getdate.y: Likewise.
37105         * lib/getgroups.c: Likewise.
37106         * lib/getopt.c: Likewise.
37107         * lib/getugroups.c: Likewise.
37108         * lib/mkdir.c: Likewise.
37109         * lib/mkfifo.c: Likewise.
37110         * lib/mkfifoat.c: Likewise.
37111         * lib/mknod.c: Likewise.
37112         * lib/mknodat.c: Likewise.
37113         * lib/readlink.c: Likewise.
37114         * lib/se-context.in.h: Likewise.
37115         * lib/se-selinux.in.h: Likewise.
37116         * lib/sockets.c: Likewise.
37117         * lib/symlink.c: Likewise.
37118         * lib/symlinkat.c: Likewise.
37119         * lib/unicodeio.c: Likewise.
37120         * lib/unistr.h: Likewise.
37121         * tests/test-areadlink.c: Likewise.
37122         * tests/test-areadlinkat.c: Likewise.
37123         * tests/test-filenamecat.c: Likewise.
37124         * tests/test-fseeko.c: Likewise.
37125         * tests/test-ftello.c: Likewise.
37126         * tests/test-getdate.c: Likewise.
37127         * tests/test-getgroups.c: Likewise.
37128         * tests/test-gethostname.c: Likewise.
37129         * tests/test-quotearg.c: Likewise.
37130         * tests/test-version-etc.c: Likewise.
37131         * tests/test-xalloc-die.c: Likewise.
37132         * tests/test-xfprintf-posix.c: Likewise.
37133         * tests/test-xprintf-posix.c: Likewise.
37134         * tests/test-xvasprintf.c: Likewise.
37135
37136         tests: avoid compiler warnings
37137         * tests/test-fcntl.c (main): Delete unused parameters.
37138         * tests/test-freopen-safer.c (main): Likewise.
37139         * tests/test-xalloc-die.c (main): Mark unused parameters.
37140         * tests/test-fseeko.c (main): Likewise.
37141         * tests/test-ftello.c (main): Likewise.
37142         * tests/test-nanosleep.c (main): Avoid declaration warning.
37143         * tests/test-sleep.c (main): Likewise.
37144         * tests/test-unsetenv.c (main): Silence warning about string
37145         literal.
37146         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37147
37148 2009-12-23  Bruno Haible  <bruno@clisp.org>
37149
37150         * tests/test-localename.c (test_locale_name): New function, extracted
37151         from main. Also test mixed situations.
37152         (test_locale_name_posix, test_locale_name_environ,
37153         test_locale_name_default): New functions.
37154         (main): Invoke them all.
37155         * modules/localename-tests (configure.ac): Test for newlocale.
37156
37157 2009-12-23  Bruno Haible  <bruno@clisp.org>
37158
37159         unistd: Ensure getcwd gets declared before being overridden.
37160         * lib/unistd.in.h: Conditionally include <io.h>.
37161
37162 2009-12-22  Bruno Haible  <bruno@clisp.org>
37163
37164         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37165         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37166         (gl_WCHAR_H): Invoke it.
37167         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37168         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37169         Reported by Karl Berry <karl@freefriends.org>.
37170
37171 2009-12-22  Eric Blake  <ebb9@byu.net>
37172
37173         math, unistd: avoid redundant includes
37174         * lib/math.in.h (isnan): No need to re-include <math.h>.
37175         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37176
37177         getsubopt: work around cygwin bug
37178         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37179         avoid conflicting with system getsubopt.
37180         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37181         bug.
37182
37183         getopt: synchronize from glibc
37184         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37185         parameter order.  Adjust all callers.
37186         (_getopt_internal_r, main): Adjust quoting in error messages.
37187         Drop considerations for outdated POSIX 1003.2 error message.
37188         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37189         callers.
37190         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37191
37192         test-getopt: test stderr behavior
37193         * modules/getopt-posix-tests (Depends-on): Add dup2.
37194         * tests/test-getopt.c (ASSERT): Avoid stderr.
37195         (main): Move stderr to a temporary file.
37196         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37197         Instead, add parameter to inform caller if output occurred.
37198         (test_getopt): Adjust all existing tests to expect silence, and
37199         add new tests of leading ":".
37200         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37201         glibc shortcomings with leading "-:" or "+:" in optstring.
37202         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37203         Likewise.
37204         * doc/posix-functions/getopt.texi (getopt): Likewise.
37205
37206         test-getopt: enhance test
37207         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37208         supports optind=0.
37209         * tests/test-getopt.c (OPTIND_MIN): Move...
37210         * tests/test-getopt.h (OPTIND_MIN): ...here.
37211         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37212         Require that optind=0 works, since modern BSD supports it in
37213         addition to optreset, and since coreutils expects it.
37214         (test_getopt_long_only): New test.
37215         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37216         glibc shortcomings with 'W;', and enforcement of optind=0.
37217         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37218         Likewise.
37219
37220 2009-12-21  Bruno Haible  <bruno@clisp.org>
37221
37222         localename: Improvements for MacOS X and Cygwin.
37223         * lib/localename.h (gl_locale_name_environ): New declaration.
37224         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37225         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37226         (gl_locale_name_posix): Invoke it.
37227         (gl_locale_name_default): Add comments. Use Windows native API also on
37228         Cygwin.
37229
37230 2009-12-21  Bruno Haible  <bruno@clisp.org>
37231
37232         Update list of Win32 locale ids.
37233         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37234         (LANG_SAMI): Renamed from LANG_SAAMI.
37235         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37236         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37237         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37238         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37239         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37240         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37241         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37242         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37243         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37244         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37245         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37246         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37247         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37248         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37249         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37250         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37251         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37252         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37253         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37254         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37255         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37256         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37257         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37258         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37259         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37260         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37261         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37262         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37263         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37264         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37265         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37266         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37267         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37268         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37269         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37270         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37271         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37272         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37273         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37274         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37275         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37276         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37277         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37278         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37279         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37280         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37281         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37282         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37283         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37284         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37285         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37286         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37287         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37288         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37289         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37290         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37291         Add more languages and countries for Sami, Sorbian. Add more countries
37292         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37293         for Pashto. Change country for Syriac, Tswana.
37294
37295 2009-12-21  Eric Blake  <ebb9@byu.net>
37296
37297         test-utimens: avoid spurious failure
37298         * tests/test-chown.h (nap): Factor...
37299         * tests/nap.h: ...into new file.
37300         * tests/test-lchown.h (nap): Avoid duplication.
37301         * tests/test-utimens-common.h (nap): Use shared implementation,
37302         necessary on file systems with 1-second resolution.
37303         * modules/chown-tests (Files): Include new file.
37304         * modules/fdutimensat-tests (Files): Likewise.
37305         * modules/futimens-tests (Files): Likewise.
37306         * modules/lchown-tests (Files): Likewise.
37307         * modules/openat-tests (Files): Likewise.
37308         * modules/utimens-tests (Files): Likewise.
37309         * modules/utimensat-tests (Files): Likewise.
37310
37311 2009-12-19  Eric Blake  <ebb9@byu.net>
37312
37313         futimens, utimensat: work around Linux bug
37314         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37315         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37316         * lib/utimensat.c (rpl_utimensat): Work around it.
37317         * lib/futimens.c (rpl_futimens): Adjust comment.
37318
37319         utimens: work around Linux ctime bug
37320         * lib/utimens.c (detect_ctime_bug): New helper function.
37321         (update_timespec): Differentiate between workaround needed for
37322         this bug vs. what is needed for systems that lack utimensat.
37323         (fdutimens, lutimens): Work around bug.
37324
37325         utimens: check for ctime update
37326         * tests/test-utimens-common.h (check_ctime): Define.
37327         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37328         * tests/test-futimens.h (test_futimens): Likewise.
37329         * tests/test-lutimens.h (test_lutimens): Likewise.
37330         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37331         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37332
37333 2009-12-19  Bruno Haible  <bruno@clisp.org>
37334
37335         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37336         * tests/test-dprintf-posix2.sh: New file.
37337         * tests/test-dprintf-posix2.c: New file.
37338         * modules/dprintf-posix-tests (Files): Add them.
37339         (configure.ac): Check for getrlimit and setrlimit.
37340         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37341
37342 2009-12-19  Bruno Haible  <bruno@clisp.org>
37343
37344         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37345         * tests/test-fprintf-posix3.sh: New file.
37346         * tests/test-fprintf-posix3.c: New file.
37347         * modules/fprintf-posix-tests (Files): Add them.
37348         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37349
37350 2009-12-19  Eric Blake  <ebb9@byu.net>
37351
37352         dirfd: fix prototype
37353         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37354         * lib/dirfd.c (dirfd): Likewise.
37355
37356         canonicalize: reduce memory usage
37357         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37358         allocation to size.
37359         Reported by Solar Designer <solar@openwall.com>.
37360
37361 2009-12-19  Bruno Haible  <bruno@clisp.org>
37362
37363         New module attribute 'Applicability'.
37364         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37365         * gnulib-tool: New option --extract-applicability.
37366         (func_usage): Document it.
37367         (sed_extract_prog): Recognize it.
37368         (func_get_applicability): New function.
37369         (func_import): Generalize handling of 'link-warning' module.
37370         * modules/link-warning (Applicability): New section.
37371         * modules/arg-nonnull (Applicability): New section.
37372         Repoted by Simon Josefsson <simon@josefsson.org>.
37373
37374 2009-12-19  Bruno Haible  <bruno@clisp.org>
37375
37376         fflush: tweak
37377         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37378         * lib/fseeko.c (rpl_fseeko): Likewise.
37379
37380 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37381
37382         * lib/gl_list.h: Fix typo in comment.
37383
37384 2009-12-16  Eric Blake  <ebb9@byu.net>
37385
37386         fcntl: use to simplify other modules
37387         * modules/cloexec (Depends-on): Add fcntl.
37388         * modules/fchdir (Depends-on): Likewise.
37389         * modules/fd-safer-flag (Depends-on): Likewise.
37390         * modules/unistd-safer (Depends-on): Likewise.
37391         * modules/dup3 (configure.ac): Set module indicator.
37392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37393         missing.
37394         * lib/fchdir.c (_gl_register_dup): Fix comment.
37395         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37396         * lib/dup-safer.c (dup_safer): Likewise.
37397         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37398         * lib/dup3.c (dup3): Likewise.
37399         * tests/test-fchdir.c (main): Enhance test.
37400         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37401
37402         fcntl: port portions of fcntl to mingw
37403         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37404         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37405         replacement for mingw.
37406         * modules/fcntl (Description): Update.
37407         (Depends-on): Add dup2.
37408         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37409         * modules/fcntl-h (Makefile.am): Substitute it.
37410         * lib/fcntl.in.h (fcntl): Update declaration.
37411         (F_DUPFD, F_GETFD): New macros, when needed.
37412         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37413         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37414         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37415         we now guarantee.
37416
37417         fcntl: work around cygwin bug in F_DUPFD
37418         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37419         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37420         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37421         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37422         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37423
37424         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37425         * modules/fcntl (Files): List new files.
37426         (configure.ac): Run a test.
37427         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37428         * lib/fcntl.c (rpl_fcntl): Likewise.
37429         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37430         (gl_FCNTL_H): Always replace fcntl.h.
37431         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37432         * lib/fcntl.in.h (fcntl): Declare replacement.
37433         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37434         needed, plus a witness.
37435         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37436         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37437         * tests/test-fcntl.c: New file.
37438         * modules/fcntl-tests: Likewise.
37439
37440         binary-io: avoid potential compilation warning
37441         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37442         directives.
37443
37444         fflush: avoid compilation error on NetBSD
37445         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37446         between off_t and fpos_t, since the latter is sometimes a struct.
37447         * lib/fseeko.c (rpl_fseeko): Likewise.
37448         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37449
37450 2009-12-15  Eric Blake  <ebb9@byu.net>
37451
37452         fcntl-h, stdio, sys_ioctl: fix declarations
37453         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37454         function must not take arguments.
37455         * lib/sys_ioctl.in.h (ioctl): Likewise.
37456         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37457         (open): Add a link warning.
37458
37459 2009-12-15  Jim Meyering  <meyering@redhat.com>
37460
37461         areadlink, areadlink-with-size: relax license to LGPLv2+
37462         * modules/areadlink (License): Relax to LGPLv2+.
37463         * modules/areadlink-with-size (License): Likewise.
37464
37465 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37466             Bruno Haible  <bruno@clisp.org>
37467
37468         *printf: Fix memory leak.
37469         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37470         * lib/vfprintf.c (vfprintf): Likewise.
37471         * lib/dprintf.c (dprintf): Likewise.
37472         * lib/vdprintf.c (vdprintf): Likewise.
37473
37474 2009-12-14  Eric Blake  <ebb9@byu.net>
37475
37476         accept4: adjust module dependencies
37477         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37478
37479         utimens: one more try at avoiding compiler warning
37480         * lib/utimens.c (lutimens): Lower scope of result.
37481
37482 2009-12-13  Bruno Haible  <bruno@clisp.org>
37483
37484         Move the malloc checking from module 'list' to new module 'xlist'.
37485         * modules/xlist: New file.
37486         * lib/gl_xlist.h: New file.
37487         * lib/gl_xlist.c: New file.
37488         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37489         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37490         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37491         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37492         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37493         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37494         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37495         gl_sortedlist_nx_add): New declarations.
37496         (struct gl_list_implementation): Rename and change methods accordingly.
37497         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37498         (gl_list_nx_create): Renamed from gl_list_create.
37499         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37500         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37501         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37502         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37503         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37504         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37505         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37506         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37507         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37508         gl_list_create_empty.
37509         (gl_list_nx_create): Renamed from gl_list_create.
37510         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37511         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37512         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37513         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37514         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37515         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37516         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37517         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37518         * lib/gl_array_list.c: Don't include xalloc.h.
37519         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37520         NULL upon out-of-memory.
37521         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37522         out-of-memory.
37523         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37524         Change return type to 'int'.
37525         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37526         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37527         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37528         upon out-of-memory.
37529         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37530         upon out-of-memory.
37531         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37532         upon out-of-memory.
37533         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37534         upon out-of-memory.
37535         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37536         out-of-memory.
37537         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37538         Update.
37539         (gl_array_list_implementation): Update.
37540         * lib/gl_carray_list.c: Don't include xalloc.h.
37541         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37542         Return NULL upon out-of-memory.
37543         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37544         out-of-memory.
37545         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37546         Change return type to 'int'.
37547         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37548         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37549         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37550         upon out-of-memory.
37551         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37552         upon out-of-memory.
37553         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37554         out-of-memory.
37555         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37556         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37557         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37558         Update.
37559         (gl_carray_list_implementation): Update.
37560         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37561         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37562         gl_linked_create_empty. Return NULL upon out-of-memory.
37563         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37564         out-of-memory.
37565         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37566         Change return type to 'int'. Return -1 upon out-of-memory.
37567         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37568         out-of-memory.
37569         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37570         upon out-of-memory.
37571         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37572         upon out-of-memory.
37573         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37574         NULL upon out-of-memory.
37575         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37576         upon out-of-memory.
37577         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37578         out-of-memory.
37579         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37580         Update.
37581         * lib/gl_linked_list.c: Don't include xalloc.h.
37582         (gl_linked_list_implementation): Update.
37583         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37584         (add_to_bucket): Change return type to 'int'.
37585         (gl_linkedhash_list_implementation): Update.
37586         * lib/gl_anytree_list1.h (free_subtree): New function.
37587         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37588         gl_tree_create_empty. Return NULL upon out-of-memory.
37589         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37590         Change return type to 'int'. Return -1 upon out-of-memory.
37591         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37592         out-of-memory.
37593         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37594         (gl_tree_remove_node): New function, moved here from
37595         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37596         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37597         Update.
37598         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37599         malloc, not xmalloc. Return NULL upon out-of-memory.
37600         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37601         out-of-memory.
37602         (gl_tree_remove_node_from_tree): New function, extracted from
37603         gl_tree_remove_node.
37604         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37605         upon out-of-memory.
37606         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37607         out-of-memory.
37608         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37609         upon out-of-memory.
37610         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37611         upon out-of-memory.
37612         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37613         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37614         not xmalloc. Return NULL upon out-of-memory.
37615         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37616         out-of-memory.
37617         (gl_tree_remove_node_from_tree): New function, extracted from
37618         gl_tree_remove_node.
37619         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37620         upon out-of-memory.
37621         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37622         out-of-memory.
37623         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37624         upon out-of-memory.
37625         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37626         upon out-of-memory.
37627         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37628         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37629         gl_anytree_list1.h before gl_anyavltree_list2.h.
37630         (gl_avltree_list_implementation): Update.
37631         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37632         gl_anytree_list1.h before gl_anyavltree_list2.h.
37633         (gl_rbtree_list_implementation): Update.
37634         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37635         Change return type to 'int'. Return -1 upon out-of-memory. Use
37636         __builtin_expect.
37637         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37638         (gl_avltreehash_list_implementation): Update.
37639         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37640         (gl_rbtreehash_list_implementation): Update.
37641         * modules/array-list (Depends-on): Remove xalloc.
37642         * modules/carray-list (Depends-on): Likewise.
37643         * modules/linked-list (Depends-on): Likewise.
37644         * modules/linkedhash-list (Depends-on): Likewise.
37645         * modules/avltree-list (Depends-on): Likewise.
37646         * modules/rbtree-list (Depends-on): Likewise.
37647         * modules/avltreehash-list (Depends-on): Likewise.
37648         * modules/rbtreehash-list (Depends-on): Likewise.
37649
37650         * modules/xsublist: New file.
37651         * lib/gl_xsublist.h: New file.
37652         * lib/gl_xsublist.c: New file.
37653         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37654         (gl_sublist_nx_create): New declaration.
37655         * lib/gl_sublist.c: Don't include xalloc.h.
37656         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37657         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37658         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37659         Change return type to 'int'. Return -1 upon out-of-memory.
37660         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37661         upon out-of-memory.
37662         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37663         NULL upon out-of-memory.
37664         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37665         upon out-of-memory.
37666         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37667         NULL upon out-of-memory.
37668         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37669         NULL upon out-of-memory.
37670         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37671         upon out-of-memory.
37672         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37673         (gl_sublist_list_implementation): Update.
37674         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37675         upon out-of-memory.
37676         * modules/sublist (Depends-on): Remove xalloc.
37677
37678         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37679         * tests/test-carray_list.c: Likewise.
37680         * tests/test-linked_list.c: Likewise.
37681         * tests/test-linkedhash_list.c: Likewise.
37682         * tests/test-avltree_list.c: Likewise.
37683         * tests/test-rbtree_list.c: Likewise.
37684         * tests/test-avltreehash_list.c: Likewise.
37685         * tests/test-rbtreehash_list.c: Likewise.
37686         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37687         * modules/carray-list-tests (Makefile.am): Likewise.
37688         * modules/linked-list-tests (Makefile.am): Likewise.
37689         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37690         * modules/avltree-list-tests (Makefile.am): Likewise.
37691         * modules/rbtree-list-tests (Makefile.am): Likewise.
37692         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37693         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37694
37695         * NEWS: Mention the changes.
37696
37697         * lib/clean-temp.c: Include gl_xlist.h.
37698         * modules/clean-temp (Depends-on): Add xlist.
37699
37700         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37701         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37702
37703         * tests/test-array_oset.c: Include gl_xlist.h.
37704         * modules/array-oset-tests (Depends-on): Add xlist.
37705
37706         Reported by José E. Marchesi <jemarch@gnu.org>.
37707
37708 2009-12-13  Bruno Haible  <bruno@clisp.org>
37709
37710         Move the malloc checking from module 'oset' to new module 'xoset'.
37711         * modules/xoset: New file.
37712         * lib/gl_xoset.h: New file.
37713         * lib/gl_xoset.c: New file.
37714         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37715         declarations.
37716         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37717         (struct gl_oset_implementation): Rename and change methods accordingly.
37718         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37719         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37720         'int'. Mark as __warn_unused_result__.
37721         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37722         gl_oset_create_empty.
37723         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37724         'int'.
37725         * lib/gl_array_oset.c: Don't include xalloc.h.
37726         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37727         malloc, not xmalloc.
37728         (grow): Change return type to 'int'. Don't call xalloc_die.
37729         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37730         to 'int'.
37731         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37732         'int'.
37733         (gl_array_oset_implementation): Update.
37734         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37735         gl_tree_create_empty.
37736         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37737         'int'.
37738         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37739         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37740         xmalloc.
37741         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37742         not xmalloc.
37743         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37744         xmalloc.
37745         (gl_avltree_oset_implementation): Update.
37746         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37747         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37748         xmalloc.
37749         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37750         not xmalloc.
37751         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37752         xmalloc.
37753         (gl_rbtree_oset_implementation): Update.
37754         * modules/array-oset (Depends-on): Remove xalloc.
37755         * modules/avltree-oset (Depends-on): Likewise.
37756         * modules/rbtree-oset (Depends-on): Likewise.
37757         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37758         * tests/test-avltree_oset.c: Likewise.
37759         * tests/test-rbtree_oset.c: Likewise.
37760         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37761         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37762         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37763         * NEWS: Mention the change.
37764
37765 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37766
37767         maint.mk: allow a project to override release-prep commands
37768         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37769         commands into a new rule.
37770         (release-prep): New rule.
37771         (release-prep-hook): New overridable variable.
37772
37773 2009-12-13  Bruno Haible  <bruno@clisp.org>
37774
37775         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37776
37777 2009-12-13  Jim Meyering  <meyering@redhat.com>
37778
37779         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37780         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37781
37782 2009-12-12  Bruno Haible  <bruno@clisp.org>
37783
37784         duplocale: Tweak.
37785         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37786
37787 2009-12-12  Karl Berry  <karl@gnu.org>
37788
37789         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37790
37791 2009-12-12  Bruno Haible  <bruno@clisp.org>
37792
37793         * m4/po.m4: Undo incorrect untabification.
37794
37795 2009-12-12  Bruno Haible  <bruno@clisp.org>
37796
37797         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37798         * modules/c-strtod (Depends-on): Add locale.
37799         * modules/c-strtold (Depends-on): Likewise.
37800
37801 2009-12-12  Bruno Haible  <bruno@clisp.org>
37802
37803         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37804
37805 2009-12-11  Eric Blake  <ebb9@byu.net>
37806
37807         setenv: relax requirement in light of POSIX ruling
37808         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37809         not NULL.
37810         * tests/test-setenv.c (main): Relax test.
37811         * tests/test-unsetenv.c (main): Likewise.
37812         * doc/posix-functions/setenv.texi (setenv): Document this.
37813         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37814
37815 2009-12-11  Bruno Haible  <bruno@clisp.org>
37816
37817         New module 'fd-safer-flag'.
37818         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37819         * lib/dup-safer.c (dup_safer_flag): Remove function.
37820         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37821         * lib/fd-safer.c (fd_safer_flag): Remove function.
37822         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37823         * modules/cloexec (configure.ac): Drop indicator macro.
37824         * modules/fd-safer-flag: New file.
37825         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37826         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37827         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37828
37829 2009-12-11  Bruno Haible  <bruno@clisp.org>
37830
37831         Tests for module 'nl_langinfo'.
37832         * modules/nl_langinfo-tests: New file.
37833         * tests/test-nl_langinfo.sh: New file.
37834         * tests/test-nl_langinfo.c: New file.
37835
37836         New module 'nl_langinfo'.
37837         * lib/nl_langinfo.c: New file.
37838         * m4/nl_langinfo.m4: New file.
37839         * modules/nl_langinfo: New file.
37840         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37841
37842 2009-12-11  Bruno Haible  <bruno@clisp.org>
37843
37844         Tests for module 'langinfo'.
37845         * modules/langinfo-tests: New file.
37846         * tests/test-langinfo.c: New file.
37847
37848         New module 'langinfo'.
37849         * lib/langinfo.in.h: New file.
37850         * m4/langinfo_h.m4: New file.
37851         * modules/langinfo: New file.
37852         * doc/posix-headers/langinfo.texi: Mention the new module.
37853
37854 2009-12-11  Bruno Haible  <bruno@clisp.org>
37855
37856         * lib/config.charset: Untabify.
37857
37858 2009-12-11  Bruno Haible  <bruno@clisp.org>
37859
37860         * modules/unistd-safer (configure.ac): Drop indicator macro.
37861
37862 2009-12-11  Bruno Haible  <bruno@clisp.org>
37863
37864         Move pipe2-safer code to its own file.
37865         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37866         * lib/pipe-safer.c (pipe2_safer): Remove function.
37867         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37868         (Makefile.am): Add it to lib_SOURCES.
37869
37870 2009-12-10  Bruno Haible  <bruno@clisp.org>
37871
37872         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37873
37874 2009-12-10  Bruno Haible  <bruno@clisp.org>
37875
37876         Declare which arguments expect non-NULL values, for GCC and clang.
37877         * build-aux/arg-nonnull.h: New file.
37878         * modules/arg-nonnull: New file.
37879         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37880         (inet_ntop, inet_pton): Use it.
37881         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37882         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37883         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37884         (open, openat): Use it.
37885         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37886         (fnmatch): Use it.
37887         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37888         (getopt, getopt_long, getopt_long_only): Use it.
37889         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37890         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37891         Use it.
37892         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37893         (iconv_open): Use it.
37894         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37895         (strtoimax, strtoumax): Use it.
37896         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37897         (duplocale): Use it.
37898         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37899         (frexp, frexpl): Use it.
37900         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37901         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37902         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37903         (tsearch, tfind, tdelete, twalk): Use it.
37904         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37905         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37906         sigpending): Use it.
37907         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37908         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37909         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37910         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37911         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37912         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37913         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37914         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37915         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37916         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37917         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37918         Use it.
37919         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37920         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37921         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37922         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37923         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37924         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37925         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37926         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37927         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37928         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37929         strtoull, unsetenv): Use it.
37930         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37931         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37932         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37933         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37934         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37935         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37936         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37937         (strcasecmp, strncasecmp): Use it.
37938         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37939         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37940         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37941         rpl_setsockopt): Use it.
37942         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37943         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37944         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37945         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37946         (gettimeofday): Use it.
37947         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37948         (times): Use it.
37949         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37950         (uname): Use it.
37951         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37952         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37953         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37954         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37955         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37956         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37957         unlinkat, write): Use it.
37958         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37959         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37960         * lib/argv-iter.h: Include arg-nonnull.h.
37961         (_ATTRIBUTE_NONNULL_): Remove macro.
37962         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37963         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37964         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37965         optimization.
37966         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37967         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37968         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37969         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37970         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37971         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37972         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37973         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37974         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37975         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37976         * modules/dirent (Depends-on): Add arg-nonnull.
37977         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37978         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37979         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37980         * modules/fnmatch (Depends-on): Add arg-nonnull.
37981         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37982         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37983         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37984         * modules/glob (Depends-on): Add arg-nonnull.
37985         (Makefile.am): Insert arg-nonnull.h into glob.h.
37986         * modules/iconv_open (Depends-on): Add arg-nonnull.
37987         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37988         * modules/inttypes (Depends-on): Add arg-nonnull.
37989         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37990         * modules/locale (Depends-on): Add arg-nonnull.
37991         (Makefile.am): Insert arg-nonnull.h into locale.h.
37992         * modules/math (Depends-on): Add arg-nonnull.
37993         (Makefile.am): Insert arg-nonnull.h into math.h.
37994         * modules/netdb (Depends-on): Add arg-nonnull.
37995         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37996         * modules/search (Depends-on): Add arg-nonnull.
37997         (Makefile.am): Insert arg-nonnull.h into search.h.
37998         * modules/signal (Depends-on): Add arg-nonnull.
37999         (Makefile.am): Insert arg-nonnull.h into signal.h.
38000         * modules/spawn (Depends-on): Add arg-nonnull.
38001         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38002         * modules/stdio (Depends-on): Add arg-nonnull.
38003         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38004         * modules/stdlib (Depends-on): Add arg-nonnull.
38005         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38006         * modules/string (Depends-on): Add arg-nonnull.
38007         (Makefile.am): Insert arg-nonnull.h into string.h.
38008         * modules/strings (Depends-on): Add arg-nonnull.
38009         (Makefile.am): Insert arg-nonnull.h into strings.h.
38010         * modules/sys_socket (Depends-on): Add arg-nonnull.
38011         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38012         * modules/sys_stat (Depends-on): Add arg-nonnull.
38013         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38014         * modules/sys_time (Depends-on): Add arg-nonnull.
38015         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38016         * modules/sys_times (Depends-on): Add arg-nonnull.
38017         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38018         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38019         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38020         * modules/time (Depends-on): Add arg-nonnull.
38021         (Makefile.am): Insert arg-nonnull.h into time.h.
38022         * modules/unistd (Depends-on): Add arg-nonnull.
38023         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38024         * modules/wchar (Depends-on): Add arg-nonnull.
38025         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38026         * modules/argv-iter (Depends-on): Add arg-nonnull.
38027         * tests/test-canonicalize.c (null_ptr): New function.
38028         (main): Use it.
38029         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38030         (main): Use it.
38031         * tests/test-memmem.c (null_ptr): New function.
38032         (main): Use it.
38033         Reported by Jim Meyering.
38034
38035 2009-12-10  Bruno Haible  <bruno@clisp.org>
38036
38037         Use spaces for indentation, not tabs.
38038         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38039         * m4/*.m4: Untabify.
38040         * build-aux/*.h: Untabify.
38041         * tests/**/*.[hc]: Untabify.
38042         * README: New section "Indent with spaces, not TABs", based on
38043         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38044         * NEWS: Mention the change.
38045
38046 2009-12-10  Bruno Haible  <bruno@clisp.org>
38047
38048         pty test: Fix link error.
38049         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38050         test_pty_LDADD.
38051
38052 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38053
38054         * modules/pty: New file.
38055         * modules/pty-tests: New file.
38056         * m4/pty.m4: New file.
38057         * tests/test-pty.c: New file.
38058         * doc/glibc-headers/pty.texi: Modified.
38059         * doc/glibc-functions/forkpty.texi: Modified.
38060         * doc/glibc-functions/openpty.texi: Modified.
38061
38062 2009-12-10  Bruno Haible  <bruno@clisp.org>
38063
38064         Avoid syntax error in C++ mode.
38065         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38066
38067 2009-12-10  Bruno Haible  <bruno@clisp.org>
38068
38069         Use sed with option -e.
38070         * gnulib-tool (func_version, func_emit_copyright_notice,
38071         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38072         option -e to sed.
38073         * modules/link-warning (Makefile.am): Likewise.
38074
38075 2009-12-10  Jim Meyering  <meyering@redhat.com>
38076
38077         mgetgroups: do not write bytes beyond end of malloc'd buffer
38078         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38079         username, we call getgroups with a one-element-shorter buffer,
38080         but still told it the length was original, max_n_groups.
38081
38082 2009-12-09  Eric Blake  <ebb9@byu.net>
38083
38084         cloexec: relax license
38085         * modules/cloexec (Maintainer): Add myself.
38086         (License): Use LGPL, not GPL.
38087
38088         link-warning: optimize generation
38089         * modules/link-warning (Makefile.am): Reduce process usage.
38090
38091 2009-12-09  Bruno Haible  <bruno@clisp.org>
38092
38093         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38094         workaround was added on 2009-11-17.
38095
38096 2009-12-09  Jim Meyering  <meyering@redhat.com>
38097             Bruno Haible  <bruno@clisp.org>
38098
38099         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38100         * modules/link-warning (Makefile.am): Make the comment-removing sed
38101         command more robust in the face of bootstrap-prepended comment lines.
38102
38103 2009-12-09  Bruno Haible  <bruno@clisp.org>
38104
38105         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38106         most one group.
38107
38108 2009-12-09  Simon Josefsson <simon@josefsson.org>
38109             Bruno Haible  <bruno@clisp.org>
38110
38111         * build-aux/link-warning.h: Add copyright notice.
38112         * modules/link-warning (Makefile.am): Generate link-warning.h from
38113         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38114         * NEWS: Mention change in link-warning module.
38115         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38116         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38117         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38118         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38119         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38120         * modules/math (Makefile.am): Add dependency to math.h.
38121         * modules/search (Makefile.am): Add dependency to search.h.
38122         * modules/signal (Makefile.am): Add dependency to signal.h.
38123         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38124         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38125         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38126         * modules/string (Makefile.am): Add dependency to string.h.
38127         * modules/strings (Makefile.am): Add dependency to strings.h.
38128         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38129         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38130         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38131         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38132         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38133         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38134         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38135         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38136         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38137
38138 2009-12-09  Bruno Haible  <bruno@clisp.org>
38139
38140         fchdir: Optimize away rpl_fstat when possible.
38141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38142         REPLACE_OPEN_DIRECTORY.
38143         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38144
38145 2009-12-09  Bruno Haible  <bruno@clisp.org>
38146
38147         * lib/fchdir.c: Update comment.
38148
38149 2009-12-09  Bruno Haible  <bruno@clisp.org>
38150
38151         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38152
38153 2009-12-08  Eric Blake  <ebb9@byu.net>
38154
38155         fchdir: avoid memory leak on re-registration.
38156         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38157
38158 2009-12-08  Jim Meyering  <meyering@redhat.com>
38159
38160         init.sh: avoid Solaris 10 /bin/sh portability problem
38161         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38162         sourced script:
38163           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38164           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38165           bar
38166         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38167         and two tests used that idiom.
38168         * tests/init.sh: Update suggested usage comments.
38169         (path_prepend_): New function, to be used in place
38170         of the --src-path=DIR option.
38171         (setup_): Move PATH-prepending code into path_prepend_.
38172         * tests/test-pread.sh: Adapt to new usage.
38173         * tests/test-xalloc-die.sh: Likewise.
38174
38175 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38176
38177         * doc/gnulib.texi (Glibc pty.h): Add.
38178         * doc/glibc-functions/forkpty.texi: Add.
38179         * doc/glibc-functions/openpty.texi: Add.
38180         Suggested by Bruno Haible.
38181
38182 2009-12-08  Eric Blake  <ebb9@byu.net>
38183
38184         fchdir: fix logic bugs
38185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38186         * tests/test-fchdir.c (main): Enhance test.
38187         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38188         is in use.
38189
38190         dup2: fix logic bugs
38191         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38192         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38193         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38194         exists.
38195         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38196
38197 2009-12-07  Eric Blake  <ebb9@byu.net>
38198
38199         unlink: fix m4 detection
38200         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38201
38202         unistd-safer: add unit test
38203         * modules/unistd-safer-tests: New file.
38204         * tests/test-dup-safer.c: Likewise.
38205         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38206         * tests/test-dup2.c (setmode): Likewise.
38207         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38208
38209         cloexec: preserve text vs. binary across dup_cloexec
38210         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38211         mode.
38212         * modules/dup2-tests (Depends-on): Add binary-io.
38213         * modules/cloexec-tests (Depends-on): Likewise.
38214         * tests/test-dup2.c (setmode, is_mode): New helpers.
38215         (main): Add tests that translation mode is preserved.
38216         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38217         Reported by Bruno Haible.
38218
38219         mgetgroups: reduce duplicate listings
38220         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38221         resulting array.
38222         * tests/test-chown.h (test_chown): Simplify client.
38223         * tests/test-lchown.h (test_lchown): Likewise.
38224
38225 2009-12-06  Bruno Haible  <bruno@clisp.org>
38226
38227         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38228         value.
38229
38230 2009-12-06  Bruno Haible  <bruno@clisp.org>
38231
38232         * lib/progname.c: Include stdio.h, stdlib.h.
38233         (set_program_name): Reject a NULL argument.
38234
38235 2009-12-05  Eric Blake  <ebb9@byu.net>
38236
38237         pipe2-safer: new module
38238         * modules/pipe2-safer: New file.
38239         * lib/unistd-safer.h (pipe2_safer): New prototype.
38240         * lib/unistd--.h (pipe2): New wrapper.
38241         * lib/pipe-safer.c (pipe2_safer): New function.
38242         * modules/pipe (Depends-on): Add pipe2-safer.
38243         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38244
38245         stdlib-safer: preserve cloexec flag for mkostemp[s]
38246         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38247         fd_safer_flag.
38248
38249         unistd-safer: allow preservation of cloexec status via flag
38250         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38251         prototypes.
38252         * lib/dup-safer.c (dup_safer_flag): New function.
38253         * lib/fd-safer.c (fd_safer_flag): Likewise.
38254         * modules/cloexec (configure.ac): Set witness.
38255
38256         test-dup2: enhance test
38257         * modules/dup2-tests (Depends-on): Add cloexec.
38258         * tests/test-dup2.c (main): Enhance test.
38259
38260         cloexec: add dup_cloexec
38261         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38262         header and comments.
38263         * lib/cloexec.c (set_cloexec_flag): Add comments.
38264         (dup_cloexec): New function, with mingw implementation borrowed
38265         from...
38266         * lib/w32spawn.h (dup_noinherit): ...here.
38267         * modules/execute (Depends-on): Add cloexec.
38268         * modules/pipe (Depends-on): Likewise.
38269         * modules/cloexec (Depends-on): Add dup2.
38270         * modules/cloexec-tests (Files): New file.
38271         * tests/test-cloexec.c: Likewise.
38272
38273         test-xalloc-die: fix test for mingw
38274         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38275         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38276         directory and .exe suffix off argv[0] output.
38277
38278         test-fseeko: fix test for mingw
38279         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38280         than undefining fseek, so test will pass on mingw.
38281
38282 2009-12-05  Bruno Haible  <bruno@clisp.org>
38283
38284         * lib/progname.h (set_program_name): Clarify specification.
38285         * lib/progname.c (set_program_name): Likewise.
38286         Reported by Jim Meyering.
38287
38288 2009-12-05  Jim Meyering  <meyering@redhat.com>
38289
38290         maint.mk: backslash-escape parens in default regexp
38291         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38292         backslash-escape the literal parentheses.
38293
38294         maint.mk: news-date-check: use grep -E
38295         * top/maint.mk (today): Define a Make variable, not a...
38296         (news-date-check): ...shell variable.
38297         (news-date-regexp): Use the Make variable.
38298         Use grep's -E option.  Change the failing diagnostic to mention
38299         the variable, $(news-date-regexp).
38300
38301 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38302
38303         maintainer-makefile: allow customization of NEWS entry format
38304         * top/maint.mk (news-date-regexp): New overridable variable.
38305         (news-date-check): Use it.
38306
38307 2009-12-04  Eric Blake  <ebb9@byu.net>
38308
38309         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38310         * lib/mgetgroups.h (xgetgroups): New prototype.
38311         * lib/mgetgroups.c (xgetgroups): New wrapper.
38312         (mgetgroups): Handle ENOSYS.
38313         * modules/mgetgroups (Depends-on): Add realloc.
38314         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38315
38316         mgetgroups: avoid argument promotion issues with -1
38317         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38318         for invalid gid_t.
38319         * tests/test-chown.h (getegid, test_chown): Likewise.
38320         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38321
38322 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38323
38324         exclude: Fix header file problems.
38325         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38326
38327 2009-12-01  Jim Meyering  <meyering@redhat.com>
38328
38329         fts: fts_open: do not let an empty string cause immediate failure
38330         This is required in support of GNU rm, for which the command
38331         "rm A '' B" must process and remove both A and B, in spite of
38332         the empty string argument.
38333         * lib/fts.c (fts_open): Do not let the presence of an empty string
38334         cause fts_open to fail immediately.  Most fts-using tools must be
38335         able to process all arguments, in order, and can be expected to
38336         diagnose such arguments themselves.
38337
38338 2009-11-30  Eric Blake  <ebb9@byu.net>
38339
38340         utimens: fix compilation error
38341         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38342         Declare variable at right scope.
38343
38344 2009-11-29  Jim Meyering  <meyering@redhat.com>
38345
38346         bootstrap: handle perl-5.11's changed --version output
38347         * build-aux/bootstrap (get_version): Handle perl separately,
38348         since perl-5.11's --version output is different.
38349
38350 2009-11-28  Jim Meyering  <meyering@redhat.com>
38351
38352         userspec: depend on the inttostr module, too
38353         * modules/userspec (Depends-on): Add inttostr.
38354
38355         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38356         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38357         number of MAXUID when it evaluates to (uid_t) -1.
38358         Likewise for group ID.  Reported by Matt McCutchen in
38359         <http://savannah.gnu.org/bugs/?28113>
38360
38361         userspec: reformat to use spaces, not TABs
38362         * lib/userspec.c: Expand TABs to spaces.
38363         Add Emacs' "indent-tabs-mode: nil" hint.
38364
38365 2009-11-27  Eric Blake  <ebb9@byu.net>
38366
38367         getopt-gnu: flush out another BSD bug
38368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38369         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38370         flush out BSD bug.
38371         * tests/test-getopt.h (test_getopt): End lists with NULL.
38372         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38373         (test_getopt_long_posix): Enhance test.
38374         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38375         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38376         getopt-gnu.
38377         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38378         Likewise.
38379
38380 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38381
38382         * modules/idpriv-droptemp-tests (Notice): Fix text.
38383
38384 2009-11-27  Jim Meyering  <meyering@redhat.com>
38385
38386         test-xalloc-die: avoid spurious failure due to libtool argv difference
38387         In a libtool-enabled project, this test would fail due to a difference
38388         in the emitted program name, e.g.,
38389         -test-xalloc-die: memory exhausted
38390         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38391         Use program to avoid that.
38392         * modules/xalloc-die-tests (Depends-on): Add progname.
38393         * tests/test-xalloc-die.c: Include progname.h".
38394         (program_name): Remove decl.
38395         (main): Call set_program_name.
38396         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38397
38398 2009-11-26  Richard Jones  <rjones@redhat.com>
38399
38400         w32sock: leave win32 error in place.
38401         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38402
38403 2009-11-26  Eric Blake  <ebb9@byu.net>
38404
38405         init.sh: suggest to use skip_ and fail_ functions in comments
38406         * tests/init.sh: Add a sentence.
38407
38408 2009-11-25  Bruno Haible  <bruno@clisp.org>
38409
38410         init.sh: add documentation in comments
38411         * tests/init.sh: Add some developer and user documentation.
38412
38413 2009-11-26  Jim Meyering  <meyering@redhat.com>
38414
38415         init.sh: accommodate even those who specify bogus srcdir manually
38416         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38417         configure-time tests to be sanitized, so that there is no need to
38418         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38419         (with no double quotes) suffices.  However, since tests may be
38420         invoked manually, and since you may explicitly set srcdir to the
38421         name of a directory containing spaces, do quote its uses here.
38422         * tests/test-pread.sh: Likewise.
38423         Suggested by Bruno Haible.
38424
38425         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38426         * tests/test-pread.sh: Write no data into the pipe, because
38427         test-pread actually reads none.  This avoids a diagnostic,
38428         "bash: echo: write error: Broken pipe", that arises in the unusual
38429         event something is ignoring SIGPIPE, and might be interpreted
38430         as some sort of failure.  Reported by Bruno Haible.
38431
38432 2009-11-25  Jim Meyering  <meyering@redhat.com>
38433
38434         test-pread: cover failure with ESPIPE and EINVAL
38435         * tests/test-pread.c (main): Test for failure, too.
38436         * tests/test-pread.sh: Invoke with stdin on a pipe.
38437         Suggested by Eric Blake.
38438
38439         pread: improvement and fix
38440         * modules/pread (Depends-on): Depend on lseek, for portability to
38441         e.g., mingw.  Suggested by Eric Blake.
38442         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38443
38444         unistd.in.h: correct declaration of pread
38445         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38446         Reported by Richard W.M. Jones.
38447
38448         test-pread.sh: distribute the test script
38449         * modules/pread-tests (Files): Include test-pread.sh.
38450
38451         test-pread.sh: clean up
38452         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38453         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38454         That is unnecessary, since it's always ".".
38455         Suggestion from Eric Blake.
38456
38457         test-pread.sh: make executable
38458         * tests/test-pread.sh: Set executable bit.
38459         Reported by Eric Blake.
38460
38461         correct typo in test-pread.sh
38462         * tests/test-pread.sh: Add #! line.
38463
38464         test pread
38465         * tests/test-pread.c: New file.
38466         * tests/test-pread.sh: Likewise.
38467         * modules/pread-tests: Likewise.
38468
38469         pread: new module
38470         * modules/pread: New file.
38471         * lib/unistd.in.h (pread): Define/declare.
38472         * lib/pread.c (pread): New file.
38473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38474         * modules/unistd (Makefile.am): Substitute witnesses.
38475         * doc/posix-functions/pread.texi (pread): Update.
38476         * MODULES.html.sh: Add pread.
38477
38478 2009-11-25  Jim Meyering  <meyering@redhat.com>
38479
38480         tests/init.sh: new file to be used via most *.sh tests
38481         * tests/init.sh: New file.
38482
38483 2009-11-25  Eric Blake  <ebb9@byu.net>
38484
38485         utimens: work around older Linux failure with symlinks
38486         * lib/utimens.c (lutimensat_works_really): New variable.
38487         (fdutimens, lutimens): Use it to manage kernels that support
38488         nanosecond times on files, but not on symlinks.
38489         Reported by OndÅ™ej Vašík.
38490
38491         utimes: fix configure grammar
38492         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38493
38494 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38495
38496         regex: Fix fastmap for multibyte character ranges.
38497         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38498         characters when a multibyte character range is included.
38499
38500 2009-11-22  Andy Wingo  <wingo@pobox.com>
38501
38502         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38503         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38504
38505 2009-11-24  Bruno Haible  <bruno@clisp.org>
38506
38507         doc: Most *_l functions exist in MacOS X 10.5.
38508         * doc/posix-functions/duplocale.texi: Update platforms list.
38509         * doc/posix-functions/freelocale.texi: Likewise.
38510         * doc/posix-functions/newlocale.texi: Likewise.
38511         * doc/posix-functions/uselocale.texi: Likewise.
38512         * doc/posix-functions/isalnum_l.texi: Likewise.
38513         * doc/posix-functions/isalpha_l.texi: Likewise.
38514         * doc/posix-functions/isblank_l.texi: Likewise.
38515         * doc/posix-functions/iscntrl_l.texi: Likewise.
38516         * doc/posix-functions/isdigit_l.texi: Likewise.
38517         * doc/posix-functions/isgraph_l.texi: Likewise.
38518         * doc/posix-functions/islower_l.texi: Likewise.
38519         * doc/posix-functions/isprint_l.texi: Likewise.
38520         * doc/posix-functions/ispunct_l.texi: Likewise.
38521         * doc/posix-functions/isspace_l.texi: Likewise.
38522         * doc/posix-functions/isupper_l.texi: Likewise.
38523         * doc/posix-functions/iswalnum_l.texi: Likewise.
38524         * doc/posix-functions/iswalpha_l.texi: Likewise.
38525         * doc/posix-functions/iswblank_l.texi: Likewise.
38526         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38527         * doc/posix-functions/iswctype_l.texi: Likewise.
38528         * doc/posix-functions/iswdigit_l.texi: Likewise.
38529         * doc/posix-functions/iswgraph_l.texi: Likewise.
38530         * doc/posix-functions/iswlower_l.texi: Likewise.
38531         * doc/posix-functions/iswprint_l.texi: Likewise.
38532         * doc/posix-functions/iswpunct_l.texi: Likewise.
38533         * doc/posix-functions/iswspace_l.texi: Likewise.
38534         * doc/posix-functions/iswupper_l.texi: Likewise.
38535         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38536         * doc/posix-functions/isxdigit_l.texi: Likewise.
38537         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38538         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38539         * doc/posix-functions/strcoll_l.texi: Likewise.
38540         * doc/posix-functions/strfmon_l.texi: Likewise.
38541         * doc/posix-functions/strftime_l.texi: Likewise.
38542         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38543         * doc/posix-functions/strxfrm_l.texi: Likewise.
38544         * doc/posix-functions/tolower_l.texi: Likewise.
38545         * doc/posix-functions/toupper_l.texi: Likewise.
38546         * doc/posix-functions/towctrans_l.texi: Likewise.
38547         * doc/posix-functions/towlower_l.texi: Likewise.
38548         * doc/posix-functions/towupper_l.texi: Likewise.
38549         * doc/posix-functions/wcscoll_l.texi: Likewise.
38550         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38551         * doc/posix-functions/wctrans_l.texi: Likewise.
38552         * doc/posix-functions/wctype_l.texi: Likewise.
38553         * doc/glibc-functions/strptime_l.texi: Likewise.
38554         * doc/glibc-functions/strtod_l.texi: Likewise.
38555         * doc/glibc-functions/strtof_l.texi: Likewise.
38556         * doc/glibc-functions/strtol_l.texi: Likewise.
38557         * doc/glibc-functions/strtold_l.texi: Likewise.
38558         * doc/glibc-functions/strtoll_l.texi: Likewise.
38559         * doc/glibc-functions/strtoul_l.texi: Likewise.
38560         * doc/glibc-functions/strtoull_l.texi: Likewise.
38561         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38562         * doc/glibc-functions/wcstod_l.texi: Likewise.
38563         * doc/glibc-functions/wcstof_l.texi: Likewise.
38564         * doc/glibc-functions/wcstol_l.texi: Likewise.
38565         * doc/glibc-functions/wcstold_l.texi: Likewise.
38566         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38567         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38568         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38569
38570 2009-11-24  Bruno Haible  <bruno@clisp.org>
38571
38572         duplocale: Fix logic bug.
38573         * lib/duplocale.c: Don't include <langinfo.h>.
38574         (_NL_LOCALE_NAME): Remove macro.
38575         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38576         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38577
38578 2009-11-23  Jim Meyering  <meyering@redhat.com>
38579
38580         test-update-copyright: don't hard-code /usr/bin/perl
38581         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38582         perl to print the current year.  Gilles Espinasse reported that
38583         the replaced use of perl was hard-coded as /usr/bin/perl.
38584
38585 2009-11-23  Bruno Haible  <bruno@clisp.org>
38586
38587         duplocale: Add support for glibc 2.3.x.
38588         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38589
38590 2009-11-22  Bruno Haible  <bruno@clisp.org>
38591
38592         vasnprintf: Tiny optimization.
38593         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38594         MacOS X.
38595
38596 2009-11-22  Bruno Haible  <bruno@clisp.org>
38597
38598         Tests for module 'duplocale'.
38599         * modules/duplocale-tests: New file.
38600         * tests/test-duplocale.c: New file.
38601
38602         New module 'duplocale'.
38603         * m4/duplocale.m4: New file.
38604         * lib/locale.in.h (duplocale): New declaration.
38605         * lib/duplocale.c: New file.
38606         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38607         gl_LOCALE_H_DEFAULTS): New macros.
38608         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38609         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38610         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38611         REPLACE_DUPLOCALE.
38612         * modules/duplocale: New file.
38613         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38614
38615 2009-11-22  Bruno Haible  <bruno@clisp.org>
38616
38617         * modules/locale-tests (configure.ac): Test for newlocale function.
38618         * tests/test-locale.c: When the system has extended locale functions,
38619         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38620
38621         locale: Make locale_t available when possible.
38622         * lib/locale.in.h: Include <xlocale.h> when it exists.
38623         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38624         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38625         * modules/locale (Depends-on): Add extensions.
38626         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38627         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38628
38629 2009-11-22  Bruno Haible  <bruno@clisp.org>
38630
38631         Add comments.
38632         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38633         invocation.
38634         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38635         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38636         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38637
38638 2009-11-22  Bruno Haible  <bruno@clisp.org>
38639
38640         error: account for the possibility of freopen (stdout).
38641         * lib/error.c: Include <unistd.h>.
38642         (flush_stdout): New function, extracted from error and error_at_line.
38643         Determine stdout's fd dynamically.
38644         (error, error_at_line): Invoke flush_stdout.
38645         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38646         * modules/error (Depends-on): Add unistd.
38647
38648 2009-11-22  Bruno Haible  <bruno@clisp.org>
38649
38650         diffseq: Add comment.
38651         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38652
38653 2009-11-22  Jim Meyering  <meyering@redhat.com>
38654
38655         c-stack: avoid defining an unused static function
38656         * lib/c-stack.c (find_stack_direction): Do not define this function
38657         when it will not be used.
38658
38659         diffseq: avoid spurious gcc warnings
38660         * lib/diffseq.h (IF_LINT2): Define.
38661         (compareseq): Use it to initialize two members of "part".
38662         This avoids two used-uninitialized warnings.
38663
38664 2009-11-21  Jim Meyering  <meyering@redhat.com>
38665
38666         c-stack: avoid "ignoring return value of `write'" warning
38667         * lib/c-stack.c: Include "ignore-value.h".
38668         (die): Explicitly ignore each write return value.
38669         * modules/c-stack (Depends-on): Add ignore-value.
38670
38671 2009-11-21  Bruno Haible  <bruno@clisp.org>
38672
38673         diffseq: reduce scope of variable 'best'.
38674         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38675         variable, earlier used for two different purposes.
38676
38677 2009-11-21  Jim Meyering  <meyering@redhat.com>
38678
38679         diffseq: remove useless assignment to "best"
38680         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38681         assignment.  At that point "best" is already guaranteed to be zero.
38682
38683 2009-11-20  Eric Blake  <ebb9@byu.net>
38684
38685         build: mention ftp redirector in release announcements
38686         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38687         values that used to come from cfg.mk; mention FTP redirect URL.
38688         * build-aux/announce-gen: Mention the mirror list.
38689         Suggested by Karl Berry.
38690
38691         nanosleep: improve port to mingw
38692         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38694         LIB_NANOSLEEP, but only when needed.
38695         * modules/select (Link): Document LIBSOCKET.
38696         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38697         enough.
38698
38699         nanosleep: work around cygwin bug
38700         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38701         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38702         bug.
38703         (getnow): Delete, not needed.
38704         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38705         LIB_CLOCK_GETTIME.
38706         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38707         clock-time, gettime.
38708         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38709         bug.
38710         * modules/nanosleep-tests: New test.
38711         * tests/test-nanosleep.c: New file.
38712
38713         sleep: work around cygwin bug
38714         * lib/sleep.c (rpl_sleep): Work around the bug.
38715         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38716         (gl_PREREQ_SLEEP): Delete unused macro.
38717         * modules/sleep (Depends-on): Add verify.
38718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38719         * modules/unistd (Makefile.am): Substitute witness.
38720         * lib/unistd.in.h (sleep): Update prototype.
38721         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38722         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38723         * modules/sleep-tests (Depends-on): Check for alarm.
38724
38725 2009-11-20  Jim Meyering  <meyering@redhat.com>
38726
38727         maint.mk: improve sc_prohibit_magic_number_exit
38728         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38729         so it does not match uses like System.exit(1).
38730         Add comments showing how to correct all offenders.
38731
38732 2009-11-19  Eric Blake  <ebb9@byu.net>
38733
38734         xalloc-die-tests: add missing library
38735         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38736
38737         test-xvasprintf: silence compiler warnings
38738         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38739         empty string from gcc.
38740
38741 2009-11-19  Jim Meyering  <meyering@redhat.com>
38742
38743         xfreopen: new module, from coreutils
38744         * modules/xfreopen: New module.
38745         * lib/xfreopen.c: New file.
38746         * lib/xfreopen.h: New file.
38747         * MODULES.html.sh (File stream based Input/Output"): Add it.
38748
38749 2009-11-19  Eric Blake  <ebb9@byu.net>
38750
38751         manywarnings: depend on warnings
38752         * modules/manywarnings (Depends-on): Add warnings.
38753
38754         build: avoid compiler warnings
38755         * lib/select.c (rpl_select): Delete unused variable.
38756         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38757
38758 2009-11-18  Eric Blake  <ebb9@byu.net>
38759
38760         tests: avoid false negative with --with-packager
38761         * tests/test-version-etc.sh: Discard packager information.
38762         * tests/test-argp-version-etc-1.sh: Likewise.
38763         Reported by Mike Frysinger.
38764
38765         utimens: fix regression on Solaris
38766         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38767         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38768         can only change fd timestamps via futimesat.  Instead, use an
38769         additional witness macro to avoid BSD bug.
38770         Reported by Jim Meyering.
38771
38772 2009-11-17  Eric Blake  <ebb9@byu.net>
38773
38774         usleep: use it to simplify tests
38775         * modules/stat-time-tests (Depends-on): Add usleep.
38776         (configure.ac): Drop usleep check.
38777         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38778         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38779         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38780         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38781         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38782         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38783         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38784         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38785         Likewise.
38786         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38787         * tests/test-lchown.h (nap): Likewise.
38788         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38789         * tests/test-stat-time.c (nap): Likewise.
38790         * tests/test-utimens-common.h (nap): Update comments.
38791
38792         usleep: new module
38793         * modules/usleep: New file.
38794         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38795         * lib/usleep.c (usleep): Likewise.
38796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38797         * modules/unistd (Makefile.am): Substitute witnesses.
38798         * lib/unistd.in.h (usleep): Add declaration.
38799         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38800         * MODULES.html.sh (Date and time): Likewise.
38801         * modules/usleep-tests (Depends-on): New test.
38802         * tests/test-usleep.c: New file.
38803
38804         chown: work around OpenBSD bug
38805         * lib/chown.c (rpl_chown): Work around the bug.
38806         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38807         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38808         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38809         * modules/chown (Depends-on): Add stdbool.
38810         * modules/lchown (Depends-on): Likewise.
38811         * doc/posix-functions/chown.texi (chown): Document the bug.
38812         * doc/posix-functions/lchown.texi (lchown): Likewise.
38813         * tests/test-lchown.h (test_chown): Relax test.
38814
38815         mkstemp: avoid conflict with C++ keyword template
38816         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38817         * lib/mkostemp.c (mkostemp): Likewise.
38818         * lib/mkostemps.c (mkostemps): Likewise.
38819         * lib/mkstemp.c (mkstemp): Likewise.
38820         * lib/mkstemps.c (mkstemps): Likewise.
38821
38822         xalloc-die-tests: optimize
38823         * tests/test-xalloc-die.sh: Reduce number of processes.
38824
38825 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38826
38827         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38828         patch from ludo@gnu.org (Ludovic Courtès).
38829
38830 2009-11-17  Jim Meyering  <meyering@redhat.com>
38831
38832         version-etc: use proper license string
38833         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38834         * modules/version-etc-fsf: Likewise.
38835
38836 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38837
38838         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38839         printed to stdout.  Deal with EOL differences.
38840
38841 2009-11-17  Eric Blake  <ebb9@byu.net>
38842
38843         unsetenv: work around Solaris bug
38844         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38845         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38846         Reported by Jim Meyering.
38847
38848         vasnprintf: avoid compiler warnings
38849         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38850         variables.
38851         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38852
38853 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38854
38855         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38856         settings since xalloc-die is no longer the self test,
38857         xalloc-die.sh is.
38858
38859 2009-11-17  Jim Meyering  <meyering@redhat.com>
38860
38861         test-xalloc-die.sh: make the code agree with the commit log
38862         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38863         at the end, just in case you happen to have a test-xalloc-die
38864         program in some other PATH directory.
38865
38866         test-xalloc-die.sh: fix a portability bug
38867         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38868         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38869         Otherwise, argv[0] (as often seen in diagnostics) would be too
38870         system-dependent, sometimes with, and sometimes without the leading "./".
38871
38872         version-etc-fsf: relax license to LGPLv3+
38873         * modules/version-etc-fsf (License): Relax license.
38874
38875 2009-11-16  Eric Blake  <ebb9@byu.net>
38876
38877         xalloc-die-tests: avoid printing null pointer
38878         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38879         shell script.
38880         * tests/test-xalloc-die.c (program_name): Declare.
38881         * tests/test-xalloc-die.sh (tmpfiles): New file.
38882
38883         setenv, unsetenv: work around various bugs
38884         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38885         (setenv) [HAVE_SETENV]: Work around bugs.
38886         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38887         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38888         for bugs.
38889         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38890         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38892         * modules/stdlib (Makefile.am): Update substitutions.
38893         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38894         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38895         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38896         * modules/setenv-tests: New test.
38897         * modules/unsetenv-tests: Likewise.
38898         * tests/test-setenv.c: New file.
38899         * tests/test-unsetenv.c: Likewise.
38900
38901 2009-11-16  Jim Meyering  <meyering@redhat.com>
38902
38903         version-etc: relax license to LGPLv3+
38904         * modules/version-etc (License): Relax license.
38905
38906         better AC_REQUIRE expanded-before-required-warning avoidance
38907         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38908         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38909         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38910         which is no longer needed.
38911
38912 2009-11-16  Eric Blake  <ebb9@byu.net>
38913
38914         test-freading: clean up temporary file
38915         * tests/test-freading.c (main): Remove file on success, and use
38916         ASSERT more liberally.
38917         Reported by Jim Meyering.
38918
38919 2009-11-16  Jim Meyering  <meyering@redhat.com>
38920
38921         avoid new AC_REQUIRE expanded-before-required warnings
38922         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38923         merely using it.
38924         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38925         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38926
38927 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38928
38929         * tests/test-xalloc-die.c: New file.
38930         * modules/xalloc-die-tests: New file.
38931         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38932         XFAIL_TESTS so it can be appended by modules.
38933
38934 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38935
38936         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38937         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38938
38939 2009-11-14  Eric Blake  <ebb9@byu.net>
38940
38941         fnmatch: avoid compiler warning
38942         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38943         to silence compiler warning about mismatch signedness in ?:.
38944         Reported by Robert Millan.
38945
38946         intprops: add double-inclusion guard
38947         * lib/intprops.h: Allow idempotent includes.
38948         Suggested by Bruce Korb.
38949
38950         openat: detect Solaris fchownat bug
38951         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38952         penalizing glibc chownat when only lchownat is broken.
38953         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38954         trailing slash bugs.
38955         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38956         * modules/openat-tests (Files): Include more files.
38957         (Depends-on): Add mgetgroups, sleep, stat-time.
38958         (configure.ac): Add additional checks.
38959         (Makefile.am): Build new test.
38960         * tests/test-fchownat.c: New file.
38961
38962         lchown: detect Solaris and FreeBSD bug
38963         * lib/lchown.c (rpl_lchown): Work around bug.
38964         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38966         * modules/unistd (Makefile.am): Populate it.
38967         * lib/unistd.in.h (lchown): Update declaration.
38968         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38969         * modules/lchown-tests: New file.
38970         * tests/test-lchown.h (test_lchown): Likewise.
38971         * tests/test-lchown.c (main): Likewise.
38972
38973         chown: detect Solaris and FreeBSD bug
38974         * lib/chown.c (rpl_chown): Work around bug.
38975         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38976         (gl_PREREQ_CHOWN): Delete.
38977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38978         * modules/unistd (Makefile.am): Populate it.
38979         * lib/unistd.in.h (chown): Update declaration.
38980         * lib/lchown.c (chown): Update client.
38981         * modules/lchown (Depends-on): Add lstat.
38982         * doc/posix-functions/chown.texi (chown): Document the bug.
38983         * doc/posix-functions/getgroups.texi (getgroups): Document
38984         getgroups pitfall.
38985         * modules/chown-tests: New file.
38986         * tests/test-chown.h (test_chown): Likewise.
38987         * tests/test-chown.c (main): Likewise.
38988
38989 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38990
38991         gnulib-tool: correctly detect absence of m4 directories
38992         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38993
38994 2009-11-14  Jim Meyering  <meyering@redhat.com>
38995
38996         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38997         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38998
38999 2009-11-14  John W. Eaton  <jwe@gnu.org>
39000
39001         strftime.h: wrap funtion declaration in extern "C" block
39002         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39003
39004 2009-11-13  Eric Blake  <ebb9@byu.net>
39005
39006         getgroups: avoid compiler warning
39007         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39008
39009         getgroups: work around FreeBSD bug
39010         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39011         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39012         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39013         * tests/test-getgroups.c (main): Fix buffer overrun.
39014
39015         getgroups: avoid compilation failure
39016         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39017         * modules/getgroups (Depends-on): Add stdint.
39018
39019 2009-11-13  Jim Meyering  <meyering@redhat.com>
39020
39021         test-getgroups: avoid compilation failure
39022         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39023
39024 2009-11-13  Eric Blake  <ebb9@byu.net>
39025
39026         mgetgroups: new module, taken from coreutils
39027         * modules/mgetgroups: New file.
39028         * lib/mgetgroups.h: Likewise.
39029         * lib/mgetgroups.c (mgetgroups): Likewise.
39030         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39031         * MODULES.html.sh (Users and groups): Mention it.
39032
39033         getgroups: don't expose GETGROUPS_T to user
39034         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39035         an element at a time if GETGROUPS_T is wrong size.
39036         * lib/getugroups.h (getugroups): Change signature.
39037         * lib/unistd.in.h (getgroups): Likewise.
39038         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39039         signature needs fixing.
39040         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39041         AC_TYPE_GETGROUPS.
39042         * modules/group-member (Depends-on): Add getgroups.
39043         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39044         (group_member): Rely on getgroups replacement.
39045         * lib/getugroups.c (getugroups): Use gid_t.
39046         * tests/test-getgroups.c (main): Likewise.
39047         * NEWS: Mention the signature change.
39048         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39049         problem with signature.
39050         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39051         GETGROUPS_T is still useful for setgroups.
39052
39053         getgroups, getugroups: provide stubs for mingw
39054         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39055         * lib/getugroups.c (getugroups): Likewise.
39056         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39057         function.  Modernize replacement scheme.
39058         (gl_PREREQ_GETGROUPS): Delete.
39059         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39060         * modules/getgroups (configure.ac): Declare witness.
39061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39062         * modules/unistd (Depends-on): Substitute witness.
39063         * lib/unistd.in.h (getgroups): Declare replacement.
39064
39065         getgroups: avoid calling exit
39066         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39067         drop xalloc.
39068         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39069         dependencies.
39070         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39071         exiting, in the rare case of malloc failure.
39072
39073         getgroups: fix logic error
39074         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39075         has more than 20 groups.
39076         * modules/getgroups-tests: New test.
39077         * tests/test-getgroups.c: New file.
39078
39079 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39080
39081         * tests/test-base64.c: Improve.
39082
39083 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39084
39085         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39086         Blake <ebb9@byu.net>.
39087
39088 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39089
39090         * tests/test-xvasprintf.c: Add %s%s related checks.
39091
39092 2009-11-12  Eric Blake  <ebb9@byu.net>
39093
39094         version-etc: match standards.texi style
39095         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39096         and use <> only for URLs.
39097
39098 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39099
39100         fts: do not fail on a submount during traversal
39101         * lib/fts.c (fts_build): Read the stat info again after opening
39102         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39103         Original report at http://bugzilla.redhat.com/501848.
39104
39105 2009-11-12  Jim Meyering  <meyering@redhat.com>
39106
39107         bootstrap: sync from coreutils
39108         * build-aux/bootstrap (bootstrap_epilogue): New function.
39109         Use git_modules_config in one more place.  This make bootstrap's
39110         --gnulib-srcdir option more useful for testing.
39111
39112         bootstrap: generalize autoheader check
39113         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39114         AC_CONFIG_HEADERS.
39115
39116 2009-11-11  Eric Blake  <ebb9@byu.net>
39117
39118         mkfifoat: use new modules for Solaris and BSD bugs
39119         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39120         * lib/mkfifoat.c (mknodat): Split...
39121         * lib/mknodat.c (mknodat): ...into new file.
39122         * modules/mkfifoat (Files): Ship new file.
39123         (Depends-on): Add mkfifo, mknod.
39124         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39125         (Depends-on): Add symlink.
39126         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39127         redundant with test_mkfifo.h.
39128         (do_mkfifoat, do_mknodat): New helpers.
39129
39130         mknod: new module
39131         * modules/mknod: New file.
39132         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39133         * lib/mknod.c (mknod): Likewise.
39134         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39135         defaults.
39136         * modules/sys_stat (Makefile.am): Substitute them.
39137         * lib/sys_stat.in.h (mknod): Declare replacement.
39138         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39139         Document it.
39140         * doc/posix-functions/mknod.texi (mknod): Likewise.
39141         * modules/mknod-tests: New test.
39142         * tests/test-mknod.c: Likewise.
39143
39144         mkfifo: new module
39145         * modules/mkfifo: New file.
39146         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39147         * lib/mkfifo.c (mkfifo): Likewise.
39148         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39149         defaults.
39150         * modules/sys_stat (Makefile.am): Substitute them.
39151         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39152         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39153         Document it.
39154         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39155         * modules/mkfifo-tests: New test.
39156         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39157         from test-mkfifoat.c.
39158         * tests/test-mkfifo.c: New file.
39159
39160         readlink: detect FreeBSD bug
39161         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39162         slash on symlink.
39163         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39164         * tests/test-readlink.h (test_readlink): Enhance test.
39165
39166         symlink: detect FreeBSD bug
39167         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39168         slash on symlink.
39169         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39170         * tests/test-symlink.h (test_symlink): Enhance test.
39171
39172 2009-11-10  Eric Blake  <ebb9@byu.net>
39173
39174         link: detect FreeBSD bug
39175         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39176         symlink.
39177         * doc/posix-functions/link.texi (link): Document the bug.
39178         * tests/test-link.h (test_link): Enhance test.
39179         * tests/test-linkat.c (main): Update caller.
39180
39181         unlink, remove: detect FreeBSD bug
39182         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39183         slash on symlink.
39184         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39185         * doc/posix-functions/remove.texi (remove): Likewise.
39186         * tests/test-unlink.h (test_unlink): Enhance test.
39187         * tests/test-remove.c (main): Likewise.
39188
39189 2009-11-09  Eric Blake  <ebb9@byu.net>
39190
39191         rename: detect FreeBSD bug
39192         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39193         slash on symlink.
39194         * modules/renameat-tests (Depends-on): Add filenamecat.
39195         * tests/test-rename.h (test_rename): Allow one more errno.
39196         * tests/test-renameat.c (main): Likewise.
39197         * doc/posix-functions/rename.texi (rename): Document the bug.
39198
39199         open: detect FreeBSD bug
39200         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39201         symlink.
39202         * doc/posix-functions/open.texi (open): Document the bug.
39203         * doc/posix-functions/utimes.texi (utimes): Likewise.
39204         * tests/test-open.h (test_open): Add parameters, and test symlink
39205         handling.
39206         * tests/test-open.c (main): Adjust caller.
39207         * tests/test-fcntl-safer.c (main): Likewise.
39208         * modules/open-tests (Depends-on): Add stdbool, symlink.
39209         * modules/fcntl-safer-tests (Depends-on): Likewise.
39210         * tests/test-openat.c (main): Add test-open tests.
39211
39212         stat: detect FreeBSD bug
39213         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39214         symlink.
39215         * doc/posix-functions/stat.texi (stat): Document the bug.
39216         * tests/test-stat.h (test_stat_func): Add argument.
39217         * tests/test-stat.c (main): Adjust caller.
39218         * tests/test-fstatat.c (main): Likewise.
39219         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39220         Reported by Jim Meyering.
39221
39222 2009-11-09  James Youngman  <jay@gnu.org>
39223
39224         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39225         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39226
39227 2009-11-08  Jim Meyering  <meyering@redhat.com>
39228
39229         utimens: remove invalid futimesat call
39230         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39231         It used the file descriptor of the target file as the DIR_FD
39232         parameter and NULL as the file name.  That caused failure with
39233         errno == EFAULT on FreeBSD-8.0-rc2
39234
39235 2009-11-07  Eric Blake  <ebb9@byu.net>
39236
39237         fflush, freadseek: use fseeko, not fseek
39238         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39239         (clear_ungetc_buffer): Avoid potential problems on large files.
39240         * lib/freadseek.c (freadseek): Likewise.
39241         * modules/freadseek (Depends-on): Add fseeko.
39242         * modules/fseek (configure.ac): Set a witness.
39243         * tests/test-fflush.c (main): Use fseeko.
39244         * tests/test-fpurge.c (fseek): Disable link warning.
39245         * tests/test-freadable.c (fseek): Likewise.
39246         * tests/test-freading.c (fseek): Likewise.
39247         * tests/test-fseeko.c (fseek): Likewise.
39248         * tests/test-ftell.c (fseek): Likewise.
39249         * tests/test-ftello.c (fseek): Likewise.
39250         * tests/test-fwritable.c (fseek): Likewise.
39251         * tests/test-fwriting.c (fseek): Likewise.
39252
39253 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39254
39255         * modules/memchr (Depends-on): Drop getpagesize dependency.
39256
39257 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39258
39259         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39260         Reported by Ludovic Courtès.
39261         * build-aux/pmccabe2html: Improve example usage.
39262         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39263
39264 2009-11-06  Jim Meyering  <meyering@redhat.com>
39265
39266         do-release-commit-and-tag: New module.
39267         Automate the release-commit and tag process.
39268         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39269         * modules/do-release-commit-and-tag: New file.
39270         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39271
39272 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39273
39274         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39275         because test-select.c uses inet_pton.
39276
39277 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39278
39279         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39280         GETADDRINFO_LIB.  Bump serial number.
39281         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39282         Suggested by Eric Blake <ebb9@byu.net>.
39283
39284 2009-11-05  Eric Blake  <ebb9@byu.net>
39285
39286         strtod: detect darwin bug
39287         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39288         Reported by Leo Davis.
39289
39290         freopen-safer: new module
39291         * modules/freopen-safer: New module.
39292         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39293         * lib/freopen-safer.c (freopen_safer): New file.
39294         * lib/stdio-safer.h (freopen_safer): New declaration.
39295         * lib/stdio--.h (freopen): New override.
39296         * MODULES.html.sh (File stream based Input/Output): Mention it.
39297         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39298         freopen-safer module.
39299         * doc/posix-functions/stderr.texi (stderr): Likewise.
39300         * doc/posix-functions/stdin.texi (stdin): Likewise.
39301         * doc/posix-functions/stdout.texi (stdout): Likewise.
39302         * modules/freopen-safer-tests: New test.
39303         * tests/test-reopen-safer.c: New file.
39304
39305 2009-11-05  Jim Meyering  <meyering@redhat.com>
39306
39307         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39308         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39309
39310 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39311
39312         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39313
39314 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39315
39316         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39317
39318 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39319
39320         Fix link error.
39321         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39322         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39323
39324 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39325
39326         * tests/test-func.c: Also test value of __func__.
39327
39328 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39329
39330         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39331         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39332
39333 2009-11-05  Bruno Haible  <bruno@clisp.org>
39334
39335         Fix link error.
39336         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39337         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39338         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39339
39340 2009-11-05  Bruno Haible  <bruno@clisp.org>
39341
39342         Tests for module 'inet_pton'.
39343         * modules/inet_pton-tests: New file.
39344         * tests/test-inet_pton.c: New file.
39345
39346 2009-11-05  Bruno Haible  <bruno@clisp.org>
39347
39348         Tests for module 'inet_ntop'.
39349         * modules/inet_ntop-tests: New file.
39350         * tests/test-inet_ntop.c: New file.
39351
39352 2009-11-04  Eric Blake  <ebb9@byu.net>
39353
39354         stdlib-safer: wrap all mkstemp variants
39355         * modules/mkostemp (configure.ac): Set witness.
39356         * modules/mkostemps (configure.ac): Likewise.
39357         * modules/mkstemps (configure.ac): Likewise.
39358         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39359         (mkstemps_safer): Wrap more functions.
39360         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39361         wrapping.
39362         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39363         (mkstemps_safer): Implement the wrappers.
39364
39365         mkstemps, mkostemps: new modules
39366         * modules/mkostemps: New module.
39367         * modules/mkstemps: Likewise.
39368         * lib/mkostemps.c (mkostemps): New file.
39369         * lib/mkstemps.c (mkstemps): Likewise.
39370         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39371         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39373         * modules/stdlib (Makefile.am): Substitute them.
39374         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39375         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39376         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39377         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39378         * MODULES.html.sh (File system functions): Mention them.
39379
39380         tempname: resync from glibc
39381         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39382         same values for __GT_FILE as glibc.  Abort even when assertions
39383         are disabled.
39384         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39385         match its value otherwise.  Allow idempotent inclusion.
39386         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39387         * lib/mkostemp.c (mkostemp): Likewise.
39388         * lib/mkstemp.c (mkstemp): Likewise.
39389         * lib/tmpfile.c (tmpfile): Likewise.
39390         * NEWS: Document this.
39391
39392         utimens: fix use of futimens on older Linux
39393         * lib/utimens.c (fdutimens): Use updated, rather than original,
39394         timespec to avoid bug in older Linux kernel.
39395         Reported by Simon Josefsson.
39396
39397 2009-11-04  Bruno Haible  <bruno@clisp.org>
39398
39399         Make num_processors more flexible and consistent.
39400         * lib/nproc.h (enum nproc_query): New type.
39401         (num_processors): Add a 'query' argument.
39402         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39403         (num_processors): Add a 'query' argument. Test the value of the
39404         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39405         mingw, count the number of CPUs available for the current process.
39406         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39407         Check for sched_getaffinity and sched_getaffinity_np.
39408         * modules/nproc (Depends-on): Add c-ctype, extensions.
39409         * NEWS: Mention the change.
39410
39411 2009-11-03  Bruno Haible  <bruno@clisp.org>
39412
39413         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39414
39415 2009-11-03  Jim Meyering  <meyering@redhat.com>
39416
39417         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39418         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39419         if it is defined.
39420
39421 2009-11-02  Eric Blake  <ebb9@byu.net>
39422
39423         mktime, timegm: share common declaration
39424         * lib/mktime-internal.h: New file.
39425         * lib/mktime.c: Use it rather than open-coding a declaration.
39426         * lib/timegm.c: Likewise.
39427         * modules/mktime (Files): Ship it.
39428         * modules/timegm (Files): Likewise.
39429         Suggested by Bruno Haible.
39430
39431         test-update-copyright: update test to match script changes
39432         * tests/test-update-copyright.sh: Avoid hard-coding perl
39433         location.  Don't update *.bak created by earlier runs.
39434
39435 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39436             Simon Josefsson  <simon@josefsson.org>
39437             Bruno Haible  <bruno@clisp.org>
39438
39439         Fix link error on Solaris 8.
39440         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39441         also in libnsl. Define also INET_PTON_LIB.
39442         * modules/inet_pton (Link): New section.
39443
39444 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39445             Bruno Haible  <bruno@clisp.org>
39446
39447         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39448         * modules/inet_ntop (Link): New section.
39449         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39450
39451 2009-11-02  Eric Blake  <ebb9@byu.net>
39452
39453         maint: avoid compiler warnings in m4 macros
39454         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39455         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39456
39457 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39458
39459         * m4/pmccabe2html.m4: Remove file.
39460         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39461         function.  Change maintainer.
39462         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39463         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39464         Courtès).
39465
39466 2009-10-31  Eric Blake  <ebb9@byu.net>
39467
39468         fseeko: fix m4 regression
39469         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39470         regression from 2009-10-27.
39471         Reported by Ralf Wildenhues.
39472
39473 2009-10-31  Jim Meyering  <meyering@redhat.com>
39474
39475         inttostr: aesthetics and improved (compile-time) safety
39476         Define inttype_is_signed rather than inttype_is_unsigned,
39477         since the sole use is via "#if inttype_is_signed".
39478         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39479         inttype_is_unsigned.
39480         * lib/offtostr.c (inttype_is_signed): Likewise.
39481         * lib/uinttostr.c (inttype_is_signed): Likewise.
39482         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39483         * lib/inttostr.c (inttostr): Use verify to cross-check the
39484         inttype_is_signed value and the signedness of the actual type.
39485         * modules/inttostr (Depends-on): Add verify.
39486
39487 2009-10-30  Eric Blake  <ebb9@byu.net>
39488
39489         build: avoid compiler warnings
39490         * lib/fchmodat.c (lchmod): Mark unused variables.
39491         * lib/getopt.c (_getopt_initialize): Likewise.
39492         * lib/mktime.c (__mktime_internal): Provide prototype.
39493         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39494         older gcc that do not understand #pragma GCC diagnostic.
39495         * lib/uinttostr.c (inttype_is_unsigned): Define.
39496         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39497
39498 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39499
39500         stat: fix compilation on AIX
39501         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39502         only see struct stat64.
39503
39504 2009-10-30  Eric Blake  <ebb9@byu.net>
39505
39506         exclude: make more robust
39507         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39508         rather than masking a coding bug.
39509         Suggested by Bruno Haible.
39510
39511 2009-10-30  Jim Meyering  <meyering@redhat.com>
39512
39513         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39514         Rather than putting #!/usr/bin/perl on the first line,
39515         start with a variant of what's recommended by "man perlrun" that
39516         invokes the first "perl" program from your shell's search path.
39517         * build-aux/gitlog-to-changelog: Replace #!... as above.
39518         Add a "Local Variables" perl mode setting.
39519         Prompted by a patch from Ludovic Courtès.
39520         Improved by Eric Blake.
39521         * build-aux/useless-if-before-free: Likewise.
39522         * build-aux/announce-gen: Likewise.
39523         * build-aux/update-copyright: Likewise.
39524
39525 2009-10-29  Eric Blake  <ebb9@byu.net>
39526
39527         filenamecat-lgpl: adjust clients
39528         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39529         filenamecat.
39530         * modules/renameat (Depends-on): Likewise.
39531
39532         filenamecat: split into filenamecat-lgpl
39533         * modules/filenamecat-lgpl: New module.
39534         * modules/filenamecat (Files): Move library-safe files into
39535         filenamecat-lgpl.
39536         (Depends-on): Add filenamecat-lgpl.
39537         (configure.ac): Declare witness.
39538         * lib/filenamecat.h (file_name_concat): Only declare when using
39539         GPL module.
39540         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39541         Move...
39542         * lib/filenamecat-lgpl.c: ...into new file.
39543         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39544         (gl_FILE_NAME_CONCAT): Use it.
39545         * MODULES.html.sh (File system functions): Mention new module.
39546
39547         argp: avoid memory leak
39548         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39549         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39550         base_name, since the latter malloc()s and can call exit().
39551         Leak introduced 2006-07-03.
39552
39553         dirname-lgpl: adjust clients that don't need full dirname
39554         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39555         * modules/filenamecat (Depends-on): Likewise.
39556         * modules/linkat (Depends-on): Likewise.
39557         * modules/mkancesdirs (Depends-on): Likewise.
39558         * modules/mkdir (Depends-on): Likewise.
39559         * modules/openat (Depends-on): Likewise.
39560         * modules/savewd (Depends-on): Likewise.
39561         * modules/rename (Depends-on): Likewise.
39562         (License): Relax license.
39563         * modules/mkdir-tests (Depends-on): Drop progname.
39564         (Makefile.am): Delete unneeded LDADD.
39565         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39566
39567         dirname: split into dirname-lgpl
39568         * modules/dirname-lgpl: New module.
39569         * modules/dirname (Files): Move library-safe files into
39570         dirname-lgpl.
39571         (Depends-on): Add dirname-lgpl.
39572         (configure.ac): Declare witness.
39573         * modules/double-slash-root (License): Relax license.
39574         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39575         module.
39576         * lib/dirname.c (dir_len, mdir_name): Move...
39577         * lib/dirname-lgpl.c: ...into new file.
39578         * lib/basename.c (last_component, base_len): Move...
39579         * lib/basename-lgpl.c: ...into new file.
39580         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39581         (gl_DIRNAME): Use it.
39582         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39583         Mention new module.
39584         * modules/dirname-tests (Depends-on): Add progname.
39585         * tests/test-dirname.c (program_name): Delete.
39586
39587         mkdir: make safe for libraries
39588         * modules/mkdir (Depends-on): Drop xalloc.
39589         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39590         exit.
39591
39592         tests: avoid some compiler warnings
39593         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39594         literals.
39595         * tests/test-memchr.c (main): Avoid type mismatch.
39596         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39597         * tests/test-base64.c (main): Likewise.
39598         * tests/test-getdelim.c (main): Likewise.
39599         * tests/test-gethostname.c (main): Likewise.
39600         * tests/test-getline.c (main): Likewise.
39601         * tests/test-netinet_in.c (main): Likewise.
39602         * tests/test-select.c (open_server_socket, main): Likewise.
39603         * tests/test-select-stdin.c (main): Likewise.
39604         * tests/test-sockets.c (main): Likewise.
39605         * tests/test-strsignal.c (main): Likewise.
39606         * tests/test-sys_select.c (main): Likewise.
39607         * tests/test-sys_socket.c (main): Likewise.
39608         * tests/test-u64.c (main): Likewise.
39609         * tests/test-xfprintf-posix.c (main): Likewise.
39610         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39611
39612         sockets: avoid compiler warning
39613         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39614
39615         maint: detect usage(1) and other suspicious exits
39616         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39617
39618 2009-10-29  Jim Meyering  <meyering@redhat.com>
39619
39620         timespec: long-to-int truncation could make timespec_cmp malfunction
39621         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39622         a multiple of 2^32 nanoseconds as no difference.
39623
39624 2009-10-28  Jim Meyering  <meyering@redhat.com>
39625
39626         fprintftime: wrap macro code argument in "do {...} while(0)"
39627         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39628         cpy macro must be a statement that can be followed by a semicolon.
39629         Now that the else clause contains a comment and is hence longer
39630         than one line, I require curly braces.  That in turn requires
39631         that we wrap this code block in the standard do...while(0).
39632
39633         fprintftime: remove stray semicolon from previous change
39634         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39635
39636         fprintftime: avoid a warning about ignored fwrite return value
39637         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39638         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39639         that is unsafe.
39640         * modules/fprintftime (Depends-on): Add ignore-value.
39641
39642         exclude: avoid an unwarranted warning
39643         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39644
39645 2009-10-27  Eric Blake  <ebb9@byu.net>
39646
39647         fseek: avoid compilation failure when fflush is replaced
39648         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39649         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39650         module is in use.
39651         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39652         module is not in use; since REPLACE_FSEEK worked otherwise.
39653         (GNULIB_FTELLO): Likewise for ftell.
39654         Reported by Ian Beckwith and others.
39655
39656 2009-10-27  Bruno Haible  <bruno@clisp.org>
39657
39658         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39659         Reported by Jim Meyering.
39660
39661 2009-10-27  Jim Meyering  <jim@meyering.net>
39662             Bruno Haible  <bruno@clisp.org>
39663
39664         Avoid warning despite dropping the return value of fwrite.
39665         * lib/unicodeio.c: Include ignore-value.h.
39666         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39667         * modules/unicodeio (Depends-on): Add ignore-value.
39668
39669 2009-10-26  Eric Blake  <ebb9@byu.net>
39670
39671         areadlinkat: fix fallback path
39672         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39673         pointer and zero.
39674
39675 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39676
39677         Use a better IO block size for modern systems
39678         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39679         * lib/md2.c: Likewise.
39680         * lib/md4.c: Likewise.
39681         * lib/md5.c: Likewise.
39682         * lib/sha1.c: Likewise.
39683         * lib/sha256.c: Likewise.
39684         * lib/sha512.c: Likewise.
39685
39686 2009-10-22  Eric Blake  <ebb9@byu.net>
39687
39688         tests: avoid several compiler warnings
39689         * tests/test-getcwd.c (main): Avoid buffer underflow.
39690         * tests/test-getdate.c (main): String literals are not safe with
39691         putenv, so use setenv.  Declare unused argument.
39692         * modules/getdate-tests (Depends-on): Add setenv.
39693         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39694         problems with string literals in char *.
39695         * tests/test-hash.c (main): Avoid shadowing declaration.
39696         (insert_new): Treat string literals as char const *.
39697         * tests/test-getopt.h (test_getopt): Likewise.
39698         (getopt_loop): Alter types to minimize casting elsewhere.
39699         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39700         (test_getopt_long_posix): Likewise.
39701         (do_getopt_long): Add wrapper to minimize casting.
39702         * tests/test-atexit.c (clear_temp_file): Use void.
39703         * tests/test-areadlink-with-size.c (main): Declare unused
39704         arguments.
39705         * tests/test-areadlink.c (main): Likewise.
39706         * tests/test-areadlinkat-with-size.c (main): Likewise.
39707         * tests/test-areadlinkat.c (main): Likewise.
39708         * tests/test-canonicalize-lgpl.c (main): Likewise.
39709         * tests/test-canonicalize.c (main): Likewise.
39710         * tests/test-dirent-safer.c (main): Likewise.
39711         * tests/test-dirname.c (main): Likewise.
39712         * tests/test-dup2.c (main): Likewise.
39713         * tests/test-fchdir.c (main): Likewise.
39714         * tests/test-fcntl-h.c (main): Likewise.
39715         * tests/test-fcntl-safer.c (main): Likewise.
39716         * tests/test-fdopendir.c (main): Likewise.
39717         * tests/test-fdutimensat.c (main): Likewise.
39718         * tests/test-fflush.c (main): Likewise.
39719         * tests/test-filenamecat.c (main): Likewise.
39720         * tests/test-filevercmp.c (main): Likewise.
39721         * tests/test-fopen-safer.c (main): Likewise.
39722         * tests/test-fopen.c (main): Likewise.
39723         * tests/test-fpending.c (main): Likewise.
39724         * tests/test-fpurge.c (main): Likewise.
39725         * tests/test-freading.c (main): Likewise.
39726         * tests/test-fstatat.c (main): Likewise.
39727         * tests/test-fsync.c (main): Likewise.
39728         * tests/test-futimens.c (main): Likewise.
39729         * tests/test-getndelim2.c (main): Likewise.
39730         * tests/test-gettimeofday.c (main): Likewise.
39731         * tests/test-getopt.c (main): Likewise.
39732         * tests/test-i-ring.c (main): Likewise.
39733         * tests/test-inttypes.c (main): Likewise.
39734         * tests/test-link.c (main): Likewise.
39735         * tests/test-lstat.c (main): Likewise.
39736         * tests/test-math.c (main): Likewise.
39737         * tests/test-md5.c (main): Likewise.
39738         * tests/test-memchr2.c (main): Likewise.
39739         * tests/test-memrchr.c (main): Likewise.
39740         * tests/test-mkdir.c (main): Likewise.
39741         * tests/test-mkdirat.c (main): Likewise.
39742         * tests/test-mkfifoat.c (main): Likewise.
39743         * tests/test-open.c (main): Likewise.
39744         * tests/test-openat-safer.c (main): Likewise.
39745         * tests/test-openat.c (main): Likewise.
39746         * tests/test-quotearg.c (main): Likewise.
39747         * tests/test-rawmemchr.c (main): Likewise.
39748         * tests/test-readlink.c (main): Likewise.
39749         * tests/test-remove.c (main): Likewise.
39750         * tests/test-rename.c (main): Likewise.
39751         * tests/test-renameat.c (main): Likewise.
39752         * tests/test-rmdir.c (main): Likewise.
39753         * tests/test-sha1.c (main): Likewise.
39754         * tests/test-signal.c (main): Likewise.
39755         * tests/test-sigaction.c (main): Likewise.
39756         * tests/test-stat.c (main): Likewise.
39757         * tests/test-stat-time.c (main): Likewise.
39758         * tests/test-stddef.c (main): Likewise.
39759         * tests/test-stdint.c (main): Likewise.
39760         * tests/test-stdio.c (main): Likewise.
39761         * tests/test-stdlib.c (main): Likewise.
39762         * tests/test-strchrnul.c (main): Likewise.
39763         * tests/test-strerror.c (main): Likewise.
39764         * tests/test-string.c (main): Likewise.
39765         * tests/test-strtod.c (main): Likewise.
39766         * tests/test-strverscmp.c (main): Likewise.
39767         * tests/test-symlink.c (main): Likewise.
39768         * tests/test-symlinkat.c (main): Likewise.
39769         * tests/test-sys_stat.c (main): Likewise.
39770         * tests/test-sys_time.c (main): Likewise.
39771         * tests/test-time.c (main): Likewise.
39772         * tests/test-unistd.c (main): Likewise.
39773         * tests/test-unlink.c (main): Likewise.
39774         * tests/test-unlinkat.c (main): Likewise.
39775         * tests/test-utimens.c (main): Likewise.
39776         * tests/test-utimensat.c (main): Likewise.
39777         * tests/test-version-etc.c (main): Likewise.
39778         * tests/test-wchar.c (main): Likewise.
39779         * tests/test-wctype.c (main): Likewise.
39780         * tests/test-xprintf-posix.c (main): Likewise.
39781         * tests/test-posixtm.c (main): Likewise.
39782         (STREQ): Delete unused macro.
39783         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39784         shadowed variables.
39785         * tests/test-memchr.c (main): Likewise.
39786
39787 2009-10-21  Eric Blake  <ebb9@byu.net>
39788
39789         areadlinkat: avoid failure on older glibc
39790         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39791         rather than mis-comparing 0 against FUNC_RESULT of char*.
39792
39793 2009-10-21  Bruno Haible  <bruno@clisp.org>
39794
39795         * modules/stpncpy (License): Relicense under LGPLv2+.
39796         Reported by David Lutterkort <lutter@redhat.com>.
39797
39798 2009-10-20  Eric Blake  <ebb9@byu.net>
39799
39800         utimensat: work around Solaris 9 bug
39801         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39802         has trailing slash bugs.
39803         * tests/test-lutimens.h (test_lutimens): Enhance test.
39804         * tests/test-utimens.h (test_utimens): Likewise.
39805         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39806         * doc/posix-functions/utimes.texi (utimes): Likewise.
39807         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39808         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39809         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39810         * doc/posix-functions/futimens.texi (futimens): Likewise.
39811
39812         fdutimensat: new module
39813         * modules/fdutimensat: New file.
39814         * lib/fdutimensat.c (fdutimensat): Likewise.
39815         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39816         * MODULES.html.sh (File system functions): Mention module.
39817         * modules/fdutimensat-tests: New test.
39818         * tests/test-fdutimensat.c: Likewise.
39819
39820         doc: regenerate INSTALL
39821         * doc/INSTALL: Reflect recent autoconf update.
39822         * doc/INSTALL.ISO: Likewise.
39823         * doc/INSTALL.UTF-8: Likewise.
39824
39825 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39826
39827         acl: warn if ACL support is not detected
39828         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39829
39830 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39831
39832         * lib/nproc.h: Add extern "C" block for C++.
39833
39834 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39835             Bruno Haible  <bruno@clisp.org>
39836
39837         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39838         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39839         * doc/posix-functions/isalpha.texi: Likewise.
39840         * doc/posix-functions/isblank.texi: Likewise.
39841         * doc/posix-functions/iscntrl.texi: Likewise.
39842         * doc/posix-functions/isdigit.texi: Likewise.
39843         * doc/posix-functions/isgraph.texi: Likewise.
39844         * doc/posix-functions/islower.texi: Likewise.
39845         * doc/posix-functions/isprint.texi: Likewise.
39846         * doc/posix-functions/ispunct.texi: Likewise.
39847         * doc/posix-functions/isspace.texi: Likewise.
39848         * doc/posix-functions/isupper.texi: Likewise.
39849         * doc/posix-functions/isxdigit.texi: Likewise.
39850
39851 2009-10-18  Bruno Haible  <bruno@clisp.org>
39852
39853         Tests for module 'isblank'.
39854         * modules/isblank-tests: New file.
39855         * tests/test-isblank.c: New file.
39856
39857         New module 'isblank'.
39858         * lib/isblank.c: New file.
39859         * m4/isblank.m4: New file.
39860         * modules/isblank: New file.
39861         * doc/posix-functions/isblank.texi: Mention the new module.
39862
39863 2009-10-18  Bruno Haible  <bruno@clisp.org>
39864
39865         New module 'ctype'.
39866         * lib/ctype.in.h: New file.
39867         * m4/ctype.m4: New file.
39868         * modules/ctype: New file.
39869         * doc/posix-headers/ctype.texi: Mention the new module.
39870
39871 2009-10-18  Jim Meyering  <meyering@redhat.com>
39872
39873         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39874         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39875         right after its initialization, rather than farther down.
39876         Keeping these in close proximity makes it easier to ensure
39877         that each such variable is initialized.  E.g.,
39878
39879             LIB_CLOCK_GETTIME=
39880             AC_SUBST([LIB_CLOCK_GETTIME])
39881
39882         This change also increments these serial numbers.
39883         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39884         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39885         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39886
39887 2009-10-18  Bruno Haible  <bruno@clisp.org>
39888
39889         Don't let environment variables perturb build.
39890         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39891         (gl_PREREQ_GETHRXTIME): ... not here.
39892
39893 2009-10-18  Bruno Haible  <bruno@clisp.org>
39894
39895         Avoid symlink attack in localcharset module.
39896         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39897         (O_NOFOLLOW): Define fallback.
39898         (get_charset_aliases): Don't open the file if it is a symbolic link.
39899         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39900         gl_FCNTL_H.
39901         (gl_FCNTL_H): Require it.
39902         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39903         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39904         Reported by Fergal Glynn <fglynn@veracode.com>.
39905
39906 2009-10-18  Bruno Haible  <bruno@clisp.org>
39907
39908         Implement nproc for mingw.
39909         * lib/nproc.c: Include <windows.h>
39910         (num_processors): On native Windows platforms, try GetSystemInfo.
39911
39912 2009-10-18  Bruno Haible  <bruno@clisp.org>
39913
39914         Implement nproc for IRIX.
39915         * lib/nproc.c: Include <sys/sysmp.h>.
39916         (num_processors): On IRIX systems, try sysmp.
39917         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39918
39919 2009-10-18  Bruno Haible  <bruno@clisp.org>
39920
39921         Implement nproc for HP-UX.
39922         * lib/nproc.c: Include <sys/pstat.h>
39923         (num_processors): On HP-UX systems, try pstat_getdynamic.
39924         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39925         pstat_getdynamic.
39926
39927 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39928             Bruno Haible  <bruno@clisp.org>
39929
39930         Implement nproc for NetBSD, OpenBSD.
39931         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39932         (ARRAY_SIZE): New macro.
39933         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39934         * m4/nproc.m4: New file.
39935         * modules/nproc (Files): Add m4/nproc.m4.
39936         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39937         (Makefile.am): Instead, augment lib_SOURCES.
39938
39939 2009-10-18  Bruno Haible  <bruno@clisp.org>
39940
39941         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39942         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39943         sys/param.h.
39944
39945 2009-10-16  Eric Blake  <ebb9@byu.net>
39946
39947         utimensat: new module
39948         * modules/utimensat: New file.
39949         * lib/utimensat.c (utimensat): Likewise.
39950         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39951         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39952         so we can work around Linux bugs.
39953         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39954         * modules/sys_stat (Makefile.am): Substitute them.
39955         * lib/sys_stat.in.h (utimensat): Declare it.
39956         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39957         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39958         * modules/utimensat-tests: New test.
39959         * tests/test-utimensat.c: Likewise.
39960
39961         utimens: let lutimens work on non-symlinks
39962         * lib/utimens.c (lutimens): Fall back to utimens rather than
39963         failing with ENOSYS, when file is not a symlink.
39964         (utimens): Reduce redirection.
39965         * tests/test-lutimens.h (test_lutimens): Update test to cover
39966         non-symlinks.
39967         * tests/test-utimens.h (test_utimens): Update test to cover
39968         symlinks.
39969         * tests/test-utimens.c (main): Update caller.
39970
39971         utimens: cache whether utimensat syscall works
39972         * lib/utimens.c (utimensat_works_really): New cache variable.
39973         (fdutimens, lutimens): Use it to avoid failing syscall.
39974
39975         test-stat-time, test-utimens: improve portability
39976         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39977         ext4 on alpha, and for cygwin.
39978         * tests/test-utimens-common.h: New file.
39979         (nap): Factor delays into single function.
39980         * tests/test-lutimens.h (test_lutimens): Use new header.
39981         * tests/test-futimens.h (test_futimens): Likewise.
39982         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39983         timestamps to occur from same machine, as was done previously for
39984         test_utimens.
39985         * modules/utimens-tests (Files): Ship new file.
39986         * modules/futimens-tests (Files): Likewise.
39987         Reported in part by Jim Meyering.
39988
39989         sys_stat: sort replacement declarations
39990         * lib/sys_stat.in.h: Sort declarations.
39991         * lib/futimens.c (futimens): Fix typo.
39992
39993 2009-10-15  Jim Meyering  <meyering@redhat.com>
39994
39995         don't let environment settings perturb build
39996         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39997         could cause a configure-time and/or build-time malfunction.
39998         Typically, a configure-time function-in-library test is performed
39999         via code like this:
40000
40001           LIB_VAR=
40002           AC_SUBST([LIB_VAR])
40003           prefix_saved_LIBS=$LIBS
40004             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40005                        [test "$ac_cv_search_FUNC" = "none required" ||
40006                         LIB_VAR=$ac_cv_search_FUNC])
40007           LIBS=$prefix_saved_LIBS
40008
40009         However, in each of the files affected by this change, the LIB_VAR=
40010         initialization was omitted.  Thus, when set in the environment, its
40011         value would propagate into generated Makefiles when FUNC is not found
40012         in LIB_NAME.
40013         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40014         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40015         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40016
40017 2009-10-14  Eric Blake  <ebb9@byu.net>
40018
40019         fchdir: avoid infinite recursion in mingw
40020         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40021         recursing.
40022
40023         test-stat-time: port to mingw
40024         * tests/test-stat-time.c (force_unlink): Return a value.
40025         (test_ctime) [W32]: Fix compilation error.
40026         (nap): Don't call usleep with too large an argument.  Use
40027         force_unlink.
40028         * doc/pastposix-functions/usleep.texi (usleep): Document the
40029         portability issue.
40030
40031 2009-10-13  Jim Meyering  <meyering@redhat.com>
40032
40033         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40034         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40035         * modules/pipe-filter-ii: Likewise.
40036         * modules/sys_socket-tests: Likewise.
40037         * modules/tsearch-tests: Likewise.
40038         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40039         (check): Depend on it.
40040
40041 2009-10-12  Eric Blake  <ebb9@byu.net>
40042
40043         utimens-tests: port to NFS file systems
40044         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40045         comparisons to avoid spurious failures from timestamp drift
40046         between NFS machines.
40047
40048 2009-10-12  Eric Blake  <ebb9@byu.net>
40049
40050         stat-time-tests: minor cleanups
40051         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40052         * tests/test-stat-time.c (nap): Separate assignment from call.
40053         Suggested by Paolo Bonzini and Bruno Haible.
40054
40055         sys_stat: guarantee struct timespec
40056         * lib/sys_stat.in.h (includes): Always include <time.h>
40057         * modules/sys_stat (Depends-on): Add time.
40058         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40059         mode_t permission values.
40060         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40061         get at subsecond timestamps.
40062
40063 2009-10-10  Eric Blake  <ebb9@byu.net>
40064
40065         futimens: new module
40066         * modules/futimens: New file.
40067         * lib/futimens.c (futimens): Likewise.
40068         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40069         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40070         we can work around Linux bugs.
40071         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40072         * modules/sys_stat (Makefile.am): Substitute them.
40073         * lib/sys_stat.in.h (futimens): Declare it.
40074         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40075         * doc/posix-functions/futimens.texi (futimens): Likewise.
40076         * modules/futimens-tests: New test.
40077         * tests/test-futimens.c: Likewise.
40078
40079         utimens: introduce fdutimens
40080         * lib/utimens.h (fdutimens): New prototype.
40081         * lib/utimens.c (gl_futimens): Move guts...
40082         (fdutimens): ...to new interface.
40083         * tests/test-utimens.c (do_fdutimens): Use it.
40084
40085         utimens: add UTIME_NOW and UTIME_OMIT support
40086         * lib/utimens.c (validate_timespec, update_timespec): New helper
40087         functions.
40088         (gl_futimens, lutimens): Use them.
40089         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40090         stdbool, sys_stat.
40091         (Link): Mention resulting library dependency.
40092         * modules/utimecmp (Link): Likewise.
40093         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40094         (Makefile.am): Pick up library dependency.
40095         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40096         definition.
40097         * tests/test-sys_stat.c: Test the definitions.
40098         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40099         * NEWS: Document library dependency.
40100
40101         utimecmp: support symlink timestamps
40102         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40103         hashing when possible.  Use pathconf when available.
40104         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40105         * modules/utimecmp (Depends-on): Add lstat.
40106
40107         utimens: add lutimens interface
40108         * lib/utimens.c (lutimens): New function.
40109         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40110         * lib/utimens.h (lutimens): Declare new interface.
40111         * tests/test-utimens.c (main): Enhance test.
40112         * tests/test-lutimens.h (test_lutimens): New file.
40113         * modules/utimens-tests (Files): Distribute it.
40114         (Depends-on): Add symlink.
40115         (configure.ac): Check for usleep.
40116
40117         utimens: validate futimens usage
40118         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40119         fewer syscalls on failure later on.  Avoid compiler warning on
40120         mingw.
40121         * modules/utimens (Depends-on): Add dup2.
40122
40123         utimens: add test
40124         * modules/utimens-tests: New test.
40125         * tests/test-utimens.h: New file.
40126         * tests/test-futimens.h: Likewise.
40127         * tests/test-utimens.c: Likewise.
40128
40129         doc: mention timestamp portability issues
40130         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40131         instead.
40132         * doc/posix-functions/utime.texi (utime): Likewise.
40133         * doc/posix-functions/utimes.texi (utimes): Likewise.
40134         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40135         instead.
40136         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40137         module.
40138         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40139         Mention weakness with symlink timestamps.
40140         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40141         to utimensat/futimens instead.
40142         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40143
40144         test-dup2: enhance test
40145         * tests/test-dup2.c (main): Also check AT_FDCWD.
40146
40147         test-stat-time: avoid more spurious failures
40148         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40149         xfs; and avoid race if the two timestamps cross quantization edge.
40150
40151         relocatable: prefer 'file system' over 'filesystem'
40152         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40153         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40154         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40155         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40156         * lib/relocatable.c (compute_curr_prefix): Likewise.
40157
40158 2009-10-10  Jim Meyering  <meyering@redhat.com>
40159
40160         stat-time-tests: check for the usleep function
40161         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40162
40163 2009-10-10  Bruno Haible  <bruno@clisp.org>
40164
40165         * modules/xnanosleep: Put the Link section after the Include section.
40166
40167 2009-10-09  Eric Blake  <ebb9@byu.net>
40168
40169         dup2: work around FreeBSD 6.1 bug
40170         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40171         * doc/posix-functions/dup2.texi (dup2): Document it.
40172         Reported by Nelson H. F. Beebe and Jim Meyering.
40173
40174         test-stat-time: port to buggy NFS clients
40175         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40176         (test_ctime): Also skip test if mtime and ctime are skewed.
40177
40178         maint: prefer 'file system' over 'filesystem'
40179         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40180         * doc/posix-functions/lstat.texi (lstat): Likewise.
40181         * lib/file-has-acl.c (file_has_acl): Likewise.
40182         * lib/fwriteerror.c [TEST]: Likewise.
40183         * tests/test-areadlink.h (test_areadlink): Likewise.
40184         * tests/test-areadlinkat-with-size.c (main): Likewise.
40185         * tests/test-areadlinkat.c (main): Likewise.
40186         * tests/test-canonicalize-lgpl.c (main): Likewise.
40187         * tests/test-canonicalize.c (main): Likewise.
40188         * tests/test-fstatat.c (main): Likewise.
40189         * tests/test-linkat.c (main): Likewise.
40190         * tests/test-lstat.h (test_lstat_func): Likewise.
40191         * tests/test-mkdir.h (test_mkdir): Likewise.
40192         * tests/test-readlink.h (test_readlink): Likewise.
40193         * tests/test-remove.c (main): Likewise.
40194         * tests/test-rename.h (test_rename): Likewise.
40195         * tests/test-renameat.c (main): Likewise.
40196         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40197         * tests/test-symlink.h (test_symlink): Likewise.
40198         * tests/test-symlinkat.c (main): Likewise.
40199         * tests/test-unlink.h (test_unlink_func): Likewise.
40200         * tests/test-unlinkat.c (main): Likewise.
40201
40202         maint: make realtime library usage explicit
40203         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40204         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40205         * modules/settime (Link): Likewise.
40206         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40207
40208         test-stat-time: speed up execution
40209         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40210         warning on mingw.
40211         (nap): New helper function.
40212         (prepare_test): Use it to reduce sleep time.
40213         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40214         execution.
40215         * modules/stat-time-tests (configure.ac): Check for usleep.
40216
40217 2009-10-09  Jim Meyering  <meyering@redhat.com>
40218
40219         selinux-h: always use getfilecon wrappers
40220         * lib/getfilecon.c: New file.
40221         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40222         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40223         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40224         (fgetfilecon): Provide a stub.
40225         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40226         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40227         file unconditionally.
40228         When <selinux/selinux.h> is found, arrange to use wrappers.
40229         * modules/selinux-h (Files): Add getfilecon.c.
40230         (Makefile.am): Substitute include-next-related bits
40231         into the now-always-generated selinux/selinux.h file.
40232         * doc/glibc-functions/lgetfilecon.texi: New file.
40233         * doc/glibc-functions/fgetfilecon.texi: New file.
40234         * doc/glibc-functions/getfilecon.texi: New file.
40235         * doc/glibc-functions/getfilecon-desc.texi: New file.
40236         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40237         which to pull in the new files.
40238         * MODULES.html.sh (Misc): Add selinux-h.
40239
40240 2009-10-08  Jim Meyering  <meyering@redhat.com>
40241
40242         unistd: fix comment typo
40243         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40244
40245 2009-10-08  Eric Blake  <ebb9@byu.net>
40246
40247         areadlink: use SIZE_MAX consistently
40248         * modules/areadlink (Depends-on): Add stdint.
40249         * modules/areadlink-with-size (Depends-on): Likewise.
40250         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40251         gives NULL; drop sys/types, since unistd gives size_t; and add
40252         stdint for SIZE_MAX.
40253         (SIZE_MAX): Rely on headers.
40254         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40255         and add stdint.
40256         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40257         (SIZE_MAX): Likewise.
40258         (INITIAL_BUF_SIZE): Turn into enum.
40259         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40260
40261 2009-10-08  Jim Meyering  <meyering@redhat.com>
40262
40263         areadlinkat: avoid compilation failure
40264         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40265         Fix typo in comment.
40266
40267 2009-10-07  Eric Blake  <ebb9@byu.net>
40268
40269         areadlinkat-with-size: new module
40270         * modules/areadlinkat-with-size: New module.
40271         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40272         * lib/areadlink.h (areadlinkat): Declare it.
40273         * MODULES.html.sh (File system functions): Mention it.
40274         * modules/areadlinkat-with-size-tests: New test.
40275         * tests/test-areadlinkat-with-size.c: New file.
40276
40277         xreadlinkat: new module
40278         * modules/xreadlinkat: New module.
40279         * lib/xreadlinkat.c (xreadlinkat): New file.
40280         * lib/xreadlink.h (xreadlinkat): Declare it.
40281         * MODULES.html.sh (File system functions): Mention it.
40282
40283         areadlinkat: new module
40284         * lib/at-func.c (FUNC_FAIL): New define.
40285         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40286         * modules/areadlinkat: New module.
40287         * lib/linkat.c (areadlinkat): Move...
40288         * lib/areadlinkat.c (areadlinkat): ...to new file.
40289         * lib/areadlink.h (areadlinkat): Declare it.
40290         * modules/linkat (Depends-on): Add areadlinkat.
40291         * MODULES.html.sh (File system functions): Mention it.
40292         * modules/areadlinkat-tests: New test.
40293         * tests/test-areadlinkat.c: New file.
40294
40295         areadlink, areadlink-with-size: add tests
40296         * modules/areadlink-tests: New test.
40297         * modules/areadlink-with-size-tests: Likewise.
40298         * tests/test-areadlink.h: New file.
40299         * tests/test-areadlink.c: Likewise.
40300         * tests/test-areadlink-with-size.c: Likewise.
40301
40302         maint: minor cleanups
40303         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40304         _UNUSED_PARAMETER_ instead.
40305         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40306         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40307         * modules/linkat-tests (Files): Distribute test-link.h.
40308
40309         openat, utimens: whitespace cleanup
40310         * lib/openat.c: Prefer space throughout, rather than mix of 8
40311         spaces vs. tabs.
40312         * lib/at-func.c: Likewise.
40313         * lib/utimens.c: Likewise.
40314
40315         openat: avoid using wrong fd
40316         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40317         working directory chooses same fd.
40318         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40319
40320         mkdir, mkdirat: fix cygwin 1.5.x bug
40321         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40322         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40323         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40324         bug.
40325         (gl_PREREQ_MKDIR): Delete unused macro.
40326         * modules/mkdir (Files): Track file rename.
40327         (configure.ac): Update macro name.
40328         * modules/openat (Depends-on): Add mkdir.
40329         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40330
40331         mkdir, mkdirat: add tests
40332         * modules/mkdir-tests: New test.
40333         * tests/test-mkdir.h: New file.
40334         * tests/test-mkdir.c: Likewise.
40335         * tests/test-mkdirat.c: Likewise.
40336         * modules/openat-tests (Files): Add new files.
40337         (Makefile.am): Run new test.
40338
40339 2009-10-06  Eric Blake  <ebb9@byu.net>
40340
40341         doc: tweak *at function documentation
40342         * doc/posix-functions/faccessat.texi (faccessat): Mention
40343         known issue with replacement.
40344         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40345         * doc/posix-functions/linkat.texi (linkat): Likewise.
40346         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40347         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40348         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40349         * doc/posix-functions/renameat.texi (renameat): Likewise.
40350         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40351
40352         openat: fix GNU/Hurd bug in unlinkat
40353         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40354         broken.
40355         * doc/posix-functions/unlink.texi (unlink): Document this.
40356         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40357
40358         fdopendir: fix GNU/Hurd bug
40359         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40360         allowing non-directory fds.
40361         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40362         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40363         * modules/dirent (Makefile.am): Substitute it.
40364         * lib/dirent.in.h (fdopendir): Declare replacement.
40365         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40366         * tests/test-fdopendir.c (main): Test something other than
40367         /dev/null, since on Hurd that behaves like a directory.
40368
40369         test-symlink: port to GNU/Hurd
40370         * tests/test-symlink.h (test_symlink): Relax expected errno.
40371
40372         doc: tweak more cygwin information
40373         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40374         now compatible with glibc.
40375         * doc/posix-functions/getopt.texi (getopt): Likewise.
40376
40377         getopt-gnu: add another test
40378         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40379         guarantee behavior relied on by m4.
40380         * tests/test-getopt.c (main): Use it.
40381         * modules/getopt-posix-tests (Depends-on): Add setenv.
40382         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40383
40384         getopt: fix compilation on darwin
40385         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40386         include.
40387         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40388         Reported by Ludovic Courtès.
40389
40390 2009-10-06  Bruno Haible  <bruno@clisp.org>
40391
40392         * modules/size_max (Description): Discourage its use.
40393         Reported by Simon Josefsson.
40394
40395 2009-10-06  Jim Meyering  <meyering@redhat.com>
40396
40397         linkat: avoid compilation failure
40398         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40399
40400 2009-10-05  Eric Blake  <ebb9@byu.net>
40401
40402         linkat: support Linux 2.6.17
40403         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40404         linkat on Linux, but allow cache variable override.
40405         * lib/linkat.c (rpl_linkat): Define override.
40406         * modules/linkat (Depends-on): Add symlinkat.
40407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40408         * modules/unistd (Makefile.am): Substitute it.
40409         * lib/unistd.in.h (linkat): Declare replacement.
40410         Reported by Pádraig Brady.
40411
40412         quotearg: port test to systems with C.UTF-8 locale
40413         * tests/test-quotearg.c (struct result_strings): Add another
40414         member, differentiating between C.ASCII and C.UTF-8 handling.
40415         (compare_strings): Add parameter.
40416         (main): Adjust all callers.
40417
40418         getopt: avoid clash with FreeBSD _getopt_internal
40419         * lib/getopt.in.h (_getopt_internal): Override the name.
40420         * lib/getopt_int.h (includes): Pick up any overrides.
40421         Reported by Reuben Thomas.
40422
40423         hash: allow C89 compilation
40424         * lib/hash.c (check_tuning): Move declaration before statement.
40425         Reported by Reuben Thomas.
40426
40427 2009-10-05  Karl Berry  <karl@gnu.org>
40428
40429         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40430
40431 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40432             Bruno Haible  <bruno@clisp.org>
40433
40434         * lib/uname.c (uname): Use a table-driven algorithm to compute
40435         Windows NT versions.
40436
40437 2009-10-04  Bruno Haible  <bruno@clisp.org>
40438
40439         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40440         program_invocation_short_name.
40441         * modules/progname (configure.ac): Test for presence of
40442         program_invocation_short_name.
40443         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40444
40445 2009-10-04  Bruno Haible  <bruno@clisp.org>
40446
40447         * lib/progname.c (set_program_name): Fix comment.
40448         Reported by Jim Meyering.
40449
40450 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40451             Bruno Haible  <bruno@clisp.org>
40452
40453         * lib/uname.c: Include <string.h>.
40454         (uname): Do only one call to GetVersionEx in the common case.
40455
40456 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40457             Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40460         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40461         (uname): Add support for Windows CE and various non-x86 CPU types.
40462
40463 2009-10-03  Bruno Haible  <bruno@clisp.org>
40464
40465         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40466         invocation to tests/configure.ac.
40467         Reported by Ian Beckwith <ianb@erislabs.net>.
40468
40469 2009-10-02  Eric Blake  <ebb9@byu.net>
40470
40471         fchdir: avoid compiler warning
40472         * lib/fchdir.c (canonicalize_file_name)
40473         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40474
40475         test-open: support mingw errno values
40476         * tests/test-open.h (test_open): Relax test.
40477         * tests/test-fopen.h (test_fopen): Likewise.
40478         * tests/test-openat-safer.c (main): Likewise.
40479
40480         open: fix opening directory on mingw
40481         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40482
40483         test-open: on GNU/Hurd, /dev/null is a directory
40484         * tests/test-fopen.h (main): Rename...
40485         (test_fopen): ...to this.  Use a guaranteed non-directory when
40486         confirming open behavior on trailing slash.
40487         * tests/test-openat-safer.c (main): Likewise.
40488         * tests/test-open.h (main): Likewise....
40489         (test_open): ...to this.
40490         * tests/test-fopen.c (main): Adjust caller.
40491         * tests/test-fopen-safer.c (main): Likewise.
40492         * tests/test-open.c (main): Likewise.
40493         * tests/test-fcntl-safer.c (main): Likewise.
40494         Reported by Samuel Thibault.
40495
40496         rename, fchdir: don't ignore chdir failure
40497         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40498         * lib/rename.c (rpl_rename) [W32]: Likewise.
40499         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40500         an empty destination directory if source cannot be renamed,
40501         although there is still possibility for failure.
40502         * doc/posix-functions/rename.texi (rename): Document the race.
40503         Reported by Jim Meyering.
40504
40505         maint: cleanup whitespace in recent commits
40506         * lib/rename.c (rpl_rename): Remove tabs.
40507         * tests/test-link.h (test_link): Likewise.
40508         * lib/fchdir.c (get_name): Likewise.
40509         Reported by Jim Meyering.
40510
40511 2009-10-02  Ben Pfaff  <blp@gnu.org>
40512
40513         relocatable-prog-wrapper: Add missing dependency on
40514         double-slash-root.
40515         * modules/relocatable-prog-wrapper: Add dependency.
40516         Reported by Ian Beckwith <ianb@erislabs.net>.
40517
40518 2009-10-02  Eric Blake  <ebb9@byu.net>
40519
40520         renameat: fix Solaris bugs
40521         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40522         needed fixing.
40523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40524         * modules/stdio (Makefile.am): Substitute it.
40525         * lib/stdio.in.h (renameat): Declare replacement.
40526         * lib/renameat.c (rpl_renameat): Implement fix.
40527
40528         renameat: new module
40529         * modules/renameat: New file.
40530         * lib/renameat.c (renameat): Likewise.
40531         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40533         * modules/stdio (Makefile.am): Substitute them.
40534         * lib/stdio.in.h (renameat): Declare it.
40535         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40536         * doc/posix-functions/renameat.texi (renameat): Likewise.
40537         * modules/renameat-tests: New test.
40538         * tests/test-renameat.c: Likewise.
40539
40540         rename: fix mingw bugs
40541         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40542         directory overwrite bugs.
40543
40544         rename: fix another cygwin 1.5 bug
40545         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40546         checks.
40547         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40548         unnecessary cygwin workarounds.  Also work around bug with moving
40549         full directory onto an empty one.
40550         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40551
40552         rename-dest-slash: merge into rename module
40553         * modules/rename-dest-slash (Status): Mark obsolete.
40554         (Depends-on): Add rename.
40555         (Files): Let rename do it all.
40556         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40557         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40558         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40559         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40560         * lib/rename.c (rpl_rename): Update comments.
40561
40562         rename: fix cygwin 1.5.x bugs
40563         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40564         * lib/rename.c (rpl_rename): Work around them.
40565         * modules/rename (Depends-on): Add same-inode.
40566
40567         rename: fix Solaris 10 bug
40568         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40569         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40570         was the only bug.
40571
40572         rename: fix Solaris 9 bug
40573         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40574         on non-directory.  Avoid calling exit.
40575         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40576         strdup.
40577         * modules/rename-tests (Depends-on): Drop lstat.
40578         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40579         (gl_PREREQ_RENAME): Delete unused macro.
40580
40581         rename-dest-slash: fix NetBSD bug
40582         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40583         links.
40584         * modules/rename-dest-slash (Depends-on): Add same-inode.
40585
40586         rename-tests: new test, exposes several platform bugs
40587         * modules/rename-tests: New file.
40588         * tests/test-rename.h: Likewise.
40589         * tests/test-rename.c: Likewise.
40590         * doc/posix-functions/rename.texi (rename): Improve documentation,
40591         including bugs that will eventually be fixed in gnulib.
40592
40593 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40594
40595         * lib/uname.c: Include <stdlib.h>
40596         (uname): Assume version info is available.
40597
40598 2009-10-02  Jim Meyering  <meyering@redhat.com>
40599
40600         gnu-web-doc-update: correct --help output
40601         * build-aux/gnu-web-doc-update: Make --help output relevant.
40602
40603         gnu-web-doc-update: add standard options
40604         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40605
40606         gnu-web-doc-update: New module.
40607         Use this script to automatically update the on-line web documentation
40608         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40609         * modules/gnu-web-doc-update: New file, from coreutils.
40610         * build-aux/gnu-web-doc-update: New script.
40611
40612 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40613
40614         link: LoadLibrary is not needed.
40615         * lib/link.c: Use GetModuleHandle.
40616
40617 2009-10-01  Eric Blake  <ebb9@byu.net>
40618
40619         getopt: bump serial number
40620         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40621         change.
40622
40623         tests: tighten link, rmdir, and remove tests
40624         * tests/test-link.h (includes): No need to use <config.h> here.
40625         Clean up if directory hard link was created, otherwise test for
40626         trailing '.'.
40627         * tests/test-linkat.c (main): Simplify.
40628         * tests/test-remove.c (main): Enhance test for trailing '.'.
40629         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40630
40631 2009-10-01  Jim Meyering  <meyering@redhat.com>
40632
40633         maint.mk: requiring "make major" was annoying, for a "minor" release.
40634         What is intended is "stable", to contrast with alpha and beta,
40635         so require "make stable", not "make major".
40636         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40637         (get_tool_versions): Likewise.
40638         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40639
40640 2009-09-30  Ben Pfaff  <blp@gnu.org>
40641
40642         Fix broken build of replacement for Windows tmpfile().
40643         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40644         flags argument added along with the 'mkostemp' module.
40645
40646 2009-09-28  Bruno Haible  <bruno@clisp.org>
40647
40648         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40649         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40650         to 'remove_elt'.
40651         (gl_list_remove): Update.
40652         * lib/gl_list.c (gl_list_remove): Update.
40653         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40654         to 'remove_elt'.
40655         (gl_oset_remove): Update.
40656         * lib/gl_list.c (gl_oset_remove): Update.
40657         Reported by Eric Blake.
40658
40659 2009-09-28  Eric Blake  <ebb9@byu.net>
40660
40661         doc: mention yet more cygwin 1.7 status
40662         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40663         cygwin.
40664         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40665         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40666
40667         argp: fix test failure
40668         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40669         that are not upper-case.  Pass correct range to tolower.
40670
40671 2009-09-27  Jim Meyering  <meyering@redhat.com>
40672
40673         test-yesno: work around sparc-dash here-document infelicity
40674         Without this change, the literal \177 byte in a here document
40675         would make dash 0.5.5.1-3 access uninitialized memory.
40676         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40677         Instead, use a marker, "@", and filter through tr to create the desired
40678         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40679
40680 2009-09-27  Bruno Haible  <bruno@clisp.org>
40681
40682         Disable untested support for new flavours of ACLs on AIX.
40683         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40684         progress.
40685         * lib/set-mode-acl.c (qset_acl): Likewise.
40686
40687 2008-12-07  Bruno Haible  <bruno@clisp.org>
40688
40689         Add support for new flavours of ACLs on AIX. (Untested.)
40690         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40691         (file_has_acl): Add support for newer AIX.
40692         * lib/set-mode-acl.c (qset_acl): Likewise.
40693         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40694         Rainer Tammer <tammer@tammer.net>.
40695
40696 2009-09-26  Eric Blake  <ebb9@byu.net>
40697
40698         argp: fix compilation of getopt
40699         * lib/getopt.in.h (includes): Use different guard than glibc.
40700         Reported by Sergey Poznyakoff.
40701
40702         doc: mention more cygwin 1.7 status
40703         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40704         bug.
40705         * doc/posix-functions/execl.texi (execl): Likewise.
40706         * doc/posix-functions/execle.texi (execle): Likewise.
40707         * doc/posix-functions/execlp.texi (execlp): Likewise.
40708         * doc/posix-functions/execv.texi (execv): Likewise.
40709         * doc/posix-functions/execve.texi (execve): Likewise.
40710         * doc/posix-functions/execvp.texi (execvp): Likewise.
40711         * doc/glibc-functions/canonicalize_file_name.texi
40712         (canonicalize_file_name): Cygwin 1.7 now provides this.
40713         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40714         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40715         on AT_SYMLINK_NOFOLLOW.
40716
40717 2009-09-24  Eric Blake  <ebb9@byu.net>
40718
40719         test-linkat: make test more robust
40720         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40721
40722         getopt: fix inclusion guards for cygwin
40723         * modules/getopt-posix (Depends-on): Add include-next.
40724         (Makefile.am): Substitute more items in replacement header.
40725         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40726         <getopt.h>.
40727         * lib/getopt.in.h (includes): Use split inclusion guard, and
40728         prefer <getopt.h> over include <unistd.h> when one is present.
40729         (option): Also override name of 'struct option'.
40730
40731         same-inode: revert prior change; it is not yet ready
40732         * NEWS: Undo mention of this change.
40733         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40734         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40735         * lib/cycle-check.c (cycle_check): Likewise.
40736         * lib/same.c (same_name): Likewise.
40737         * lib/at-func2.c (at_func2): Likewise.
40738
40739 2009-09-23  Eric Blake  <ebb9@byu.net>
40740
40741         linkat: new module
40742         * modules/linkat: New file.
40743         * lib/at-func2.c (at_func2): Likewise.
40744         * lib/linkat.c (linkat): Likewise.
40745         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40746         * lib/openat-priv.h (at_func2): Add declaration.
40747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40748         * modules/unistd (Makefile.am): Substitute them.
40749         * lib/unistd.in.h (linkat): Declare it.
40750         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40751         * doc/posix-functions/linkat.texi (linkat): Likewise.
40752         * doc/posix-functions/link.texi (link): Tweak wording.
40753         * tests/test-link.c (main): Move guts...
40754         * tests/test-link.h (test_link): ...into new file.
40755         * modules/linkat-tests: New test.
40756         * tests/test-linkat.c: Likewise.
40757         * modules/link-tests (Files): Ship new file.
40758         (Depends-on): Add stdbool.
40759
40760         dirname: add library-safe mdir_name
40761         * lib/dirname.h (mdir_name): New prototype.
40762         * lib/dirname.c (dir_name): Move guts...
40763         (mdir_name): ...to new function that avoids xalloc_die.
40764
40765         fchdir: another mingw fix
40766         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40767         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40768         on mingw (where it has not yet been ported), and make it optional
40769         elsewhere.
40770         (_gl_register_fd): Use it.
40771
40772         same-inode: make SAME_INODE tri-state, to port to mingw
40773         * NEWS: Mention this change.
40774         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40775         st_ino always being 0.
40776         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40777         * lib/cycle-check.c (cycle_check): Likewise.
40778         * lib/same.c (same_name): Likewise.
40779
40780         lstat: avoid mingw compilation error
40781         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40782         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40783         lstat ourselves.
40784         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40785         was adequate.
40786         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40787         the checks for lstat.
40788         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40789
40790         link: fix test failure on Solaris 9
40791         * lib/link.c (rpl_link): Don't assume link will catch bogus
40792         trailing slash on source.
40793
40794         test-symlinkat: enhance test
40795         * tests/test-readlink.c (main): Move guts...
40796         * tests/test-readlink.h (test_readlink): ...into new file.
40797         * tests/test-symlink.c (main): Move guts...
40798         * tests/test-symlink.h (test_symlink): ...into new file.
40799         * tests/test-symlinkat.c (main): Use new files for further
40800         coverage.
40801         (do_symlink, do_readlink): New helper functions.
40802         * modules/symlink-tests (Files): Ship new file.
40803         (Depends-on): Add stdbool.
40804         * modules/readlink-tests (Files): Ship new file.
40805         (Depends-on): Add stdbool.
40806         * modules/symlinkat-tests (Files): Use new files.
40807
40808 2009-09-23  Eric Blake  <ebb9@byu.net>
40809
40810         readlink: document portability issue with symlink length
40811         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40812         systems have bogus st_size on symlinks, and mention the
40813         areadlink-with-size module.
40814         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40815         * doc/posix-functions/readlink.texi (readlink): Mention the
40816         areadlink module, and ERANGE failure.
40817         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40818         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40819
40820         readlink: fix Solaris 9 bug with trailing slash
40821         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40822         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40823         * doc/posix-functions/readlink.texi (readlink): Document this.
40824         * modules/readlink-tests: New test.
40825         * tests/test-readlink.c: Likewise.
40826
40827         readlink: fix cygwin 1.5.x bug with return type
40828         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40829         * lib/unistd.in.h (readlink): Use ssize_t.
40830         * lib/readlink.c (readlink): Likewise.
40831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40832         * modules/unistd (Makefile.am): Substitute it.
40833         * lib/unistd.in.h (readlink): Declare replacement.
40834         * doc/posix-functions/readlink.texi (readlink): Document this.
40835
40836         symlink: use throughout gnulib
40837         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40838         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40839         symlink is not used.
40840         * modules/symlinkat (Depends-on): Add symlink.
40841         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40842         * modules/canonicalize-tests (Depends-on): Likewise.
40843         * modules/lstat-tests (Depends-on): Likewise.
40844         * modules/openat-tests (Depends-on): Likewise.
40845         * modules/remove-tests (Depends-on): Likewise.
40846         * modules/rmdir-tests (Depends-on): Likewise.
40847         * modules/unlink-tests (Depends-on): Likewise.
40848         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40849         * tests/test-canonicalize.c (symlink): Likewise.
40850         * tests/test-fstatat.c (symlink): Likewise.
40851         * tests/test-lstat.c (symlink): Likewise.
40852         * tests/test-remove.c (symlink): Likewise.
40853         * tests/test-rmdir.c (symlink): Likewise.
40854         * tests/test-unlink.c (symlink): Likewise.
40855         * tests/test-unlinkat.c (symlink): Likewise.
40856
40857         symlink: new module, for Solaris 9 bug
40858         * modules/symlink: New file.
40859         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40860         * lib/symlink.c: Likewise.
40861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40862         * modules/unistd (Makefile.am): Substitute them.
40863         * lib/unistd.in.h (symlink): Declare replacement.
40864         * MODULES.html.sh (File system functions): Mention it.
40865         * doc/posix-functions/symlink.texi (symlink): Likewise.
40866         * modules/symlink-tests: New test.
40867         * tests/test-symlink.c: Likewise.
40868
40869 2009-09-23  Bruno Haible  <bruno@clisp.org>
40870
40871         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40872         when needed.
40873         Test case: gnulib-tool --import --with-tests atexit inttypes.
40874         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40875
40876 2009-09-23  Bruno Haible  <bruno@clisp.org>
40877
40878         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40879         subcommand, not in a subshell.
40880
40881 2009-09-22  Eric Blake  <ebb9@byu.net>
40882
40883         unistd: sort replacement declarations
40884         * lib/unistd.in.h: Sort declarations.
40885
40886         open, openat: minor optimization
40887         * lib/open.c (open): If open succeeded, len is non-zero.
40888         * lib/openat.c (rpl_openat): Likewise.
40889
40890         link-follow: ensure correct result
40891         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40892         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40893         distinguish between possible failures.
40894
40895 2009-09-21  Eric Blake  <ebb9@byu.net>
40896
40897         fts: avoid compiler warning
40898         * lib/fts.c (dirent_inode_sort_may_be_useful)
40899         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40900
40901 2009-09-19  Bruno Haible  <bruno@clisp.org>
40902
40903         * lib/progreloc.c (canonicalize_file_name): New declaration.
40904
40905 2009-09-19  Eric Blake  <ebb9@byu.net>
40906
40907         link: fix quoting
40908         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40909
40910         openat: fix openat bugs on Solaris 9
40911         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40912         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40913         * modules/openat (Depends-on): Add open.
40914         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40915         * modules/fcntl-h (Makefile.am): Substitute it.
40916         * lib/fcntl.in.h (openat): Declare replacement.
40917         * doc/posix-functions/openat.texi (openat): Document this.
40918
40919         openat: move fstatat and unlinkat into correct files
40920         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40921         compiled.
40922         * lib/openat.c (fstatat, unlinkat): Move...
40923         * lib/fstatat.c (fstatat): ...into correct files.
40924         * lib/unlinkat.c (unlinkat): Likewise.
40925
40926         openat: fix unlinkat bugs on Solaris 9
40927         * lib/unlinkat.c (unlinkat): New file.
40928         * modules/openat (Depends-on): Add unlink.
40929         (Files): Distribute it.
40930         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40931         trailing slash behavior is broken.
40932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40933         * modules/unistd (Makefile.am): Substitute it.
40934         * lib/unistd.in.h (unlinkat): Declare replacement.
40935         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40936
40937         openat: fix fstatat bugs on Solaris 9
40938         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40939         stat.
40940         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40941
40942         test-unlinkat: enhance test, to expose Solaris 9 bug
40943         * tests/test-unlink.c (main): Factor guts...
40944         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40945         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40946         * tests/test-rmdir.c (main): Adjust caller.
40947         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40948         (unlinker): New helper function.
40949         (rmdirat): Enhance check.
40950         * modules/rmdir-tests (Depends-on): Add stdbool.
40951         * modules/unlink-tests (Depends-on): Likewise.
40952         (Files): Add test-unlink.h.
40953         * modules/openat-tests (Files): Likewise.
40954         (Depends-on): Add unlinkdir.
40955
40956         test-fstatat: new test, to expose Solaris 9 bugs
40957         * tests/test-stat.c (main): Factor guts...
40958         * tests/test-stat.h (test_stat_func): ...into new file.
40959         * tests/test-lstat.c (main): Factor guts...
40960         * tests/test-lstat.h (test_lstat_func): ...into new file.
40961         * tests/test-fstatat.c: New file.
40962         * modules/stat-tests (Files): Add test-stat.h.
40963         * modules/lstat-tests (Files): Add test-lstat.h.
40964         (Depends-on): Add stdbool.
40965         * modules/openat-tests (Depends-on): Add pathmax.
40966         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40967         (Makefile.am): Run new test.
40968
40969         remove: new module, for mingw and Solaris 9 bugs
40970         * modules/remove: New file.
40971         * lib/remove.c: Likewise.
40972         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40974         * modules/stdio (Makefile.am): Use them.
40975         * lib/stdio.in.h (remove): Declare replacement.
40976         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40977         * doc/posix-functions/remove.texi (remove): Likewise.
40978         * modules/remove-tests: New test.
40979         * tests/test-remove.c: Likewise.
40980
40981         unlink: new module, for Solaris 9 bug
40982         * modules/unlink: New file.
40983         * lib/unlink.c: Likewise.
40984         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40986         * modules/unistd (Makefile.am): Use them.
40987         * lib/unistd.in.h (stat): Declare replacement.
40988         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40989         * doc/posix-functions/unlink.texi (unlink): Likewise.
40990         * modules/unlink-tests: New test.
40991         * tests/test-unlink.c: Likewise.
40992
40993         lstat: fix Solaris 9 bug
40994         * lib/lstat.c (lstat): Also check for trailing slash on
40995         non-symlink, non-directories.  Use stat module to simplify logic.
40996         * doc/posix-functions/lstat.texi (lstat): Document it.
40997         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40998         (configure.ac): Check for symlink.
40999         * tests/test-lstat.c (main): Add more tests.
41000
41001         stat: add as dependency to other modules
41002         * modules/chown (Depends-on): Add stat.
41003         * modules/euidaccess (Depends-on): Likewise.
41004         * modules/fchdir (Depends-on): Likewise.
41005         * modules/isdir (Depends-on): Likewise.
41006         * modules/link (Depends-on): Likewise.
41007         * modules/lstat (Depends-on): Likewise.
41008         * modules/mkdir-p (Depends-on): Likewise.
41009         * modules/modechange (Depends-on): Likewise.
41010         * modules/open (Depends-on): Likewise.
41011         * modules/readlink (Depends-on): Likewise.
41012         * modules/same (Depends-on): Likewise.
41013
41014         stat: fix Solaris 9 bug
41015         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41016         slash.
41017         * lib/stat.c (rpl_stat): Work around it.
41018         * doc/posix-functions/stat.texi (stat): Update documentation.
41019
41020         stat: new module, for mingw bug
41021         * modules/stat: New file.
41022         * lib/stat.c: Likewise.
41023         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41025         * modules/sys_stat (Makefile.am): Use them.
41026         * lib/sys_stat.in.h (stat): Declare replacement.
41027         * lib/openat.c (fstatat): Deal with lstat and stat being function
41028         macros.
41029         * modules/openat (Depends-on): Add inline.
41030         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41031         * doc/posix-functions/stat.texi (stat): Likewise.
41032         * modules/stat-tests: New test.
41033         * tests/test-stat.c: Likewise.
41034
41035 2009-09-19  Jim Meyering  <meyering@redhat.com>
41036
41037         syntax-check: detect unnecessary inclusion of canonicalize.h
41038         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41039
41040 2009-09-19  Eric Blake  <ebb9@byu.net>
41041
41042         canonicalize-lgpl: adjust clients to use correct header
41043         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41044         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41045         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41046         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41047         * lib/progreloc.c (includes): Likewise.
41048
41049 2009-09-19  Jim Meyering  <meyering@redhat.com>
41050
41051         test-posixtm.c: correct a comment
41052         * tests/test-posixtm.c: Correct first-line comment.
41053         Spotted by Eric Blake.
41054
41055 2009-09-16  Jim Meyering  <meyering@redhat.com>
41056
41057         posixtm-tests: make T const-correct; add a test case
41058         * tests/test-posixtm.c (T): Declare const.
41059         Add a test for -(2^31+1).
41060         Remove useless can-succeed-only-in-2002 test.
41061
41062         posixtm-tests: adjust the sole failing test
41063         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41064         expected output matches what mktime now produces.  Cross-checked via
41065         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41066
41067         posixtm: move #ifdef'd tests into a new module
41068         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41069         * tests/test-posixtm.c: ... this new file.
41070         * modules/posixtm-tests: New module.
41071
41072 2009-09-19  Eric Blake  <ebb9@byu.net>
41073
41074         openat: simplify use of at-func.c
41075         * lib/at-func.c (includes): Include prerequisites here, to
41076         simplify requirements on client files.
41077         * lib/openat-priv.h: Add double-inclusion guard.
41078         * lib/faccessat.c (includes): Simplify.
41079         * lib/fchmodat.c (includes): Likewise.
41080         * lib/fchownat.c (includes): Likewise.
41081         * lib/mkdirat.c (includes): Likewise.
41082         * lib/mkfifoat.c (includes): Likewise.
41083         * lib/symlinkat.c (includes): Likewise.
41084
41085         openat: allow return of fd 0
41086         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41087         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41088         unistd-safer.
41089         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41090         <fcntl.h>; this module does not leak fds.
41091         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41092         must be allowed to return 0, leaving openat_safer to add the
41093         safety.
41094         (openat_permissive): Avoid writing to just-opened fd 2 if
41095         restoring the current directory fails.
41096         * lib/openat-die.c (openat_restore_fail): Add comment.
41097         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41098         (save_cwd): Guarantee safe fd, but without use of open_safer.
41099         * tests/test-openat.c: New test.
41100         * modules/openat-tests (Files, Makefile.am): Distribute and build
41101         new file.
41102
41103         relocatable-prog-wrapper: fix build
41104         * modules/relocatable-prog-wrapper (Files): Update name of
41105         canonicalize m4 file, broken on 2009-09-17.
41106         Reported by emad hajjar <aleppos@hotmail.com>.
41107
41108 2009-09-19  Bruno Haible  <bruno@clisp.org>
41109
41110         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41111         * lib/safe-alloc.c: Likewise.
41112         Reported by Ian Beckwith <ianb@erislabs.net>.
41113
41114 2009-09-18  Bruno Haible  <bruno@clisp.org>
41115
41116         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41117         Reported by <erobles@sensacd.com.mx>.
41118
41119 2009-09-17  Eric Blake  <ebb9@byu.net>
41120
41121         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41122         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41123         slashes when checking if last component is missing.
41124         * tests/test-canonicalize.c (main): Test this.
41125
41126         canonicalize, canonicalize-lgpl: honor // if distinct from /
41127         * modules/canonicalize (Files): Add double-slash-root.m4.
41128         * modules/canonicalize-lgpl (Files): Likewise.
41129         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41130         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41131         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41132         fallback definition.
41133         (canonicalize_filename_mode): Use it to protect //.
41134         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41135         (__realpath): Likewise.
41136         * tests/test-canonicalize.c (main): Test this.
41137         * tests/test-canonicalize-lgpl.c (main): Likewise.
41138         * modules/canonicalize-tests (Depends-on): Add same-inode.
41139         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41140
41141         canonicalize-lgpl: fix glibc bug with trailing slash
41142         * m4/canonicalize-lgpl.m4: Move contents...
41143         * m4/canonicalize.m4: ...here.
41144         (gl_CANONICALIZE_LGPL): Factor realpath check...
41145         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41146         glibc 2.3.5 bug, fixed 2005-04-27.
41147         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41148         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41149         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41150         * modules/canonicalize-lgpl (Files): Manage file rename.
41151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41152         * modules/stdlib (Makefile.am): Substitute witness.
41153         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41154         is needed.
41155         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41156         replacement is required.
41157         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41158         * doc/glibc-functions/canonicalize_file_name.texi
41159         (canonicalize_file_name): Document this.
41160         * doc/posix-functions/realpath.texi (realpath): Likewise.
41161
41162         canonicalize-lgpl: reject non-directory with trailing slash
41163         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41164         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41165         catches failures in glibc 2.3.5.
41166         * tests/test-canonicalize.c (main): Likewise.
41167
41168         canonicalize-lgpl: use native realpath if it works
41169         * lib/canonicalize-lgpl.c (realpath): Guard with
41170         FUNC_REALPATH_WORKS.
41171         * lib/stdlib.in.h (realpath): Make declaration optional based on
41172         HAVE_REALPATH.
41173         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41174         native realpath works.
41175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41176         * modules/stdlib (Makefile.am): Substitute witness.
41177
41178         canonicalize, canonicalize-lgpl: use <stdlib.h>
41179         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41180         (Include): Mention <stdlib.h>.
41181         (configure.ac): Mention functions we provide.
41182         * modules/canonicalize (configure.ac): Likewise.
41183         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41184         realpath if canonicalize_file_name is missing.
41185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41186         * modules/stdlib (Makefile.am): Substitute witnesses.
41187         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41188         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41189         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41190         * NEWS: Document this.
41191         * doc/glibc-functions/canonicalize_file_name.texi
41192         (canonicalize_file_name): Likewise.
41193         * doc/posix-functions/realpath.texi (realpath): Likewise.
41194         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41195
41196         test-canonicalize: consolidate into single C program
41197         * tests/test-canonicalize.sh: Delete; move setup into...
41198         * tests/test-canonicalize.c (main): ...the program, making it
41199         easier to run in debugger.  Add some tests.
41200         * modules/canonicalize-tests (Files): Remove unused file.
41201         (Depends-on): Add progname.
41202         (configure.ac, Makefile.am): Simplify.
41203
41204         test-canonicalize-lgpl: consolidate into single C program
41205         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41206         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41207         easier to run in debugger.  Add some tests.
41208         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41209         (configure.ac, Makefile.am): Simplify.
41210
41211         canonicalize: avoid resolvepath
41212         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41213         unnecessary checks.
41214         * lib/canonicalize.c (includes): Simplify.
41215         (canonicalize_file_name): Drop resolvepath implementation.
41216         * modules/canonicalize (Depends-on): Drop filenamecat.
41217
41218         canonicalize: don't lose errno
41219         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41220         over calls to free.
41221
41222         canonicalize: simplify errno handling
41223         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41224         assignment.
41225
41226         canonicalize, canonicalize-lgpl: update module dependencies
41227         * modules/canonicalize (Depends-on): Add extensions, lstat,
41228         pathmax, stdlib.
41229         (Files): Drop pathmax.h.
41230         (configure.ac): Adjust macro name.
41231         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41232         lstat, stdlib, sys_stat.
41233         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41234         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41235         extensions.
41236         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41237         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41238         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41239         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41240         declaration, if available.
41241         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41242         we can rely on the readlink module.
41243         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41244         (includes): Use <unistd.h> unconditionally.
41245
41246 2009-09-17  Eric Blake  <ebb9@byu.net>
41247
41248         maint: make Include sections of modules consistent
41249         * modules/alloca: Use only header name; no need to list #include.
41250         * modules/alloca-opt: Likewise.
41251         * modules/arpa_inet: Likewise.
41252         * modules/canon-host: Likewise.
41253         * modules/configmake: Likewise.
41254         * modules/dirent: Likewise.
41255         * modules/eealloc: Likewise.
41256         * modules/environ: Likewise.
41257         * modules/fchdir: Likewise.
41258         * modules/fcntl: Likewise.
41259         * modules/fcntl-h: Likewise.
41260         * modules/gethrxtime: Likewise.
41261         * modules/gettime: Likewise.
41262         * modules/ignore-value: Likewise.
41263         * modules/inet_ntop: Likewise.
41264         * modules/inet_pton: Likewise.
41265         * modules/inttypes: Likewise.
41266         * modules/isnand-nolibm: Likewise.
41267         * modules/isnanf-nolibm: Likewise.
41268         * modules/mbchar: Likewise.
41269         * modules/mbfile: Likewise.
41270         * modules/mbiter: Likewise.
41271         * modules/mbuiter: Likewise.
41272         * modules/netdb: Likewise.
41273         * modules/netinet_in: Likewise.
41274         * modules/nproc: Likewise.
41275         * modules/pagealign_alloc: Likewise.
41276         * modules/poll: Likewise.
41277         * modules/printf-frexp: Likewise.
41278         * modules/pthread: Likewise.
41279         * modules/putenv: Likewise.
41280         * modules/random_r: Likewise.
41281         * modules/relocatable-prog: Likewise.
41282         * modules/search: Likewise.
41283         * modules/select: Likewise.
41284         * modules/selinux-h: Likewise.
41285         * modules/settime: Likewise.
41286         * modules/signal: Likewise.
41287         * modules/size_max: Likewise.
41288         * modules/socklen: Likewise.
41289         * modules/ssize_t: Likewise.
41290         * modules/stdarg: Likewise.
41291         * modules/stdbool: Likewise.
41292         * modules/stddef: Likewise.
41293         * modules/stdint: Likewise.
41294         * modules/stdio: Likewise.
41295         * modules/stdlib: Likewise.
41296         * modules/string: Likewise.
41297         * modules/strings: Likewise.
41298         * modules/sys_file: Likewise.
41299         * modules/sys_ioctl: Likewise.
41300         * modules/sys_select: Likewise.
41301         * modules/sys_socket: Likewise.
41302         * modules/sys_stat: Likewise.
41303         * modules/sys_time: Likewise.
41304         * modules/sys_times: Likewise.
41305         * modules/sys_utsname: Likewise.
41306         * modules/sys_wait: Likewise.
41307         * modules/sysexits: Likewise.
41308         * modules/time: Likewise.
41309         * modules/times: Likewise.
41310         * modules/tmpfile: Likewise.
41311         * modules/trim: Likewise.
41312         * modules/unistd: Likewise.
41313         * modules/wchar: Likewise.
41314         * modules/wctype: Likewise.
41315
41316 2009-09-17  Bruno Haible  <bruno@clisp.org>
41317
41318         Make getdate.y compile on QNX and NetBSD 5 / i386.
41319         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41320         TIME_T_FITS_IN_LONG_INT.
41321         * lib/getdate.y (long_time_t): New type.
41322         (relative_time): Change type of 'seconds' field to long_time_t.
41323         (get_date): Update types of local variables. Check against overflow
41324         during conversion from long_time_t to time_t.
41325         Reported by Matt Kraai <kraai@ftbfs.org>
41326         and Hasso Tepper <hasso@netbsd.org>.
41327
41328 2009-09-17  Bruno Haible  <bruno@clisp.org>
41329
41330         * modules/COPYING: Update copyright years.
41331         * modules/README: Likeiwse.
41332         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41333         Reported by Ian Beckwith <ianb@erislabs.net>.
41334
41335 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41336
41337         * users.txt: Update references for gnuit package.
41338
41339 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41340
41341         * m4/getdelim.m4: Fix typo in copyright line.
41342
41343 2009-09-17  Bruno Haible  <bruno@clisp.org>
41344
41345         * lib/atoll.c: Use the standard header with GPL copyright.
41346         * lib/argz.in.h: Likewise.
41347         * lib/glob.c: Likewise.
41348         * lib/glob-libc.h: Likewise.
41349         * lib/random_r.c: Likewise.
41350         * lib/siglist.h: Likewise.
41351         * lib/strsignal.c: Likewise.
41352         Reported by Ian Beckwith <ianb@erislabs.net>.
41353
41354 2009-09-17  Eric Blake  <ebb9@byu.net>
41355
41356         rmdir: ensure correct dependency order
41357         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41358
41359 2009-09-17  Bruno Haible  <bruno@clisp.org>
41360
41361         Disable assertion that fails on NetBSD 5 / i386.
41362         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41363         Reported by Sam Steingold <sds@gnu.org>
41364         and Hasso Tepper <hasso@netbsd.org>.
41365
41366 2009-09-16  Eric Blake  <ebb9@byu.net>
41367
41368         unlinkdir: port to mingw
41369         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41370         on which no one can unlink a directory.
41371
41372         stdlib: sort witness names
41373         * modules/stdlib (Makefile.am): Sort replacements.
41374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41375         * lib/stdlib.in.h: Likewise.
41376
41377         parse-duration-tests: avoid link failure
41378         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41379         LIBINTL.
41380         Reported by Tom G. Christensen.
41381
41382         openat-tests: ensure unlinkat behaves like rmdir
41383         * tests/test-rmdir.c (main): Factor guts...
41384         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41385         * modules/rmdir-tests (Files): Ship new file.
41386         * modules/openat-tests: New test.
41387         * tests/test-unlinkat.c: Likewise.
41388
41389         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41390         * modules/rmdir-errno (Status, Notice): Now obsolete.
41391
41392         rmdir: work around cygwin 1.5.x and mingw bugs
41393         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41394         * lib/rmdir.c (rmdir): Work around it.
41395         * modules/rmdir (Status, Notice): No longer obsolete.
41396         (Files): Add dos.m4.
41397         (Depends-on): Add unistd.
41398         (configure.ac): Set witnesses.
41399         (License): Relax to LGPLv2+.
41400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41401         * modules/unistd (Makefile.am): Substitute witnesses.
41402         * lib/unistd.in.h (rmdir): Declare replacement.
41403         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41404         * modules/rmdir-tests: New tests.
41405         * tests/test-rmdir.c: Likewise.
41406
41407 2009-09-15  Eric Blake  <ebb9@byu.net>
41408
41409         fchdir: improve use of replacement functions
41410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41411         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41412         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41413         REPLACE_CLOSEDIR.
41414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41415         * modules/sys_stat (Makefile.am): Substitute correct witness.
41416         * modules/dirent (Makefile.am): Likewise.
41417         * modules/unistd (Makefile.am): Likewise.
41418         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41419         * lib/unistd.in.h (dup): Likewise.
41420         * lib/sys_stat.in.h (fstat): Likewise.
41421
41422         maint: ignore gnulib-tool temp files
41423         * .gitignore: Ignore files created during gnulib-tool --test.
41424
41425 2009-09-13  Jim Meyering  <meyering@redhat.com>
41426
41427         posixtm: don't reject a time that specify "60" as the number of seconds
41428         * lib/posixtm.c (posixtime): The code to reject invalid dates
41429         would also reject a time specified with the .60 suffix.
41430         But POSIX allows that, in order to accommodate leap seconds.
41431         So don't reject it.
41432         (main): Adjust tests accordingly.
41433         * modules/posixtm (Depends-on): Add stpcpy.
41434
41435 2009-09-11  Jim Meyering  <meyering@redhat.com>
41436
41437         announce-gen: include [$release_type] in emitted Subject:
41438         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41439         e.g., [stable] in the emitted Subject: line.
41440
41441 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41442
41443         Remove obsolete macros from several modules.
41444         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41445         obsolete Autoconf macros with their modern counterparts.
41446         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41447         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41449         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41450         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41451         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41452         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41453         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41454         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41455         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41456         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41457         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41458         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41459         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41460         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41461         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41462         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41463         * m4/time_r.m4 (gl_TIME_R): Likewise.
41464         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41465         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41466         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41467
41468         Fix copyright header in build-aux scripts.
41469         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41470         recommendation.
41471         * build-aux/ncftpput-ftp: Likewise.
41472         * build-aux/update-copyright: Likewise.
41473
41474 2009-09-09  Eric Blake  <ebb9@byu.net>
41475
41476         test-link: allow Linux choice of errno
41477         * tests/test-link.c (main): Relax test for alternate error.
41478
41479         strndup: fix improper m4 caching
41480         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41481         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41482         (gl_PREREQ_STRNDUP): Delete.
41483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41484         * modules/string (Makefile.am): Substitute it.
41485         * lib/string.in.h (strndup): Modernize prototype.
41486
41487         getcwd: port to mingw
41488         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41489         different from the POSIX assumptions made throughout the getcwd
41490         module; fortunately, the mingw getcwd does not need replacement.
41491         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41492         * modules/getcwd-tests: New test.
41493         * tests/test-getcwd.c: Likewise.
41494
41495         link: fix platform bugs
41496         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41497         * lib/link.c (link): Work around them.  Fix related mingw bug.
41498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41499         * modules/unistd (Makefile.am): Substitute it.
41500         * lib/unistd.in.h (link): Declare replacement.
41501         * doc/posix-functions/link.texi (link): Document this.
41502         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41503
41504         test-link: consolidate into single C program, test more cases
41505         * tests/test-link.sh: Delete.
41506         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41507         at least Cygwin and Solaris.
41508         * modules/link-tests (Files): Remove unused file.
41509         (Depends-on): Add errno, sys_stat.
41510         (Makefile.am): Simplify.
41511
41512 2009-09-08  Bruno Haible  <bruno@clisp.org>
41513
41514         Work around towlower, towupper bug on mingw.
41515         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41516         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41517         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41518         * doc/posix-functions/towupper.texi: Likewise.
41519         Reported by Eric Blake.
41520
41521 2009-09-08  Jim Meyering  <meyering@redhat.com>
41522
41523         build: don't try to run autoheader if we don't use it
41524         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41525         is not used in configure.ac.
41526
41527 2009-09-08  Eric Blake  <ebb9@byu.net>
41528
41529         euidaccess: fix compilation error
41530         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41531
41532         rawmemchr: relax license
41533         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41534         okay.
41535         Reported by Jim Meyering.
41536
41537         mkfifoat: new module
41538         * modules/mkfifoat: New file.
41539         * lib/mkfifoat.c: Likewise.
41540         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41541         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41542         * modules/sys_stat (Makefile.am): Use them.
41543         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41544         * MODULES.html.sh (File system functions): Mention module.
41545         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41546         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41547         * modules/mkfifoat-tests: New test.
41548         * tests/test-mkfifoat.c: Likewise.
41549
41550         strchrnul: relax license
41551         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41552         okay.
41553         Reported by Jim Meyering.
41554
41555 2009-09-08  Eric Blake  <ebb9@byu.net>
41556
41557         fstatat: fix compilation on Solaris
41558         * lib/fstatat.c (includes): Add fcntl.h.
41559         Reported by Pádraig Brady.
41560
41561 2009-09-07  Eric Blake  <ebb9@byu.net>
41562
41563         rename: modernize replacement
41564         * modules/rename (Depends-on): Add stdio.
41565         (configure.ac): Declare witness.
41566         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41567         stdio take care of replacement.
41568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41569         * modules/stdio (Makefile.am): Substitute them.
41570         * lib/stdio.in.h (rename): Declare replacement.
41571         * lib/rename.c (includes): Allow cross-compilation to non-windows
41572         machines.
41573         * doc/posix-functions/rename.texi (rename): Improve
41574         documentation.
41575
41576         stdio: sort witness names
41577         * modules/stdio (Makefile.am): Sort replacements.
41578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41579         * lib/stdio.in.h: Likewise.
41580
41581         getcwd: minor cleanups
41582         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41583         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41584
41585         openat: provide more convenience names
41586         * modules/faccessat (configure.ac): Add C witness.
41587         * lib/unistd.in.h (readlinkat): Fix typo.
41588         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41589         convenience wrappers.
41590         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41591         wrappers in syntax checks.
41592
41593 2009-09-06  Eric Blake  <ebb9@byu.net>
41594
41595         doc: fix comments in recent patches
41596         * lib/faccessat.c: Mention correct function.
41597         * lib/fchmodat.c: Likewise.
41598         * lib/fchownat.c: Likewise.
41599         * lib/symlinkat.c: Likewise.
41600         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41601         constants.
41602
41603         faccessat, symlinkat: continue cleanup of previous patch
41604         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41605         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41606         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41608         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41609         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41610         set.
41611
41612 2009-09-06  Bruno Haible  <bruno@clisp.org>
41613
41614         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41615         (fstatat): Declare if GNULIB_FSTATAT is set.
41616         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41617         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41618         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41619         * modules/fcntl-h (Files): Remove m4/openat.m4.
41620         * modules/sys_stat (Files): Remove m4/openat.m4.
41621         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41622         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41623         * modules/unistd (Files): Remove m4/openat.m4.
41624         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41625         GNULIB_OPENAT.
41626         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41627         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41628         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41629         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41630         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41631         gl_OPENAT_DEFAULTS.
41632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41633         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41634         Don't require gl_OPENAT_DEFAULTS.
41635         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41636         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41637         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41638         (gl_OPENAT_DEFAULTS): Remove macro.
41639
41640 2009-09-06  Bruno Haible  <bruno@clisp.org>
41641
41642         * modules/openat (configure.ac): Remove unneeded witness.
41643
41644 2009-09-06  Bruno Haible  <bruno@clisp.org>
41645
41646         Set errno to ENOSYS when a function is entirely unsupported.
41647         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41648         EOPNOTSUPP.
41649         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41650         * modules/chown (Depends-on): Remove errno.
41651
41652 2009-09-06  Bruno Haible  <bruno@clisp.org>
41653
41654         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41655
41656 2009-09-06  Bruno Haible  <bruno@clisp.org>
41657
41658         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41659
41660 2009-09-06  Ben Pfaff  <blp@gnu.org>
41661             Bruno Haible  <bruno@clisp.org>
41662
41663         Work around a glibc bug in strtok_r.
41664         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41665         Undefine if UNDEFINE_STRTOK_R is set.
41666         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41668         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41669         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41670         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41671         UNDEFINE_STRTOK_R.
41672         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41673
41674 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41675
41676         exclude: minor fix
41677         * lib/exclude.c: Include wctype.h
41678
41679 2009-09-06  Akim Demaille  <demaille@gostai.com>
41680
41681         bootstrap: improve error message
41682         * build-aux/bootstrap (find_tool): Upon failure, report the list
41683         of candidates.
41684         Honor the initial value of the envvar.
41685
41686 2009-09-05  Eric Blake  <ebb9@byu.net>
41687
41688         symlinkat: new module
41689         * modules/symlinkat: New file.
41690         * lib/symlinkat.c: Likewise.
41691         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41693         * modules/unistd (Makefile.am): Use them.
41694         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41695         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41696         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41697         * MODULES.html.sh (File system functions): Mention module.
41698         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41699         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41700         * modules/symlinkat-tests: New test.
41701         * tests/test-symlinkat.c: Likewise.
41702
41703         test-openat-safer: add more checks
41704         * tests/test-openat-safer.c (main): Check more code paths.
41705
41706 2009-09-05  Jim Meyering  <meyering@redhat.com>
41707
41708         syntax-check: detect unnecessary inclusion of openat.h
41709         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41710
41711 2009-09-05  Bruno Haible  <bruno@clisp.org>
41712
41713         Support towlower, towupper.
41714         * doc/posix-functions/towlower.texi: Mention module wctype.
41715         * doc/posix-functions/towupper.texi: Likewise.
41716         * lib/wctype.in.h (towlower, towupper): New functions.
41717         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41718         (ASSERT): New macro.
41719         (e): New variable.
41720         (main): Test also towlower, towupper. Test WEOF argument.
41721         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41722
41723 2009-09-05  Bruno Haible  <bruno@clisp.org>
41724
41725         Fix conversion behaviour when the input is invalid.
41726         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41727         mark occurring in first pass of indirect conversion.
41728         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41729         input.
41730         Found by clang's static analyzer.
41731
41732 2009-09-05  Bruno Haible  <bruno@clisp.org>
41733
41734         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41735         where direct conversion is possible.
41736
41737 2009-09-04  Eric Blake  <ebb9@byu.net>
41738
41739         openat: fail with ENOENT on empty name
41740         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41741         buffer.
41742
41743         link-follow: fix logic bug in prior patch
41744         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41745         reversed sense of yes and no in prior patch.  Avoid confusing
41746         compilation failure with desired semantics.
41747
41748         link-follow: accomodate mingw and cross-compilation
41749         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41750         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41751         cross-compilation results to -1, to make linkat easier to
41752         implement when cross-compiling.  Trivially support mingw.
41753         * modules/link-follow (configure.ac): Call new name.
41754         * NEWS: Mention this.
41755
41756 2009-09-03  Eric Blake  <ebb9@byu.net>
41757
41758         faccessat: compile replacement
41759         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41760         needed.
41761
41762         fts: fix compilation error
41763         * lib/fts.c (includes): Re-add "openat.h", for
41764         openat_needs_fchdir.
41765
41766         faccessat: new module
41767         * modules/faccessat: New file.
41768         * lib/faccessat.c: Likewise.
41769         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41771         * modules/unistd (Makefile.am): Use it.
41772         * lib/unistd.in.h (faccessat): Declare it.
41773         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41774         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41775         * MODULES.html.sh (File system functions): Mention it.
41776         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41777         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41778
41779         euidaccess: prefer POSIX over non-standard implementation
41780         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41781         * lib/euidaccess.c (euidaccess): Use it if available.
41782
41783         openat: make template easier to use
41784         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41785         AT_FUNC_F2 to be undefined.
41786         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41787         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41788         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41789         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41790         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41791         Likewise.
41792         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41793         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41794         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41795         Likewise.
41796
41797         openat: declare in POSIX headers
41798         * NEWS: Mention this.
41799         * modules/openat (configure.ac): Declare witnesses.
41800         (Depends-on): Add fcntl-h, sys_stat, unistd.
41801         (Include): Mention correct headers.
41802         * modules/fcntl-h (Depends-on): Add link-warning.
41803         (Files): Add openat.m4.
41804         (Makefile.am): Substitute witnesses.
41805         * modules/sys_stat (Files, Makefile.am): Likewise.
41806         * modules/unistd (Files, Makefile.am): Likewise.
41807         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41808         (gl_OPENAT_DEFAULTS): New macro.
41809         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41811         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41812         (SYS_STAT_H): Remove unused variable.
41813         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41814         * lib/fcntl--.h (includes): Remove unneeded header.
41815         * lib/openat-safer.c (includes): Likewise.
41816         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41817         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41818         appropriate headers.
41819         (__OPENAT_PREFIX): Delete.
41820         * lib/fcntl.in.h (openat): Provide declaration.
41821         (AT_FDCWD): Fix Solaris bug.
41822         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41823         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41824         * lib/fchmodat.c (includes):  Adjust to find declaration.
41825         * lib/fchownat.c (includes): Likewise.
41826         * lib/mkdirat.c (includes): Likewise.
41827         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41828         still visible.
41829
41830 2009-09-02  Eric Blake  <ebb9@byu.net>
41831
41832         errno: use consistently
41833         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41834         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41835         * lib/canonicalize.c (ELOOP): Likewise.
41836         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41837         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41838         * lib/lchown.c (EOPNOTSUPP): Likewise.
41839         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41840         * lib/savewd.c (ESTALE): Likewise.
41841         * lib/settime.c (ENOSYS): Likewise.
41842         * lib/utimens.c (ENOSYS): Likewise.
41843         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41844         * lib/chdir-safer.c (ELOOP): Likewise.
41845         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41846         * modules/c-stack (Depends-on): Add errno.
41847         * modules/canonicalize (Depends-on): Likewise.
41848         * modules/chdir-safer (Depends-on): Likewise.
41849         * modules/fdopendir (Depends-on): Likewise.
41850         * modules/inet_ntop (Depends-on): Likewise.
41851         * modules/inet_pton (Depends-on): Likewise.
41852         * modules/lchown (Depends-on): Likewise.
41853         * modules/openat (Depends-on): Likewise.
41854         * modules/savewd (Depends-on): Likewise.
41855         * modules/settime (Depends-on): Likewise.
41856         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41857
41858         fts: avoid leaking fds
41859         * modules/fts (Depends-on): Add cloexec.
41860         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41861         flag.
41862
41863         fts: make directory fds more robust
41864         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41865         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41866
41867         backupfile, chdir-long, fts, savedir: make safer
41868         * lib/backupfile.c (includes): Use "dirent--.h", since
41869         numbered_backup can write to stderr during readdir.
41870         * lib/savedir.c (includes): Likewise.
41871         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41872         emulation can write to stderr on failure.
41873         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41874         * lib/getcwd.c: Document why opendir_safer is unused.
41875         * lib/glob.c: Likewise.
41876         * lib/scandir.c: Likewise.
41877         * lib/openat-proc.c: Likewise, for open_safer.
41878         * modules/backupfile (Depends-on): Add dirent-safer.
41879         * modules/savedir (Depends-on): Likewise.
41880         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41881         * modules/chdir-long (Depends-on): Add openat-safer.
41882
41883         openat-safer: new module
41884         * modules/openat-safer: New file.
41885         * lib/openat-safer.c: Likewise.
41886         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41887         * lib/fcntl-safer.h (openat_safer): Declare.
41888         * lib/fcntl--.h (openat): Override.
41889         * MODULES.html.sh (File descriptor based I/O): Mention it.
41890         * lib/openat.h: Add double-inclusion guards.
41891         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41892         "fcntl--.h", so we can implement openat.
41893         * modules/openat-safer-tests: New test.
41894         * tests/test-openat-safer.c: New file.
41895
41896         dirent-safer: new module
41897         * modules/dirent-safer: New file.
41898         * lib/dirent--.h: Likewise.
41899         * lib/dirent-safer.h: Likewise.
41900         * lib/opendir-safer.c: Likewise.
41901         * m4/dirent-safer.m4: Likewise.
41902         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41903         * modules/dirent-safer-tests: New test.
41904         * tests/test-dirent-safer.c: New file.
41905         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41906
41907         fdopendir: optimize on mingw
41908         * lib/unistd.in.h (_gl_directory_name): New prototype.
41909         * lib/fchdir.c (_gl_directory_name): Implement it.
41910         (fchdir): Use it to simplify implementation.
41911         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41912         fchdir, when available, to avoid calling [f]chdir().
41913
41914         fdopendir: split into its own module
41915         * lib/openat.c (fdopendir): Move...
41916         * lib/fdopendir.c: ...into new file.
41917         * modules/fdopendir: New module.
41918         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41919         * modules/openat (Depends-on): Add fdopendir.
41920         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41921         fdopendir here.
41922         * modules/savedir (Depends-on): Only need fdopendir, not full
41923         openat.
41924         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41925         * lib/openat.h (fdopendir): Drop prototype.
41926         * lib/dirent.in.h (fdopendir): Provide prototype.
41927         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41928         * modules/dirent (Makefile.am): Substitute them.
41929         * MODULES.html.sh (File system functions): Mention it.
41930         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41931         * modules/fdopendir-tests: New file.
41932         * tests/test-fdopendir.c: Likewise.
41933
41934         fchdir: use more consistent macro convention
41935         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41936         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41937         REPLACE_FCHDIR, rather than relying on config.h macros.
41938         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41939         inside a single make-time REPLACE_FCHDIR block, rather than using
41940         the config.h FCHDIR_REPLACEMENT.
41941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41942         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41943         Manage fstat replacement.
41944         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41945         REPLACE_FCHDIR.
41946         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41947         (Makefile.am): Substitute REPLACE_FCHDIR.
41948         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41949         FCHDIR_REPLACEMENT.
41950         * lib/dup-safer.c (dup_safer): Likewise.
41951         * lib/dup2.c (rpl_dup2): Likewise.
41952         * lib/dup3.c (rpl_dup3): Likewise.
41953         * lib/open.c (rpl_open): Likewise.
41954
41955         fchdir: simplify error handling, and support dup3
41956         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41957         stdbool, malloc-posix, realloc-posix.
41958         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41959         (ensure_dirs_slot): Return false on allocation failure.
41960         (rpl_dup2): Delete.
41961         (_gl_register_dup): New function.
41962         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41963         (_gl_register_fd): Close fd on allocation failure.
41964         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41965         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41966         prototype.
41967         (rpl_dup2_fchdir): Delete prototype.
41968         * lib/open.c (open): Update caller.
41969         * lib/dup2.c (dup2): Track fchdir metadata.
41970         * lib/dup3.c (dup3): Likewise.
41971         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41973
41974 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41975
41976         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41977         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41978         don't pass arguments to AC_OUTPUT.
41979
41980 2009-09-02  Bruno Haible  <bruno@clisp.org>
41981
41982         * modules/mkdtemp (License): Relicense under LGPLv2+.
41983         Reported by Paolo Bonzini.
41984
41985 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41986
41987         Replace uses of obsolete autoconf macros in Jim's modules.
41988         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41989         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41990         can evoke a warning from autoconf when run with -Wobsolete
41991         enabled.  They were declared obsolete for good reasons (see
41992         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41993         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41994         should not continue using the deprecated macros.
41995         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41996         obsolete Autoconf macros with modern counterparts.
41997         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41998         * m4/dos.m4 (gl_AC_DOS): Likewise.
41999         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42000         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42001         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42002         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42003         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42004         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42005         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42006         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42007         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42008         Likewise.
42009         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42010         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42011         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42012         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42013         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42014         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42015
42016 2009-09-01  Eric Blake  <ebb9@byu.net>
42017
42018         fchdir: fix off-by-one bug in previous patch
42019         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42020         (_gl_unregister_fd): Delete useless if.
42021
42022 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42023
42024         maint.mk: sort the list of syntax-check rules
42025         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42026         easier to get a sense of progress when the rules are run sequentially
42027         and take a long time.
42028
42029 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42030
42031         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42032         * modules/netinet_in: Likewise.
42033         * modules/sys_file: Likewise.
42034         * modules/sys_ioctl: Likewise.
42035         * modules/sys_select: Likewise.
42036         * modules/sys_socket: Likewise.
42037         * modules/sys_stat: Likewise.
42038         * modules/sys_time: Likewise.
42039         * modules/sys_times: Likewise.
42040         * modules/sys_utsname: Likewise.
42041         * modules/sys_wait: Likewise.
42042
42043 2009-09-01  Jim Meyering  <meyering@redhat.com>
42044
42045         fts: help ensure that return values are not ignored
42046         * lib/fts_.h (__GNUC_PREREQ): Define.
42047         (__attribute_warn_unused_result__): Define.
42048         (fts_children, fts_close, fts_open, fts_read): Declare with
42049         __attribute_warn_unused_result__.
42050
42051         fts: fts_close now fails also when closing a dir file descriptor fails
42052         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42053         and propagate to caller, along with errno.
42054
42055         announce-gen: correct formatting in --help output
42056         * build-aux/announce-gen (usage): Move the one-line description in
42057         --help output "up", to where it belongs, just after Usage:.
42058
42059 2009-08-31  Eric Blake  <ebb9@byu.net>
42060
42061         fchdir: port to mingw
42062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42063         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42064         opened, then use a substitute.
42065         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42066         replacement.
42067         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42068         (_gl_register_fd): No need to check stat if open already filters
42069         all directories.
42070         (fchdir): Fix error condition to match POSIX.
42071         * modules/fchdir (Depends-on): Add sys_stat.
42072         * doc/posix-functions/open.texi (open): Document the limitation.
42073         * modules/fchdir-tests: New file.
42074         * tests/test-fchdir.c: Likewise.
42075
42076         canonicalize: allow cross-testing from cygwin to mingw
42077         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42078         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42079         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42080         Likewise.
42081         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42082         target does not support symlinks.
42083         * tests/test-canonicalize-lgpl.sh: Likewise.
42084
42085         chown: avoid compilation warning on mingw
42086         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42087         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42088         mingw.
42089         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42090         * modules/chown (Depends-on): Add errno.
42091
42092 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42093
42094         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42095         command.
42096
42097 2009-08-31  Jim Meyering  <meyering@redhat.com>
42098
42099         canonicalize: remove useless initialization
42100         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42101         initialization of local, "end".
42102
42103 2009-08-30  Bruno Haible  <bruno@clisp.org>
42104
42105         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42106         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42107         ENOSYS.
42108
42109 2009-08-30  Bruno Haible  <bruno@clisp.org>
42110
42111         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42112         /usr/xpg4/bin/tr when it exists.
42113         * tests/test-pipe-filter-gi1.sh: Likewise.
42114
42115 2009-08-30  Bruno Haible  <bruno@clisp.org>
42116
42117         Work around deficient /usr/bin/id program on Solaris.
42118         * tests/test-file-has-acl.sh (ID): New variable.
42119         * tests/test-set-mode-acl.sh (ID): Likewise.
42120         * tests/test-copy-acl.sh (ID): Likewise.
42121         * tests/test-copy-file.sh (ID): Likewise.
42122
42123 2009-08-30  Bruno Haible  <bruno@clisp.org>
42124
42125         New module 'xstriconveh'.
42126         * lib/xstriconveh.h: New file.
42127         * lib/xstriconveh.c: New file.
42128         * modules/xstriconveh: New file.
42129
42130 2009-08-30  Bruno Haible  <bruno@clisp.org>
42131
42132         Make it easier to use mem_cd_iconveh.
42133         * lib/striconveh.h (iconveh_t): New type.
42134         (iconveh_open, iconveh_close): New declarations.
42135         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42136         with a single 'const iconveh_t *' argument.
42137         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42138         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42139         with a single 'const iconveh_t *' argument.
42140         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42141         * tests/test-striconveh.c (main): Update.
42142         * NEWS: Mention the change.
42143
42144 2009-08-30  Bruno Haible  <bruno@clisp.org>
42145
42146         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42147         problem.
42148
42149 2009-08-30  Bruno Haible  <bruno@clisp.org>
42150
42151         Work around iconv_open problem on Solaris.
42152         * lib/iconv_open-solaris.gperf: New file.
42153         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42154         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42155         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42156         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42157         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42158         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42159
42160 2009-08-29  Jim Meyering  <meyering@redhat.com>
42161
42162         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42163         * top/maint.mk (cvs-check): Remove target; it was just an alias
42164         to the better-named vc-diff-check.
42165         (maintainer-distcheck): Remove rule.  It was used only from
42166         the (alpha/beta/major) target, and all of its commands but one
42167         were coreutils-specific.
42168         (vc-dist): Remove rule.
42169         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42170         Run vc-diff-check, not vc-dist.
42171         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42172
42173 2009-08-27  Bruno Haible  <bruno@clisp.org>
42174
42175         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42176         of 0.
42177
42178 2009-08-27  Bruno Haible  <bruno@clisp.org>
42179
42180         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42181         compilers.
42182         * doc/func.texi: Document the SunPRO C bug.
42183
42184 2009-08-27  Bruno Haible  <bruno@clisp.org>
42185
42186         Fix link error on Solaris.
42187         * tests/test-parse-duration.c (xstrdup): Remove function.
42188
42189 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42190
42191         ignore-value: handle pointer types, too
42192         * lib/ignore-value.h (__attribute__): Remove definition.
42193         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42194         of a more concise and more-often effective "(void) i" statement.
42195         (ignore_ptr): New function to suppress warnings from functions that
42196         return pointers, and to make it explicit that one function doesn't
42197         handle all cases.
42198
42199 2009-08-25  Bruno Haible  <bruno@clisp.org>
42200
42201         dup2: work around a Linux bug.
42202         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42203         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42204         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42205         Reported by Simon Josefsson.
42206
42207 2009-08-25  Jim Meyering  <meyering@redhat.com>
42208
42209         libguestfs uses gnulib
42210         * users.txt: Add libguestfs.
42211
42212 2009-08-24  Eric Blake  <ebb9@byu.net>
42213
42214         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42215         * lib/pipe2.c (includes): Add binary-io.h.
42216         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42217
42218 2009-08-24  Bruno Haible  <bruno@clisp.org>
42219
42220         Tolerate declared but missing accept4 syscall.
42221         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42222         available.
42223         * lib/sys_socket.in.h (accept4): If the function is already present,
42224         override it.
42225         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42226         * modules/accept4 (Makefile.am): Compile accept4.c always.
42227         Reported by Paolo Bonzini and Eric Blake.
42228
42229 2009-08-23  Bruno Haible  <bruno@clisp.org>
42230
42231         New module 'accept4'.
42232         * lib/sys_socket.in.h (accept4): New declaration.
42233         * lib/accept4.c: New file.
42234         * m4/accept4.m4: New file.
42235         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42236         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42237         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42238         HAVE_ACCEPT4.
42239         * modules/accept4: New file.
42240         * doc/glibc-functions/accept4.texi: Mention the new module.
42241
42242 2009-08-24  Jim Meyering  <meyering@redhat.com>
42243
42244         progname: also set global program_invocation_name, when possible
42245         Before this change, a libtool-enabled program that calls glibc's
42246         error function would report the program name as
42247         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42248         * modules/progname (configure.ac): Check for a declaration of
42249         program_invocation_name.
42250         * lib/progname.c:  Include <errno.h>.
42251         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42252         Set program_invocation_name.
42253
42254 2009-08-23  Bruno Haible  <bruno@clisp.org>
42255
42256         * lib/dup3.c: Include <string.h>.
42257
42258 2009-08-23  Bruno Haible  <bruno@clisp.org>
42259
42260         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42261         * lib/pipe2.c (pipe2): Likewise.
42262         Suggested by Eric Blake.
42263
42264 2009-08-23  Bruno Haible  <bruno@clisp.org>
42265
42266         Tolerate declared but missing dup3 syscall.
42267         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42268         * lib/unistd.in.h (dup3): If the function is already present,
42269         override it.
42270         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42271         * modules/dup3 (Makefile.am): Compile dup3.c always.
42272         Reported by Paolo Bonzini.
42273
42274 2009-08-23  Bruno Haible  <bruno@clisp.org>
42275
42276         Tolerate declared but missing pipe2 syscall.
42277         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42278         available.
42279         * lib/unistd.in.h (pipe2): If the function is already present,
42280         override it.
42281         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42282         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42283         Reported by Paolo Bonzini.
42284
42285 2009-08-23  Bruno Haible  <bruno@clisp.org>
42286
42287         * lib/pipe2.c (pipe2): Move #ifs inside function.
42288
42289 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42290
42291         quotearg: document limitations of quote_these_too
42292         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42293         those limitations are created.
42294         * lib/quotearg.h (set_char_quoting): Document that digits and
42295         letters that are special after backslash are not permitted.
42296         (quotearg_char): Cross-reference set_char_quoting documentation.
42297
42298 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42299
42300         quotearg: implement custom_quoting_style
42301         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42302         right_quote fields.
42303         (set_custom_quoting): New public function.
42304         (quotearg_buffer_restyled): Add left_quote and right_quote
42305         arguments, handle them very much like locale quoting, and update
42306         all uses.
42307         (quotearg_n_custom): New public function.
42308         (quotearg_n_custom_mem): New public function.
42309         (quotearg_custom): New public function.
42310         (quotearg_custom_mem): New public function.
42311         * lib/quotearg.h: Prototype and document new public functions.
42312         (enum quoting_style): For escape_quoting_style and
42313         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42314         ignored even though they're otherwise like c_quoting_style.
42315         Add custom_quoting_style member and document with comparison to
42316         clocale_quoting_style.
42317         * tests/test-quotearg.c (custom_quotes): New array.
42318         (custom_results): New array.
42319         (main): Extend to test custom quoting.
42320
42321 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42322
42323         quotearg: fix right quote escaping when it's in quote_these_too
42324         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42325         quote, be sure to prepend only one backslash.
42326         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42327         (main): Test it.
42328
42329 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42330
42331         quotearg-tests: test escaping of embedded locale quotes
42332         * tests/test-quotearg.c (struct result_strings): Add member for
42333         new input.
42334         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42335         (inputs): Add new input.
42336         (results_g): Add expected results.
42337         (flag_results): Likewise.
42338         (locale_results): Likewise.
42339         (compare_strings): Check those.
42340
42341 2009-08-23  Bruno Haible  <bruno@clisp.org>
42342
42343         Tests for module 'dup3'.
42344         * modules/dup3-tests: New file.
42345         * tests/test-dup3.c: New file.
42346
42347         New module 'dup3'.
42348         * lib/unistd.in.h (dup3): New declaration.
42349         * lib/dup3.c: New file.
42350         * m4/dup3.m4: New file.
42351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42352         HAVE_DUP3.
42353         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42354         * modules/dup3: New file.
42355         * doc/glibc-functions/dup3.texi: Mention the new module.
42356
42357 2009-08-23  Bruno Haible  <bruno@clisp.org>
42358
42359         Tweak the dup2 test.
42360         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42361         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42362         the test file is still empty. Fix argument order of lseek.
42363
42364 2009-08-23  Bruno Haible  <bruno@clisp.org>
42365
42366         Avoid test link errors when the modules getopt-gnu, gettext are used.
42367         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42368         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42369
42370 2009-08-23  Bruno Haible  <bruno@clisp.org>
42371
42372         Fix getdtablesize() on mingw.
42373         * lib/getdtablesize.c (getdtablesize): Implement differently.
42374         * lib/unistd.in.h (getdtablesize): Improve comment.
42375
42376 2009-08-23  Bruno Haible  <bruno@clisp.org>
42377
42378         New module 'mkostemp'.
42379         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42380         * lib/stdlib.in.h (mksotemp): New declaration.
42381         * lib/mkostemp.c: New file, from glibc with modifications.
42382         * lib/tempname.h (GT_FILE): Remove outdated comment.
42383         (gen_tempname): Add flags argument.
42384         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42385         (__GT_FILE): Map to 1.
42386         (small_open, large_open): Remove macros.
42387         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42388         * lib/mkstemp.c (mkstemp): Update.
42389         * lib/mkdtemp.c (mkdtemp): Likewise.
42390         * m4/mkostemp.m4: New file.
42391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42392         HAVE_MKOSTEMP.
42393         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42394         HAVE_MKOSTEMP.
42395         * modules/mkostemp: New file, based on modules/mkstemp.
42396         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42397         * NEWS: Mention the change.
42398
42399 2009-08-23  Bruno Haible  <bruno@clisp.org>
42400
42401         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42402         Reported by Eric Blake.
42403
42404 2009-08-23  Bruno Haible  <bruno@clisp.org>
42405
42406         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42407         Reported by Eric Blake.
42408
42409 2009-08-23  Bruno Haible  <bruno@clisp.org>
42410
42411         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42412         * modules/pipe2 (Depends-on): Likewise.
42413
42414 2009-08-23  Eric Blake  <ebb9@byu.net>
42415
42416         fcntl-h: add O_TTY_INIT support
42417         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42418         * tests/test-fcntl-h.c (o): Test it.
42419         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42420
42421         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42422         * modules/fcntl: Move <fcntl.h> header replacement...
42423         * modules/fcntl-h: ...to new name, so as not to collide with
42424         like-named function.
42425         * tests/test-fcntl.c: Rename...
42426         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42427         * modules/fcntl-tests: Rename...
42428         * modules/fcntl-h-tests: ...to this.  Update test file name.
42429         * modules/chdir-long (Depends-on): Update clients.
42430         * modules/chdir-safer (Depends-on): Likewise.
42431         * modules/fcntl-safer (Depends-on): Likewise.
42432         * modules/fts (Depends-on): Likewise.
42433         * modules/mkancesdirs (Depends-on): Likewise.
42434         * modules/mkdir-p (Depends-on): Likewise.
42435         * modules/open (Depends-on): Likewise.
42436         * modules/savewd (Depends-on): Likewise.
42437         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42438         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42439
42440 2009-08-22  Bruno Haible  <bruno@clisp.org>
42441
42442         * modules/binary-io (License): Relicense under LGPL.
42443         * modules/pipe2 (License): Likewise.
42444
42445 2009-08-22  Bruno Haible  <bruno@clisp.org>
42446
42447         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42448         return value.
42449         * lib/pipe-filter-gi.c (filter_init): Likewise.
42450         Reported by Eric Blake.
42451
42452 2009-08-22  Bruno Haible  <bruno@clisp.org>
42453
42454         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42455         * modules/pipe (Depends-on): Add pipe2.
42456
42457 2009-08-22  Bruno Haible  <bruno@clisp.org>
42458
42459         Tests for module 'pipe2'.
42460         * modules/pipe2-tests: New file.
42461         * tests/test-pipe2.c: New file.
42462
42463         New module 'pipe2'.
42464         * lib/unistd.in.h (pipe2): New declaration.
42465         * lib/pipe2.c: New file.
42466         * m4/pipe2.m4: New file.
42467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42468         HAVE_PIPE2.
42469         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42470         * modules/pipe2: New file.
42471         * doc/glibc-functions/pipe2.texi: Mention the new module.
42472
42473 2009-08-22  Bruno Haible  <bruno@clisp.org>
42474
42475         Reference some new glibc functions.
42476         * doc/glibc-functions/accept4.texi: New file.
42477         * doc/glibc-functions/dup3.texi: New file.
42478         * doc/glibc-functions/mkostemp.texi: New file.
42479         * doc/glibc-functions/pipe2.texi: New file.
42480         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42481         (Glibc sys/socket.h): Refer to accept4.
42482         (Glibc unistd.h): Refer to dup3, pipe2.
42483         Reported by Eric Blake.
42484
42485 2009-08-22  Jim Meyering  <meyering@redhat.com>
42486             Bruno Haible  <bruno@clisp.org>
42487
42488         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42489         This makes it so packages using automake-1.11's silent-rules option
42490         can print e.g., a single "GEN    configmake.h" line, rather than
42491         the 30+ statements that perform the job.  If you want to see the
42492         actual commands, you can still run "make V=1".
42493         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42494         so that make output is abbreviated when those variables are defined
42495         appropriately.
42496         * modules/argz: Likewise.
42497         * modules/arpa_inet: Likewise.
42498         * modules/byteswap: Likewise.
42499         * modules/configmake: Likewise.
42500         * modules/dirent: Likewise.
42501         * modules/errno: Likewise.
42502         * modules/fcntl: Likewise.
42503         * modules/float: Likewise.
42504         * modules/fnmatch: Likewise.
42505         * modules/getopt-posix: Likewise.
42506         * modules/glob: Likewise.
42507         * modules/iconv_open: Likewise.
42508         * modules/inttypes: Likewise.
42509         * modules/localcharset: Likewise.
42510         * modules/locale: Likewise.
42511         * modules/math: Likewise.
42512         * modules/netdb: Likewise.
42513         * modules/netinet_in: Likewise.
42514         * modules/poll: Likewise.
42515         * modules/posix_spawnp-tests: Likewise.
42516         * modules/sched: Likewise.
42517         * modules/search: Likewise.
42518         * modules/selinux-h: Likewise.
42519         * modules/signal: Likewise.
42520         * modules/spawn: Likewise.
42521         * modules/stdarg: Likewise.
42522         * modules/stdbool: Likewise.
42523         * modules/stddef: Likewise.
42524         * modules/stdint: Likewise.
42525         * modules/stdio: Likewise.
42526         * modules/stdlib: Likewise.
42527         * modules/string: Likewise.
42528         * modules/strings: Likewise.
42529         * modules/sys_file: Likewise.
42530         * modules/sys_ioctl: Likewise.
42531         * modules/sys_select: Likewise.
42532         * modules/sys_socket: Likewise.
42533         * modules/sys_stat: Likewise.
42534         * modules/sys_time: Likewise.
42535         * modules/sys_times: Likewise.
42536         * modules/sys_utsname: Likewise.
42537         * modules/sys_wait: Likewise.
42538         * modules/sysexits: Likewise.
42539         * modules/time: Likewise.
42540         * modules/unistd: Likewise.
42541         * modules/wchar: Likewise.
42542         * modules/wctype: Likewise.
42543
42544 2009-08-22  Jim Meyering  <meyering@redhat.com>
42545
42546         announce-gen: detect write failure
42547         * build-aux/announce-gen: Add Coda at end.
42548         Remove equivalent-but-more-verbose block at top.
42549
42550 2009-08-19  Akim Demaille  <demaille@gostai.com>
42551
42552         bootstrap: --help to stdout.
42553         * bootstrap (usage): Don't send --help to stderr.
42554         Use a here doc instead of a long string.
42555
42556 2009-08-21  Eric Blake  <ebb9@byu.net>
42557
42558         test-popen-safer: split from test-popen
42559         * tests/test-popen.c (main): Move...
42560         * tests/test-popen.h: ...into new file.
42561         * tests/test-popen-safer2.c: New file.
42562         * modules/popen-tests (Files): Add test-popen.h.
42563         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42564         Suggested by Bruno Haible.
42565
42566         test-fcntl-safer: split from test-open
42567         * tests/test-open.c (main): Move...
42568         * tests/test-open.h: ...into new file.
42569         * tests/test-fcntl-safer.c: New file.
42570         * modules/open-tests (Files): Add test-open.h.
42571         * modules/fcntl-safer-tests: New file.
42572         Suggested by Bruno Haible.
42573
42574         test-fopen-safer: split from test-fopen
42575         * tests/test-fopen.c (main): Move...
42576         * tests/test-fopen.h: ...into new file.
42577         * tests/test-fopen-safer.c: New file.
42578         * modules/fopen-tests (Files): Add test-fopen.h.
42579         * modules/fopen-safer-tests: New file.
42580         Suggested by Bruno Haible.
42581
42582 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42583
42584         popen-safer: test O_CLOEXEC at run-time.
42585         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42586
42587 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42588
42589         fcntl: move more flags to the header
42590         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42591         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42592         * lib/fcntl.in.h: Do both things here.
42593
42594 2009-08-21  Jim Meyering  <meyering@redhat.com>
42595
42596         consistently remove $@-t before redirecting to it
42597         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42598         * modules/alloca-opt: Likewise.
42599         * modules/byteswap: Likewise.
42600         * modules/fnmatch: Likewise.
42601         * modules/getopt-posix: Likewise.
42602         * modules/glob: Likewise.
42603         * modules/poll: Likewise.
42604         * modules/posix_spawnp-tests: Likewise.
42605         * modules/sys_socket: Likewise.
42606         * modules/sysexits: Likewise.
42607
42608 2009-08-21  Eric Blake  <ebb9@byu.net>
42609
42610         popen: simplify access to original popen
42611         * lib/popen.c (rpl_popen): No need to worry about popen being a
42612         macro.
42613         Reported by Bruno Haible.
42614
42615 2009-08-20  Eric Blake  <ebb9@byu.net>
42616
42617         build: avoid some compiler warnings
42618         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42619         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42620         type.
42621         (new_exclude_segment, excluded_file_pattern_p)
42622         (excluded_file_name_p): Reduce scope.
42623         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42624         old-style declaration.
42625
42626 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42627
42628         * tests/test-exclude1.sh: Handle Windows EOL.
42629         * tests/test-exclude2.sh: Likewise.
42630         * tests/test-exclude3.sh: Likewise.
42631         * tests/test-exclude4.sh: Likewise.
42632         * tests/test-exclude5.sh: Likewise.
42633         * tests/test-exclude6.sh: Likewise.
42634         * tests/test-exclude7.sh: Likewise.
42635
42636 2009-08-19  Akim Demaille  <demaille@gostai.com>
42637
42638         bootstrap: find sha1sum when named gsha1sum.
42639         * bootstrap (find_tool): New.
42640         ($SHA1SUM): New.
42641         Use it.
42642
42643 2009-08-20  Jim Meyering  <meyering@redhat.com>
42644
42645         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42646         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42647         expression that converts "." in a file name to "\." in the resulting
42648         regexp.  Start with a dummy statement, so that prior shell variable
42649         definitions are expanded portably.  Reported by Simon Josefsson.
42650
42651 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42652
42653         Fix polling for writeability of a screen buffer.
42654         * lib/poll.c: Distinguish input and screen buffers for the
42655         Win32 implementation.
42656         * lib/select.c: Likewise.
42657
42658 2009-08-19  Eric Blake  <ebb9@byu.net>
42659
42660         popen-safer: prevent popen from clobbering std descriptors
42661         * modules/popen-safer: New file.
42662         * lib/popen-safer.c: Likewise.
42663         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42664         * lib/stdio--.h (popen): Provide override.
42665         * lib/stdio-safer.h (popen_safer): Provide declaration.
42666         * tests/test-popen.c (includes): Partially test this.
42667         * modules/popen-safer-tests: New file, for more tests.
42668         * tests/test-popen-safer.c: Likewise.
42669         * MODULES.html.sh (file stream based Input/Output): Mention it.
42670
42671         tests: test some of the *-safer modules
42672         * modules/fopen-safer (Depends-on): Add fopen.
42673         * modules/fcntl-safer (Depends-on): Add fcntl.
42674         * modules/stdlib-safer (Depends-on): Add stdlib.
42675         (configure.ac): Set indicator.
42676         * modules/unistd-safer (configure.ac): Likewise.
42677         * modules/tmpfile-safer (configure.ac): Likewise.
42678         (Depends-on): Add tmpfile.
42679         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42680         active.
42681         * tests/test-fopen.c (includes): Test safer versions when they are
42682         in use.
42683         * tests/test-open.c (includes): Likewise.
42684
42685         popen: fix cygwin 1.5 bug when stdin closed
42686         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42687         * modules/popen: New file.
42688         * modules/popen-tests: Likewise.
42689         * tests/test-popen.c: Likewise.
42690         * m4/popen.m4: Likewise.
42691         * lib/popen.c: Likewise.
42692         * lib/stdio.in.h (popen): New declaration.
42693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42694         * modules/stdio (Makefile.am): Likewise.
42695         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42696
42697 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42698
42699         maint.mk: give full control over update-copyright exclusions
42700         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42701         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42702         (update-copyright): Don't force inclusion of top-level
42703         ChangeLog.  Don't force exclusion of all COPYING files, but make
42704         them the default exclusion instead.
42705
42706 2009-08-16  Bruno Haible  <bruno@clisp.org>
42707
42708         Fix test failures on Solaris 10.
42709         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42710         tests when Solaris iconv() is used.
42711         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42712         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42713         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42714         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42715         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42716
42717 2009-08-16  Bruno Haible  <bruno@clisp.org>
42718
42719         Fix test failures on Solaris 10.
42720         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42721         'tr' program and pass it as first argument.
42722         * tests/test-pipe-filter-gi1.sh: Likewise.
42723         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42724         program as first argument.
42725         * tests/test-pipe-filter-gi1.c (main): Likewise.
42726
42727 2009-08-16  Eric Blake  <ebb9@byu.net>
42728
42729         fpurge: fix previous commits
42730         * modules/fpurge (Makefile.am): Make replacement conditional,
42731         partially reverting 2007-04-29 change; missed in previous
42732         attempt.
42733         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42734         is missing.
42735
42736 2009-08-16  Bruno Haible  <bruno@clisp.org>
42737
42738         Clarify fpurge's effect on the file position.
42739         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42740         * tests/test-fpurge.c (main): Make a second pass for checking the file
42741         position.
42742
42743 2009-08-16  Bruno Haible  <bruno@clisp.org>
42744
42745         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42746         declaration of fpurge is missing.
42747         * tests/test-fpurge.c (main): Check that the file has not more contents
42748         than expected. Close the file before removing it.
42749
42750 2009-08-15  Eric Blake  <ebb9@byu.net>
42751
42752         fpurge: don't wrap working cygwin implementation
42753         * lib/fpurge.c (fpurge): Fix comment typo.
42754         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42755         1.7 to avoid replacement.
42756         * tests/test-fpurge.c (main): Enhance test.
42757
42758 2009-08-15  Eric Blake  <ebb9@byu.net>
42759         and Jim Meyering  <meyering@redhat.com>
42760
42761         test-update-copyright: skip if perl is insufficient
42762         * tests/test-update-copyright.sh: Failure to run maintainer tool
42763         should not cause testsuite failure on cygwin 1.5.
42764
42765 2009-08-14  Eric Blake  <ebb9@byu.net>
42766
42767         doc: mention more functions added in cygwin 1.7.0
42768         * doc/posix-headers/limits.texi (limits.h): Update for recent
42769         cygwin additions.
42770         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42771         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42772         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42773         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42774         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42775
42776 2009-08-14  Eric Blake  <ebb9@byu.net>
42777
42778         maint.mk: simplify update-copyright rule
42779         * top/maint.mk (update-copyright-local): Delete, and document how
42780         to do it in cfg.mk instead.
42781         (update-copyright-exclude-regexp): Delete, and document how to do
42782         it in .x-update-copyright instead.
42783         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42784         exclude ChangeLog.
42785
42786 2009-08-14  Bruno Haible  <bruno@clisp.org>
42787
42788         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42789
42790 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42791
42792         maint.mk: support update-copyright-env
42793         * top/maint.mk (update-copyright-env): Define place-holder.
42794         (update-copyright): Expand $(update-copyright-env) before
42795         invoking update-copyright.
42796
42797 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42798
42799         update-copyright: implement forced reformatting
42800         * build-aux/update-copyright: Implement and document
42801         UPDATE_COPYRIGHT_FORCE.
42802         * tests/test-update-copyright.sh: Test it.
42803
42804 2009-08-14  Eric Blake  <ebb9@byu.net>
42805         and Bruno Haible  <bruno@clisp.org>
42806
42807         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42808         * tests/test-locale.c: Revert previous patch related to NULL.
42809         * tests/test-stdio.c: Likewise.
42810         * tests/test-stdlib.c: Likewise.
42811         * tests/test-string.c: Likewise.
42812         * tests/test-unistd.c: Likewise.
42813         * modules/time-tests (Depends-on): Add verify.
42814         * modules/wchar-tests (Depends-on): Likewise.
42815         * tests/test-time.c: Test for NULL compliance.
42816         * tests/test-wchar.c: Likewise.
42817         * modules/locale (Depends-on): Add stddef.
42818         * modules/stdio (Depends-on): Likewise.
42819         * modules/stdlib (Depends-on): Likewise.
42820         * modules/string (Depends-on): Likewise.
42821         * modules/time (Depends-on): Likewise.
42822         * modules/unistd (Depends-on): Likewise.
42823         * modules/wchar (Depends-on): Likewise.
42824         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42825         * lib/stdlib.in.h (includes): Likewise.
42826         * lib/string.in.h (includes): Likewise.
42827         * lib/time.in.h (includes): Likewise.
42828         * lib/unistd.in.h (includes): Likewise.
42829         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42830         replaced.
42831         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42832         * m4/stddef_h.m4: New file.
42833         * modules/stddef: Likewise.
42834         * lib/stddef.in.h: Likewise.
42835         * modules/stddef-tests: Likewise.
42836         * tests/test-stddef.c: Likewise.
42837         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42838         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42839         * doc/posix-headers/locale.texi (locale.h): Likewise.
42840         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42841         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42842         * doc/posix-headers/string.texi (string.h): Likewise.
42843         * doc/posix-headers/time.texi (time.h): Likewise.
42844         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42845         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42846
42847 2009-08-14  Eric Blake  <ebb9@byu.net>
42848
42849         doc: improve git diff of texinfo files
42850         * .gitattributes: Add rule for *.texi files, with hint on how to
42851         use it.
42852         Copied from m4, and based on a report by Bruno Haible.
42853
42854 2009-08-14  Bruno Haible  <bruno@clisp.org>
42855
42856         Disable multithread support by default on Cygwin 1.5.x for real.
42857         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42858
42859 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42860
42861         update-copyright: much ado about intervals
42862         * build-aux/update-copyright: Implement and document
42863         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42864         of copyright year intervals.
42865         Also, document UPDATE_COPYRIGHT_YEAR.
42866         * tests/test-update-copyright.sh: Test it.
42867
42868         update-copyright: convert 2-digit to 4-digit years
42869         * build-aux/update-copyright: Implement and document.
42870         * tests/test-update-copyright.sh: Update.
42871
42872 2009-08-14  Jim Meyering  <meyering@redhat.com>
42873
42874         test-exclude: avoid coreutils "make check" failure
42875         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42876         just as in test-argmatch.c.
42877
42878 2009-08-13  Eric Blake  <ebb9@byu.net>
42879
42880         test-dup2: fix bad assumption
42881         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42882         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42883
42884         test-version-etc: fix CRLF portability issue
42885         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42886         recognize \r.
42887         * tests/test-argp-version-etc-1.sh: Likewise.
42888
42889         getopt: update client modules
42890         * modules/argp (Depends-on): Use getopt-gnu.
42891         * modules/git-merge-changelog (Depends-on): Likewise.
42892         * modules/long-options (Depends-on): Likewise.
42893         * modules/xstrtol (Depends-on): Likewise.
42894
42895 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42896
42897         * tests/test-version-etc.sh: Don't fail on different
42898         project/version.  Don't fail on CRLF differences.  Rewrite to use
42899         multiple -e instead of multiple sed forks, suggested by Eric Blake
42900         <ebb9@byu.net>.
42901         * tests/test-argp-version-etc-1.sh: Likewise.
42902
42903 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42904
42905         * tests/test-version-etc.sh: Don't fail on different
42906         project/version.
42907
42908 2009-08-12  Bruno Haible  <bruno@clisp.org>
42909
42910         Tests for modules 'getopt-posix', 'getopt-gnu'.
42911         * modules/getopt-posix-tests: New file.
42912         * tests/test-getopt.c: New file.
42913         * tests/test-getopt.h: New file.
42914         * tests/test-getopt_long.h: New file.
42915
42916         New modules 'getopt-posix', 'getopt-gnu'.
42917         * modules/getopt-gnu: New file, renamed from modules/getopt.
42918         * modules/getopt-posix: New file.
42919         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42920         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42921         (gl_GETOPT): Remove macro.
42922         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42923         Disable the test against BSD systems that declare optreset. Test
42924         against mingw bug. Test against lack of support of optional arguments
42925         on many platforms.
42926         * doc/glibc-headers/getopt.texi: Update module name and list of
42927         relevant platforms.
42928         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42929         'getopt-gnu' and more portability problems.
42930         * NEWS: Mention the changes.
42931
42932 2009-08-12  Bruno Haible  <bruno@clisp.org>
42933
42934         Ensure that optarg etc. get declared by <unistd.h>.
42935         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42936         AC_USE_SYSTEM_EXTENSIONS.
42937         * modules/getopt (Depends-on): Add 'extensions'.
42938
42939 2009-08-12  Bruno Haible  <bruno@clisp.org>
42940
42941         Avoid test link errors.
42942         * modules/pipe-filter-ii-tests (Makefile.am): Define
42943         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42944         * modules/pipe-filter-gi-tests (Makefile.am): Define
42945         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42946         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42947
42948 2009-08-12  Bruno Haible  <bruno@clisp.org>
42949
42950         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42951         gl_GETOPT_SUBSTITUTE before.
42952         (gl_GETOPT): Use it.
42953         * m4/argp.m4 (gl_ARGP): Update.
42954         Reported by Sergey Poznyakoff.
42955
42956         * m4/getopt.m4: Reorder macros.
42957         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42958         (gl_GETOPT_SUBSTITUTE): Remove macro.
42959
42960 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42961
42962         Minor improvement in gitlog-to-changelog
42963
42964         * build-aux/gitlog-to-changelog: New option `--format' makes
42965         output format string configurable.
42966
42967 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42968
42969         Optimize exclude: use hash tables for non-wildcard patterns.
42970
42971         * lib/exclude.c: Include hash.h and mbuiter.h
42972         (struct exclude_pattern, exclude_segment): New data types.
42973         (struct exclude): Rewrite.
42974         (fnmatch_pattern_has_wildcards): New function.
42975         (new_exclude_segment, free_exclude_segment): New functions.
42976         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42977         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42978         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42979         * modules/exclude: Depend on hash and mbuiter.
42980
42981         * modules/exclude-tests: New file.
42982         * tests/test-exclude.c: New file.
42983         * tests/test-exclude1.sh: New file.
42984         * tests/test-exclude2.sh: New file.
42985         * tests/test-exclude3.sh: New file.
42986         * tests/test-exclude4.sh: New file.
42987         * tests/test-exclude5.sh: New file.
42988         * tests/test-exclude6.sh: New file.
42989         * tests/test-exclude7.sh: New file.
42990
42991 2009-08-12  Bruno Haible  <bruno@clisp.org>
42992
42993         Ensure that getopt() gets declared by <unistd.h>.
42994         * lib/unistd.in.h: Conditionally include getopt.h.
42995         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42996         Set GNULIB_UNISTD_H_GETOPT.
42997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42998         GNULIB_UNISTD_H_GETOPT.
42999         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43000
43001 2009-08-12  Bruno Haible  <bruno@clisp.org>
43002
43003         Clarify logic.
43004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43005         gl_replace_getopt instead of GETOPT_H.
43006
43007 2009-08-12  Bruno Haible  <bruno@clisp.org>
43008
43009         * m4/getopt.m4: Add comments.
43010
43011 2009-08-12  Bruno Haible  <bruno@clisp.org>
43012
43013         Disable multithread support by default on Cygwin 1.5.x.
43014         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43015         set gl_use_threads=no if not specified otherwise.
43016
43017 2009-08-11  Bruno Haible  <bruno@clisp.org>
43018
43019         Avoid compilation error on NetBSD 5.0.
43020         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43021         * tests/test-stdio.c: Likewise.
43022         * tests/test-stdlib.c: Likewise.
43023         * tests/test-string.c: Likewise.
43024         * tests/test-unistd.c: Likewise.
43025         Reported by Greg Troxel <gdt@ir.bbn.com>
43026         at <https://savannah.gnu.org/support/?106973>.
43027
43028 2009-08-11  Bruno Haible  <bruno@clisp.org>
43029
43030         * modules/dup2-tests (Depends-on): Remove close.
43031
43032         Undo 2009-07-19 commit.
43033         * modules/acl-tests (Depends-on): Remove close.
43034         * modules/binary-io-tests (Depends-on): Likewise.
43035         * modules/closein-tests (Depends-on): Likewise.
43036         * modules/flock-tests (Depends-on): Likewise.
43037         * modules/fsync-tests (Depends-on): Likewise.
43038         * modules/lseek-tests (Depends-on): Likewise.
43039         * modules/pipe-tests (Depends-on): Likewise.
43040         * modules/posix_spawn-tests (Depends-on): Likewise.
43041         * modules/posix_spawnp-tests (Depends-on): Likewise.
43042         * modules/stat-time-tests (Depends-on): Likewise.
43043         * modules/yesno-tests (Depends-on): Likewise.
43044
43045 2009-08-10  Bruno Haible  <bruno@clisp.org>
43046
43047         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43048
43049 2009-08-10  Bruno Haible  <bruno@clisp.org>
43050
43051         Fix a gcc warning.
43052         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43053
43054 2009-08-10  Bruno Haible  <bruno@clisp.org>
43055
43056         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43057         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43058         not only the first time.
43059         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43060         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43061         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43062         is 1, not only the the first time.
43063
43064 2009-08-10  Bruno Haible  <bruno@clisp.org>
43065
43066         Make it possible to use module 'gethostname' without module 'close'.
43067         * lib/unistd.in.h (close): Evoke a link error only if
43068         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43070         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43071         * modules/unistd (Makefile.am): Substitute
43072         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43073         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43074         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43075         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43076         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43077         * modules/sys_ioctl (Makefile.am): Substitute
43078         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43079         * modules/socket (configure.ac): On native Windows, set
43080         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43081         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43082         Reported by Sam Steingold <sds@gnu.org>.
43083
43084 2009-08-10  Bruno Haible  <bruno@clisp.org>
43085
43086         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43087         * modules/ioctl (configure.ac): Likewise.
43088
43089 2009-08-10  Bruno Haible  <bruno@clisp.org>
43090
43091         Avoid collision between gnulib wrapper and libintl wrapper.
43092         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43093         already defined in intl/printf.c.
43094         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43095         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43096
43097 2009-08-09  Bruno Haible  <bruno@clisp.org>
43098
43099         Make <sys/select.h> really self-contained, also on Solaris 10.
43100         * lib/sys_select.in.h: Include <string.h>.
43101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43102         Solaris 10 problem.
43103         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43104         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43105         Reported by Jim Meyering.
43106
43107 2009-08-09  Bruno Haible  <bruno@clisp.org>
43108
43109         Avoid warnings from 'aclocal' that are due to a use of macro name
43110         AM_XGETTEXT_OPTION that is not defined in automake.
43111         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43112         automake.
43113         * modules/error (configure.ac): Likewise.
43114         * modules/propername (configure.ac): Likewise.
43115         * modules/vasprintf (configure.ac): Likewise.
43116         * modules/verror (configure.ac): Likewise.
43117         * modules/xprintf (configure.ac): Likewise.
43118         * modules/xvasprintf (configure.ac): Likewise.
43119
43120 2009-08-08  Bruno Haible  <bruno@clisp.org>
43121
43122         Avoid compilation error in C++ mode.
43123         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43124         Reported by Sam Steingold <sds@gnu.org>.
43125
43126 2009-08-08  Bruno Haible  <bruno@clisp.org>
43127
43128         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43129         for the various Unix platforms.
43130         * doc/posix-headers/limits.texi: Update platforms list regarding
43131         HOST_NAME_MAX.
43132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43133
43134 2009-08-07  Jim Meyering  <meyering@redhat.com>
43135
43136         selinux-at: fix typo in a comment
43137         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43138         Spotted by Paolo Bonzini.
43139
43140         selinux-at: remove redundant m4 code, add documentation
43141         * modules/selinux-at (configure.ac): Remove redundant code.
43142         LIB_SELINUX is already set via the dependent module, selinux-h.
43143         (Include): Add quotes around selinux-at.h.
43144         * lib/selinux-at.h: Add documentation.
43145         Reported by Bruno Haible in
43146         http://marc.info/?l=gnulib-bug&m=124958988300749
43147
43148 2009-08-07  Bruno Haible  <bruno@clisp.org>
43149
43150         Avoid link error on MacOS X 10.3 and 10.4.
43151         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43152         on non-ELF systems.
43153         * lib/argp-pv.c (argp_program_version): Likewise.
43154         Reported by Simon Josefsson.
43155
43156 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43157
43158         * tests/test-version-etc.sh: Use $EXEEXT.
43159
43160 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43161
43162         update-copyright: update documentation to point to maint.mk
43163         * build-aux/update-copyright: Here.
43164
43165 2009-08-06  Jim Meyering  <meyering@redhat.com>
43166
43167         maint.mk: support update-copyright-local
43168         * top/maint.mk (update-copyright-local): Define place-holder.
43169         (update-copyright): Depend on $(update-copyright-local).
43170
43171 2009-08-06  Jim Meyering  <meyering@redhat.com>
43172
43173         selinux-at: new module
43174         Initially written for coreutils, this module will soon be
43175         used by findutils, too.
43176         * MODULES.html.sh [Misc]: Add selinux-at.
43177         * lib/selinux-at.h: New file, from coreutils.
43178         * lib/selinux-at.c: Likewise.
43179         * modules/selinux-at: Likewise.
43180         (License): Change from LGPL to GPL, since it depends
43181         on the GPL'd openat module.
43182
43183         doc: update README
43184         * README: Remove references to cogito.
43185         Remove cvs-repo-updating instructions from 2007.
43186         Don't imply that CVS is better if you have limited disk space.
43187
43188 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43189
43190         update-copyright: support C-style comments
43191         * build-aux/update-copyright: Implement and document.
43192         * tests/test-update-copyright.sh: Test.
43193
43194 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43195
43196         update-copyright: support omitted "(C)"
43197         * build-aux/update-copyright: Implement and document.  Also,
43198         allow variable whitespace before "(C)".
43199         * tests/test-update-copyright.sh: Test.
43200
43201 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43202
43203         update-copyright: don't trip on non-FSF copyright statements
43204         * build-aux/update-copyright: Fix so that the first correctly
43205         formatted FSF copyright statement is recognized no matter what
43206         appears before it.  Update documentation.
43207         * tests/test-update-copyright.sh: Test that.
43208
43209 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43210
43211         update-copyright: clean up code a little
43212         * build-aux/update-copyright: Append "_re" to the name of any
43213         variable holding a regular expression.
43214         Replace "old" and "new" with "stmt" in variable names.
43215         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43216         handled correctly.
43217         Format code more consistently.
43218
43219 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43220
43221         update-copyright-tests: improve portability
43222         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43223         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43224
43225 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43226
43227         update-copyright: support @copyright{} and &copy;
43228         * build-aux/update-copyright: Implement and document.
43229         * tests/test-update-copyright.sh: Test.
43230
43231 2009-08-04  Jim Meyering  <meyering@redhat.com>
43232
43233         update-copyright-tests: correctly test EOL=\r\n handling
43234         * tests/test-update-copyright.sh: Put \r at the end of some lines
43235         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43236
43237         maint.mk: make update-copyright exclusion list more configurable
43238         * top/maint.mk (update-copyright): Default to excluding COPYING,
43239         but allow an override, in case someone does want to update that file.
43240
43241         maint.mk: don't update copyright date in COPYING
43242         * top/maint.mk (update-copyright): Exclude COPYING.
43243
43244         maint.mk: add a copyright-updating rule
43245         * top/maint.mk (update-copyright): New rule.
43246         Derived from coreutils/Makefile.am.
43247
43248         update-copyright: rename some variables
43249         * build-aux/update-copyright: Rename a few variables for clarity.
43250         Tweak syntax.  List Joel E. Denny as coauthor.
43251
43252 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43253
43254         update-copyright: fix bug for 2-digit last year and add tests
43255         * build-aux/update-copyright: Fix bug.
43256         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43257         specified.
43258         * modules/update-copyright-tests: New
43259         * tests/test-update-copyright.sh: New.
43260
43261 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43262
43263         update-copyright: handle leading tabs in line prefix
43264         * build-aux/update-copyright: Count leading tabs as 8 spaces
43265         when computing margin.  This helps with the formatting of
43266         ChangeLogs, for example.
43267         Fix documentation a little.
43268
43269 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43270
43271         update-copyright: support EOL=\r\n
43272         * build-aux/update-copyright: Implement that.
43273
43274 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43275
43276         update-copyright: automatically format copyright statements
43277         * build-aux/update-copyright: Implement that.
43278         Also, be a little more predictable and safer by always failing
43279         when the full copyright format is not perfectly recognized as an
43280         unbroken whole.  Discussed at
43281         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43282         Rewrite documentation.
43283
43284 2009-08-03  Bruno Haible  <bruno@clisp.org>
43285
43286         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43287
43288 2009-08-02  Bruno Haible  <bruno@clisp.org>
43289
43290         Tests for module 'uname'.
43291         * modules/uname-tests: New file.
43292         * tests/test-uname.c: New file.
43293
43294         New module 'uname'.
43295         * lib/uname.c: New file.
43296         * m4/uname.m4: New file.
43297         * modules/uname: New file.
43298         * doc/posix-functions/uname.texi: Mention the new module.
43299
43300 2009-08-02  Bruno Haible  <bruno@clisp.org>
43301
43302         Tests for module 'sys_utsname'.
43303         * modules/sys_utsname-tests: New file.
43304         * tests/test-sys_utsname.c: New file.
43305
43306         New module 'sys_utsname'.
43307         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43308         * m4/sys_utsname_h.m4: New file.
43309         * modules/sys_utsname: New file.
43310         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43311
43312 2009-08-02  Bruno Haible  <bruno@clisp.org>
43313
43314         Implicitly initialize the sockets library.
43315         * lib/gethostname.c: Include sockets.h.
43316         (rpl_gethostname): Invoke gl_sockets_startup.
43317         * lib/socket.c: Include sockets.h.
43318         (rpl_socket): Invoke gl_sockets_startup.
43319         * modules/gethostname (Depends-on): Add sockets.
43320         * modules/socket (Depends-on): Likewise.
43321         * tests/test-poll.c: Don't include sockets.h.
43322         (main): Don't invoke gl_sockets_startup.
43323         * tests/test-select.c: Don't include sockets.h.
43324         (main): Don't invoke gl_sockets_startup.
43325
43326 2009-08-02  Bruno Haible  <bruno@clisp.org>
43327
43328         Allow multiple calls to gl_sockets_startup.
43329         * lib/sockets.c (initialized_sockets_version): New variable.
43330         (gl_sockets_startup): Do nothing if already called for this or a higher
43331         version.
43332         (gl_sockets_cleanup): Reset initialized_sockets_version.
43333
43334 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43335
43336         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43337         different project/version.
43338
43339 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43340             Bruno Haible  <bruno@clisp.org>
43341
43342         Tests for module 'pipe-filter-gi'.
43343         * modules/pipe-filter-gi-tests: New file.
43344         * tests/test-pipe-filter-gi1.sh: New file.
43345         * tests/test-pipe-filter-gi1.c: New file.
43346         * tests/test-pipe-filter-gi2.sh: New file.
43347         * tests/test-pipe-filter-gi2-main.c: New file.
43348         * tests/test-pipe-filter-gi2-child.c: New file.
43349
43350         New module 'pipe-filter-gi'.
43351         * lib/pipe-filter-gi.c: New file.
43352         * modules/pipe-filter-gi: New file.
43353
43354 2009-08-02  Bruno Haible  <bruno@clisp.org>
43355             Paolo Bonzini  <bonzini@gnu.org>
43356
43357         Tests for module 'pipe-filter-ii'.
43358         * modules/pipe-filter-ii-tests: New file.
43359         * tests/test-pipe-filter-ii1.sh: New file.
43360         * tests/test-pipe-filter-ii1.c: New file.
43361         * tests/test-pipe-filter-ii2.sh: New file.
43362         * tests/test-pipe-filter-ii2-main.c: New file.
43363         * tests/test-pipe-filter-ii2-child.c: New file.
43364
43365         New module 'pipe-filter-ii'.
43366         * lib/pipe-filter.h: New file.
43367         * lib/pipe-filter-ii.c: New file.
43368         * lib/pipe-filter-aux.h: New file.
43369         * modules/pipe-filter-ii: New file.
43370
43371 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43372
43373         * lib/gc-libgcrypt.c: Change copyright to FSF.
43374         * lib/gc-gnulib.c: Likewise.
43375
43376 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43377
43378         * lib/gethostname.c: Include limits.h.
43379
43380 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43381             Bruno Haible  <bruno@clisp.org>
43382
43383         Ensure HOST_NAME_MAX as part of the gethostname module.
43384         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43385         define also HOST_NAME_MAX.
43386         * tests/test-gethostname.c: Include <limits.h>.
43387         (main): Check also HOST_NAME_MAX.
43388         * doc/posix-headers/limits.texi: Document the mingw problem.
43389
43390 2009-08-02  Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43393         Add comments.
43394
43395 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43396
43397         * lib/gethostname.c: Add Windows wrapper.
43398         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43399         * modules/gethostname: Depend on sys_socket & errno, for also
43400         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43401         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43402
43403 2009-07-31  Jim Meyering  <meyering@redhat.com>
43404
43405         getloadavg: fix symbol name in comment
43406         * lib/getloadavg.c: Correct a typo I introduced when adding
43407         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43408         Matt Kraai spotted the problem.
43409
43410 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43411
43412         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43413         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43414         code also if ! defined N_NAME_POINTER.
43415         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43416         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43417         but the n_name member is a 12-byte array.
43418
43419 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43420
43421         update-copyright: generalize comment handling
43422         * build-aux/update-copyright: Handle copyright statements
43423         within more comment styles.
43424         Document usage.
43425         Report any file with an external copyright holder or parse failure.
43426
43427 2009-07-29  Jim Meyering  <meyering@redhat.com>
43428
43429         mktime: correct setting of REPLACE_MKTIME
43430         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43431
43432         update-copyright: new module
43433         * modules/update-copyright: New file.
43434         * build-aux/update-copyright: New file.
43435         * MODULES.html.sh (maint+release support): Add update-copyright.
43436
43437 2009-07-27  Bruno Haible  <bruno@clisp.org>
43438
43439         Fix compilation error when <ctime> is used and mktime is replaced.
43440         * lib/time.in.h (mktime): New declaration.
43441         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43442         REPLACE_MKTIME instead of defining mktime in config.h.
43443         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43444         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43445         Reported by Ross McFarland <rwmcfa1@neces.com>.
43446
43447 2009-07-27  Bruno Haible  <bruno@clisp.org>
43448
43449         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43450         Reported by Matt Kraai <mkraai@beckman.com>.
43451
43452 2009-07-25  Jim Meyering  <meyering@redhat.com>
43453
43454         maint.mk: avoid warnings about missing files
43455         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43456         diagnostic when .prev-version does not exist.
43457         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43458         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43459         nonexistent cfg.mk.
43460         Suggestions from Simon Josefsson.
43461
43462 2009-07-25  Bruno Haible  <bruno@clisp.org>
43463
43464         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43465         defined as macros. Needed on QNX 6.4.1.
43466         Reported by Matt Kraai <mkraai@beckman.com>.
43467
43468 2009-07-23  Jim Meyering  <meyering@redhat.com>
43469
43470         maint.mk: invoke "make dist" with a working value of XZ_OPT
43471         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43472
43473 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43474
43475         Make fseeko.c compile on QNX.
43476         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43477
43478 2009-07-22  Peter Simons  <simons@cryp.to>
43479
43480         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43481         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43482         * lib/md4.h: Likewise.
43483         * lib/md5.h: Likewise.
43484         * lib/sha1.h: Likewise.
43485         * lib/sha256.h: Likewise.
43486         * lib/sha512.h: Likewise.
43487
43488         tests-sha1: don't assign literal string to 'char *' variable
43489         * tests/test-sha1.c (main): Declare locals with "const" to match
43490         attributes of the right hand side.
43491
43492 2009-07-21  Eric Blake  <ebb9@byu.net>
43493
43494         dup2: fix more mingw problems
43495         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43496         fd to itself.
43497         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43498         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43499         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43500         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43501         care of mingw bugs.
43502
43503 2009-07-21  Jim Meyering  <meyering@redhat.com>
43504
43505         vc-list-files: avoid failure when /bin/sh is dash
43506         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43507         On some Debian based systems, /bin/sh is a symlink to dash, and running
43508         this command would omit the "/" following each 'tests' prefix:
43509           dash -x build-aux/vc-list-files -C . tests
43510         That is because bash and dash work differently:
43511           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43512           bash ok
43513           dash odd
43514
43515 2009-07-21  Eric Blake  <ebb9@byu.net>
43516
43517         dup2-tests: test previous patch
43518         * modules/dup2-tests: New file.
43519         * tests/test-dup2.c: Likewise.
43520         * tests/test-open.c (main): Avoid unspecified behavior.
43521         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43522         test.
43523
43524         dup2: work around mingw and cygwin 1.5 bug
43525         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43527         * modules/unistd (Makefile.am): Substitute it.
43528         * lib/unistd.in.h (dup2): Declare the replacement.
43529         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43530         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43531         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43532         * modules/execute (Depends-on): Add dup2.
43533         * modules/fseterr (Depends-on): Likewise.
43534         * modules/pipe (Depends-on): Likewise.
43535         * modules/posix_spawn-internal (Depends-on): Likewise.
43536
43537 2009-07-21  Bruno Haible  <bruno@clisp.org>
43538
43539         * modules/.gitattributes: New file.
43540
43541 2009-07-20  Bruno Haible  <bruno@clisp.org>
43542
43543         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43544         (main): Use it.
43545
43546 2009-07-20  Eric Blake  <ebb9@byu.net>
43547
43548         test-pipe: make a bit more robust.
43549         * tests/test-pipe.c (myerr): Allow error messages regardless of
43550         what we do to stderr.
43551         (test_pipe): Rearrange to avoid deadlock.
43552         (child_main): Try a larger read, to ensure we avoided deadlock.
43553         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43554         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43555         if misused.
43556
43557 2009-07-19  Jim Meyering  <meyering@redhat.com>
43558
43559         fts: avoid false-positive cycle-detection
43560         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43561         for each new command line argument.
43562
43563 2009-07-19  Bruno Haible  <bruno@clisp.org>
43564
43565         Fix build error on mingw with the modules sys_select and unistd.
43566         * modules/acl-tests (Depends-on): Add close.
43567         * modules/binary-io-tests (Depends-on): Likewise.
43568         * modules/closein-tests (Depends-on): Likewise.
43569         * modules/flock-tests (Depends-on): Likewise.
43570         * modules/fsync-tests (Depends-on): Likewise.
43571         * modules/lseek-tests (Depends-on): Likewise.
43572         * modules/pipe-tests (Depends-on): Likewise.
43573         * modules/posix_spawn-tests (Depends-on): Likewise.
43574         * modules/posix_spawnp-tests (Depends-on): Likewise.
43575         * modules/stat-time-tests (Depends-on): Likewise.
43576         * modules/yesno-tests (Depends-on): Likewise.
43577
43578 2009-07-19  Bruno Haible  <bruno@clisp.org>
43579
43580         Unify conditionals.
43581         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43582         macros, not at the compiler macros.
43583         * lib/pipe.c: Likewise.
43584         * lib/execute.c: Likewise.
43585         * lib/spawni.c: Likewise.
43586
43587 2009-07-19  Bruno Haible  <bruno@clisp.org>
43588
43589         Fix handling of closed stdin/stdout/stderr on mingw.
43590         * lib/w32spawn.h: Include unistd.h.
43591         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43592         file descriptor with O_NOINHERIT flag.
43593         (fd_safer_noinherit): New function, based on fd-safer.c.
43594         (dup_safer_noinherit): New function, based on dup-safer.c.
43595         (undup_safer_noinherit): New function.
43596         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43597         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43598         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43599         instead of fd_safer.
43600         * tests/test-pipe.c: Include <windows.h>.
43601         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43602         result.
43603
43604         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43605         from main.
43606         (test_pipe): Pass an extra argument for disambiguation.
43607         (main): Invoke parent_main or child_main.
43608
43609         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43610         consistently.
43611
43612 2009-07-18  Eric Blake  <ebb9@byu.net>
43613
43614         test-pipe: fix mingw build
43615         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43616
43617 2009-07-18  Bruno Haible  <bruno@clisp.org>
43618
43619         * modules/pipe-tests (Makefile.am): Fix typo.
43620
43621 2009-07-18  Eric Blake  <ebb9@byu.net>
43622
43623         error: fix mingw build
43624         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43625         Reported by Bruno Haible.
43626
43627         error: avoid undefined use of stdout
43628         * lib/error.c (error, error_at_line): Check that fd 1 is open
43629         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43630         is handling faults and the close_stdout module wants to report the
43631         detection of closed stdout as an error.
43632
43633 2009-07-17  Eric Blake  <ebb9@byu.net>
43634
43635         pipe: be robust in face of closed fds
43636         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43637         should cause child to misbehave.
43638         * modules/pipe-tests: New module.
43639         * tests/test-pipe.c: New file.
43640         * tests/test-pipe.sh: New file.
43641         Reported by Akim Demaille.
43642
43643 2009-07-14  Bruno Haible  <bruno@clisp.org>
43644
43645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43646         Reported by anonymous kc.
43647
43648 2009-07-07  Jim Meyering  <meyering@redhat.com>
43649
43650         maint.mk: don't look for translatable strings in *.m4 or *.mk
43651         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43652         when searching for translatable strings.
43653
43654 2009-07-05  Jim Meyering  <meyering@redhat.com>
43655
43656         remove superfluous parentheses in STREQ definition
43657         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43658         * lib/getugroups.c (STREQ): Likewise.
43659         * lib/fnmatch.c (STREQ): Likewise.
43660         Spotted by Bruno Haible.
43661
43662 2009-07-04  Jim Meyering  <meyering@redhat.com>
43663
43664         argv-iter: new module
43665         * MODULES.html.sh: Add argv-iter.
43666         * lib/argv-iter.c, lib/argv-iter.h: New files.
43667         * modules/argv-iter: New file.
43668         * modules/argv-iter-tests: New file.
43669         * tests/test-argv-iter.c: Test it.
43670
43671 2009-07-04  Bruno Haible  <bruno@clisp.org>
43672
43673         Fix assertion.
43674         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43675         contains more exact copies of a given entry than file2, leave the extra
43676         copies unpaired rather than aborting.
43677         Reported by Eric Blake.
43678
43679 2009-07-02  Bruno Haible  <bruno@clisp.org>
43680
43681         Speedup git-merge-changelog for git cherry-pick.
43682         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43683         (entries_mapping_get): New function, extracted from compute_mapping.
43684         (entries_mapping_reverse_get): New function.
43685         (compute_mapping): Add a 'full' argument. Return the result in a
43686         'struct entries_mapping'.
43687         (main): Update. Access the mappings through entries_mapping_get.
43688         Reported by Eric Blake.
43689
43690 2009-07-02  Bruno Haible  <bruno@clisp.org>
43691
43692         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43693         best_i.
43694
43695 2009-07-02  Bruno Haible  <bruno@clisp.org>
43696
43697         Speed up approximate search for matching ChangeLog entries.
43698         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43699         argument. Call fstrcmp_bounded instead of fstrcmp.
43700         (compute_mapping, try_split_merged_entry, main): Update callers.
43701
43702 2009-07-02  Bruno Haible  <bruno@clisp.org>
43703
43704         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43705
43706 2009-06-30  Bruno Haible  <bruno@clisp.org>
43707
43708         Reduce the number of uc_is_cased calls.
43709         * lib/unicase.h (casing_suffix_context_t): Add
43710         'first_char_except_ignorable' field.
43711         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43712         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43713         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43714         Update initializer.
43715         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43716         case-ignorable characters.
43717         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43718         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43719         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43720         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43721         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43722
43723 2009-06-30  Bruno Haible  <bruno@clisp.org>
43724
43725         Tests for module 'unicase/ignorable'.
43726         * modules/unicase/ignorable-tests: New file.
43727         * tests/unicase/test-ignorable.c: New file, generated by
43728         gen-uni-tables.
43729
43730         Tests for module 'unicase/cased'.
43731         * modules/unicase/cased-tests: New file.
43732         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43733         * tests/unicase/test-predicate-part1.h: New file, derived from
43734         tests/unictype/test-predicate-part1.h.
43735         * tests/unicase/test-predicate-part2.h: New file, same as
43736         tests/unictype/test-predicate-part2.h.
43737
43738         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43739         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43740         (output_casing_properties): New function.
43741         (main): Call it.
43742         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43743         * lib/unicase/cased.c: Include unictype/bitmap.h.
43744         (uc_is_cased): Define through a bitmap lookup.
43745         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43746         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43747         (uc_is_case_ignorable): Define through a bitmap lookup.
43748         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43749         lib/unictype/bitmap.h.
43750         (Depends-on): Add inline. Clean up.
43751         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43752         lib/unictype/bitmap.h.
43753         (Depends-on): Add inline. Clean up.
43754         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43755         recognition.
43756         * tests/unicase/test-u16-tolower.c (main): Likewise.
43757         * tests/unicase/test-u32-tolower.c (main): Likewise.
43758
43759 2009-06-30  Bruno Haible  <bruno@clisp.org>
43760
43761         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43762         * lib/unicase/u16-casemap.c: Likewise.
43763         * lib/unicase/u32-casemap.c: Likewise.
43764
43765 2009-06-29  Bruno Haible  <bruno@clisp.org>
43766
43767         Define u32_casefold as a wrapper around u32_ct_casefold.
43768         * lib/unicase/u32-casefold.c: Update.
43769         * modules/unicase/u32-casefold (Depends-on): Add
43770         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43771         unicase/empty-suffix-context. Clean up.
43772
43773         Define u16_casefold as a wrapper around u16_ct_casefold.
43774         * lib/unicase/u16-casefold.c: Update.
43775         * modules/unicase/u16-casefold (Depends-on): Add
43776         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43777         unicase/empty-suffix-context. Clean up.
43778
43779         Define u8_casefold as a wrapper around u8_ct_casefold.
43780         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43781         * lib/unicase/u8-casefold.c: Update.
43782         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43783         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43784
43785         Define u32_totitle as a wrapper around u32_ct_totitle.
43786         * lib/unicase/u32-totitle.c: Update.
43787         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43788         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43789
43790         Define u16_totitle as a wrapper around u16_ct_totitle.
43791         * lib/unicase/u16-totitle.c: Update.
43792         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43793         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43794
43795         Define u8_totitle as a wrapper around u8_ct_totitle.
43796         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43797         functions.
43798         (FUNC): Delegate to U_CT_TOTITLE.
43799         * lib/unicase/u8-totitle.c: Update.
43800         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43801         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43802
43803         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43804         invocation.
43805         * modules/unicase/u32-tolower (Depends-on): Add
43806         unicase/empty-prefix-context, unicase/empty-suffix-context.
43807
43808         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43809         invocation.
43810         * modules/unicase/u16-tolower (Depends-on): Add
43811         unicase/empty-prefix-context, unicase/empty-suffix-context.
43812
43813         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43814         * modules/unicase/u8-tolower (Depends-on): Add
43815         unicase/empty-prefix-context, unicase/empty-suffix-context.
43816
43817         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43818         invocation.
43819         * modules/unicase/u32-toupper (Depends-on): Add
43820         unicase/empty-prefix-context, unicase/empty-suffix-context.
43821
43822         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43823         invocation.
43824         * modules/unicase/u16-toupper (Depends-on): Add
43825         unicase/empty-prefix-context, unicase/empty-suffix-context.
43826
43827         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43828         * modules/unicase/u8-toupper (Depends-on): Add
43829         unicase/empty-prefix-context, unicase/empty-suffix-context.
43830
43831         New module 'unicase/u32-ct-casefold'.
43832         * lib/unicase/u32-ct-casefold.c: New file.
43833         * modules/unicase/u32-ct-casefold: New file.
43834
43835         New module 'unicase/u16-ct-casefold'.
43836         * lib/unicase/u16-ct-casefold.c: New file.
43837         * modules/unicase/u16-ct-casefold: New file.
43838
43839         New module 'unicase/u8-ct-casefold'.
43840         * lib/unicase/u8-ct-casefold.c: New file.
43841         * lib/unicase/u-ct-casefold.h: New file, derived from
43842         lib/unicase/u-casefold.h.
43843         * modules/unicase/u8-ct-casefold: New file.
43844
43845         New module 'unicase/u32-ct-totitle'.
43846         * lib/unicase/u32-ct-totitle.c: New file.
43847         * modules/unicase/u32-ct-totitle: New file.
43848
43849         New module 'unicase/u16-ct-totitle'.
43850         * lib/unicase/u16-ct-totitle.c: New file.
43851         * modules/unicase/u16-ct-totitle: New file.
43852
43853         New module 'unicase/u8-ct-totitle'.
43854         * lib/unicase/u8-ct-totitle.c: New file.
43855         * lib/unicase/u-ct-totitle.h: New file, derived from
43856         lib/unicase/u-totitle.h.
43857         * modules/unicase/u8-ct-totitle: New file.
43858
43859         New module 'unicase/u32-ct-tolower'.
43860         * lib/unicase/u32-ct-tolower.c: New file.
43861         * modules/unicase/u32-ct-tolower: New file.
43862
43863         New module 'unicase/u16-ct-tolower'.
43864         * lib/unicase/u16-ct-tolower.c: New file.
43865         * modules/unicase/u16-ct-tolower: New file.
43866
43867         New module 'unicase/u8-ct-tolower'.
43868         * lib/unicase/u8-ct-tolower.c: New file.
43869         * modules/unicase/u8-ct-tolower: New file.
43870
43871         New module 'unicase/u32-ct-toupper'.
43872         * lib/unicase/u32-ct-toupper.c: New file.
43873         * modules/unicase/u32-ct-toupper: New file.
43874
43875         New module 'unicase/u16-ct-toupper'.
43876         * lib/unicase/u16-ct-toupper.c: New file.
43877         * modules/unicase/u16-ct-toupper: New file.
43878
43879         New module 'unicase/u8-ct-toupper'.
43880         * lib/unicase/u8-ct-toupper.c: New file.
43881         * modules/unicase/u8-ct-toupper: New file.
43882
43883         Add context arguments to u*_casemap functions.
43884         * lib/unicase/unicasemap.h: Include unicase.h.
43885         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43886         suffix_context arguments.
43887         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43888         functions.
43889         (FUNC): Add prefix_context and suffix_context arguments. Use
43890         uc_is_cased and uc_is_case_ignorable.
43891         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43892         * lib/unicase/u16-casemap.c: Likewise.
43893         * lib/unicase/u32-casemap.c: Likewise.
43894         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43895         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43896         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43897         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43898         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43899         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43900
43901         New module 'unicase/u32-suffix-context'.
43902         * lib/unicase/u32-suffix-context.c: New file.
43903         * modules/unicase/u32-suffix-context: New file.
43904
43905         New module 'unicase/u16-suffix-context'.
43906         * lib/unicase/u16-suffix-context.c: New file.
43907         * modules/unicase/u16-suffix-context: New file.
43908
43909         New module 'unicase/u8-suffix-context'.
43910         * lib/unicase/u8-suffix-context.c: New file.
43911         * lib/unicase/u-suffix-context.h: New file.
43912         * modules/unicase/u8-suffix-context: New file.
43913
43914         New module 'unicase/empty-suffix-context'.
43915         * lib/unicase/empty-suffix-context.c: New file.
43916         * modules/unicase/empty-suffix-context: New file.
43917
43918         New module 'unicase/u32-prefix-context'.
43919         * lib/unicase/u32-prefix-context.c: New file.
43920         * modules/unicase/u32-prefix-context: New file.
43921
43922         New module 'unicase/u16-prefix-context'.
43923         * lib/unicase/u16-prefix-context.c: New file.
43924         * modules/unicase/u16-prefix-context: New file.
43925
43926         New module 'unicase/u8-prefix-context'.
43927         * lib/unicase/u8-prefix-context.c: New file.
43928         * lib/unicase/u-prefix-context.h: New file.
43929         * lib/unicase/context.h: New file.
43930         * modules/unicase/u8-prefix-context: New file.
43931
43932         New module 'unicase/empty-prefix-context'.
43933         * lib/unicase/empty-prefix-context.c: New file.
43934         * modules/unicase/empty-prefix-context: New file.
43935
43936         New module 'unicase/ignorable'.
43937         * lib/unicase/ignorable.c: New file.
43938         * modules/unicase/ignorable: New file.
43939
43940         New module 'unicase/cased'.
43941         * lib/unicase/caseprop.h: New file.
43942         * lib/unicase/cased.c: New file.
43943         * modules/unicase/cased: New file.
43944
43945         New functions for case mapping of substrings.
43946         * lib/unicase.h (casing_prefix_context_t): New type.
43947         (unicase_empty_prefix_context): New variable.
43948         (u8_casing_prefix_context, u16_casing_prefix_context,
43949         u32_casing_prefix_context, u8_casing_prefixes_context,
43950         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43951         declarations.
43952         (casing_suffix_context_t): New type.
43953         (unicase_empty_suffix_context): New variable.
43954         (u8_casing_suffix_context, u16_casing_suffix_context,
43955         u32_casing_suffix_context, u8_casing_suffixes_context,
43956         u16_casing_suffixes_context, u32_casing_suffixes_context,
43957         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43958         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43959         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43960         declarations.
43961
43962 2009-06-28  Jim Meyering  <meyering@redhat.com>
43963
43964         boostrap: indent only with spaces
43965         * build-aux/bootstrap: Indent only with spaces, never TABs.
43966
43967         bootstrap: split long lines
43968         * build-aux/bootstrap: Keep line length < 80.
43969
43970         bootstrap: sync from coreutils
43971         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43972         just as autoreconf does.  Verify a list of prerequisite
43973         package-name,version-number pairs if defined in bootstrap.conf.
43974         Refer to README-prereq, if prerequisites are not satisfied.
43975
43976 2009-06-27  Eric Blake  <ebb9@byu.net>
43977
43978         tests: add test for bogus NULL definition
43979         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43980         * tests/test-stdlib.c: Likewise.
43981         * tests/test-string.c: Likewise.
43982         * tests/test-locale.c: Likewise.
43983         * tests/test-unistd.c: Likewise.
43984         * modules/stdio-tests (Depends-on): Add verify.
43985         * modules/stdlib-tests (Depends-on): Likewise.
43986         * modules/string-tests (Depends-on): Likewise.
43987         * modules/locale-tests (Depends-on): Likewise.
43988         * modules/unistd-tests (Depends-on): Likewise.
43989
43990 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43991
43992         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43993         self-explaining comment.
43994         * m4/selinux-selinux-h: Update serial.
43995         (gl_LIBSELINUX): New macro, adding a warning for missing development
43996         packages to code extracted from...
43997         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43998         Add warning for missing development packages here, too.
43999
44000 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44001
44002         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44003
44004 2009-06-25  Eric Blake  <ebb9@byu.net>
44005
44006         version-etc: fix regression
44007         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44008         gcc.
44009         (version_etc): Use it, to catch bugs with trailing NULL.
44010         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44011         (version_etc_va): Fix logic bug.
44012         * modules/version-etc-tests: Add test.
44013         * tests/test-version-etc.c: New file.
44014         * tests/test-version-etc.sh: Likewise.
44015
44016 2009-06-25  Sam Steingold  <sds@gnu.org>
44017
44018         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44019         mbtowc declaration.
44020
44021 2009-06-25  Eric Blake  <ebb9@byu.net>
44022
44023         fpurge: migrate into <stdio.h>
44024         * lib/fpurge.h: Delete...
44025         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44026         * lib/fpurge.c (fpurge): Change declaring header.
44027         * modules/fpurge (Files): Drop deleted file.
44028         (Depends-on): Add stdio.
44029         (configure.ac): Set witness.
44030         * modules/stdio (Makefile.am): Support fpurge macros.
44031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44032         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44033         * lib/fflush.c: Update client.
44034         * tests/test-fpurge.c: Likewise.
44035         * NEWS: Mention the change.
44036
44037 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44038
44039         * lib/argp-version-etc.c (program_authors): Add const
44040         qualifier.
44041         * lib/version-etc.c: Fix typos in the comments.
44042         * modules/argp-version-etc: Depends on version-etc.
44043
44044 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44045
44046         argp-version-etc: new module.
44047
44048         * lib/argp-version-etc.c: New file.
44049         * lib/argp-version-etc.h: New file.
44050         * modules/argp-version-etc: New file.
44051         * modules/argp-version-etc-tests: New file.
44052         * tests/test-argp-version-etc.c: New test.
44053         * tests/test-argp-version-etc-1.sh: New test.
44054
44055 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44056
44057         Provide additional interfaces and documentation for version-etc
44058         module.
44059
44060         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44061         interfaces.
44062         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44063         prototypes.
44064
44065 2009-06-24  Bruno Haible  <bruno@clisp.org>
44066
44067         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44068         HAVE_LIB${NAME} macro.
44069         Reported by Sam Steingold <sds@gnu.org>.
44070
44071 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44072
44073         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44074         needed.
44075
44076 2009-06-21  Bruno Haible  <bruno@clisp.org>
44077
44078         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44079         work.
44080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44081         together with LIB${NAME}, LTLIB${NAME}.
44082         Reported by Sam Steingold <sds@gnu.org>.
44083
44084 2009-06-20  Jim Meyering  <meyering@redhat.com>
44085
44086         tests: make sc_require_test_exit_idiom more generic
44087         * top/maint.mk (Exit_witness_file): New overridable variable.
44088         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44089         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44090
44091 2009-06-19  Jim Meyering  <meyering@redhat.com>
44092
44093         hash: reverse order of src/dst parameters in an internal interface
44094         * lib/hash.c (transfer_entries): Reverse order of parameters to
44095         put DST before SRC.  Adjust callers.
44096
44097         tests: test-hash: avoid wholesale duplication
44098         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44099         Instead, use a loop and add a single conditional.
44100
44101         tests: test-hash: allow seed selection via a command line argument
44102         * tests/test-hash.c (get_seed): New function.
44103         (main): Use it.
44104
44105 2009-06-19  Eric Blake  <ebb9@byu.net>
44106
44107         hash: avoid memory leak on allocation failure
44108         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44109         failure.  Factor repeated algorithm...
44110         (transfer_entries): ...into new helper routine.
44111         (hash_delete): React to hash_rehash return value.
44112
44113         hash: reduce memory pressure in hash_rehash no-op case
44114         * lib/hash.c (next_prime): Avoid overflow.
44115         (hash_initialize): Factor bucket size computation...
44116         (compute_bucket_size): ...into new helper function.
44117         (hash_rehash): Use new function and open coding to reduce memory
44118         pressure, and avoid a memory leak in USE_OBSTACK code.
44119         Reported by Jim Meyering.
44120
44121 2009-06-18  Eric Blake  <ebb9@byu.net>
44122
44123         hash: make rotation more obvious
44124         * modules/hash (Depends-on): Add bitrotate and stdint.
44125         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44126         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44127         (SIZE_MAX): Rely on headers for definition.
44128         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44129         (raw_hasher): Use rotr_sz.
44130         Suggested by Jim Meyering.
44131
44132         hash: fix memory leak in last patch
44133         * lib/hash.c (hash_rehash): Avoid memory leak.
44134
44135         hash: avoid no-op rehashing
44136         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44137
44138         hash: provide default callback functions
44139         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44140         (hash_initialize): Use them as defaults.
44141         * tests/test-hash.c (main): Test this.
44142
44143         hash: minor optimization
44144         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44145         when possible.
44146         (hash_initialize): Document this promise.
44147         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44148         * tests/test-hash.c (hash_compare_strings): Test this.
44149
44150 2009-06-18  Bruno Haible  <bruno@clisp.org>
44151
44152         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44153         going to be replaced anyway.
44154
44155 2009-06-18  Bruno Haible  <bruno@clisp.org>
44156
44157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44158         in one place.
44159         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44160         be replaced anyway.
44161
44162 2009-06-18  Eric Blake  <ebb9@byu.net>
44163
44164         hash: check for resize before insertion
44165         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44166         threshold before insertion, so that a pathological hash_rehash
44167         that fills every bucket can still trigger another rehash.
44168
44169 2009-06-18  Jim Meyering  <meyering@redhat.com>
44170
44171         hash-tests: add a loop around the small tests
44172         * tests/test-hash.c (main): Repeat small tests with selected
44173         small initial table sizes.
44174
44175 2009-06-17  Eric Blake  <ebb9@byu.net>
44176
44177         hash: minor cleanups
44178         * lib/hash.h (hash_entry): Make opaque, by moving...
44179         * lib/hash.c (hash_entry): ...here.
44180         (hash_insert): Clarify restrictions on what can be inserted.
44181         (hash_get_next): Clarify when it is safe to remove an element
44182         during traversal.
44183         (check_tuning): Skip verification when tuning is known safe.
44184         (hash_initialize): Clarify restrictions on tuning.
44185
44186 2009-06-17  Jim Meyering  <jim@meyering.net>
44187         and Eric Blake  <ebb9@byu.net>
44188
44189         hash-tests: new module
44190         * modules/hash-tests: New file.
44191         * tests/test-hash.c: New file.
44192
44193 2009-06-17  Eric Blake  <ebb9@byu.net>
44194
44195         strstr-simple: document new module
44196         * MODULES.html.sh: Document new module.
44197
44198         strstr, strcasestr: replace on platforms with broken memchr
44199         * modules/strstr: Split into...
44200         * modules/strstr-simple: ...new module that does not care about
44201         performance, but does care about glibc bug.
44202         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44203         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44204         if platform memchr is broken, per Debian bug 521737.
44205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44206         memchr.
44207         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44208         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44209         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44210         * modules/mountlist (Depends-on): Add strstr-simple.
44211         * modules/gen-uni-tables (Depends-on): Likewise.
44212         * modules/argz (Depends-on): Add strstr.
44213
44214 2009-06-17  Bruno Haible  <bruno@clisp.org>
44215
44216         * modules/posix_spawn-internal (Depends-on): Add errno.
44217
44218 2009-06-17  Bruno Haible  <bruno@clisp.org>
44219
44220         Define missing ESTALE on Interix 3.5.
44221         * lib/errno.in.h (ESTALE): Assign a value if missing.
44222         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44223         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44224         missing.
44225         * doc/posix-headers/errno.texi: Mention the Interix bug.
44226         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44227
44228 2009-06-15  Eric Blake  <ebb9@byu.net>
44229
44230         memchr, memchr2: add valgrind exception
44231         * lib/memchr.valgrind: New file.
44232         * lib/memchr2.valgrind: New file.
44233         * modules/memchr (Files): Distribute valgrind file.
44234         * modules/memchr2 (Files): Likewise.
44235
44236         docs: memchr is no longer obsolete
44237         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44238         * lib/string.in.h (memchr): Simplify logic.
44239
44240 2009-06-14  Jim Meyering  <meyering@redhat.com>
44241
44242         link-follow: fix the "checking..." message to not mention trailing slash
44243         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44244         never considered trailing slashes.
44245
44246 2009-06-14  Bruno Haible  <bruno@clisp.org>
44247
44248         * m4/memchr.m4: Mention also the bug on IA-64.
44249         * doc/posix-functions/memchr.texi: Likewise.
44250
44251 2009-06-12  Eric Blake  <ebb9@byu.net>
44252
44253         memchr: detect broken x86_64 and alpha implementations
44254         * modules/memchr-tests (Depends-on): Move mmap detection...
44255         * modules/memchr (Depends-on): ...here.
44256         (configure.ac): Set indicator.
44257         * lib/string.in.h (memchr): Declare replacement.
44258         * modules/string (Makefile.am): Trigger replacement.
44259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44260         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44261         bugs.
44262         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44263         * modules/getpagesize (License): Relax license.
44264
44265 2009-06-11  Bruno Haible  <bruno@clisp.org>
44266
44267         * lib/idpriv.h: Add more references.
44268
44269 2009-06-08  Bruno Haible  <bruno@clisp.org>
44270
44271         Tests for module 'idpriv-droptemp'.
44272         * modules/idpriv-droptemp-tests: New file.
44273         * tests/test-idpriv-droptemp.sh: New file.
44274         * tests/test-idpriv-droptemp.su.sh: New file.
44275         * tests/test-idpriv-droptemp.c: New file.
44276
44277         New module 'idpriv-droptemp'.
44278         * lib/idpriv-droptemp.c: New file.
44279         * modules/idpriv-droptemp: New file.
44280
44281 2009-06-08  Bruno Haible  <bruno@clisp.org>
44282
44283         Tests for module 'idpriv-drop'.
44284         * modules/idpriv-drop-tests: New file.
44285         * tests/test-idpriv-drop.sh: New file.
44286         * tests/test-idpriv-drop.su.sh: New file.
44287         * tests/test-idpriv-drop.c: New file.
44288
44289         New module 'idpriv-drop'.
44290         * lib/idpriv.h: New file.
44291         * lib-idpriv-drop.c: New file.
44292         * m4/idpriv.m4: New file.
44293         * modules/idpriv-drop: New file.
44294
44295 2009-06-08  Bruno Haible  <bruno@clisp.org>
44296
44297         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44298         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44299         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44300         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44301         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44302         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44303         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44304
44305 2009-06-08  Eric Blake  <ebb9@byu.net>
44306
44307         test-strstr: use memory fence, when possible
44308         * tests/test-strstr.c (main): Use memory fence, in order to be
44309         more likely to trigger Debian bug 521737.
44310         * modules/strstr-tests (Files): Pull in additional files.
44311
44312         memchr: no longer obsolete, for wider field testing
44313         * modules/memchr (Status, Notice): Delete, this module is no
44314         longer obsolete.
44315         * modules/vasnprintf (Depends-on): Add memchr.
44316
44317 2009-06-07  Jim Meyering  <meyering@redhat.com>
44318
44319         hash: declare some functions with the warn_unused_result attribute
44320         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44321
44322 2009-06-07  Bruno Haible  <bruno@clisp.org>
44323
44324         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44325         Reported by Eric Blake.
44326
44327 2009-06-06  Eric Blake  <ebb9@byu.net>
44328
44329         test-alignof: fix typo with long double
44330         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44331         compiler error.
44332
44333 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44334
44335         Escape non-texinfo { and }s.
44336         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44337         markup error.
44338
44339 2009-06-04  Jim Meyering  <meyering@redhat.com>
44340
44341         gitlog-to-changelog: don't infloop on an empty commit log
44342         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44343         Reported by Boris Petersen <transacid@centerim.org>.
44344
44345 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44346
44347         version-etc: extend for packagers
44348         Add three new configure options, intended for packagers:
44349           --with-packager="packager name"
44350           --with-packager-version="packager-specific version"
44351           --with-packager-bug-reports="packager bug reporting"
44352         An example with coreutils:
44353           $ ./configure \
44354             --with-packager=Gentoo \
44355             --with-packager-bug-report=http://bugs.gentoo.org/ \
44356             --with-packager-version="patchset 1.6"
44357           $ ./src/ls --version | head -n2
44358           ls (GNU coreutils) 7.1-dirty
44359           Packaged by Gentoo (patchset 1.6)
44360         Note that the bug reporting info via --help doesn't show up because
44361         coreutils uses its own custom emit_bug_reporting_address() implementation
44362         in src/system.h.  If it didn't, it'd look like:
44363           $ ./src/ls --help | tail -n4
44364           Report bugs to <bug-coreutils@gnu.org>.
44365           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44366           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44367           General help using GNU software: <http://www.gnu.org/gethelp/>.
44368         * lib/version-etc.c: Print new information, if provided.
44369         * m4/version-etc.m4: New file.
44370         * modules/version-etc (Files): Add m4/version-etc.m4.
44371         (configure.ac): Add gl_VERSION_ETC.
44372
44373 2009-05-31  Bruno Haible  <bruno@clisp.org>
44374
44375         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44376         and 'int64_t'.
44377         * modules/alignof-tests (Dependencies): Add stdint.
44378         Reported by Eric Blake.
44379
44380 2009-05-31  Bruno Haible  <bruno@clisp.org>
44381
44382         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44383         restriction due to compiler bugs.
44384         Reported by Eric Blake.
44385
44386 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44387             Bruno Haible  <bruno@clisp.org>
44388
44389         Fix test-alignof failure.
44390         * lib/alignof.h (alignof_slot): New macro.
44391         (alignof_type): New macro, with the same semantics as the previous
44392         'alignof'.
44393         (alignof): Alias to alignof_slot.
44394         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44395         check that the results are usable as constant expressions.
44396
44397 2009-05-31  Bruno Haible  <bruno@clisp.org>
44398
44399         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44400         * tests/test-memchr.c (main): Check that memchr does not read past the
44401         first occurrence of the byte.
44402         * tests/test-strstr.c (main): Update comment.
44403         Suggested by Eric Blake.
44404
44405 2009-05-30  Bruno Haible  <bruno@clisp.org>
44406
44407         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44408         detail how to use dumpbin.
44409         Reported by David Byron <dbyron@dbyron.com>.
44410
44411 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44412
44413         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44414
44415 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44416
44417         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44418
44419 2009-05-28  Bruno Haible  <bruno@clisp.org>
44420
44421         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44422         build-aux/ files.
44423
44424 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44425
44426         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44427
44428 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44429
44430         * gnulib-tool (sed_transform_main_lib_file)
44431         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44432         regexps.
44433
44434 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44435
44436         * tests/test-strstr.c: Add another self-test.
44437         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44438         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44439
44440 2009-05-23  Bruno Haible  <bruno@clisp.org>
44441
44442         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44443         change.
44444
44445 2009-05-21  Bruno Haible  <bruno@clisp.org>
44446
44447         Simplify use of mode_t varargs.
44448         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44449         uses 'mode_t' or 'int'.
44450         * lib/openat.c (openat): Likewise.
44451         * lib/open-safer.c (open_safer): Likewise.
44452         * m4/mode_t.m4: New file.
44453         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44454         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44455         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44456         * modules/open (Files): Add m4/mode_t.m4.
44457         * modules/openat (Files): Likewise.
44458         * modules/fcntl-safer (Files): Likewise.
44459         Suggested by Eric Blake.
44460
44461 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44462
44463         * doc/glibc-functions/fallocate.texi: New file.
44464         * doc/gnulib.texi: Include it.
44465
44466 2009-05-21  Eric Blake  <ebb9@byu.net>
44467             Bruno Haible  <bruno@clisp.org>
44468
44469         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44470         invocations.
44471         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44472
44473 2009-05-21  Eric Blake  <ebb9@byu.net>
44474             Bruno Haible  <bruno@clisp.org>
44475
44476         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44477         include_next. Fix of 2008-11-20 commit.
44478         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44479         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44480         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44481         NEXT_MATH_H.
44482         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44483         instead of NEXT_MATH_H.
44484
44485 2009-05-21  Bruno Haible  <bruno@clisp.org>
44486
44487         Avoid redefinition warnings for SIZE_MAX.
44488         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44489         Reported by Simon Josefsson.
44490
44491 2009-05-21  Bruno Haible  <bruno@clisp.org>
44492
44493         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44494         AC_CACHE_VAL.
44495
44496 2009-05-20  Bruno Haible  <bruno@clisp.org>
44497
44498         Make zeroptr.h work on mingw.
44499         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44500         mprotect.
44501         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44502         * modules/memchr2-tests (configure.ac): Likewise.
44503         * modules/memcmp-tests (configure.ac): Likewise.
44504         * modules/memmem-tests (configure.ac): Likewise.
44505         * modules/memrchr-tests (configure.ac): Likewise.
44506         Reported by Simon Josefsson.
44507
44508 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44509
44510         * tests/test-glob.c: Include string.h for strcmp prototype.
44511
44512 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44513
44514         * modules/getdelim (Depends-on): Add explicit stdint, although it
44515         was implicitly already pulled in via realloc-posix.
44516         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44517
44518 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44519
44520         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44521         G. Christensen" <tgc@jupiterrise.com>.
44522         * m4/sys_socket_h.m4: Check for sa_family_t.
44523         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44524         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44525         * tests/test-sys_socket.c: Check that sa_family_t works.
44526
44527 2009-05-18  Eric Blake  <ebb9@byu.net>
44528
44529         maint.mk: allow gnulib_dir in VPATH build
44530         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44531
44532 2009-05-15  Jim Meyering  <meyering@redhat.com>
44533
44534         maint.mk: Give gnulib_dir a default definition.
44535         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44536         Thus, most packages no longer need to specify this variable in cfg.mk
44537
44538 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44539
44540         rename.m4: fix typos that would make non-mingw cross-configure fail
44541         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44542
44543 2009-05-13  Eric Blake  <ebb9@byu.net>
44544
44545         mmap-anon: avoid out-of-order autoconf expansion
44546         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44547         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44548         * modules/memchr-tests (Depends-on): Add extensions.
44549         * modules/memchr2-tests (Depends-on): Add extensions.
44550         * modules/memcmp-tests (Depends-on): Add extensions.
44551         * modules/memmem-tests (Depends-on): Add extensions.
44552         * modules/memrchr-tests (Depends-on): Add extensions.
44553
44554 2009-05-13  Bruno Haible  <bruno@clisp.org>
44555
44556         Make some tests ISO C 99 compliant.
44557         * tests/zerosize-ptr.h: New file.
44558         * tests/test-memchr.c: Include zerosize-ptr.h.
44559         (main): Use a zero-size object pointer instead of NULL.
44560         * tests/test-memchr2.c: Include zerosize-ptr.h.
44561         (main): Use a zero-size object pointer instead of NULL.
44562         * tests/test-memcmp.c: Include zerosize-ptr.h.
44563         (main): Use a zero-size object pointer instead of NULL.
44564         * tests/test-memmem.c: Include zerosize-ptr.h.
44565         (main): Use a zero-size object pointer instead of NULL.
44566         * tests/test-memrchr.c: Include zerosize-ptr.h.
44567         (main): Use a zero-size object pointer instead of NULL.
44568         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44569         m4/mmap-anon.m4.
44570         (Depends-on): Add getpagesize.
44571         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44572         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44573         m4/mmap-anon.m4.
44574         (Depends-on): Add getpagesize.
44575         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44576         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44577         m4/mmap-anon.m4.
44578         (Depends-on): Add getpagesize.
44579         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44580         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44581         m4/mmap-anon.m4.
44582         (Depends-on): Add getpagesize.
44583         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44584         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44585         m4/mmap-anon.m4.
44586         (Depends-on): Add getpagesize.
44587         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44588
44589 2009-05-12  Bruno Haible  <bruno@clisp.org>
44590
44591         Tests for module 'alignof'.
44592         * modules/alignof-tests: New file.
44593         * tests/test-alignof.c: New file.
44594
44595 2009-05-12  Bruno Haible  <bruno@clisp.org>
44596
44597         Fix alignof macro.
44598         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44599         vendor compilers that are always correct.
44600
44601 2009-05-12  Bruno Haible  <bruno@clisp.org>
44602
44603         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44604         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44605         not whether its fully works.
44606
44607 2009-05-12  Bruno Haible  <bruno@clisp.org>
44608
44609         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44610
44611 2009-05-12  Jim Meyering  <meyering@redhat.com>
44612
44613         * top/maint.mk: Adjust backslash alignment.
44614
44615 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44616
44617         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44618
44619 2009-05-11  Eric Blake  <ebb9@byu.net>
44620
44621         argp: avoid undefined behavior
44622         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44623         macros.
44624
44625 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44626
44627         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44628         user.name to prevent git commit from complaining.
44629
44630 2009-05-10  Bruno Haible  <bruno@clisp.org>
44631
44632         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44633         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44634         it rewrites every file name only once.
44635         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44636
44637 2009-05-08  Bruno Haible  <bruno@clisp.org>
44638
44639         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44640         instead of 'max'.
44641
44642 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44643
44644         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44645         sockaddr_storage test.
44646
44647 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44648
44649         * modules/sys_socket (Makefile.am): Substitute
44650         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44651         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44652         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44653         * tests/test-sys_socket.c: Check sockaddr_storage.
44654
44655 2009-05-08  Bruno Haible  <bruno@clisp.org>
44656
44657         New module 'alignof'.
44658         * lib/alignof.h: New file.
44659         * modules/alignof: New file.
44660
44661 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44662             Bruno Haible  <bruno@clisp.org>
44663
44664         Fix test-file-has-acl on FreeBSD.
44665         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44666         mask is implicitly added.
44667         * tests/test-file-has-acl.c: Include <signal.h>.
44668         (main): Terminate the test after 5 seconds.
44669         * modules/acl-tests (configure.ac): Check for alarm function.
44670
44671 2009-05-04  Bruno Haible  <bruno@clisp.org>
44672
44673         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44674         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44675         * modules/errno (configure.ac): Drop AC_REQUIRE.
44676         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44677         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44678
44679 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44680
44681         * modules/glob-tests: New module.
44682         * tests/test-glob.c: Add.
44683
44684 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44685
44686         * modules/fnmatch-tests: New module.
44687         * tests/test-fnmatch.c: Add.
44688
44689 2009-05-04  Eric Blake  <ebb9@byu.net>
44690
44691         maint: make the new no-submodule-changes rule VPATH-safe
44692         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44693
44694 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44695             Bruno Haible  <bruno@clisp.org>
44696
44697         acl: Fix infinite loop on FreeBSD.
44698         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44699         of return value from acl_get_entry.
44700         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44701         Likewise.
44702
44703 2009-05-03  Bruno Haible  <bruno@clisp.org>
44704
44705         * lib/acl-internal.h (acl_entries): Clarify return value.
44706         * lib/acl_entries.c (acl_entries): Likewise.
44707
44708 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44709
44710         Bug fix in acl module.
44711         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44712
44713 2009-05-03  Bruno Haible  <bruno@clisp.org>
44714
44715         Create gperf-generated file in the source dir, not in the build dir.
44716         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44717         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44718         * modules/unicase/locale-language (unicase/locale-languages.h):
44719         Likewise.
44720         * modules/unicase/special-casing (unicase/special-casing-table.h):
44721         Likewise.
44722         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44723         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44724         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44725         Reported by Ralf Wildenhues.
44726
44727 2009-05-03  Bruno Haible  <bruno@clisp.org>
44728
44729         * modules/fnmatch (Description, configure.ac): Taken from
44730         fnmatch-posix.
44731         * modules/fnmatch-posix: Turn into a symbolic reference to the
44732         'fnmatch' module, and deprecate.
44733         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44734
44735 2009-05-03  Bruno Haible  <bruno@clisp.org>
44736
44737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44738         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44739         Reported by Ralf Wildenhues.
44740
44741 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44742
44743         * m4/fnmatch.m4: Fix fnmatch re-define.
44744
44745 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44746
44747         priv-set: new module and tests; adapt write-any-file
44748         * lib/priv-set.c: New file.
44749         * lib/priv-set.h: New file.
44750         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44751         * lib/write-any-file.c: Simplify by using priv-set module.
44752         * m4/priv-set.m4: New file.
44753         * modules/priv-set: New file.
44754         * modules/unlinkdir: Add dependency on priv-set module.
44755         * modules/write-any-file: Likewise.
44756
44757         Tests for module 'priv-set'.
44758         * modules/priv-set-tests: New file.
44759         * tests/test-priv-set.c: New file.
44760
44761 2009-05-03  Jim Meyering  <meyering@redhat.com>
44762             Bruno Haible  <bruno@clisp.org>
44763
44764         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44765         use the converted UTF-8 variant of the name instead.
44766
44767 2009-05-03  Jim Meyering  <meyering@redhat.com>
44768
44769         tests: tighten some getdate tests
44770         * tests/test-getdate.c (main): Tighten tests: require equality,
44771         not just greater than.  Set TZ envvar to UTC0.
44772
44773 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44774
44775         getdate: correctly interpret "next monday" when run on a Monday
44776         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44777         that e.g., "next tues" (when run on a tuesday) results in a date
44778         that is one week in the future, and not today's date.
44779         I.e., add a week when the wday is the same as the current one.
44780         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44781         and earlier by Martin Bernreuther and Jan Minář.
44782         * tests/test-getdate.c (main): Check that "next DAY" is always in
44783         the future and that "last DAY" is always in the past.
44784
44785 2009-05-02  Jim Meyering  <meyering@redhat.com>
44786
44787         build: ensure that a release build fails when a submodule is unclean
44788         * top/maint.mk (no-submodule-changes): New rule.
44789         (alpha beta major): Depend on it.
44790
44791 2009-05-02  Bruno Haible  <bruno@clisp.org>
44792
44793         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44794         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44795         shell variable gl_fnmatch_required to detect which variant is
44796         requested.
44797         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44798         gl_FUNC_FNMATCH_POSIX.
44799         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44800         exclude fnmatch-posix.
44801
44802 2009-05-02  Bruno Haible  <bruno@clisp.org>
44803
44804         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44805         * modules/mbsrtowcs (License): Change to LGPLv2+.
44806         * modules/strnlen1 (License): Likewise.
44807         Reported by Simon Josefsson.
44808
44809 2009-05-02  Bruno Haible  <bruno@clisp.org>
44810
44811         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44812         "cross".
44813         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44814         gnulib-tool was called with option --source-base=lib.
44815
44816 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44817
44818         Use automake *-local hooks without commands, for extensibility.
44819         * modules/localcharset (Makefile.am): Rename install-exec-local
44820         rule to install-exec-localcharset, and make it a prerequisite of
44821         install-exec-local.  Likewise, rename the uninstall-local rule to
44822         uninstall-localcharset, and make it a prerequisite of the former.
44823
44824 2009-05-01  Bruno Haible  <bruno@clisp.org>
44825
44826         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44827         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44828         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44829         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44830         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44831         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44832         m4/locale-zh.m4, m4/codeset.m4.
44833
44834         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44835         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44836         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44837         m4/locale-zh.m4.
44838
44839         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44840         REPLACE_WCRTOMB if mbstate_t must be replaced.
44841         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44842         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44843
44844 2009-05-01  Bruno Haible  <bruno@clisp.org>
44845
44846         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44847         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44848         dngettext, dcngettext, textdomain, bindtextdomain,
44849         bind_textdomain_codeset): Undefine before redefining.
44850
44851 2009-04-30  Bruno Haible  <bruno@clisp.org>
44852
44853         Fix bug introduced on 2009-04-25.
44854         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44855         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44856         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44857         is defined.
44858         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44859         is defined.
44860         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44861         is defined.
44862         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44863
44864 2009-04-28  Bruno Haible  <bruno@clisp.org>
44865
44866         Comment tweaks.
44867         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44868         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44869         * lib/unicase.h (u*_casexfrm): Likewise.
44870         Reported by Paolo Bonzini.
44871
44872 2009-04-28  Bruno Haible  <bruno@clisp.org>
44873
44874         Fix a compilation error.
44875         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44876         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44877         Reported by Jim Meyering.
44878
44879 2009-04-27  Bruno Haible  <bruno@clisp.org>
44880
44881         New module 'libunistring'.
44882         * modules/libunistring: New file.
44883         * m4/libunistring.m4: New file.
44884         * MODULES.html.sh (Unicode string functions): Add it.
44885
44886 2009-04-27  Eric Blake  <ebb9@byu.net>
44887
44888         maint.mk: allow package-specific header to provide <config.h>
44889         * top/maint.mk (sc_require_config_h): New variable.
44890         (sc_require_config_h, sc_require_config_h_first): Use it.
44891
44892 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44893
44894         * top/maint.mk (sc_avoid_if_before_free): Except
44895         useless-if-before-free script.
44896
44897 2009-04-27  Eric Blake  <ebb9@byu.net>
44898
44899         maintainer-makefile: depend on all required helper scripts
44900         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44901         useless-if-before-free.
44902         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44903         version, rather than assuming gnulib checkout is available.
44904         Reported by Simen Josefsson.
44905
44906 2009-04-26  Bruno Haible  <bruno@clisp.org>
44907
44908         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44909         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44910         "../" or "..".
44911
44912 2009-04-26  Bruno Haible  <bruno@clisp.org>
44913
44914         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44915         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44916         AC_LIB_HAVE_LINKFLAGS.
44917
44918 2009-04-26  Bruno Haible  <bruno@clisp.org>
44919
44920         Simplify calling convention of u*_conv_from_encoding.
44921         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44922         u32_conv_from_encoding): Expect a resultbuf argument and return the
44923         result directly as a pointer.
44924         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44925         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44926         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44927         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44928         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44929         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44930         Update.
44931         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44932         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44933         * lib/vasnprintf.c (VASNPRINTF): Update.
44934         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44935         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44936         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44937         * NEWS: Mention the change.
44938
44939 2009-04-26  Bruno Haible  <bruno@clisp.org>
44940
44941         Simplify calling convention of u*_conv_to_encoding.
44942         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44943         u32_conv_to_encoding): Expect a resultbuf argument and return the
44944         result directly as a pointer.
44945         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44946         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44947         freeing scaled_offsets if mem_iconveha failed.
44948         * lib/unicase/u-casexfrm.h (FUNC): Update.
44949         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44950         * lib/vasnprintf.c (VASNPRINTF): Update.
44951         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44952         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44953         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44954         * NEWS: Mention the change.
44955
44956 2009-04-26  Bruno Haible  <bruno@clisp.org>
44957
44958         Avoid test failures on AIX and OSF/1.
44959         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44960         malloc(0).
44961         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44962         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44963         Likewise.
44964         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44965         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44966         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44967         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44968         * doc/posix-functions/malloc.texi: Document the portability problem
44969         related to malloc(0).
44970
44971 2009-04-26  Bruno Haible  <bruno@clisp.org>
44972
44973         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44974         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44975         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44976
44977 2009-04-25  Bruno Haible  <bruno@clisp.org>
44978
44979         Avoid link error when creating a namespace clean library.
44980         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44981         as macro with arguments if already defined as an alias.
44982         * lib/signbitf.c (gl_signbitf): Don't undefine.
44983         * lib/signbitd.c (gl_signbitd): Don't undefine.
44984         * lib/signbitl.c (gl_signbitl): Don't undefine.
44985
44986 2009-04-25  Jim Meyering  <meyering@redhat.com>
44987
44988         vc-list-files: fix another quoting bug
44989         * build-aux/vc-list-files: Avoid sed backslash expansion
44990         of pathological directory names.
44991
44992 2009-04-25  Eric Blake  <ebb9@byu.net>
44993
44994         vc-list-files: fix shell quoting error
44995         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44996         timestamp.
44997
44998 2009-04-25  Jim Meyering  <meyering@redhat.com>
44999
45000         vc-list-files: restore lost functionality with subdir argument
45001         * build-aux/vc-list-files: When given a non-"." sub-directory
45002         argument, substitute the $dir/ prefix back onto each resulting name.
45003         Otherwise, coreutils' root_tests check would fail.
45004
45005 2009-04-24  Eric Blake  <ebb9@byu.net>
45006
45007         vc-list-files: ignore git symlinks
45008         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45009         than ls-files, to ignore git symlinks.
45010
45011         maint.mk: import improvements from m4
45012         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45013         (move_if_change): Delete unused macro.
45014         (news-date-check, vc-diff-check): Support VPATH builds.
45015         (announcement): Likewise.  Split --bootstrap-tools list...
45016         (boostrap-tools): ...into separate list, which can be overridden
45017         in cfg.mk.
45018         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45019         requiring dependency on useless-if-before-free module.
45020         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45021         Support VPATH builds.
45022
45023 2009-04-24  Jim Meyering  <meyering@redhat.com>
45024
45025         maint.mk: remove coreutils-specific rules and variables
45026         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45027         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45028         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45029
45030         maint.mk: remove obsolete rule
45031         * top/maint.mk (rel-check): Remove rule.
45032         (WGET, WGETFLAGS): Remove now-unused variables.
45033
45034 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45035
45036         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45037         consistency.
45038
45039         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45040         '$(PATH_SEPARATOR)' instead of ':'.
45041
45042 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45043
45044         * lib/getopt1.c (main): Use 'const' for static array.
45045
45046 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45047
45048         * top/maint.mk: Sync with coreutils.
45049         * NEWS: Explain incompatibilities.
45050
45051 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45052             Bruno Haible  <bruno@clisp.org>
45053
45054         Fix cross-compilation results.
45055         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45056         statement, as third argument of AC_TRY_RUN.
45057         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45058         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45059         Likewise.
45060         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45061         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45062         Likewise.
45063         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45064         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45065         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45066
45067 2009-04-20  Bruno Haible  <bruno@clisp.org>
45068
45069         Avoid test failure on mingw.
45070         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45071
45072 2009-04-20  Bruno Haible  <bruno@clisp.org>
45073
45074         Avoid compilation error on mingw.
45075         * modules/localename-tests (Depends-on): Add locale.
45076
45077 2009-04-19  Bruno Haible  <bruno@clisp.org>
45078
45079         Support for building a shared library on Windows platforms.
45080         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45081         (main): Test the presence of UNINORM_NFC here.
45082         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45083         (main): Test the presence of UNINORM_NFD here.
45084         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45085         (main): Test the presence of UNINORM_NFKC here.
45086         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45087         (main): Test the presence of UNINORM_NFKD here.
45088
45089 2009-04-19  Bruno Haible  <bruno@clisp.org>
45090
45091         Avoid a compiler warning.
45092         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45093         Change type of variable 'sequence'.
45094
45095 2009-04-19  Bruno Haible  <bruno@clisp.org>
45096
45097         * modules/configmake (Makefile.am): When the contents of configmake.h
45098         does not change, arrange to preserve its modification time.
45099
45100 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45101
45102         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45103         gettext domain.
45104
45105 2009-04-16  Jim Meyering  <meyering@redhat.com>
45106
45107         useless-if-before-free: improve conversion code
45108         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45109         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45110
45111 2009-04-14  Bruno Haible  <bruno@clisp.org>
45112
45113         * modules/fcntl (Depends-on): Add extensions.
45114         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45115
45116 2009-04-12  Ben Pfaff  <blp@gnu.org>
45117
45118         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45119         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45120
45121 2009-03-20  Ben Pfaff  <blp@gnu.org>
45122
45123         Make rename replace existing destinations on Windows.
45124         * m4/rename.m4: Add test for Mingw.
45125         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45126         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45127         * doc/posix-functions/rename.texi: Document.
45128
45129 2009-04-10  Bruno Haible  <bruno@clisp.org>
45130
45131         New include file "iconveh.h".
45132         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45133         * lib/striconveh.h: Include it.
45134         (enum iconv_ilseq_handler): Remove definition.
45135         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45136         striconveh.h.
45137         * lib/striconveha.c: Include striconveh.h.
45138         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45139         * modules/striconveh (Files): Add lib/iconveh.h.
45140         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45141         lib/striconveh.h.
45142
45143 2009-04-10  Bruno Haible  <bruno@clisp.org>
45144
45145         * lib/uniconv.h: Update comment.
45146
45147 2009-04-10  Bruno Haible  <bruno@clisp.org>
45148
45149         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45150         always.
45151         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45152         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45153         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45154         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45155         "unistring-notinline.h", so that the function gets defined always.
45156         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45157         * lib/unistr/u8-uctomb.c: Likewise.
45158         * lib/unistr/u16-mbtouc.c: Likewise.
45159         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45160         * lib/unistr/u16-uctomb.c: Likewise.
45161         * lib/unistr/u32-mbtouc.c: Likewise.
45162         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45163         * lib/unistr/u32-uctomb.c: Likewise.
45164
45165 2009-04-10  Bruno Haible  <bruno@clisp.org>
45166
45167         Mark 'utime' obsolete.
45168         * modules/utime (Status, Notice): New sections.
45169         Suggested by Jim Meyering.
45170
45171         Fix cross-compile guess for utime test.
45172         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45173         autoconf.
45174         * doc/posix-functions/utime.texi: Give more precisions.
45175         Reported by Jan <ipif@ymail.com>.
45176
45177 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45178
45179         filevercmp: correct today's change
45180         * lib/filevercmp.c: Also handle coreutils' test inputs.
45181         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45182
45183         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45184         for reporting it.
45185         * lib/filevercmp.c: Special handle for "", "." and "..".
45186         * tests/test-filevercmp.c: Enlarge the set suite.
45187
45188 2009-04-07  Jim Meyering  <meyering@redhat.com>
45189
45190         useless-if-before-free: show how to remove braced useless free, too
45191         * build-aux/useless-if-before-free: still only in a comment, though.
45192
45193 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45194
45195         maint.mk: import changes to syntax-check macros from coreutils
45196         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45197         Use them in the relevant macros.
45198
45199 2009-04-06  Bruno Haible  <bruno@clisp.org>
45200
45201         Fix unportable use of bit-fields.
45202         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45203         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45204         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45205
45206 2009-04-06  Bruno Haible  <bruno@clisp.org>
45207
45208         Avoid test failures on AIX and OSF/1.
45209         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45210         that malloc(0) = NULL.
45211         * tests/unicase/test-u8-tolower.c (check): Likewise.
45212         * tests/unicase/test-u8-totitle.c (check): Likewise.
45213         * tests/unicase/test-u8-toupper.c (check): Likewise.
45214         * tests/unicase/test-u16-casefold.c (check): Likewise.
45215         * tests/unicase/test-u16-tolower.c (check): Likewise.
45216         * tests/unicase/test-u16-totitle.c (check): Likewise.
45217         * tests/unicase/test-u16-toupper.c (check): Likewise.
45218         * tests/unicase/test-u32-casefold.c (check): Likewise.
45219         * tests/unicase/test-u32-tolower.c (check): Likewise.
45220         * tests/unicase/test-u32-totitle.c (check): Likewise.
45221         * tests/unicase/test-u32-toupper.c (check): Likewise.
45222         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45223         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45224         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45225         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45226         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45227         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45228         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45229         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45230         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45231         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45232         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45233         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45234
45235 2009-04-05  Bruno Haible  <bruno@clisp.org>
45236
45237         Work around an autoconf limitation.
45238         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45239         comment line if it would be longer than 3 KB.
45240
45241 2009-04-05  Bruno Haible  <bruno@clisp.org>
45242
45243         Avoid test failure with libiconv-1.13.
45244         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45245         of the expected test results.
45246
45247 2009-04-05  Bruno Haible  <bruno@clisp.org>
45248
45249         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45250         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45251         that it should be installed.
45252
45253 2009-04-05  Bruno Haible  <bruno@clisp.org>
45254
45255         * gnulib-tool: New option --copy-file.
45256         (func_usage): Document it.
45257         (func_dest_tmpfilename): Moved out of func_import.
45258         (func_add_file, func_update_file): New functions, extracted from
45259         func_import.
45260         (func_import): Update.
45261
45262 2009-04-05  Karl Berry  <karl@gnu.org>
45263
45264         * README: prominently mention gnulib-tool.
45265         Rearrange sections so getting the code is near the top.
45266
45267 2009-04-05  Bruno Haible  <bruno@clisp.org>
45268
45269         * lib/unicase.h: Mention u*_cmp2.
45270         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45271         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45272         * lib/unicase/ulc-casecmp.c: Likewise.
45273         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45274         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45275         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45276         unistr/u8-cmp.
45277         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45278         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45279         unistr/u16-cmp.
45280         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45281         unistr/u32-cmp.
45282
45283         * lib/uninorm.h: Mention u*_cmp2.
45284         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45285         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45286         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45287         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45288         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45289         unistr/u8-cmp.
45290         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45291         unistr/u16-cmp.
45292         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45293         unistr/u32-cmp.
45294
45295         New module 'unistr/u32-cmp2'.
45296         * lib/unistr/u32-cmp2.c: New file.
45297         * modules/unistr/u32-cmp2: New file.
45298
45299         New module 'unistr/u16-cmp2'.
45300         * lib/unistr/u16-cmp2.c: New file.
45301         * modules/unistr/u16-cmp2: New file.
45302
45303         New module 'unistr/u8-cmp2'.
45304         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45305         * lib/unistr/u8-cmp2.c: New file.
45306         * lib/unistr/u-cmp2.h: New file.
45307         * modules/unistr/u8-cmp2: New file.
45308
45309 2009-04-05  Bruno Haible  <bruno@clisp.org>
45310
45311         * lib/unictype.h (uc_property_is_valid): New macro.
45312         * tests/unictype/test-pr_byname.c (main): Use it.
45313
45314         * lib/unistr.h: Doc fixes.
45315         * lib/uniconv.h: Doc fixes.
45316         * lib/unictype.h: Doc fixes.
45317
45318 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45319
45320         Port coreutils 7.2 to Solaris 8.
45321
45322         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45323         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45324         for Solaris 8.  This is a bit of a hack, as it means it's the
45325         caller's responsibility to add -lnsl if needed, but most likely it
45326         won't be needed since only getaddrinfo uses this and getaddrinfo
45327         isn't needed on Solaris 8.
45328
45329         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45330         problem to Solaris 8 encountered with coreutils 7.2, which
45331         resulted in a message "fnmatch.c:292: warning: passing argument 4
45332         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45333         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45334
45335 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45336
45337         * m4/ld-version-script.m4: Add FIXME comment.
45338
45339 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45340
45341         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45342         SOVERSION variable.
45343
45344 2009-04-02  Bruno Haible  <bruno@clisp.org>
45345
45346         * Makefile (info, html, dvi, pdf): Combine the rules.
45347         Suggested by Jim Meyering.
45348
45349 2009-04-01  Bruno Haible  <bruno@clisp.org>
45350
45351         * Makefile (info, html, dvi, pdf): New targets.
45352         Reported by Reuben Thomas <rrt@sc3d.org>.
45353
45354 2009-04-01  Bruno Haible  <bruno@clisp.org>
45355
45356         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45357         can be put into PATH.
45358         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45359
45360 2009-04-01  Bruno Haible  <bruno@clisp.org>
45361
45362         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45363
45364 2009-04-01  Bruno Haible  <bruno@clisp.org>
45365
45366         Rename module 'visibility'.
45367         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45368         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45369         * doc/gnulib.texi: Update.
45370         * MODULES.html.sh (Misc): Update.
45371         * NEWS: Mention the change.
45372
45373 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45374
45375         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45376         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45377         Eric Blake <ebb9@byu.net> for review.
45378         * MODULES.html.sh: Add lib-msvc-compat.
45379         * doc/gnulib.texi: Link to new section.
45380         * m4/ld-output-def.m4: New file.
45381         * doc/ld-output-def.texi: New file.
45382
45383 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45384
45385         Rename ld-version-script to lib-symbol-versions.  Suggested by
45386         Bruno Haible <bruno@clisp.org>.
45387         * modules/ld-version-script: Renamed to lib-symbol-versions.
45388         * doc/ld-version-script.texi: Fix module name.
45389         * MODULES.html.sh: Add lib-symbol-versions.
45390
45391 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45392
45393         * modules/u64-tests: New file.
45394         * tests/test-u64.c: New file.
45395
45396 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45397
45398         * MODULES.html.sh: Mention u64.
45399         * modules/u64: New module.
45400         * modules/crypto/sha512: Depend on u64 module instead of providing
45401         u64.h.
45402
45403 2009-03-27  Eric Blake  <ebb9@byu.net>
45404
45405         test-strerror: make debugging EAI_SYSTEM easier
45406         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45407         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45408         failure was EAI_SYSTEM.
45409
45410 2009-03-25  Bruno Haible  <bruno@clisp.org>
45411
45412         Fix a problem with --enable-relocatable on Solaris 7.
45413         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45414         since 2008-02-24.
45415
45416 2009-03-25  Eric Blake  <ebb9@byu.net>
45417
45418         test-sockets: avoid gcc warning
45419         * tests/test-sockets.c (main): Silence compiler warning.
45420
45421 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45422
45423         New modules nproc, pthread, contributed by Glen Lenker.
45424
45425         * MODULES.html.sh: Add pthread, nproc.
45426         * lib/nproc.c: New file.
45427         * lib/nproc.h: New file.
45428         * lib/pthread.in.h: New file.
45429         * m4/pthread.m4: New file.
45430         * modules/nproc: New file.
45431         * modules/pthread: New file.
45432
45433 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45434
45435         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45436         New variable.
45437
45438 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45439
45440         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45441         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45442         * tests/test-filevercmp.c: Add tests for backup suffixes.
45443
45444 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45445
45446         * modules/stdlib (Depends-on): Add stdint, needed when defining
45447         struct random_data on, for example, HP-UX 10.20.  Reported by
45448         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45449
45450 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45451
45452         * lib/readline.c (readline): Call fflush on stdout after printing
45453         prompt.
45454
45455 2009-03-20  Bruno Haible  <bruno@clisp.org>
45456
45457         Remove dependency from 'close' module to -lws2_32 on native Windows.
45458         * lib/close-hook.h: New file.
45459         * lib/close-hook.c: New file.
45460         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45461         w32sock.h.
45462         (_gl_close_fd_maybe_socket): Remove function.
45463         (rpl_close): Invoke execute_all_close_hooks instead of
45464         _gl_close_fd_maybe_socket.
45465         * lib/sockets.c: Include close-hook.h, w32sock.h.
45466         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45467         (close_sockets_hook): New variable.
45468         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45469         (gl_sockets_cleanup): Unregister it.
45470         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45471         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45472         * modules/close-hook: New file.
45473         * modules/close (Files): Remove lib/w32sock.h.
45474         (Depends-on): Add close-hook.
45475         (Link): Remove section.
45476         * modules/sockets (Files): Add lib/w32sock.h.
45477         (Depends-on): Add close-hook.
45478         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45479         invocation.
45480         * NEWS: Mention that LIB_CLOSE is gone.
45481
45482 2009-03-23  Eric Blake  <ebb9@byu.net>
45483
45484         signal-tests: test previous patch
45485         * tests/test-signal.c: New file.
45486         * modules/signal-tests: Likewise.
45487
45488         signal.h: always support 'volatile sig_atomic_t'
45489         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45490         (gl_SIGNAL_H_DEFAULTS): Add a default.
45491         * modules/signal (Makefile.am): Substitute if needed.
45492         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45493         users can blindly add volatile.
45494         * doc/posix-headers/signal.texi (signal.h): Document it.
45495         Reported by Matthew Woehlke.
45496
45497 2009-03-23  Jim Meyering  <meyering@redhat.com>
45498
45499         pathmax: PATH_MAX: use pathconf only when available
45500         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45501         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45502         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45503         This avoids a link failure in a PSP cross-compilation environment
45504         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45505
45506         * lib/vasnprintf.c (divide): Fix typo in comment.
45507
45508 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45509
45510         * gnulib-tool (func_filter_filelist): Fix comment.
45511
45512 2009-03-20  Bruno Haible  <bruno@clisp.org>
45513
45514         Make sockets.h self-contained.
45515         * lib/sockets.c: Include sockets.h first.
45516         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45517
45518 2009-03-19  Eric Blake  <ebb9@byu.net>
45519
45520         doc: mention more functions added in cygwin 1.7.0
45521         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45522         addition.
45523         * doc/posix-functions/log2f.texi: Likewise.
45524
45525 2009-03-19  Jim Meyering  <meyering@redhat.com>
45526
45527         fsusage: avoid syntax error due to statement-before-declaration
45528         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45529         after all declarations.  Reported by Matthew Woehlke in
45530         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45531
45532 2009-03-18  Eric Blake  <ebb9@byu.net>
45533
45534         build-aux/compile: sync from automake
45535         * build-aux/compile: New file, from automake.
45536         * config/srclist.txt: Mention build-aux/compile.
45537
45538 2009-03-17  Bruno Haible  <bruno@clisp.org>
45539
45540         * lib/git-merge-changelog.c: Fix typo in comment.
45541         Reported by Reuben Thomas <rrt@sc3d.org>.
45542
45543 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45544
45545         * m4/regex.m4: update and improve help for
45546         --without-included-regex.
45547
45548 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45549
45550         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45551         failure on missing include files.
45552
45553 2009-03-17  Eric Blake  <ebb9@byu.net>
45554
45555         doc: mention more functions added in cygwin 1.7.0
45556         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45557         addition.
45558         * doc/posix-functions/fwscanf.texi: Likewise.
45559         * doc/posix-functions/swprintf.texi: Likewise.
45560         * doc/posix-functions/swscanf.texi: Likewise.
45561         * doc/posix-functions/vfwprintf.texi: Likewise.
45562         * doc/posix-functions/vfwscanf.texi: Likewise.
45563         * doc/posix-functions/vswprintf.texi: Likewise.
45564         * doc/posix-functions/vswscanf.texi: Likewise.
45565         * doc/posix-functions/vwprintf.texi: Likewise.
45566         * doc/posix-functions/vwscanf.texi: Likewise.
45567         * doc/posix-functions/wcscasecmp.texi: Likewise.
45568         * doc/posix-functions/wcsdup.texi: Likewise.
45569         * doc/posix-functions/wcsftime.texi: Likewise.
45570         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45571         * doc/posix-functions/wprintf.texi: Likewise.
45572         * doc/posix-functions/wscanf.texi: Likewise.
45573         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45574
45575 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45576
45577         maint.mk: really add $(AM_MAKEFLAGS)
45578         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45579         was inadvertently omitted in the last commit.
45580         Spotted by Bruno Haible.
45581
45582         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45583         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45584         $(AM_MAKEFLAGS)' rather than plain `make'.
45585
45586         gnulib-tool: execute $MAKE not make
45587         * gnulib-tool: Default $MAKE to 'make'.
45588         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45589         than make.  Initialize $MAKE in the do-autobuild script.
45590
45591         gnulib-tool: use $MAKE not make in generated files
45592         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45593         make, in generated files.  Initialize $MAKE in the do-autobuild
45594         script.
45595
45596         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45597
45598         GNUmakefile: disable parallelism only for multiple, recursive targets
45599         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45600         additions in the Makefile.
45601         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45602         by Automake.
45603         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45604         are listed on the command line and at least one of them is
45605         listed in $(ALL_RECURSIVE_TARGETS).
45606
45607 2009-03-14  Bruno Haible  <bruno@clisp.org>
45608
45609         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45610         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45611         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45612         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45613         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45614         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45615         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45616         unistr/u8-uctomb.
45617         * modules/unistr/u8-strchr (Depends-on): Likewise.
45618         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45619         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45620         unistr/u16-uctomb.
45621         * modules/unistr/u16-strchr (Depends-on): Likewise.
45622         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45623
45624 2009-03-12  Bruno Haible  <bruno@clisp.org>
45625
45626         Work around select() bug on Interix 3.5.
45627         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45628         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45629         * m4/select.m4: New file.
45630         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45631         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45632         * modules/select (Files): Add m4/select.m4.
45633         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45634         * modules/nanosleep (Depends-on): Add select.
45635         * modules/poll (Depends-on): Likewise.
45636         * doc/posix-functions/select.texi: Mention the Interix bug.
45637         Reported by Markus Duft <mduft@gentoo.org>.
45638
45639         * lib/select.c: Renamed from lib/winsock-select.c.
45640         * modules/select (Files): Add lib/select.c, remove
45641         lib/winsock-select.c.
45642         (configure.ac): Update.
45643
45644 2009-03-12  Jim Meyering  <meyering@redhat.com>
45645
45646         avoid gcc warnings about unused macro definitions
45647         * lib/readtokens.c (STREQ): Remove unused definition.
45648         * lib/xmalloc.c (SIZE_MAX): Likewise.
45649         * lib/openat-die.c (N_): Likewise.
45650         * lib/mountlist.c (SIZE_MAX): Remove definition.
45651         Instead, include <stdint.h>.
45652         * lib/readutmp.c: Likewise.
45653         * modules/readutmp (Depends-on): Add stdint.
45654         * modules/mountlist (Depends-on): Add stdint.
45655         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45656
45657 2009-03-10  Bruno Haible  <bruno@clisp.org>
45658
45659         Tests for module 'mbmemcasecoll'.
45660         * modules/mbmemcasecoll-tests: New file.
45661         * tests/test-mbmemcasecoll1.sh: New file.
45662         * tests/test-mbmemcasecoll2.sh: New file.
45663         * tests/test-mbmemcasecoll3.sh: New file.
45664         * tests/test-mbmemcasecoll.c: New file.
45665
45666         New module 'mbmemcasecoll'.
45667         * lib/mbmemcasecoll.h: New file.
45668         * lib/mbmemcasecoll.c: New file.
45669         * modules/mbmemcasecoll: New file.
45670
45671         * tests/test-mbmemcasecmp.h: New file, extracted from
45672         tests/test-mbmemcasecmp.c.
45673         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45674         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45675         (main): Update.
45676         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45677
45678 2009-03-09  Bruno Haible  <bruno@clisp.org>
45679
45680         Tests for module 'mbmemcasecmp'.
45681         * modules/mbmemcasecmp-tests: New file.
45682         * tests/test-mbmemcasecmp1.sh: New file.
45683         * tests/test-mbmemcasecmp2.sh: New file.
45684         * tests/test-mbmemcasecmp3.sh: New file.
45685         * tests/test-mbmemcasecmp.c: New file.
45686
45687         New module 'mbmemcasecmp'.
45688         * lib/mbmemcasecmp.h: New file.
45689         * lib/mbmemcasecmp.c: New file.
45690         * modules/mbmemcasecmp: New file.
45691
45692 2009-03-09  Bruno Haible  <bruno@clisp.org>
45693
45694         Tests for module 'unicase/ulc-casecoll'.
45695         * modules/unicase/ulc-casecoll-tests: New file.
45696         * tests/unicase/test-ulc-casecoll1.sh: New file.
45697         * tests/unicase/test-ulc-casecoll2.sh: New file.
45698         * tests/unicase/test-ulc-casecoll.c: New file.
45699
45700         New module 'unicase/ulc-casecoll'.
45701         * lib/unicase.h (ulc_casecoll): New declaration.
45702         * lib/unicase/ulc-casecoll.c: New file.
45703         * modules/unicase/ulc-casecoll: New file.
45704
45705         New module 'unicase/ulc-casexfrm'.
45706         * lib/unicase.h (ulc_casexfrm): New declaration.
45707         * lib/unicase/ulc-casexfrm.c: New file.
45708         * modules/unicase/ulc-casexfrm: New file.
45709
45710 2009-03-09  Bruno Haible  <bruno@clisp.org>
45711
45712         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45713         invocations.
45714
45715         * m4/mbscasecmp.m4: Remove file.
45716         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45717         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45718
45719         * m4/mbscasestr.m4: Remove file.
45720         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45721         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45722
45723         * m4/mbschr.m4: Remove file.
45724         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45725         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45726
45727         * m4/mbscspn.m4: Remove file.
45728         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45729         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45730
45731         * m4/mbslen.m4: Remove file.
45732         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45733         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45734
45735         * m4/mbsncasecmp.m4: Remove file.
45736         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45737         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45738
45739         * m4/mbsnlen.m4: Remove file.
45740         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45741         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45742
45743         * m4/mbspbrk.m4: Remove file.
45744         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45745         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45746
45747         * m4/mbspcasecmp.m4: Remove file.
45748         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45749         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45750
45751         * m4/mbsrchr.m4: Remove file.
45752         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45753         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45754
45755         * m4/mbssep.m4: Remove file.
45756         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45757         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45758
45759         * m4/mbsspn.m4: Remove file.
45760         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45761         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45762
45763         * m4/mbsstr.m4: Remove file.
45764         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45765         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45766
45767         * m4/mbstok_r.m4: Remove file.
45768         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45769         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45770
45771         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45772
45773         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45774         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45775
45776         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45777
45778 2009-03-08  Bruno Haible  <bruno@clisp.org>
45779
45780         Tests for module 'unicase/ulc-casecmp'.
45781         * modules/unicase/ulc-casecmp-tests: New file.
45782         * tests/unicase/test-ulc-casecmp1.sh: New file.
45783         * tests/unicase/test-ulc-casecmp2.sh: New file.
45784         * tests/unicase/test-ulc-casecmp.c: New file.
45785
45786         New module 'unicase/ulc-casecmp'.
45787         * lib/unicase.h (ulc_casecmp): New declaration.
45788         * lib/unicase/ulc-casecmp.c: New file.
45789         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45790         'const SRC_UNIT *'.
45791         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45792         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45793         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45794         * modules/unicase/ulc-casecmp: New file.
45795
45796         Tests for module 'unicase/u32-is-cased'.
45797         * modules/unicase/u32-is-cased-tests: New file.
45798         * tests/unicase/test-u32-is-cased.c: New file.
45799
45800         Tests for module 'unicase/u16-is-cased'.
45801         * modules/unicase/u16-is-cased-tests: New file.
45802         * tests/unicase/test-u16-is-cased.c: New file.
45803
45804         Tests for module 'unicase/u8-is-cased'.
45805         * modules/unicase/u8-is-cased-tests: New file.
45806         * tests/unicase/test-u8-is-cased.c: New file.
45807         * tests/unicase/test-is-cased.h: New file.
45808
45809         New module 'unicase/u32-is-cased'.
45810         * lib/unicase/u32-is-cased.c: New file.
45811         * modules/unicase/u32-is-cased: New file.
45812
45813         New module 'unicase/u16-is-cased'.
45814         * lib/unicase/u16-is-cased.c: New file.
45815         * modules/unicase/u16-is-cased: New file.
45816
45817         New module 'unicase/u8-is-cased'.
45818         * lib/unicase/u8-is-cased.c: New file.
45819         * lib/unicase/u-is-cased.h: New file.
45820         * modules/unicase/u8-is-cased: New file.
45821
45822         Tests for module 'unicase/u32-is-casefolded'.
45823         * modules/unicase/u32-is-casefolded-tests: New file.
45824         * tests/unicase/test-u32-is-casefolded.c: New file.
45825
45826         Tests for module 'unicase/u16-is-casefolded'.
45827         * modules/unicase/u16-is-casefolded-tests: New file.
45828         * tests/unicase/test-u16-is-casefolded.c: New file.
45829
45830         Tests for module 'unicase/u8-is-casefolded'.
45831         * modules/unicase/u8-is-casefolded-tests: New file.
45832         * tests/unicase/test-u8-is-casefolded.c: New file.
45833         * tests/unicase/test-is-casefolded.h: New file.
45834
45835         New module 'unicase/u32-is-casefolded'.
45836         * lib/unicase/u32-is-casefolded.c: New file.
45837         * modules/unicase/u32-is-casefolded: New file.
45838
45839         New module 'unicase/u16-is-casefolded'.
45840         * lib/unicase/u16-is-casefolded.c: New file.
45841         * modules/unicase/u16-is-casefolded: New file.
45842
45843         New module 'unicase/u8-is-casefolded'.
45844         * lib/unicase/u8-is-casefolded.c: New file.
45845         * modules/unicase/u8-is-casefolded: New file.
45846
45847         Tests for module 'unicase/u32-is-titlecase'.
45848         * modules/unicase/u32-is-titlecase-tests: New file.
45849         * tests/unicase/test-u32-is-titlecase.c: New file.
45850
45851         Tests for module 'unicase/u16-is-titlecase'.
45852         * modules/unicase/u16-is-titlecase-tests: New file.
45853         * tests/unicase/test-u16-is-titlecase.c: New file.
45854
45855         Tests for module 'unicase/u8-is-titlecase'.
45856         * modules/unicase/u8-is-titlecase-tests: New file.
45857         * tests/unicase/test-u8-is-titlecase.c: New file.
45858         * tests/unicase/test-is-titlecase.h: New file.
45859
45860         New module 'unicase/u32-is-titlecase'.
45861         * lib/unicase/u32-is-titlecase.c: New file.
45862         * modules/unicase/u32-is-titlecase: New file.
45863
45864         New module 'unicase/u16-is-titlecase'.
45865         * lib/unicase/u16-is-titlecase.c: New file.
45866         * modules/unicase/u16-is-titlecase: New file.
45867
45868         New module 'unicase/u8-is-titlecase'.
45869         * lib/unicase/u8-is-titlecase.c: New file.
45870         * modules/unicase/u8-is-titlecase: New file.
45871
45872         Tests for module 'unicase/u32-is-lowercase'.
45873         * modules/unicase/u32-is-lowercase-tests: New file.
45874         * tests/unicase/test-u32-is-lowercase.c: New file.
45875
45876         Tests for module 'unicase/u16-is-lowercase'.
45877         * modules/unicase/u16-is-lowercase-tests: New file.
45878         * tests/unicase/test-u16-is-lowercase.c: New file.
45879
45880         Tests for module 'unicase/u8-is-lowercase'.
45881         * modules/unicase/u8-is-lowercase-tests: New file.
45882         * tests/unicase/test-u8-is-lowercase.c: New file.
45883         * tests/unicase/test-is-lowercase.h: New file.
45884
45885         New module 'unicase/u32-is-lowercase'.
45886         * lib/unicase/u32-is-lowercase.c: New file.
45887         * modules/unicase/u32-is-lowercase: New file.
45888
45889         New module 'unicase/u16-is-lowercase'.
45890         * lib/unicase/u16-is-lowercase.c: New file.
45891         * modules/unicase/u16-is-lowercase: New file.
45892
45893         New module 'unicase/u8-is-lowercase'.
45894         * lib/unicase/u8-is-lowercase.c: New file.
45895         * modules/unicase/u8-is-lowercase: New file.
45896
45897         Tests for module 'unicase/u32-is-uppercase'.
45898         * modules/unicase/u32-is-uppercase-tests: New file.
45899         * tests/unicase/test-u32-is-uppercase.c: New file.
45900
45901         Tests for module 'unicase/u16-is-uppercase'.
45902         * modules/unicase/u16-is-uppercase-tests: New file.
45903         * tests/unicase/test-u16-is-uppercase.c: New file.
45904
45905         Tests for module 'unicase/u8-is-uppercase'.
45906         * modules/unicase/u8-is-uppercase-tests: New file.
45907         * tests/unicase/test-u8-is-uppercase.c: New file.
45908         * tests/unicase/test-is-uppercase.h: New file.
45909
45910         New module 'unicase/u32-is-uppercase'.
45911         * lib/unicase/u32-is-uppercase.c: New file.
45912         * modules/unicase/u32-is-uppercase: New file.
45913
45914         New module 'unicase/u16-is-uppercase'.
45915         * lib/unicase/u16-is-uppercase.c: New file.
45916         * modules/unicase/u16-is-uppercase: New file.
45917
45918         New module 'unicase/u8-is-uppercase'.
45919         * lib/unicase/u8-is-uppercase.c: New file.
45920         * modules/unicase/u8-is-uppercase: New file.
45921
45922         New module 'unicase/u32-is-invariant'.
45923         * lib/unicase/u32-is-invariant.c: New file.
45924         * modules/unicase/u32-is-invariant: New file.
45925
45926         New module 'unicase/u16-is-invariant'.
45927         * lib/unicase/u16-is-invariant.c: New file.
45928         * modules/unicase/u16-is-invariant: New file.
45929
45930         New module 'unicase/u8-is-invariant'.
45931         * lib/unicase/u8-is-invariant.c: New file.
45932         * lib/unicase/invariant.h: New file.
45933         * lib/unicase/u-is-invariant.h: New file.
45934         * modules/unicase/u8-is-invariant: New file.
45935
45936         Tests for module 'unicase/u32-casecoll'.
45937         * modules/unicase/u32-casecoll-tests: New file.
45938         * tests/unicase/test-u32-casecoll.c: New file.
45939
45940         Tests for module 'unicase/u16-casecoll'.
45941         * modules/unicase/u16-casecoll-tests: New file.
45942         * tests/unicase/test-u16-casecoll.c: New file.
45943
45944         Tests for module 'unicase/u8-casecoll'.
45945         * modules/unicase/u8-casecoll-tests: New file.
45946         * tests/unicase/test-u8-casecoll.c: New file.
45947
45948         New module 'unicase/u32-casecoll'.
45949         * lib/unicase/u32-casecoll.c: New file.
45950         * modules/unicase/u32-casecoll: New file.
45951
45952         New module 'unicase/u16-casecoll'.
45953         * lib/unicase/u16-casecoll.c: New file.
45954         * modules/unicase/u16-casecoll: New file.
45955
45956         New module 'unicase/u8-casecoll'.
45957         * lib/unicase/u8-casecoll.c: New file.
45958         * lib/unicase/u-casecoll.h: New file.
45959         * modules/unicase/u8-casecoll: New file.
45960
45961         New module 'unicase/u32-casexfrm'.
45962         * lib/unicase/u32-casexfrm.c: New file.
45963         * modules/unicase/u32-casexfrm: New file.
45964
45965         New module 'unicase/u16-casexfrm'.
45966         * lib/unicase/u16-casexfrm.c: New file.
45967         * modules/unicase/u16-casexfrm: New file.
45968
45969         New module 'unicase/u8-casexfrm'.
45970         * lib/unicase/u8-casexfrm.c: New file.
45971         * lib/unicase/u-casexfrm.h: New file.
45972         * modules/unicase/u8-casexfrm: New file.
45973
45974         Tests for module 'unicase/u32-casecmp'.
45975         * modules/unicase/u32-casecmp-tests: New file.
45976         * tests/unicase/test-u32-casecmp.c: New file.
45977
45978         Tests for module 'unicase/u16-casecmp'.
45979         * modules/unicase/u16-casecmp-tests: New file.
45980         * tests/unicase/test-u16-casecmp.c: New file.
45981
45982         Tests for module 'unicase/u8-casecmp'.
45983         * modules/unicase/u8-casecmp-tests: New file.
45984         * tests/unicase/test-u8-casecmp.c: New file.
45985         * tests/unicase/test-casecmp.h: New file.
45986
45987         New module 'unicase/u32-casecmp'.
45988         * lib/unicase/u32-casecmp.c: New file.
45989         * modules/unicase/u32-casecmp: New file.
45990
45991         New module 'unicase/u16-casecmp'.
45992         * lib/unicase/u16-casecmp.c: New file.
45993         * modules/unicase/u16-casecmp: New file.
45994
45995         New module 'unicase/u8-casecmp'.
45996         * lib/unicase/u8-casecmp.c: New file.
45997         * lib/unicase/u-casecmp.h: New file.
45998         * modules/unicase/u8-casecmp: New file.
45999
46000         Tests for module 'unicase/u32-casefold'.
46001         * modules/unicase/u32-casefold-tests: New file.
46002         * tests/unicase/test-u32-casefold.c: New file.
46003
46004         Tests for module 'unicase/u16-casefold'.
46005         * modules/unicase/u16-casefold-tests: New file.
46006         * tests/unicase/test-u16-casefold.c: New file.
46007
46008         Tests for module 'unicase/u8-casefold'.
46009         * modules/unicase/u8-casefold-tests: New file.
46010         * tests/unicase/test-u8-casefold.c: New file.
46011
46012         New module 'unicase/u32-casefold'.
46013         * lib/unicase/u32-casefold.c: New file.
46014         * modules/unicase/u32-casefold: New file.
46015
46016         New module 'unicase/u16-casefold'.
46017         * lib/unicase/u16-casefold.c: New file.
46018         * modules/unicase/u16-casefold: New file.
46019
46020         New module 'unicase/u8-casefold'.
46021         * lib/unicase/u8-casefold.c: New file.
46022         * lib/unicase/u-casefold.h: New file.
46023         * modules/unicase/u8-casefold: New file.
46024
46025         New module 'unicase/tocasefold'.
46026         * lib/unicase/casefold.h: New file.
46027         * lib/unicase/tocasefold.c: New file.
46028         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46029         * modules/unicase/tocasefold: New file.
46030
46031         Tests for module 'unicase/u32-totitle'.
46032         * modules/unicase/u32-totitle-tests: New file.
46033         * tests/unicase/test-u32-totitle.c: New file.
46034
46035         Tests for module 'unicase/u16-totitle'.
46036         * modules/unicase/u16-totitle-tests: New file.
46037         * tests/unicase/test-u16-totitle.c: New file.
46038
46039         Tests for module 'unicase/u8-totitle'.
46040         * modules/unicase/u8-totitle-tests: New file.
46041         * tests/unicase/test-u8-totitle.c: New file.
46042
46043         New module 'unicase/u32-totitle'.
46044         * lib/unicase/u32-totitle.c: New file.
46045         * modules/unicase/u32-totitle: New file.
46046
46047         New module 'unicase/u16-totitle'.
46048         * lib/unicase/u16-totitle.c: New file.
46049         * modules/unicase/u16-totitle: New file.
46050
46051         New module 'unicase/u8-totitle'.
46052         * lib/unicase/u8-totitle.c: New file.
46053         * lib/unicase/u-totitle.h: New file.
46054         * modules/unicase/u8-totitle: New file.
46055
46056         Tests for module 'unicase/u32-tolower'.
46057         * modules/unicase/u32-tolower-tests: New file.
46058         * tests/unicase/test-u32-tolower.c: New file.
46059
46060         Tests for module 'unicase/u16-tolower'.
46061         * modules/unicase/u16-tolower-tests: New file.
46062         * tests/unicase/test-u16-tolower.c: New file.
46063
46064         Tests for module 'unicase/u8-tolower'.
46065         * modules/unicase/u8-tolower-tests: New file.
46066         * tests/unicase/test-u8-tolower.c: New file.
46067
46068         New module 'unicase/u32-tolower'.
46069         * lib/unicase/u32-tolower.c: New file.
46070         * modules/unicase/u32-tolower: New file.
46071
46072         New module 'unicase/u16-tolower'.
46073         * lib/unicase/u16-tolower.c: New file.
46074         * modules/unicase/u16-tolower: New file.
46075
46076         New module 'unicase/u8-tolower'.
46077         * lib/unicase/u8-tolower.c: New file.
46078         * modules/unicase/u8-tolower: New file.
46079
46080         Tests for module 'unicase/u32-toupper'.
46081         * modules/unicase/u32-toupper-tests: New file.
46082         * tests/unicase/test-u32-toupper.c: New file.
46083
46084         Tests for module 'unicase/u16-toupper'.
46085         * modules/unicase/u16-toupper-tests: New file.
46086         * tests/unicase/test-u16-toupper.c: New file.
46087
46088         Tests for module 'unicase/u8-toupper'.
46089         * modules/unicase/u8-toupper-tests: New file.
46090         * tests/unicase/test-u8-toupper.c: New file.
46091
46092         New module 'unicase/u32-toupper'.
46093         * lib/unicase/u32-toupper.c: New file.
46094         * modules/unicase/u32-toupper: New file.
46095
46096         New module 'unicase/u16-toupper'.
46097         * lib/unicase/u16-toupper.c: New file.
46098         * modules/unicase/u16-toupper: New file.
46099
46100         New module 'unicase/u8-toupper'.
46101         * lib/unicase/u8-toupper.c: New file.
46102         * modules/unicase/u8-toupper: New file.
46103
46104         New module 'unicase/u32-casemap'.
46105         * lib/unicase/u32-casemap.c: New file.
46106         * modules/unicase/u32-casemap: New file.
46107
46108         New module 'unicase/u16-casemap'.
46109         * lib/unicase/u16-casemap.c: New file.
46110         * modules/unicase/u16-casemap: New file.
46111
46112         New module 'unicase/u8-casemap'.
46113         * lib/unicase/unicasemap.h: New file.
46114         * lib/unicase/u8-casemap.c: New file.
46115         * lib/unicase/u-casemap.h: New file.
46116         * modules/unicase/u8-casemap: New file.
46117
46118         New module 'unicase/special-casing'.
46119         * lib/unicase/special-casing.h: New file.
46120         * lib/unicase/special-casing.c: New file.
46121         * lib/unicase/special-casing-table.gperf: New file, generated by
46122         gen-uni-tables.c.
46123         * modules/unicase/special-casing: New file.
46124
46125         Tests for module 'unicase/locale-language'.
46126         * modules/unicase/locale-language-tests: New file.
46127         * tests/unicase/test-locale-language.sh: New file.
46128         * tests/unicase/test-locale-language.c: New file.
46129
46130         New module 'unicase/locale-language'.
46131         * lib/unicase/locale-language.c: New file.
46132         * lib/unicase/locale-languages.gperf: New file.
46133         * modules/unicase/locale-language: New file.
46134
46135         Generate more tables for case conversion and case folding.
46136         * lib/gen-uni-tables.c (SCC_*): New enum items.
46137         (struct special_casing_rule): New type.
46138         (casing_rules, num_casing_rules, allocated_casing_rules): New
46139         variables.
46140         (add_casing_rule, fill_casing_rules): New functions.
46141         (struct casefold_rule): New type.
46142         (casefolding_rules, num_casefolding_rules,
46143         allocated_casefolding_rules): New variables.
46144         (fill_casefolding_rules): New function.
46145         (unicode_casefold): New variable.
46146         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46147         sort_casing_rules, output_casing_rules): New functions.
46148         (main): Accept to more arguments: SpecialCasing.txt and
46149         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46150         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46151         Output mapping for casefolding.
46152
46153         * lib/unicase.h: Include stdbool.h, uninorm.h.
46154         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46155         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46156         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46157         arguments.
46158         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46159         resultp arguments.
46160         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46161         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46162         resultp arguments.
46163         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46164         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46165         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46166         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46167         declarations.
46168         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46169
46170 2009-03-08  Bruno Haible  <bruno@clisp.org>
46171
46172         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46173         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46174         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46175         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46176
46177 2009-03-07  Bruno Haible  <bruno@clisp.org>
46178
46179         Adjust u*_normcmp, u*_normcoll API.
46180         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46181         u16_normcoll, u32_normcoll): Change failure conventions.
46182         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46183         errno and return -1.
46184         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46185
46186 2009-03-07  Bruno Haible  <bruno@clisp.org>
46187
46188         Tests for module 'uninorm/u32-normcoll'.
46189         * modules/uninorm/u32-normcoll-tests: New file.
46190         * tests/uninorm/test-u32-normcoll.c: New file.
46191
46192         Tests for module 'uninorm/u16-normcoll'.
46193         * modules/uninorm/u16-normcoll-tests: New file.
46194         * tests/uninorm/test-u16-normcoll.c: New file.
46195
46196         Tests for module 'uninorm/u8-normcoll'.
46197         * modules/uninorm/u8-normcoll-tests: New file.
46198         * tests/uninorm/test-u8-normcoll.c: New file.
46199
46200 2009-03-07  Bruno Haible  <bruno@clisp.org>
46201
46202         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46203         tests/uninorm/test-u32-normcmp.c.
46204         * tests/uninorm/test-u32-normcmp.c: Include it.
46205         (test_nonascii): New function, extracted from main. Add some more
46206         tests.
46207         (main): Invoke test_ascii and test_nonascii.
46208         * modules/uninorm/u32-normcmp-tests (Files): Add
46209         tests/uninorm/test-u32-normcmp.h.
46210         (Depends-on): Remove uninorm/u32-normcmp.
46211
46212         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46213         tests/uninorm/test-u16-normcmp.c.
46214         * tests/uninorm/test-u16-normcmp.c: Include it.
46215         (test_nonascii): New function, extracted from main. Add some more
46216         tests.
46217         (main): Invoke test_ascii and test_nonascii.
46218         * modules/uninorm/u16-normcmp-tests (Files): Add
46219         tests/uninorm/test-u16-normcmp.h.
46220         (Depends-on): Remove uninorm/u16-normcmp.
46221
46222         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46223         tests/uninorm/test-u8-normcmp.c.
46224         * tests/uninorm/test-u8-normcmp.c: Include it.
46225         (test_nonascii): New function, extracted from main. Add some more
46226         tests.
46227         (main): Invoke test_ascii and test_nonascii.
46228         * modules/uninorm/u8-normcmp-tests (Files): Add
46229         tests/uninorm/test-u8-normcmp.h.
46230         (Depends-on): Remove uninorm/u8-normcmp.
46231
46232 2009-03-07  Bruno Haible  <bruno@clisp.org>
46233
46234         New module 'uninorm/u32-normcoll'.
46235         * lib/uninorm/u32-normcoll.c: New file.
46236         * modules/uninorm/u32-normcoll: New file.
46237
46238         New module 'uninorm/u16-normcoll'.
46239         * lib/uninorm/u16-normcoll.c: New file.
46240         * modules/uninorm/u16-normcoll: New file.
46241
46242         New module 'uninorm/u8-normcoll'.
46243         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46244         declarations.
46245         * lib/uninorm/u8-normcoll.c: New file.
46246         * lib/uninorm/u-normcoll.h: New file.
46247         * modules/uninorm/u8-normcoll: New file.
46248
46249         New module 'uninorm/u32-normxfrm'.
46250         * lib/uninorm/u32-normxfrm.c: New file.
46251         * modules/uninorm/u32-normxfrm: New file.
46252
46253         New module 'uninorm/u16-normxfrm'.
46254         * lib/uninorm/u16-normxfrm.c: New file.
46255         * modules/uninorm/u16-normxfrm: New file.
46256
46257         New module 'uninorm/u8-normxfrm'.
46258         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46259         declarations.
46260         * lib/uninorm/u8-normxfrm.c: New file.
46261         * lib/uninorm/u-normxfrm.h: New file.
46262         * modules/uninorm/u8-normxfrm: New file.
46263
46264 2009-03-07  Bruno Haible  <bruno@clisp.org>
46265
46266         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46267         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46268         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46269
46270 2009-03-07  Bruno Haible  <bruno@clisp.org>
46271
46272         New module 'memxfrm'.
46273         * lib/memxfrm.h: New file.
46274         * lib/memxfrm.c: New file.
46275         * modules/memxfrm: New file.
46276
46277 2009-03-07  Bruno Haible  <bruno@clisp.org>
46278
46279         New module 'memcmp2'.
46280         * lib/memcmp2.h: New file.
46281         * lib/memcmp2.c: New file.
46282         * modules/memcmp2: New file.
46283
46284 2009-03-07  Bruno Haible  <bruno@clisp.org>
46285
46286         Tests for module 'uninorm/decomposing-form'.
46287         * modules/uninorm/decomposing-form-tests: New file.
46288         * tests/uninorm/test-decomposing-form.c: New file.
46289
46290         New module 'uninorm/decomposing-form'.
46291         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46292         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46293         Add 'decomposing_variant' field.
46294         * lib/uninorm/decomposing-form.c: New file.
46295         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46296         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46297         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46298         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46299         * modules/uninorm/decomposing-form: New file.
46300         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46301         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46302
46303 2009-03-07  Bruno Haible  <bruno@clisp.org>
46304
46305         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46306         strings.
46307
46308 2009-03-06  Bruno Haible  <bruno@clisp.org>
46309
46310         Tests for module 'uninorm/u32-normcmp'.
46311         * tests/uninorm/test-u32-normcmp.c: New file.
46312         * modules/uninorm/u32-normcmp-tests: New file.
46313
46314         Tests for module 'uninorm/u16-normcmp'.
46315         * tests/uninorm/test-u16-normcmp.c: New file.
46316         * modules/uninorm/u16-normcmp-tests: New file.
46317
46318         Tests for module 'uninorm/u8-normcmp'.
46319         * tests/uninorm/test-u8-normcmp.c: New file.
46320         * modules/uninorm/u8-normcmp-tests: New file.
46321
46322         New module 'uninorm/u32-normcmp'.
46323         * lib/uninorm/u32-normcmp.c: New file.
46324         * modules/uninorm/u32-normcmp: New file.
46325
46326         New module 'uninorm/u16-normcmp'.
46327         * lib/uninorm/u16-normcmp.c: New file.
46328         * modules/uninorm/u16-normcmp: New file.
46329
46330         New module 'uninorm/u8-normcmp'.
46331         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46332         declarations.
46333         * lib/uninorm/u8-normcmp.c: New file.
46334         * lib/uninorm/u-normcmp.h: New file.
46335         * modules/uninorm/u8-normcmp: New file.
46336
46337 2009-03-06  Bruno Haible  <bruno@clisp.org>
46338
46339         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46340         Reported by Eric Blake.
46341
46342 2009-03-06  Eric Blake  <ebb9@byu.net>
46343             Bruno Haible  <bruno@clisp.org>
46344
46345         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46346         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46347         condition.
46348         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46349         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46350         condition.
46351         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46352
46353 2009-03-06  Eric Blake  <ebb9@byu.net>
46354
46355         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46356         to avoid compiler warnings.
46357         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46358
46359 2009-03-05  Bruno Haible  <bruno@clisp.org>
46360
46361         * tests/test-ftell.c (main): Disable test beyond end of file on
46362         FreeMiNT.
46363         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46364
46365 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46366
46367         * lib/filevercmp.c: Move hidden files up in ordering.
46368         * tests/test-filevercmp.c: Add tests for hidden files.
46369
46370 2009-03-04  Bruno Haible  <bruno@clisp.org>
46371
46372         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46373         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46374         AM_CFLAGS.
46375         Reported by Simon Josefsson.
46376
46377 2009-03-03  Bruno Haible  <bruno@clisp.org>
46378
46379         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46380         Reported by Simon Josefsson.
46381
46382         * doc/ld-version-script.texi: Update node reference.
46383
46384 2009-03-03  Bruno Haible  <bruno@clisp.org>
46385
46386         * modules/visibility (License): Change to 'unlimited'.
46387         Suggested by Simon Josefsson.
46388
46389 2009-03-03  Jim Meyering  <meyering@redhat.com>
46390
46391         unlinkdir: cannot_unlink_dir may modify process state
46392         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46393         it's neither thread-safe nor appropriate for use in a library.
46394
46395 2009-03-03  Eric Blake  <ebb9@byu.net>
46396
46397         test-closein: silence test under Darwin
46398         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46399         care if it dies from EPIPE or EBADF.
46400
46401 2009-03-03  Bruno Haible  <bruno@clisp.org>
46402
46403         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46404         earlier.
46405         * doc/visibility.texi: Fix @node and @section.
46406
46407 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46408
46409         * doc/gnulib.texi: Link to sections for ld version script and
46410         visibility.
46411         * doc/visibility.texi: Add @node and @section.
46412         * modules/ld-version-script: New module.
46413         * m4/ld-version-script.m4: New file.
46414         * doc/ld-version-script.texi: New file.
46415
46416 2009-03-02  David Lutterkort  <lutter@redhat.com>
46417
46418         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46420
46421 2009-03-02  Bruno Haible  <bruno@clisp.org>
46422
46423         * doc/visibility.texi: Mention libtool's -export-symbols option.
46424
46425 2009-03-02  Jim Meyering  <meyering@redhat.com>
46426
46427         announce-gen: new option: --no-print-checksums
46428         * build-aux/announce-gen (usage): Describe it.
46429         (print_checksums): Print a newline here, not in the [*] footnote.
46430         (main): Honor it.
46431
46432 2009-03-01  Bruno Haible  <bruno@clisp.org>
46433
46434         Use socklen_t in the native Windows replacements prototypes.
46435         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46436         instead of 'int'.
46437         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46438         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46439         * modules/getsockopt (Depends-on): Add socklen.
46440         * modules/setsockopt (Depends-on): Add socklen.
46441
46442 2009-03-01  Bruno Haible  <bruno@clisp.org>
46443
46444         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46445         least 4.2.
46446
46447 2009-03-01  Eric Blake  <ebb9@byu.net>
46448             Bruno Haible  <bruno@clisp.org>
46449
46450         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46451         error messages.
46452         * lib/wait-process.c (wait_subprocess): Omit error message about
46453         deadly signal sent to the child of termsigp != NULL.
46454
46455 2009-03-01  Eric Blake  <ebb9@byu.net>
46456
46457         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46458
46459 2009-03-01  Bruno Haible  <bruno@clisp.org>
46460
46461         Avoid a gcc warning.
46462         * tests/test-sched.c (b): Make global.
46463         Reported by Eric Blake.
46464
46465 2009-01-19  Martin Lambers  <marlam@marlam.de>
46466
46467         Provide POSIX semantics for socket timeout options on W32.
46468         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46469         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46470         * modules/setsockopt: Depend on sys_time module for struct timeval.
46471         * modules/getsockopt: Depend on sys_time module for struct timeval.
46472
46473 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46474
46475         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46476         __USE_GNU, for consistency with netdb.in.h.
46477         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46478
46479 2009-03-01  Bruno Haible  <bruno@clisp.org>
46480
46481         More support for FreeMiNT.
46482         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46483         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46484
46485 2009-03-01  Bruno Haible  <bruno@clisp.org>
46486
46487         More support for FreeMiNT.
46488         * lib/fpurge.c (fpurge): Correct last commit.
46489         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46490
46491 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46492
46493         Fix unportable awk script in vc-list-files.
46494         * build-aux/vc-list-files: In the replacement awk script, use
46495         substr with a second argument of 1, not zero.
46496         Report by Simon Josefsson.
46497
46498 2009-02-28  Bruno Haible  <bruno@clisp.org>
46499
46500         More support for FreeMiNT.
46501         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46502         to FreeMiNT today.
46503         * lib/fwriting.c (fwriting): Likewise.
46504         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46505
46506 2009-02-28  Bruno Haible  <bruno@clisp.org>
46507
46508         * tests/test-freadseek.c (main): Disable test beyond end of file on
46509         FreeMiNT.
46510         * tests/test-ftello.c (main): Likewise.
46511         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46512
46513 2009-02-28  Bruno Haible  <bruno@clisp.org>
46514
46515         Add tentative support for FreeMiNT.
46516         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46517         * lib/fpurge.c (fpurge): Likewise.
46518         * lib/freadable.c (freadable): Likewise.
46519         * lib/freading.c (freading): Likewise.
46520         * lib/freadptr.c (freadptr): Likewise.
46521         * lib/freadseek.c (freadptrinc): Likewise.
46522         * lib/fseeko.c (rpl_fseeko): Likewise.
46523         * lib/fseterr.c (fseterr): Likewise.
46524         * lib/fwritable.c (fwritable): Likewise.
46525         * lib/fwriting.c (fwriting): Likewise.
46526         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46527         Hourihane.
46528         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46529
46530 2009-02-28  Bruno Haible  <bruno@clisp.org>
46531
46532         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46533         SIGCHLD.
46534         Reported by Jim Meyering.
46535
46536 2009-02-28  Bruno Haible  <bruno@clisp.org>
46537
46538         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46539         Mention the results of these tests on various platforms.
46540         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46541         order.
46542         * doc/posix-functions/printf.texi: Likewise.
46543         * doc/posix-functions/snprintf.texi: Likewise.
46544         * doc/posix-functions/sprintf.texi: Likewise.
46545         * doc/posix-functions/vfprintf.texi: Likewise.
46546         * doc/posix-functions/vprintf.texi: Likewise.
46547         * doc/posix-functions/vsnprintf.texi: Likewise.
46548         * doc/posix-functions/vsprintf.texi: Likewise.
46549         * doc/glibc-functions/obstack_printf.texi: Likewise.
46550         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46551
46552 2009-02-28  Bruno Haible  <bruno@clisp.org>
46553
46554         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46555         Reported by Loïc Minier <lool@dooz.org>.
46556
46557 2009-02-27  Bruno Haible  <bruno@clisp.org>
46558
46559         * gnulib-tool (func_import): Make the sed expression used to create the
46560         sed script for updating the .gitignore file POSIX compliant.
46561         Reported by Eric Blake.
46562
46563 2009-02-27  Bruno Haible  <bruno@clisp.org>
46564
46565         * gnulib-tool (sed): Don't alias as "sed --posix".
46566         Reported by Eric Blake.
46567
46568 2009-02-27  Bruno Haible  <bruno@clisp.org>
46569
46570         Avoid test link errors.
46571         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46572         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46573         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46574         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46575         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46576
46577 2009-02-27  Bruno Haible  <bruno@clisp.org>
46578
46579         Avoid spurious "(cached)" in configure output.
46580         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46581         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46582         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46583         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46584         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46585         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46586         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46587         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46588         Reported by Eric Blake.
46589
46590 2009-02-27  Eric Blake  <ebb9@byu.net>
46591
46592         printf: fix regression in previous patch
46593         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46594
46595 2009-02-27  Bruno Haible  <bruno@clisp.org>
46596
46597         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46598         value.
46599         * lib/stdint.in.h: Likewise.
46600         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46601
46602 2009-02-27  Eric Blake  <ebb9@byu.net>
46603
46604         doc: mention more functions added in cygwin 1.7.0
46605         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46606         addition.
46607         * doc/posix-functions/open_wmemstream.texi: Likewise.
46608         * doc/posix-functions/wcsnlen.texi: Likewise.
46609         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46610         * doc/posix-functions/wcstod.texi: Likewise.
46611         * doc/posix-functions/wcstof.texi: Likewise.
46612         * doc/posix-functions/wcstoimax.texi: Likewise.
46613         * doc/posix-functions/wcstok.texi: Likewise.
46614         * doc/posix-functions/wcstoumax.texi: Likewise.
46615
46616         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46617         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46618         * doc/posix-functions/fprintf.texi: Update.
46619         * doc/posix-functions/printf.texi: Update.
46620         * doc/posix-functions/snprintf.texi: Update.
46621         * doc/posix-functions/sprintf.texi: Update.
46622         * doc/posix-functions/vfprintf.texi: Update.
46623         * doc/posix-functions/vprintf.texi: Update.
46624         * doc/posix-functions/vsnprintf.texi: Update.
46625         * doc/posix-functions/vsprintf.texi: Update.
46626         * doc/glibc-functions/obstack_printf.texi: Update.
46627         * doc/glibc-functions/obstack_vprintf.texi: Update.
46628
46629 2009-02-26  Eric Blake  <ebb9@byu.net>
46630
46631         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46632         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46633         compilation bug by using runtime conversion.
46634         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46635         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46636         * modules/ceill-tests (Files): Use nan.h.
46637         * modules/floorl-tests (Files): Likewise.
46638         * modules/frexpl-tests (Files): Likewise.
46639         * modules/isnanl-tests (Files): Likewise.
46640         * modules/ldexpl-tests (Files): Likewise.
46641         * modules/roundl-tests (Files): Likewise.
46642         * modules/truncl-tests (Files): Likewise.
46643         * tests/test-ceill.c (main): Use a working NaN.
46644         * tests/test-floorl.c (main): Likewise.
46645         * tests/test-frexpl.c (main): Likewise.
46646         * tests/test-isnan.c (test_long_double): Likewise.
46647         * tests/test-isnanl.h (main): Likewise.
46648         * tests/test-ldexpl.h (main): Likewise.
46649         * tests/test-roundl.h (main): Likewise.
46650         * tests/test-truncl.h (main): Likewise.
46651         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46652
46653 2009-02-26  Eric Blake  <ebb9@byu.net>
46654             Bruno Haible  <bruno@clisp.org>
46655
46656         Work around a *printf bug with %ls on Solaris.
46657         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46658         precision is specified, sprintf stops converting the wide string
46659         argument when the number of bytes that have been produced by this
46660         conversion equals or exceeds the precision.
46661         * doc/posix-functions/fprintf.texi: Update.
46662         * doc/posix-functions/printf.texi: Update.
46663         * doc/posix-functions/snprintf.texi: Update.
46664         * doc/posix-functions/sprintf.texi: Update.
46665         * doc/posix-functions/vfprintf.texi: Update.
46666         * doc/posix-functions/vprintf.texi: Update.
46667         * doc/posix-functions/vsnprintf.texi: Update.
46668         * doc/posix-functions/vsprintf.texi: Update.
46669         * doc/glibc-functions/obstack_printf.texi: Update.
46670         * doc/glibc-functions/obstack_vprintf.texi: Update.
46671
46672 2009-02-26  Eric Blake  <ebb9@byu.net>
46673
46674         stdlib: favor compiler check of random.h
46675         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46676         to avoid an ObjC random.h installed by Swarm.
46677
46678 2009-02-26  Bruno Haible  <bruno@clisp.org>
46679
46680         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46681         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46682         Reported by Gary V. Vaughan <gary@gnu.org>.
46683
46684 2009-02-26  Bruno Haible  <bruno@clisp.org>
46685
46686         Fix *printf behaviour regarding the %ls directive.
46687         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46688         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46689         NEED_PRINTF_DIRECTIVE_LS.
46690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46691         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46692         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46693         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46694         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46695         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46696         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46697         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46698         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46701         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46705         * doc/posix-functions/fprintf.texi: Update.
46706         * doc/posix-functions/printf.texi: Update.
46707         * doc/posix-functions/snprintf.texi: Update.
46708         * doc/posix-functions/sprintf.texi: Update.
46709         * doc/posix-functions/vfprintf.texi: Update.
46710         * doc/posix-functions/vprintf.texi: Update.
46711         * doc/posix-functions/vsnprintf.texi: Update.
46712         * doc/posix-functions/vsprintf.texi: Update.
46713         * doc/glibc-functions/obstack_printf.texi: Update.
46714         * doc/glibc-functions/obstack_vprintf.texi: Update.
46715         Reported by Eric Blake.
46716
46717 2009-02-25  Bruno Haible  <bruno@clisp.org>
46718
46719         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46720         with known value.
46721         Reported by Gary V. Vaughan <gary@gnu.org>.
46722
46723 2009-02-25  Bruno Haible  <bruno@clisp.org>
46724
46725         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46726         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46727         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46728         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46729         Reported by Gary V. Vaughan <gary@gnu.org>.
46730
46731 2009-02-25  Bruno Haible  <bruno@clisp.org>
46732
46733         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46734         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46735         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46736         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46737         Reported by Gary V. Vaughan <gary@gnu.org>.
46738
46739 2009-02-25  Eric Blake  <ebb9@byu.net>
46740
46741         tests: skip fseek/ftell tests if ungetc is broken
46742         * m4/ungetc.m4: New file.
46743         * modules/fseek-tests: Split test, so ungetc dependency is
46744         separate from rest of test.
46745         * modules/fseeko-tests: Likewise.
46746         * modules/ftell-tests: Likewise.
46747         * modules/ftello-tests: Likewise.
46748         * tests/test-fseek.c (main): Isolate ungetc dependency.
46749         * tests/test-fseeko.c (main): Likewise.
46750         * tests/test-ftell.c (main): Likewise.
46751         * tests/test-ftello.c (main): Likewise.
46752         * tests/test-fseek2.sh: New file.
46753         * tests/test-fseeko2.sh: Likewise.
46754         * tests/test-ftell2.sh: Likewise.
46755         * tests/test-ftello2.sh: Likewise.
46756
46757 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46758
46759         test-getaddrinfo: fix usage of skip return code 77
46760         * tests/test-gettaddrinfo.c: Return skip code 77 only
46761         for first occurance of skip (4x77 is not 77)
46762
46763 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46764
46765         strtod: avoid C99 decl-after-statement
46766         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46767
46768 2009-02-24  Eric Blake  <ebb9@byu.net>
46769
46770         strtod: detect HP-UX 11.31 bug
46771         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46772         Reported by Gary V. Vaughan.
46773
46774 2009-02-23  Bruno Haible  <bruno@clisp.org>
46775
46776         Fix invalid read past end of memory block.
46777         * lib/vasnprintf.c (DCHAR_SET): Define.
46778         (local_wcslen): Define only when needed.
46779         (local_strnlen, local_wcsnlen): New functions.
46780         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46781         directives that involve a conversion ourselves.
46782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46783         wcsnlen, mbrtowc, wcrtomb.
46784         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46785         * tests/test-vasprintf-posix.c (test_function): Likewise.
46786         * tests/test-snprintf-posix.h (test_function): Likewise.
46787         * tests/test-sprintf-posix.h (test_function): Likewise.
46788         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46789
46790 2009-02-22  Bruno Haible  <bruno@clisp.org>
46791
46792         Implement new clarified decomposition of Hangul syllables.
46793         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46794         of type LTV, return only a pairwise decomposition.
46795         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46796         Likewise.
46797         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46798         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46799         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46800
46801 2009-02-22  Bruno Haible  <bruno@clisp.org>
46802
46803         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46804         zero-length results and shrink excess allocated memory.
46805         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46806         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46807         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46808         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46809         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46810         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46811         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46812         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46813         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46814         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46815         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46816         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46817
46818 2009-02-21  Bruno Haible  <bruno@clisp.org>
46819
46820         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46821         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46822         spaces after a period. Put a space between a macro name and its
46823         argument list. Trivial rewordings.
46824         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46825         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46826         (main): Return 0 explicitly.
46827
46828 2009-02-21  Bruno Haible  <bruno@clisp.org>
46829
46830         Tests for module 'uninorm/filter'.
46831         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46832         * modules/uninorm/filter-tests: New file.
46833
46834         New module 'uninorm/filter'.
46835         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46836         uninorm_filter_flush, uninorm_filter_free): New declarations.
46837         * lib/uninorm/uninorm-filter.c: New file.
46838         * modules/uninorm/filter: New file.
46839
46840 2009-02-21  Bruno Haible  <bruno@clisp.org>
46841
46842         Tests for module 'uninorm/nfkc'.
46843         * tests/uninorm/test-nfkc.c: New file.
46844         * tests/uninorm/test-u8-nfkc.c: New file.
46845         * tests/uninorm/test-u16-nfkc.c: New file.
46846         * tests/uninorm/test-u32-nfkc.c: New file.
46847         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46848         * tests/uninorm/test-u32-nfkc-big.c: New file.
46849         * modules/uninorm/nfkc-tests: New file.
46850
46851         New module 'uninorm/nfkc'.
46852         * lib/uninorm/nfkc.c: New file.
46853         * modules/uninorm/nfkc: New file.
46854
46855         Tests for module 'uninorm/nfkd'.
46856         * tests/uninorm/test-nfkd.c: New file.
46857         * tests/uninorm/test-u8-nfkd.c: New file.
46858         * tests/uninorm/test-u16-nfkd.c: New file.
46859         * tests/uninorm/test-u32-nfkd.c: New file.
46860         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46861         * tests/uninorm/test-u32-nfkd-big.c: New file.
46862         * modules/uninorm/nfkd-tests: New file.
46863
46864         New module 'uninorm/nfkd'.
46865         * lib/uninorm/nfkd.c: New file.
46866         * modules/uninorm/nfkd: New file.
46867
46868         Tests for module 'uninorm/nfc'.
46869         * tests/uninorm/test-nfc.c: New file.
46870         * tests/uninorm/test-u8-nfc.c: New file.
46871         * tests/uninorm/test-u16-nfc.c: New file.
46872         * tests/uninorm/test-u32-nfc.c: New file.
46873         * tests/uninorm/test-u32-nfc-big.sh: New file.
46874         * tests/uninorm/test-u32-nfc-big.c: New file.
46875         * modules/uninorm/nfc-tests: New file.
46876
46877         New module 'uninorm/nfc'.
46878         * lib/uninorm/nfc.c: New file.
46879         * modules/uninorm/nfc: New file.
46880
46881         Tests for module 'uninorm/nfd'.
46882         * tests/uninorm/test-nfd.c: New file.
46883         * tests/uninorm/test-u8-nfd.c: New file.
46884         * tests/uninorm/test-u16-nfd.c: New file.
46885         * tests/uninorm/test-u32-nfd.c: New file.
46886         * tests/uninorm/test-u32-nfd-big.sh: New file.
46887         * tests/uninorm/test-u32-nfd-big.c: New file.
46888         * tests/uninorm/test-u32-normalize-big.h: New file.
46889         * tests/uninorm/test-u32-normalize-big.c: New file.
46890         * tests/uninorm/NormalizationTest.txt: New file, created from
46891         Unicode 5.1.0 NormalizationTest.txt.
46892         * modules/uninorm/nfd-tests: New file.
46893
46894         New module 'uninorm/nfd'.
46895         * lib/uninorm/nfd.c: New file.
46896         * modules/uninorm/nfd: New file.
46897
46898         New module 'uninorm/u32-normalize'.
46899         * lib/uninorm/u32-normalize.c: New file.
46900         * modules/uninorm/u32-normalize: New file.
46901
46902         New module 'uninorm/u16-normalize'.
46903         * lib/uninorm/u16-normalize.c: New file.
46904         * modules/uninorm/u16-normalize: New file.
46905
46906         New module 'uninorm/u8-normalize'.
46907         * lib/uninorm/u8-normalize.c: New file.
46908         * lib/uninorm/normalize-internal.h: New file.
46909         * lib/uninorm/u-normalize-internal.h: New file.
46910         * modules/uninorm/u8-normalize: New file.
46911
46912         New module 'uninorm/decompose-internal'.
46913         * lib/uninorm/decompose-internal.c: New file.
46914         * modules/uninorm/decompose-internal: New file.
46915
46916         Tests for module 'uninorm/composition'.
46917         * tests/uninorm/test-composition.c: New file.
46918         * modules/uninorm/composition-tests: New file.
46919
46920         New module 'uninorm/composition'.
46921         * lib/uninorm/composition.c: New file.
46922         * lib/uninorm/composition-table.gperf: New file, generated by
46923         gen-uni-tables.
46924         * modules/uninorm/composition: New file.
46925
46926         Tests for module 'uninorm/compat-decomposition'.
46927         * tests/uninorm/test-compat-decomposition.c: New file.
46928         * modules/uninorm/compat-decomposition-tests: New file.
46929
46930         New module 'uninorm/compat-decomposition'.
46931         * lib/uninorm/decompose-internal.h: New file.
46932         * lib/uninorm/compat-decomposition.c: New file.
46933         * modules/uninorm/compat-decomposition: New file.
46934
46935         Tests for module 'uninorm/canonical-decomposition'.
46936         * tests/uninorm/test-canonical-decomposition.c: New file.
46937         * modules/uninorm/canonical-decomposition-tests: New file.
46938
46939         New module 'uninorm/canonical-decomposition'.
46940         * lib/uninorm/canonical-decomposition.c: New file.
46941         * modules/uninorm/canonical-decomposition: New file.
46942
46943         Tests for module 'uninorm/decomposition'.
46944         * tests/uninorm/test-decomposition.c: New file.
46945         * modules/uninorm/decomposition-tests: New file.
46946
46947         New module 'uninorm/decomposition'.
46948         * lib/uninorm/decomposition.c: New file.
46949         * modules/uninorm/decomposition: New file.
46950
46951         New module 'uninorm/decomposition-table'.
46952         * lib/uninorm/decomposition-table.h: New file.
46953         * lib/uninorm/decomposition-table.c: New file.
46954         * lib/uninorm/decomposition-table1.h: New file, generated by
46955         gen-uni-tables.
46956         * lib/uninorm/decomposition-table2.h: New file, generated by
46957         gen-uni-tables.
46958         * modules/uninorm/decomposition-table: New file.
46959
46960         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46961         (UC_DECOMP_*): New enumeration items.
46962         (get_decomposition): New function.
46963         (struct decomp_table): New type.
46964         (output_decomposition, output_decomposition_tables): New functions.
46965         (unicode_composition_exclusions): New variable.
46966         (fill_composition_exclusions, debug_output_composition_tables): New
46967         functions.
46968         (main): Accept one more argument. Invoke fill_composition_exclusions.
46969         Output decomposition and composition tables.
46970
46971         New module 'uninorm/base'.
46972         * lib/uninorm.h: New file.
46973         * lib/unictype.h: Update comment.
46974         * modules/uninorm/base: New file.
46975
46976 2009-02-21  David Lutterkort  <lutter@redhat.com>
46977
46978         Tests for module 'safe-alloc'.
46979         * tests/test-safe-alloc.c: New file.
46980         * modules/safe-alloc-tests: New file.
46981
46982         New module 'safe-alloc'.
46983         * lib/safe-alloc.h: New file.
46984         * lib/safe-alloc.c: New file.
46985         * m4/safe-alloc.m4: New file.
46986         * modules/safe-alloc: New file.
46987         * doc/safe-alloc.texi: New file.
46988         * doc/gnulib.texi: Include it.
46989         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46990         safe-alloc.
46991
46992 2009-02-18  Bruno Haible  <bruno@clisp.org>
46993
46994         Fix link error on non-glibc systems.
46995         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46996         variable.
46997         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46998
46999 2009-02-18  Jim Meyering  <meyering@redhat.com>
47000
47001         fts: avoid used-uninitialized error due to recent change
47002         * lib/fts.c (fts_read): Guard uses of the new member,
47003         parent->fts_n_dirs_remaining, since it's not relevant for
47004         the parent of a directory specified on the command-line.
47005
47006 2009-02-17  James Youngman  <jay@gnu.org>
47007             Bruno Haible  <bruno@clisp.org>
47008
47009         * m4/include_next.m4: Reformulate comment.
47010
47011 2009-02-16  Jim Meyering  <meyering@redhat.com>
47012
47013         fts: add #if guards so that the fts_lgpl module still builds
47014         * lib/fts.c: Guard just-added hash-table-using parts with
47015         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47016         Reported by Simon Josefsson.
47017
47018 2009-02-15  Bruno Haible  <bruno@clisp.org>
47019
47020         * modules/array-mergesort-tests: New file.
47021         * tests/test-array-mergesort.c: New file.
47022
47023         New module 'array-mergesort'.
47024         * modules/array-mergesort: New file.
47025         * lib/array-mergesort.h: New file.
47026
47027 2009-02-15  Bruno Haible  <bruno@clisp.org>
47028
47029         Fix 2009-02-07 commit.
47030         * lib/gen-uni-tables.c (output_predicate, output_category,
47031         output_combclass, output_bidi_category, output_decimal_digit,
47032         output_digit, output_numeric, output_mirror, output_scripts,
47033         output_ident_category, output_simple_mapping): Fix format directives.
47034         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47035
47036 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47037
47038         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47039         fixes are available from IBM.
47040
47041 2009-02-13  Jim Meyering  <meyering@redhat.com>
47042
47043         fts: arrange not to stat non-directories in more cases
47044         This makes GNU find (when it doesn't need to stat each file)
47045         *much* more efficient at traversing reiserfs file systems.
47046         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47047         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47048         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47049         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47050         (leaf_optimization_applies): New function.
47051         (LCO_hash, LCO_compare): New helper functions.
47052         (link_count_optimize_ok): New function.
47053         (fts_stat): Initialize new member (if dir).
47054         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47055         we've just stat'ed a directory.  Skip the stat call when possible.
47056         ---
47057         Note this AFS-related exchange:
47058         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47059         and note find's pioctl call in find/fstype.c.
47060         But that is necessary only if you want to enable the
47061         optimization for AFS, and for now, I don't.
47062
47063         fts: move a function definition "up" (no semantic change)
47064         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47065         "up" to precede upcoming use of a related function.
47066
47067 2009-02-11  Jim Meyering  <meyering@redhat.com>
47068
47069         fts: correct internal computation of nlinks (optimization-related)
47070         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47071         whether the current entry is a directory, so don't test it.
47072
47073 2009-02-10  Bruno Haible  <bruno@clisp.org>
47074
47075         Tests for module 'uniwbrk/ulc-wordbreaks'.
47076         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47077         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47078         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47079
47080         Tests for module 'uniwbrk/u32-wordbreaks'.
47081         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47082         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47083
47084         Tests for module 'uniwbrk/u16-wordbreaks'.
47085         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47086         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47087
47088         Tests for module 'uniwbrk/u8-wordbreaks'.
47089         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47090         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47091
47092 2009-02-10  Bruno Haible  <bruno@clisp.org>
47093
47094         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47095         property.
47096         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47097         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47098         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47099
47100 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47101
47102         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47103         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47104
47105 2009-02-10  Bruno Haible  <bruno@clisp.org>
47106
47107         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47108         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47109         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47110         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47111         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47112         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47113
47114 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47115
47116         * lib/sockets.h (gl_fd_to_handle): New function.
47117
47118         * tests/test-sockets.c: Call gl_fd_to_handle.
47119
47120 2009-02-09  Bruno Haible  <bruno@clisp.org>
47121
47122         * doc/havelib.texi: Document the conventions on bi-arch systems.
47123
47124 2009-02-08  Bruno Haible  <bruno@clisp.org>
47125
47126         Document the AC_LIB_LINKFLAGS macro.
47127         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47128         * doc/gnulib.texi: Include it.
47129
47130 2009-02-08  Bruno Haible  <bruno@clisp.org>
47131
47132         Fix wrong order of sections, compared to TOC.
47133         * doc/gnulib.texi: Include relocatable-maint.texi after the
47134         "Regular expressions" node, not before.
47135
47136 2009-02-08  Bruno Haible  <bruno@clisp.org>
47137
47138         Tests for module 'unicase/totitle'.
47139         * modules/unicase/totitle-tests: New file.
47140
47141         Tests for module 'unicase/tolower'.
47142         * modules/unicase/tolower-tests: New file.
47143
47144         Tests for module 'unicase/toupper'.
47145         * modules/unicase/toupper-tests: New file.
47146         * tests/unicase/test-mapping-part1.h: New file.
47147         * tests/unicase/test-mapping-part2.h: New file.
47148
47149         New module 'unicase/totitle'.
47150         * modules/unicase/totitle: New file.
47151         * lib/unicase/totitle.c: New file.
47152
47153         New module 'unicase/tolower'.
47154         * modules/unicase/tolower: New file.
47155         * lib/unicase/tolower.c: New file.
47156
47157         New module 'unicase/toupper'.
47158         * modules/unicase/toupper: New file.
47159         * lib/unicase/toupper.c: New file.
47160         * lib/unicase/simple-mapping.h: New file.
47161
47162         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47163         (mapping_table): New structure.
47164         (output_simple_mapping): New function.
47165         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47166         * modules/gen-uni-tables (Description): Update.
47167         * lib/unicase/toupper.h: New file, automatically generated by
47168         gen-uni-tables.
47169         * lib/unicase/tolower.h: New file, automatically generated by
47170         gen-uni-tables.
47171         * lib/unicase/totitle.h: New file, automatically generated by
47172         gen-uni-tables.
47173         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47174         gen-uni-tables.
47175         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47176         gen-uni-tables.
47177         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47178         gen-uni-tables.
47179
47180         New module 'unicase/base'.
47181         * modules/unicase/base: New file.
47182         * lib/unicase.h: New file.
47183
47184 2009-02-08  Bruno Haible  <bruno@clisp.org>
47185
47186         New module 'uniwbrk/ulc-wordbreaks'.
47187         * modules/uniwbrk/ulc-wordbreaks: New file.
47188         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47189
47190         New module 'uniwbrk/u32-wordbreaks'.
47191         * modules/uniwbrk/u32-wordbreaks: New file.
47192         * lib/uniwbrk/u32-wordbreaks.c: New file.
47193
47194         New module 'uniwbrk/u16-wordbreaks'.
47195         * modules/uniwbrk/u16-wordbreaks: New file.
47196         * lib/uniwbrk/u16-wordbreaks.c: New file.
47197
47198         New module 'uniwbrk/u8-wordbreaks'.
47199         * modules/uniwbrk/u8-wordbreaks: New file.
47200         * lib/uniwbrk/u8-wordbreaks.c: New file.
47201         * lib/uniwbrk/u-wordbreaks.h: New file.
47202
47203         New module 'uniwbrk/table'.
47204         * modules/uniwbrk/table: New file.
47205         * lib/uniwbrk/wbrktable.h: New file.
47206         * lib/uniwbrk/wbrktable.c: New file.
47207
47208         New module 'uniwbrk/wordbreak-property'.
47209         * modules/uniwbrk/wordbreak-property: New file.
47210         * lib/uniwbrk/wordbreak-property.c: New file.
47211
47212         * lib/gen-uni-tables.c (WBP_*): New enum items.
47213         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47214         (unicode_org_wbp): New variable.
47215         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47216         New functions.
47217         (wbp_table): New structure.
47218         (output_wbp, output_wbrk_tables): New functions.
47219         (main): Accept additional argument. Invoke fill_org_wbp,
47220         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47221         output_wbrk_tables.
47222         * modules/gen-uni-tables (Description): Update.
47223         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47224         gen-uni-tables.
47225
47226         New module 'uniwbrk/base'.
47227         * modules/uniwbrk/base: New file.
47228         * lib/uniwbrk.h: New file.
47229
47230 2009-02-08  Bruno Haible  <bruno@clisp.org>
47231
47232         Update to Unicode 5.1.0.
47233         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47234         U+2185..U+2188.
47235         (is_property_default_ignorable_code_point): Don't include characters
47236         of category Cc or Cs and not-a-characters.
47237         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47238         U+0D79, U+109E, U+109F, U+A60C.
47239         * lib/unictype/bidi_of.h: Regenerated.
47240         * lib/unictype/blocks.h: Regenerated.
47241         * lib/unictype/categ_C.h: Regenerated.
47242         * lib/unictype/categ_Cf.h: Regenerated.
47243         * lib/unictype/categ_Cn.h: Regenerated.
47244         * lib/unictype/categ_L.h: Regenerated.
47245         * lib/unictype/categ_Ll.h: Regenerated.
47246         * lib/unictype/categ_Lm.h: Regenerated.
47247         * lib/unictype/categ_Lo.h: Regenerated.
47248         * lib/unictype/categ_Lu.h: Regenerated.
47249         * lib/unictype/categ_M.h: Regenerated.
47250         * lib/unictype/categ_Mc.h: Regenerated.
47251         * lib/unictype/categ_Me.h: Regenerated.
47252         * lib/unictype/categ_Mn.h: Regenerated.
47253         * lib/unictype/categ_N.h: Regenerated.
47254         * lib/unictype/categ_Nd.h: Regenerated.
47255         * lib/unictype/categ_Nl.h: Regenerated.
47256         * lib/unictype/categ_No.h: Regenerated.
47257         * lib/unictype/categ_P.h: Regenerated.
47258         * lib/unictype/categ_Pd.h: Regenerated.
47259         * lib/unictype/categ_Pe.h: Regenerated.
47260         * lib/unictype/categ_Pf.h: Regenerated.
47261         * lib/unictype/categ_Pi.h: Regenerated.
47262         * lib/unictype/categ_Po.h: Regenerated.
47263         * lib/unictype/categ_Ps.h: Regenerated.
47264         * lib/unictype/categ_S.h: Regenerated.
47265         * lib/unictype/categ_Sk.h: Regenerated.
47266         * lib/unictype/categ_Sm.h: Regenerated.
47267         * lib/unictype/categ_So.h: Regenerated.
47268         * lib/unictype/categ_of.h: Regenerated.
47269         * lib/unictype/combining.h: Regenerated.
47270         * lib/unictype/ctype_alnum.h: Regenerated.
47271         * lib/unictype/ctype_alpha.h: Regenerated.
47272         * lib/unictype/ctype_graph.h: Regenerated.
47273         * lib/unictype/ctype_lower.h: Regenerated.
47274         * lib/unictype/ctype_print.h: Regenerated.
47275         * lib/unictype/ctype_punct.h: Regenerated.
47276         * lib/unictype/ctype_upper.h: Regenerated.
47277         * lib/unictype/decdigit.h: Regenerated.
47278         * lib/unictype/digit.h: Regenerated.
47279         * lib/unictype/mirror.h: Regenerated.
47280         * lib/unictype/numeric.h: Regenerated.
47281         * lib/unictype/pr_alphabetic.h: Regenerated.
47282         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47283         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47284         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47285         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47286         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47287         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47288         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47289         * lib/unictype/pr_combining.h: Regenerated.
47290         * lib/unictype/pr_dash.h: Regenerated.
47291         * lib/unictype/pr_decimal_digit.h: Regenerated.
47292         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47293         * lib/unictype/pr_deprecated.h: Regenerated.
47294         * lib/unictype/pr_diacritic.h: Regenerated.
47295         * lib/unictype/pr_extender.h: Regenerated.
47296         * lib/unictype/pr_format_control.h: Regenerated.
47297         * lib/unictype/pr_grapheme_base.h: Regenerated.
47298         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47299         * lib/unictype/pr_grapheme_link.h: Regenerated.
47300         * lib/unictype/pr_id_continue.h: Regenerated.
47301         * lib/unictype/pr_id_start.h: Regenerated.
47302         * lib/unictype/pr_ideographic.h: Regenerated.
47303         * lib/unictype/pr_ignorable_control.h: Regenerated.
47304         * lib/unictype/pr_lowercase.h: Regenerated.
47305         * lib/unictype/pr_math.h: Regenerated.
47306         * lib/unictype/pr_numeric.h: Regenerated.
47307         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47308         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47309         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47310         * lib/unictype/pr_other_id_continue.h: Regenerated.
47311         * lib/unictype/pr_other_lowercase.h: Regenerated.
47312         * lib/unictype/pr_other_math.h: Regenerated.
47313         * lib/unictype/pr_punctuation.h: Regenerated.
47314         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47315         * lib/unictype/pr_soft_dotted.h: Regenerated.
47316         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47317         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47318         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47319         * lib/unictype/pr_uppercase.h: Regenerated.
47320         * lib/unictype/pr_xid_continue.h: Regenerated.
47321         * lib/unictype/pr_xid_start.h: Regenerated.
47322         * lib/unictype/pr_zero_width.h: Regenerated.
47323         * lib/unictype/scripts.h: Regenerated.
47324         * lib/unictype/scripts_byname.gperf: Regenerated.
47325         * lib/unictype/sy_java_ident.h: Regenerated.
47326         * lib/unilbrk/lbrkprop1.h: Regenerated.
47327         * lib/unilbrk/lbrkprop2.h: Regenerated.
47328         * tests/unictype/test-categ_C.c: Regenerated.
47329         * tests/unictype/test-categ_Cf.c: Regenerated.
47330         * tests/unictype/test-categ_Cn.c: Regenerated.
47331         * tests/unictype/test-categ_L.c: Regenerated.
47332         * tests/unictype/test-categ_Ll.c: Regenerated.
47333         * tests/unictype/test-categ_Lm.c: Regenerated.
47334         * tests/unictype/test-categ_Lo.c: Regenerated.
47335         * tests/unictype/test-categ_Lu.c: Regenerated.
47336         * tests/unictype/test-categ_M.c: Regenerated.
47337         * tests/unictype/test-categ_Mc.c: Regenerated.
47338         * tests/unictype/test-categ_Me.c: Regenerated.
47339         * tests/unictype/test-categ_Mn.c: Regenerated.
47340         * tests/unictype/test-categ_N.c: Regenerated.
47341         * tests/unictype/test-categ_Nd.c: Regenerated.
47342         * tests/unictype/test-categ_Nl.c: Regenerated.
47343         * tests/unictype/test-categ_No.c: Regenerated.
47344         * tests/unictype/test-categ_P.c: Regenerated.
47345         * tests/unictype/test-categ_Pd.c: Regenerated.
47346         * tests/unictype/test-categ_Pe.c: Regenerated.
47347         * tests/unictype/test-categ_Pf.c: Regenerated.
47348         * tests/unictype/test-categ_Pi.c: Regenerated.
47349         * tests/unictype/test-categ_Po.c: Regenerated.
47350         * tests/unictype/test-categ_Ps.c: Regenerated.
47351         * tests/unictype/test-categ_S.c: Regenerated.
47352         * tests/unictype/test-categ_Sk.c: Regenerated.
47353         * tests/unictype/test-categ_Sm.c: Regenerated.
47354         * tests/unictype/test-categ_So.c: Regenerated.
47355         * tests/unictype/test-ctype_alnum.c: Regenerated.
47356         * tests/unictype/test-ctype_alpha.c: Regenerated.
47357         * tests/unictype/test-ctype_graph.c: Regenerated.
47358         * tests/unictype/test-ctype_lower.c: Regenerated.
47359         * tests/unictype/test-ctype_print.c: Regenerated.
47360         * tests/unictype/test-ctype_punct.c: Regenerated.
47361         * tests/unictype/test-ctype_upper.c: Regenerated.
47362         * tests/unictype/test-decdigit.h: Regenerated.
47363         * tests/unictype/test-digit.h: Regenerated.
47364         * tests/unictype/test-numeric.h: Regenerated.
47365         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47366         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47367         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47368         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47369         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47370         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47371         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47372         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47373         * tests/unictype/test-pr_combining.c: Regenerated.
47374         * tests/unictype/test-pr_dash.c: Regenerated.
47375         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47376         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47377         * tests/unictype/test-pr_deprecated.c: Regenerated.
47378         * tests/unictype/test-pr_diacritic.c: Regenerated.
47379         * tests/unictype/test-pr_extender.c: Regenerated.
47380         * tests/unictype/test-pr_format_control.c: Regenerated.
47381         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47382         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47383         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47384         * tests/unictype/test-pr_id_continue.c: Regenerated.
47385         * tests/unictype/test-pr_id_start.c: Regenerated.
47386         * tests/unictype/test-pr_ideographic.c: Regenerated.
47387         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47388         * tests/unictype/test-pr_lowercase.c: Regenerated.
47389         * tests/unictype/test-pr_math.c: Regenerated.
47390         * tests/unictype/test-pr_numeric.c: Regenerated.
47391         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47392         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47393         Regenerated.
47394         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47395         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47396         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47397         * tests/unictype/test-pr_other_math.c: Regenerated.
47398         * tests/unictype/test-pr_punctuation.c: Regenerated.
47399         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47400         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47401         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47402         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47403         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47404         * tests/unictype/test-pr_uppercase.c: Regenerated.
47405         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47406         * tests/unictype/test-pr_xid_start.c: Regenerated.
47407         * tests/unictype/test-pr_zero_width.c: Regenerated.
47408
47409         Update to Unicode 5.1.0.
47410         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47411         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47412         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47413         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47414         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47415         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47416         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47417         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47418         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47419         (nonspacing_table_ind): Update.
47420         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47421
47422         Update to Unicode 5.1.0.
47423         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47424         code transform.
47425         * lib/uniname/uniname.c (unicode_character_name,
47426         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47427         * lib/uniname/uninames.h: Regenerated.
47428         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47429
47430 2009-02-07  Bruno Haible  <bruno@clisp.org>
47431
47432         Merge gen-ctype and gen-lbrk into a single program.
47433         * lib/gen-uni-tables.c: New file, incorporating
47434         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47435         Add directory prefixes to the names of the generated files.
47436         * lib/unictype/gen-ctype.c: Remove file.
47437         * lib/unilbrk/gen-lbrk.c: Remove file.
47438         * modules/gen-uni-tables: New file.
47439         * modules/unictype/gen-ctype: Remove file.
47440         * modules/unilbrk/gen-lbrk: Remove file.
47441
47442 2009-02-07  Bruno Haible  <bruno@clisp.org>
47443
47444         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47445
47446         New module 'unistr/u32-strcoll'.
47447         * modules/unistr/u32-strcoll: New file.
47448         * lib/unistr/u32-strcoll.c: New file.
47449
47450         New module 'unistr/u16-strcoll'.
47451         * modules/unistr/u16-strcoll: New file.
47452         * lib/unistr/u16-strcoll.c: New file.
47453
47454         New module 'unistr/u8-strcoll'.
47455         * modules/unistr/u8-strcoll: New file.
47456         * lib/unistr/u8-strcoll.c: New file.
47457         * lib/unistr/u-strcoll.h: New file.
47458
47459 2009-02-07  Bruno Haible  <bruno@clisp.org>
47460
47461         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47462         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47463         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47464         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47465         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47466         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47467
47468 2009-02-07  Bruno Haible  <bruno@clisp.org>
47469
47470         Make 64-bit clean.
47471         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47472         output_combclass, output_bidi_category, output_decimal_digit,
47473         output_digit, output_numeric, output_mirror, output_scripts,
47474         output_ident_category): Use proper width specifier in format strings.
47475
47476 2009-02-07  Bruno Haible  <bruno@clisp.org>
47477
47478         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47479         failure behaviour.
47480
47481 2009-02-07  Jim Meyering  <meyering@redhat.com>
47482
47483         regex: avoid compilation failure with upcoming gcc-4.4
47484         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47485         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47486         "... error: integer overflow in preprocessor expression".
47487
47488 2009-02-05  Ben Pfaff  <blp@gnu.org>
47489
47490         Fix link errors on Windows when close module is used.
47491         * modules/close: Add $(LIB_CLOSE) to Link section.
47492         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47493         $(LIB_CLOSE) on Windows.
47494
47495 2009-02-05  Jim Meyering  <meyering@redhat.com>
47496
47497         still avoid unused-parameter warnings, but do it cleanly
47498         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47499         (get_fs_usage): Cast to void instead.
47500         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47501         (dev_from_mount_options, read_file_system_list): Cast to void.
47502         Prompted by Bruno Haible.
47503
47504 2009-02-04  Jim Meyering  <meyering@redhat.com>
47505
47506         fsusage.c: correct copyright year
47507         * lib/fsusage.c: Reflect year in which the change is pushed into
47508
47509         avoid misc. warnings
47510         * lib/fsusage.c (UNUSED_PARAM): Define.
47511         (get_fs_usage): Mark parameter "disk" as unused.
47512         * lib/getugroups.c (getgrent): Use "void" in prototype.
47513         * lib/mountlist.c: Mark unused parameters.
47514         (read_file_system_list): Declare a local with "const".
47515         * lib/nanosleep.c (getnow): Declare static.
47516         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47517
47518         dirfd: set errno upon failure
47519         * lib/dirfd.c: Include <errno.h>.
47520         Set errno to ENOTSUP when returning -1.
47521         * modules/dirfd (Depends-on): Add errno.
47522         Suggested by John Kodis <kodis@comcast.net>.
47523
47524 2009-02-01  Bruno Haible  <bruno@clisp.org>
47525
47526         Don't assume sizeof (long) >= sizeof (void *).
47527         * lib/memcmp.c: Include stdint.h.
47528         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47529         srcp2 to 'const byte *'.
47530         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47531         types to uintptr_t.
47532         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47533         * modules/memcmp (Depends-on): Add stdint.
47534         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47535
47536 2009-01-30  Eric Blake  <ebb9@byu.net>
47537
47538         fix more require-before-expand issues
47539         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47540         expand, AC_PROG_AWK.
47541         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47542
47543 2009-01-28  Eric Blake  <ebb9@byu.net>
47544
47545         version-etc: use consistent URL formatting
47546         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47547         Improve formatting.  Use fputs for string without %.
47548
47549 2009-01-28  Jim Meyering  <meyering@redhat.com>
47550
47551         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47552         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47553         "underquoted definition of NAME" from autoconf-2.59.
47554
47555 2009-01-28  Bruno Haible  <bruno@clisp.org>
47556
47557         * doc/gnulib.texi: Add "Obsolete modules" to index.
47558
47559 2009-01-28  Jim Meyering  <meyering@redhat.com>
47560
47561         useless-if-before-free: recognize more variants
47562         * build-aux/useless-if-before-free: Also recognize e.g.,
47563         if (NULL != p) free (p);
47564
47565 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47566
47567         test-getaddrinfo: skip (don't fail) this test when there's no network
47568         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47569         on the presumption that it means you lack network access.
47570
47571 2009-01-26  Jim Meyering  <meyering@redhat.com>
47572
47573         fflush: avoid warnings on modern systems
47574         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47575         pos and result, into scopes where they're used.
47576
47577 2009-01-26  Eric Blake  <ebb9@byu.net>
47578
47579         Silence warning reintroduced by recent extensions patch.
47580         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47581         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47582         autoconf.
47583
47584         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47585         * m4/00gnulib.m4: New file.
47586         * gnulib-tool (func_get_filelist): Always use it.
47587         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47588         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47589
47590 2009-01-25  Bruno Haible  <bruno@clisp.org>
47591
47592         Make test-quotearg work on MacOS X and AIX.
47593         * tests/test-quotearg.sh: New file.
47594         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47595         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47596         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47597         include <libintl.h>.
47598         (fake_locale): Remove variable.
47599         (gettext, dgettext, dcgettext): Remove functions.
47600         (main): Instead of setting a fake locale, set a real locale. Call
47601         textdomain and bindtextdomain.
47602         * modules/quotearg-tests (Files): Add the new files.
47603         (Depends-on): Add gettext, setenv, unsetenv.
47604         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47605         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47606         Augment TESTS_ENVIRONMENT.
47607
47608 2009-01-25  Bruno Haible  <bruno@clisp.org>
47609
47610         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47611         fr_FR.ISO8859-1 locale on MacOS X.
47612         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47613         ja_JP.eucJP locale on MacOS X.
47614         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47615         zh_CN.GB18030 locale on MacOS X.
47616
47617 2009-01-25  Bruno Haible  <bruno@clisp.org>
47618
47619         Avoid link errors on MacOS X 10.3.
47620         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47621         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47622
47623 2009-01-25  Bruno Haible  <bruno@clisp.org>
47624
47625         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47626         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47627         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47628         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47629         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47630         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47631         posix_spawnattr_init, posix_spawnattr_setsigmask,
47632         posix_spawnattr_setflags, posix_spawnattr_destroy.
47633
47634         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47635         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47636         * modules/execute (Files): Remove m4/posix_spawn.m4.
47637         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47638         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47639         posix_spawnattr_init, posix_spawnattr_setsigmask,
47640         posix_spawnattr_setflags, posix_spawnattr_destroy.
47641
47642 2009-01-25  Bruno Haible  <bruno@clisp.org>
47643
47644         * lib/glthread/threadlib.c: Include <stdlib.h>.
47645
47646 2009-01-25  Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/glthread/threadlib.c (dummy): New declaration.
47649
47650 2009-01-25  Bruno Haible  <bruno@clisp.org>
47651
47652         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47653         multibyte characters also for the GB18030 encoding. Don't crash when
47654         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47655
47656 2009-01-25  Bruno Haible  <bruno@clisp.org>
47657
47658         Avoid redefining 'struct random_data' on OSF/1 5.1.
47659         * lib/stdlib.in.h: Include <random.h> if it exists.
47660         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47661         HAVE_RANDOM_H. Include <random.h> when testing whether
47662         'struct random_data' exists.
47663         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47664
47665 2009-01-25  Bruno Haible  <bruno@clisp.org>
47666
47667         Don't install charset.alias on MacOS X >= 10.3.
47668         * lib/localcharset.c (DARWIN7): New macro.
47669         (get_charset_aliases): Hardcode the result for Darwin7.
47670         * modules/localcharset (install-exec-local): Don't install
47671         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47672
47673 2009-01-25  Bruno Haible  <bruno@clisp.org>
47674
47675         Don't install charset.alias on mingw and Cygwin.
47676         * modules/localcharset (install-exec-local): Don't install
47677         charset.alias on mingw and Cygwin, if the file does not yet exist.
47678         The result for these platforms is hardcoded in localcharset.c.
47679
47680 2009-01-25  Bruno Haible  <bruno@clisp.org>
47681
47682         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47683         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47684         before requiring AC_USE_SYSTEM_EXTENSIONS.
47685
47686 2009-01-25  Jim Meyering  <meyering@redhat.com>
47687
47688         c-strtod: avoid warnings
47689         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47690         "assignment discards qualifiers from pointer target type" warnings.
47691
47692 2009-01-24  Bruno Haible  <bruno@clisp.org>
47693
47694         Add support for non-UTF-8 locales on MacOS X.
47695         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47696         canonical encodings. For Darwin 7 and newer, don't map traditional
47697         encodings to UTF-8.
47698         Reported by Vincent Lefevre <vincent@vinc17.org>
47699         at <http://savannah.gnu.org/bugs/?25235>.
47700
47701 2009-01-24  Bruno Haible  <bruno@clisp.org>
47702
47703         * doc/gnulib.texi (Obsolete modules): New section.
47704         Reported by Mike Frysinger <vapier@gentoo.org>.
47705
47706 2009-01-24  Bruno Haible  <bruno@clisp.org>
47707
47708         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47709         (%.dvi): New rule.
47710
47711 2009-01-24  Bruno Haible  <bruno@clisp.org>
47712
47713         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47714         Reported by Eric Blake.
47715
47716 2009-01-24  Bruno Haible  <bruno@clisp.org>
47717
47718         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47719         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47720         Reported by Gary V. Vaughan <gary@gnu.org>.
47721
47722 2009-01-24  Bruno Haible  <bruno@clisp.org>
47723
47724         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47725
47726 2009-01-23  Bruno Haible  <bruno@clisp.org>
47727
47728         Make c-strtod, c-strtold usable in libraries.
47729         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47730         (C_STRTOD): Call strdup instead of xstrdup.
47731         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47732         * modules/c-strtold (Depends-on): Likewise.
47733         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47734         * NEWS: Mention the change.
47735         Reported by Michael Gold <mgold@ncf.ca>.
47736
47737 2009-01-23  Jim Meyering  <meyering@redhat.com>
47738
47739         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47740         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47741         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47742
47743 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47744
47745         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47746         GNU CoreUtils.
47747         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47748         * modules/version-etc (Description): Update.
47749
47750 2009-01-22  Bruno Haible  <bruno@clisp.org>
47751
47752         Cache the C locale object.
47753         * lib/c-strtod.c (c_locale_cache): New variable.
47754         (c_locale): New function.
47755         (C_STRTOD): Use it, and don't call freelocale.
47756         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47757         Suggested by Paolo Bonzini.
47758
47759 2009-01-21  Bruno Haible  <bruno@clisp.org>
47760
47761         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47762         conditions other than overflow.
47763
47764 2009-01-21  Bruno Haible  <bruno@clisp.org>
47765
47766         * lib/c-strtod.c: Include errno.h.
47767         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47768         value from STRTOD_L and STRTOD.
47769
47770 2009-01-21  Bruno Haible  <bruno@clisp.org>
47771         and Jim Meyering  <meyering@redhat.com>
47772
47773         nanosleep: skip configure test (fail it) for apple universal builds
47774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47775         universal builds, assume that nanosleep does not work.
47776         * modules/nanosleep (Depends-on): Add multiarch.
47777
47778         mktime: skip configure test (fail it) for apple universal builds
47779         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47780         universal builds, assume that mktime does not work.
47781         * modules/mktime (Depends-on): Add multiarch.
47782
47783 2009-01-21  Eric Blake  <ebb9@byu.net>
47784
47785         multiarch: avoid expand-before-require warning
47786         * modules/multiarch (configure.ac): Require, rather than expand,
47787         gl_MULTIARCH.
47788         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47789         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47790         enforce that all clients require it.  Partial reversion of
47791         2008-12-29 patch.
47792
47793         error: avoid expand-before-require warning
47794         * modules/errno (configure.ac): Require, rather than expand,
47795         gl_HEADER_ERRNO_H.
47796         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47797         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47798         enforce that all clients require it.
47799
47800         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47801         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47802         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47803         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47804
47805 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47806
47807         Revert:
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-20  Bruno Haible  <bruno@clisp.org>
47814
47815         Make the 'link' module link on Windows NT 4.
47816         * lib/link.c (_WIN32_WINNT): Don't define.
47817         (CreateHardLinkFuncType): New type.
47818         (CreateHardLinkFunc, initialized): New variables.
47819         (initialize): New function.
47820         (link): Invoke CreateHardLink indirectly through the function pointer.
47821
47822 2009-01-20  Bruno Haible  <bruno@clisp.org>
47823
47824         Fix compilation failure on mingw.
47825         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47826
47827 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47828
47829         * doc/c-strtod.texi: Mention a couple of restrictions.
47830
47831 2009-01-20  Jim Meyering  <meyering@redhat.com>
47832
47833         gettimeofday: move more declarations out of functions
47834         * lib/gettimeofday.c: Move extern declarations of tzset and
47835         gmtime out of containing functions.  Prompted by Bruno Haible.
47836
47837 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47838
47839         regex: do not depend on obsolete modules.
47840         * modules/regex: Remove memcmp and memmove.
47841
47842 2009-01-19  Bruno Haible  <bruno@clisp.org>
47843
47844         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47845         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47846         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47847         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47848         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47849
47850 2009-01-19  Bruno Haible  <bruno@clisp.org>
47851
47852         * tests/test-link.c: Include <errno.h>.
47853         (main): Exit with code 77 when a hard link cannot be created due to
47854         the file system.
47855         * tests/test-link.sh: Skip test when a hard link cannot be created due
47856         to the file system.
47857         Suggested by Eric Blake.
47858
47859 2009-01-19  Martin Lambers  <marlam@marlam.de>
47860
47861         * modules/link-tests: New file.
47862         * tests/test-link.sh: New file.
47863         * tests/test-link.c: New file.
47864
47865 2009-01-19  Eric Blake  <ebb9@byu.net>
47866
47867         doc: mention another function added in cygwin 1.7.0
47868         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47869         Another new function in cygwin 1.7.
47870
47871 2009-01-19  Bruno Haible  <bruno@clisp.org>
47872
47873         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47874         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47875         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47876         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47877         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47878         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47879         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47880         * m4/md4.m4 (gl_MD4): Likewise.
47881         * m4/md5.m4 (gl_MD5): Likewise.
47882         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47883         * m4/sha1.m4 (gl_SHA1): Likewise.
47884         * m4/sha256.m4 (gl_SHA256): Likewise.
47885         * m4/sha512.m4 (gl_SHA512): Likewise.
47886
47887 2009-01-19  Bruno Haible  <bruno@clisp.org>
47888
47889         * modules/uniname/uniname-tests (Depends-on): Add progname.
47890         * tests/uniname/test-uninames.c: Include progname.h.
47891         (main): Call set_program_name.
47892
47893         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47894         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47895         (main): Call set_program_name.
47896
47897         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47898         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47899         (main): Call set_program_name.
47900
47901         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47902         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47903         (main): Call set_program_name.
47904
47905         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47906         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47907         (main): Call set_program_name.
47908
47909         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47910         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47911         (main): Call set_program_name.
47912
47913         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47914         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47915         (main): Call set_program_name.
47916
47917         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47918         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47919         (main): Call set_program_name.
47920
47921         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47922         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47923         (main): Call set_program_name.
47924
47925 2009-01-19  Eric Blake  <ebb9@byu.net>
47926
47927         test-unistd: test previous patch
47928         * tests/test-unistd.c: Test *_FILENO macros.
47929
47930         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47931         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47932         Guarantee a definition.
47933         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47934         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47935         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47936         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47937         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47938         Likewise.
47939         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47940         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47941         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47942         Likewise.
47943         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47944         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47945         (STDERR_FILENO): Likewise.
47946         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47947         (STDERR_FILENO): Likewise.
47948         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47949         (STDERR_FILENO): Likewise.
47950         Reported by Elbert Pol.
47951
47952 2009-01-19  Eric Blake  <ebb9@byu.net>
47953
47954         doc: mention more functions added in cygwin 1.7.0
47955         * doc/posix-functions/abort.texi (abort): Update wording related
47956         to cygwin.
47957         * doc/posix-functions/daylight.texi (daylight): Likewise.
47958         * doc/posix-functions/optarg.texi (optarg): Likewise.
47959         * doc/posix-functions/optarg.texi (opterr): Likewise.
47960         * doc/posix-functions/optarg.texi (optind): Likewise.
47961         * doc/posix-functions/optarg.texi (optopt): Likewise.
47962         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47963         worked in 1.5.x, and was withdrawn in 1.7.
47964         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47965         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47966         cygwin versions.
47967         * doc/posix-functions/perror.texi (perror): Likewise.
47968         * doc/posix-functions/printf.texi (printf): Likewise.
47969         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47970         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47971         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47972         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47973         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47974         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47975         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47976         Likewise.
47977         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47978         Likewise.
47979         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47980         this function.
47981         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47982         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47983         Likewise.
47984         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47985         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47986         * doc/posix-functions/confstr.texi (confstr): Likewise.
47987         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47988         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47989         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47990         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47991         * doc/posix-functions/fputws.texi (fputws): Likewise.
47992         * doc/posix-functions/fwide.texi (fwide): Likewise.
47993         * doc/posix-functions/getwc.texi (getwc): Likewise.
47994         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47995         * doc/posix-functions/putwc.texi (putwc): Likewise.
47996         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47997         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47998         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47999         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48000         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48001         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48002         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48003         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48004         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48005         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48006         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48007
48008 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48009
48010         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48011         * lib/ioctl.c: Include <sys/ioctl.h>.
48012
48013 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48014
48015         * modules/getdate-tests (Depends-on): Add progname.
48016         * tests/test-getdate.c: Use progname module, to avoid link errors
48017         on non-glibc systems.
48018
48019 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48020
48021         * modules/filenamecat-tests (Depends-on): Add progname.
48022         * modules/fstrcmp-tests (Depends-on): Likewise.
48023
48024         * tests/test-filenamecat.c: Use progname module, to avoid link
48025         errors on non-glibc systems.
48026         * tests/test-fstrcmp.c: Likewise.
48027
48028 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48029
48030         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48031         * lib/gettimeofday.c: Move extern declaration out of function.
48032
48033 2009-01-18  Bruno Haible  <bruno@clisp.org>
48034
48035         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48036         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48037         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48038
48039 2009-01-18  Bruno Haible  <bruno@clisp.org>
48040
48041         * lib/strftime.c (MEMPCPY): Remove unused macro.
48042         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48043
48044 2009-01-18  Martin Lambers  <marlam@marlam.de>
48045
48046         New module 'link'.
48047         * lib/unistd.in.h (link): New declaration.
48048         * lib/link.c: New file.
48049         * m4/link.m4: New file.
48050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48051         HAVE_LINK.
48052         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48053         * modules/link: New file.
48054         * doc/posix-functions/link.texi: Mention the new module.
48055
48056 2009-01-18  Bruno Haible  <bruno@clisp.org>
48057
48058         * tests/test-avltree_list.c (main): Call set_program_name.
48059         * tests/test-avltree_oset.c (main): Likewise.
48060         * tests/test-obstack-printf.c: Include progname.h.
48061         (main): Call set_program_name.
48062         * tests/test-quotearg.c: Include progname.h.
48063         (main): Call set_program_name.
48064         * tests/test-xmemdup0.c: Include progname.h.
48065         (main): Call set_program_name.
48066
48067 2009-01-18  Bruno Haible  <bruno@clisp.org>
48068
48069         New module 'alphasort'.
48070         * lib/dirent.in.h (alphasort): New declaration.
48071         * lib/alphasort.c: New file, from glibc with modifications.
48072         * m4/alphasort.m4: New file.
48073         * modules/alphasort: New file.
48074         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48075         HAVE_ALPHASORT.
48076         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48077         HAVE_ALPHASORT.
48078         * doc/posix-functions/alphasort.texi: Mention the new module and the
48079         portability problems.
48080
48081 2009-01-18  Bruno Haible  <bruno@clisp.org>
48082
48083         New module 'scandir'.
48084         * lib/dirent.in.h (scandir): New declaration.
48085         * lib/scandir.c: New file, from glibc with modifications.
48086         * m4/scandir.m4: New file.
48087         * modules/scandir: New file.
48088         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48089         HAVE_SCANDIR.
48090         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48091         HAVE_SCANDIR.
48092         * doc/posix-functions/scandir.texi: Mention the new module and the
48093         portability problems.
48094
48095 2009-01-17  Bruno Haible  <bruno@clisp.org>
48096
48097         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48098         Update documentation.
48099         (func_remove_suffix): Escape all dots in the suffix. Update
48100         documentation.
48101         (func_filter_filelist): Update documentation.
48102         Reported by Ralf Wildenhues.
48103
48104 2009-01-17  Bruno Haible  <bruno@clisp.org>
48105
48106         * modules/dprintf-posix-tests: New file.
48107         * tests/test-dprintf-posix.sh: New file.
48108         * tests/test-dprintf-posix.c: New file.
48109
48110         New modules 'dprintf', 'dprintf-posix'.
48111         * lib/stdio.in.h (dprintf): New declaration.
48112         * lib/dprintf.c: New file.
48113         * m4/dprintf.m4: New file.
48114         * m4/dprintf-posix.m4: New file.
48115         * modules/dprintf: New file.
48116         * modules/dprintf-posix: New file.
48117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48118         HAVE_DPRINTF, REPLACE_DPRINTF.
48119         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48120         HAVE_DPRINTF, REPLACE_DPRINTF.
48121         * doc/posix-functions/dprintf.texi: Mention the new modules.
48122
48123 2009-01-17  Bruno Haible  <bruno@clisp.org>
48124
48125         * modules/vdprintf-posix-tests: New file.
48126         * tests/test-vdprintf-posix.sh: New file.
48127         * tests/test-vdprintf-posix.c: New file.
48128
48129         New modules 'vdprintf', 'vdprintf-posix'.
48130         * lib/stdio.in.h (vdprintf): New declaration.
48131         * lib/vdprintf.c: New file.
48132         * m4/vdprintf.m4: New file.
48133         * m4/vdprintf-posix.m4: New file.
48134         * modules/vdprintf: New file.
48135         * modules/vdprintf-posix: New file.
48136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48137         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48138         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48139         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48140         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48141
48142 2009-01-17  Bruno Haible  <bruno@clisp.org>
48143
48144         Fix replacement of fopen on mingw.
48145         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48146         mingw.
48147
48148 2009-01-17  Bruno Haible  <bruno@clisp.org>
48149
48150         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48151         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48152
48153 2009-01-17  Bruno Haible  <bruno@clisp.org>
48154
48155         Avoid test-fflush2.sh failure on mingw.
48156         * tests/test-fflush2.c: Include binary-io.h.
48157         (main): Put standard input into binary mode.
48158         * modules/fflush-tests (Depends-on): Add binary-io.
48159
48160 2009-01-17  Bruno Haible  <bruno@clisp.org>
48161
48162         * lib/wchar.in.h: In another particular situation, include only the
48163         system's <wchar.h> file.
48164         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48165         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48166         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48167
48168 2009-01-17  Bruno Haible  <bruno@clisp.org>
48169
48170         Support for stripping executables in --enable-relocatable.
48171         * build-aux/install-reloc: Expect one more argument, or an environment
48172         variable RELOC_STRIP_PROG. If set, strip the destination program and
48173         its wrapper.
48174         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48175         RELOC_STRIP_PROG.
48176         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48177         to set RELOCATABLE_STRIP.
48178         * NEWS: Mention the new Makefile requirement.
48179
48180 2009-01-17  Bruno Haible  <bruno@clisp.org>
48181
48182         * build-aux/install-reloc: Remove debugging information left over by
48183         C compiler on MacOS X.
48184
48185 2009-01-17  Bruno Haible  <bruno@clisp.org>
48186
48187         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48188         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48189         _NSGetExecutablePath.
48190
48191 2009-01-16  Jim Meyering  <meyering@redhat.com>
48192
48193         strerror: avoid warnings about discarding "const"
48194         * lib/strerror.c (rpl_strerror): Instead of returning a const
48195         string from each and every "case", use a variable, and add a single
48196         cast after the switch.
48197
48198 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48199
48200         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48201
48202 2009-01-16  Bruno Haible  <bruno@clisp.org>
48203
48204         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48205         array initializer syntax that also works in C++ mode.
48206         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48207
48208 2009-01-16  Jim Meyering  <meyering@redhat.com>
48209
48210         poll: suppress a warning
48211         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48212         to ignore "...unsigned expression < 0 is always false" warnings.
48213
48214 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48215
48216         poll: remove declarations of unused variables
48217         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48218         sockbuf and optlen.
48219
48220 2009-01-15  Bruno Haible  <bruno@clisp.org>
48221
48222         Make fflush-after-ungetc POSIX compliant on BSD systems.
48223         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48224         (clear_ungetc_buffer): Implement also for other systems.
48225         (rpl_fflush): On glibc systems, invoke
48226         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48227         clear_ungetc_buffer after fetching the stream's position, not before.
48228
48229 2009-01-15  Bruno Haible  <bruno@clisp.org>
48230
48231         Make fflush-after-ungetc POSIX compliant on glibc systems.
48232         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48233         after ungetc.
48234         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48235         (rpl_fflush): On glibc systems, simply call the system's fflush
48236         function after clearing the ungetc buffer.
48237         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48238         Instead, lseek only to the end of file, then use the system's fseeko
48239         for the rest. On glibc systems, reset the EOF indicator bit.
48240
48241 2009-01-15  Jim Meyering  <meyering@redhat.com>
48242
48243         openmp.m4: revert quote-adding change, for portability to older autoconf
48244         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48245         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48246         Simon Josefsson noticed the problem when using autoconf-2.61.
48247
48248 2009-01-15  Bruno Haible  <bruno@clisp.org>
48249
48250         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48251         * tests/test-fflush2.c (ASSERT): Always fail.
48252         (main): Add two tests for fflush() after ungetc(), taking into account
48253         the Austin Group's clarification.
48254         Suggested by Eric Blake.
48255
48256 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48257
48258         mktime.m4: remove K&R-style function prototypes
48259         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48260         for the Sun C++ compiler.
48261
48262 2009-01-14  Bruno Haible  <bruno@clisp.org>
48263
48264         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48265         while including <wchar.h>.
48266         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48267         the system's <wchar.h> file.
48268         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48269
48270 2009-01-14  Bruno Haible  <bruno@clisp.org>
48271
48272         * m4/csharp.m4: Don't mention gettext on the serial number line.
48273         * m4/csharpexec.m4: Likewise.
48274         * m4/eaccess.m4: Likewise.
48275         * m4/javaexec.m4: Likewise.
48276         * m4/sig_atomic_t.m4: Likewise.
48277         * m4/tmpdir.m4: Likewise.
48278         * m4/intldir.m4: Bump gettext version.
48279         * m4/lib-ld.m4: Likewise.
48280
48281 2009-01-14  Bruno Haible  <bruno@clisp.org>
48282
48283         * lib/progname.c (set_program_name): Add more comments.
48284         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48285
48286 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48287
48288         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48289         were sys/stat.h does not define it.
48290
48291 2009-01-14  Jim Meyering  <meyering@redhat.com>
48292
48293         many *.m4 files: improve m4 quoting
48294         99% of this change was performed by running the following commands:
48295         git ls-files | grep '\.m4$' | xargs perl -pi \
48296           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48297           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48298           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48299           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48300         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48301         The remainder were to add Copyright dates, increment serial numbers,
48302         undo some changes in comments, exclude m4/intl.m4, and add quotes
48303         around the "1" in ",1" where the unusual spacing prohibited the
48304         above regexps from doing the job.  For more details, see
48305         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48306         * m4/acl.m4: Modified.
48307         * m4/afs.m4: Likewise.
48308         * m4/alloca.m4: Likewise.
48309         * m4/argp.m4: Likewise.
48310         * m4/argz.m4: Likewise.
48311         * m4/atexit.m4: Likewise.
48312         * m4/bison-i18n.m4: Likewise.
48313         * m4/bison.m4: Likewise.
48314         * m4/byteswap.m4: Likewise.
48315         * m4/c-stack.m4: Likewise.
48316         * m4/c-strtod.m4: Likewise.
48317         * m4/calloc.m4: Likewise.
48318         * m4/canonicalize-lgpl.m4: Likewise.
48319         * m4/chown.m4: Likewise.
48320         * m4/clock_time.m4: Likewise.
48321         * m4/codeset.m4: Likewise.
48322         * m4/copy-file.m4: Likewise.
48323         * m4/csharp.m4: Likewise.
48324         * m4/csharpcomp.m4: Likewise.
48325         * m4/csharpexec.m4: Likewise.
48326         * m4/d-ino.m4: Likewise.
48327         * m4/d-type.m4: Likewise.
48328         * m4/dirfd.m4: Likewise.
48329         * m4/double-slash-root.m4: Likewise.
48330         * m4/eaccess.m4: Likewise.
48331         * m4/eealloc.m4: Likewise.
48332         * m4/environ.m4: Likewise.
48333         * m4/errno_h.m4: Likewise.
48334         * m4/euidaccess.m4: Likewise.
48335         * m4/execute.m4: Likewise.
48336         * m4/fatal-signal.m4: Likewise.
48337         * m4/fchdir.m4: Likewise.
48338         * m4/fcntl_h.m4: Likewise.
48339         * m4/fileblocks.m4: Likewise.
48340         * m4/filenamecat.m4: Likewise.
48341         * m4/findprog.m4: Likewise.
48342         * m4/flexmember.m4: Likewise.
48343         * m4/fnmatch.m4: Likewise.
48344         * m4/fopen.m4: Likewise.
48345         * m4/fpending.m4: Likewise.
48346         * m4/fprintf-posix.m4: Likewise.
48347         * m4/free.m4: Likewise.
48348         * m4/frexp.m4: Likewise.
48349         * m4/frexpl.m4: Likewise.
48350         * m4/fsusage.m4: Likewise.
48351         * m4/ftruncate.m4: Likewise.
48352         * m4/gc-camellia.m4: Likewise.
48353         * m4/gc-random.m4: Likewise.
48354         * m4/gc.m4: Likewise.
48355         * m4/getaddrinfo.m4: Likewise.
48356         * m4/getcwd-abort-bug.m4: Likewise.
48357         * m4/getcwd-path-max.m4: Likewise.
48358         * m4/getdate.m4: Likewise.
48359         * m4/getdomainname.m4: Likewise.
48360         * m4/getgroups.m4: Likewise.
48361         * m4/gethostname.m4: Likewise.
48362         * m4/gethrxtime.m4: Likewise.
48363         * m4/getline.m4: Likewise.
48364         * m4/getloadavg.m4: Likewise.
48365         * m4/getndelim2.m4: Likewise.
48366         * m4/getpass.m4: Likewise.
48367         * m4/gettext.m4: Likewise.
48368         * m4/gettime.m4: Likewise.
48369         * m4/gettimeofday.m4: Likewise.
48370         * m4/gnulib-common.m4: Likewise.
48371         * m4/group-member.m4: Likewise.
48372         * m4/host-os.m4: Likewise.
48373         * m4/iconv.m4: Likewise.
48374         * m4/iconv_open.m4: Likewise.
48375         * m4/inet_ntop.m4: Likewise.
48376         * m4/inet_pton.m4: Likewise.
48377         * m4/inline.m4: Likewise.
48378         * m4/intldir.m4: Likewise.
48379         * m4/intlmacosx.m4: Likewise.
48380         * m4/intmax.m4: Likewise.
48381         * m4/intmax_t.m4: Likewise.
48382         * m4/inttypes.m4: Likewise.
48383         * m4/inttypes_h.m4: Likewise.
48384         * m4/inttypes-pri.m4: Likewise.
48385         * m4/isapipe.m4: Likewise.
48386         * m4/isnand.m4: Likewise.
48387         * m4/isnanf.m4: Likewise.
48388         * m4/isnanl.m4: Likewise.
48389         * m4/javacomp.m4: Likewise.
48390         * m4/javaexec.m4: Likewise.
48391         * m4/jm-winsz1.m4: Likewise.
48392         * m4/jm-winsz2.m4: Likewise.
48393         * m4/lchown.m4: Likewise.
48394         * m4/lcmessage.m4: Likewise.
48395         * m4/ldexpl.m4: Likewise.
48396         * m4/lib-ld.m4: Likewise.
48397         * m4/lib-link.m4: Likewise.
48398         * m4/libsigsegv.m4: Likewise.
48399         * m4/link-follow.m4: Likewise.
48400         * m4/localcharset.m4: Likewise.
48401         * m4/locale-fr.m4: Likewise.
48402         * m4/locale-ja.m4: Likewise.
48403         * m4/locale-tr.m4: Likewise.
48404         * m4/locale-zh.m4: Likewise.
48405         * m4/lock.m4: Likewise.
48406         * m4/longlong.m4: Likewise.
48407         * m4/ls-mntd-fs.m4: Likewise.
48408         * m4/lstat.m4: Likewise.
48409         * m4/malloc.m4: Likewise.
48410         * m4/mathl.m4: Likewise.
48411         * m4/mbrtowc.m4: Likewise.
48412         * m4/mbstate_t.m4: Likewise.
48413         * m4/mbswidth.m4: Likewise.
48414         * m4/memchr.m4: Likewise.
48415         * m4/memcmp.m4: Likewise.
48416         * m4/memcpy.m4: Likewise.
48417         * m4/memmem.m4: Likewise.
48418         * m4/memmove.m4: Likewise.
48419         * m4/mempcpy.m4: Likewise.
48420         * m4/memrchr.m4: Likewise.
48421         * m4/memset.m4: Likewise.
48422         * m4/minmax.m4: Likewise.
48423         * m4/mkdir-slash.m4: Likewise.
48424         * m4/mkdtemp.m4: Likewise.
48425         * m4/mktime.m4: Likewise.
48426         * m4/mmap-anon.m4: Likewise.
48427         * m4/mountlist.m4: Likewise.
48428         * m4/nanosleep.m4: Likewise.
48429         * m4/nls.m4: Likewise.
48430         * m4/nocrash.m4: Likewise.
48431         * m4/open.m4: Likewise.
48432         * m4/openat.m4: Likewise.
48433         * m4/openmp.m4: Likewise.
48434         * m4/pathmax.m4: Likewise.
48435         * m4/perl.m4: Likewise.
48436         * m4/physmem.m4: Likewise.
48437         * m4/pipe.m4: Likewise.
48438         * m4/po.m4: Likewise.
48439         * m4/poll.m4: Likewise.
48440         * m4/posixtm.m4: Likewise.
48441         * m4/posixver.m4: Likewise.
48442         * m4/printf-frexp.m4: Likewise.
48443         * m4/printf-frexpl.m4: Likewise.
48444         * m4/printf-posix.m4: Likewise.
48445         * m4/printf-posix-rpl.m4: Likewise.
48446         * m4/printf.m4: Likewise.
48447         * m4/progtest.m4: Likewise.
48448         * m4/putenv.m4: Likewise.
48449         * m4/readline.m4: Likewise.
48450         * m4/readlink.m4: Likewise.
48451         * m4/readutmp.m4: Likewise.
48452         * m4/realloc.m4: Likewise.
48453         * m4/regex.m4: Likewise.
48454         * m4/relocatable.m4: Likewise.
48455         * m4/relocatable-lib.m4: Likewise.
48456         * m4/rename-dest-slash.m4: Likewise.
48457         * m4/rename.m4: Likewise.
48458         * m4/rmdir-errno.m4: Likewise.
48459         * m4/rmdir.m4: Likewise.
48460         * m4/roundf.m4: Likewise.
48461         * m4/roundl.m4: Likewise.
48462         * m4/rpmatch.m4: Likewise.
48463         * m4/save-cwd.m4: Likewise.
48464         * m4/selinux-selinux-h.m4: Likewise.
48465         * m4/setenv.m4: Likewise.
48466         * m4/settime.m4: Likewise.
48467         * m4/sig2str.m4: Likewise.
48468         * m4/sig_atomic_t.m4: Likewise.
48469         * m4/signalblocking.m4: Likewise.
48470         * m4/signbit.m4: Likewise.
48471         * m4/sigpipe.m4: Likewise.
48472         * m4/sockets.m4: Likewise.
48473         * m4/sockpfaf.m4: Likewise.
48474         * m4/st_dm_mode.m4: Likewise.
48475         * m4/stat-time.m4: Likewise.
48476         * m4/stdbool.m4: Likewise.
48477         * m4/stdint.m4: Likewise.
48478         * m4/stdint_h.m4: Likewise.
48479         * m4/stpcpy.m4: Likewise.
48480         * m4/stpncpy.m4: Likewise.
48481         * m4/strcase.m4: Likewise.
48482         * m4/strchrnul.m4: Likewise.
48483         * m4/strcspn.m4: Likewise.
48484         * m4/strdup.m4: Likewise.
48485         * m4/strftime.m4: Likewise.
48486         * m4/strndup.m4: Likewise.
48487         * m4/strnlen.m4: Likewise.
48488         * m4/strpbrk.m4: Likewise.
48489         * m4/strptime.m4: Likewise.
48490         * m4/strsep.m4: Likewise.
48491         * m4/strtod.m4: Likewise.
48492         * m4/strtoimax.m4: Likewise.
48493         * m4/strtok_r.m4: Likewise.
48494         * m4/strtol.m4: Likewise.
48495         * m4/strtoll.m4: Likewise.
48496         * m4/strtoul.m4: Likewise.
48497         * m4/strtoull.m4: Likewise.
48498         * m4/strtoumax.m4: Likewise.
48499         * m4/strverscmp.m4: Likewise.
48500         * m4/threadlib.m4: Likewise.
48501         * m4/timegm.m4: Likewise.
48502         * m4/tm_gmtoff.m4: Likewise.
48503         * m4/tmpdir.m4: Likewise.
48504         * m4/tmpfile.m4: Likewise.
48505         * m4/tzset.m4: Likewise.
48506         * m4/uintmax_t.m4: Likewise.
48507         * m4/unlinkdir.m4: Likewise.
48508         * m4/unlocked-io.m4: Likewise.
48509         * m4/uptime.m4: Likewise.
48510         * m4/userspec.m4: Likewise.
48511         * m4/utimbuf.m4: Likewise.
48512         * m4/utime.m4: Likewise.
48513         * m4/utimes-null.m4: Likewise.
48514         * m4/utimes.m4: Likewise.
48515         * m4/vararrays.m4: Likewise.
48516         * m4/vasnprintf.m4: Likewise.
48517         * m4/vfprintf-posix.m4: Likewise.
48518         * m4/vprintf-posix.m4: Likewise.
48519         * m4/wait-process.m4: Likewise.
48520         * m4/wchar_t.m4: Likewise.
48521         * m4/wint_t.m4: Likewise.
48522         * m4/write-any-file.m4: Likewise.
48523         * m4/yield.m4: Likewise.
48524
48525 2009-01-13  Bruno Haible  <bruno@clisp.org>
48526
48527         Avoid test-copy-file.sh failures when ACL support insufficient.
48528         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48529         TESTS_ENVIRONMENT.
48530         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48531         Reported by Jim Meyering.
48532
48533 2009-01-13  Bruno Haible  <bruno@clisp.org>
48534
48535         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48536         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48537         * modules/unistdio/u8-printf-parse (Files): Likewise.
48538         * modules/unistdio/u32-printf-parse (Files): Likewise.
48539         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48540
48541 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48542
48543         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48544         and m4/inttypes_h.m4 too.
48545
48546 2009-01-12  Eric Blake  <ebb9@byu.net>
48547
48548         tests: IRIX 6.2 cc can't compile -0.0 into .data
48549         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48550         rather than at compile-time.
48551         * tests/test-floorl.c (minus_zero): Likewise.
48552         * tests/test-frexpl.c (minus_zero): Likewise.
48553         * tests/test-isnan.c (minus_zerol): Likewise.
48554         * tests/test-isnanl.h (minus_zero): Likewise.
48555         * tests/test-ldexpl.c (minus_zero): Likewise.
48556         * tests/test-roundl.c (minus_zero): Likewise.
48557         * tests/test-signbit.c (minus_zerol): Likewise.
48558         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48559         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48560         * tests/test-truncl.c (minus_zero): Likewise.
48561         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48562         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48563         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48564
48565 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48566
48567         regex: fix glibc bug 9697
48568         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48569         handling.
48570
48571 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48572
48573         regex: fix glibc bug 697
48574         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48575         being NULL also if there are no backreferences.
48576
48577 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48578
48579         regex: merge glibc changes
48580         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48581         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48582         re_string_skip_chars, re_string_reconstruct): Likewise.
48583         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48584
48585 2009-01-07  Jim Meyering  <meyering@redhat.com>
48586
48587         poll: filter through cppi
48588         * lib/poll.c: Indent cpp directives to reflect nesting.
48589
48590 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48591
48592         poll: don't return uninitialized
48593         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48594
48595 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48596
48597         avoid compile failure on AIX 6.1
48598         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48599         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48600
48601 2009-01-04  Jim Meyering  <meyering@redhat.com>
48602
48603         remove duplicate inclusion of <stdio.h>
48604         * tests/test-fprintf-posix.c: Likewise.
48605         * tests/test-printf-posix.c: Likewise.
48606         * tests/test-snprintf-posix.c: Likewise.
48607         * tests/test-sprintf-posix.c: Likewise.
48608         * tests/test-vasprintf-posix.c: Likewise.
48609         * tests/test-vfprintf-posix.c: Likewise.
48610         * tests/test-vprintf-posix.c: Likewise.
48611         * tests/test-vsnprintf-posix.c: Likewise.
48612         * tests/test-vsprintf-posix.c: Likewise.
48613
48614 2009-01-03  Jim Meyering  <meyering@redhat.com>
48615
48616         gnulib-tool: fix sed-based filtering
48617         * gnulib-tool (func_filter_filelist): Remove extra backslash
48618         in sed_fff_filter definition.
48619
48620 2009-01-02  Jim Meyering  <meyering@redhat.com>
48621
48622         strftime: avoid compilation failure on Solaris 2.6
48623         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48624         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48625         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48626         be available.  Reported by Tom G. Christensen.  Details in
48627         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48628
48629 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48630             Bruno Haible  <bruno@clisp.org>
48631
48632         Speed up gnulib-tool by doing more string processing through shell
48633         built-ins.
48634         * gnulib-tool (fast_func_append): New variable.
48635         (func_remove_prefix, func_remove_suffix): New functions.
48636         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48637         (func_filter_filelist): New function.
48638         (func_get_dependencies): Use func_remove_suffix instead of sed.
48639         (func_get_automake_snippet): Use func_filter_filelist instead of a
48640         subshell and sed invocation.
48641
48642 2009-01-01  Bruno Haible  <bruno@clisp.org>
48643
48644         Fix a security bug.
48645         * gnulib-tool (func_import, import, update): Don't allow the characters
48646         '"', '$', '`', '\' in macro arguments that become part of commands that
48647         are evaluated.
48648
48649 2009-01-01  Bruno Haible  <bruno@clisp.org>
48650
48651         * gnulib-tool (func_reset_sigpipe): Add more comments.
48652
48653 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48654
48655         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48656         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48657         already know the answer.
48658
48659 2009-01-01  Jim Meyering  <meyering@redhat.com>
48660
48661         * lib/version-etc.c (version_etc_va): Update copyright year.
48662
48663 2008-12-30  Bruno Haible  <bruno@clisp.org>
48664
48665         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48666         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48667         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48668
48669 2008-12-29  Eric Blake  <ebb9@byu.net>
48670
48671         multiarch: avoid autoconf AC_REQUIRE bug
48672         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48673         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48674         2.63 and older.
48675         Reported by Bruno Haible, and analyzed in
48676         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48677
48678 2008-12-29  Bruno Haible  <bruno@clisp.org>
48679
48680         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48681         files in subdirectories correctly.
48682         Reported by Ralf Wildenhues.
48683
48684 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48685
48686         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48687         rather than 'join FILE -', for Solaris join.
48688
48689 2008-12-29  Bruno Haible  <bruno@clisp.org>
48690
48691         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48692         quoting.
48693         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48694         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48695         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48696         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48697         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48698         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48699         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48700         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48701         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48702         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48703         * m4/nls.m4 (AM_NLS): Likewise.
48704         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48705         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48706         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48707         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48708         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48709         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48710         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48711         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48712         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48713         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48714         * m4/xsize.m4 (gl_XSIZE): Likewise.
48715         Suggested by Jim Meyering.
48716
48717 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48718
48719         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48720         * lib/parse-duration.c: use a switch instead of cascading if's.
48721
48722 2008-12-29  Eric Blake  <ebb9@byu.net>
48723
48724         wchar.h: supply WEOF on Irix 5.3
48725         * lib/wchar.in.h (wint_t): Also supply WEOF.
48726         * lib/wctype.in.h (wint_t): Likewise.
48727         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48728         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48729         Reported by Tom G. Christensen.
48730
48731 2008-12-26  Bruno Haible  <bruno@clisp.org>
48732
48733         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48734         i486, i586, i686.
48735
48736 2008-12-26  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48739
48740 2008-12-26  Bruno Haible  <bruno@clisp.org>
48741
48742         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48743         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48744         not __STDC_CONSTANT_MACROS.
48745         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48746
48747 2008-12-25  Bruno Haible  <bruno@clisp.org>
48748
48749         Add support for universal builds to vasnprintf.
48750         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48751         universal builds, guess no.
48752         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48753         * modules/vasprintf-posix (Depends-on): Likewise.
48754         * modules/fprintf-posix (Depends-on): Likewise.
48755         * modules/vfprintf-posix (Depends-on): Likewise.
48756         * modules/snprintf-posix (Depends-on): Likewise.
48757         * modules/vsnprintf-posix (Depends-on): Likewise.
48758         * modules/sprintf-posix (Depends-on): Likewise.
48759         * modules/vsprintf-posix (Depends-on): Likewise.
48760         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48761         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48762         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48763         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48764         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48765         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48766         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48767
48768         Add support for universal builds to <inttypes.h>.
48769         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48770         _SCNu64_PREFIX): In Apple
48771         universal builds, define directly, using _LP64.
48772         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48773         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48774         * modules/inttypes (Depends-on): Add multiarch.
48775         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48776
48777         Add support for universal builds to <stdint.h>.
48778         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48779         universal builds, define directly, using _LP64.
48780         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48781         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48782         and size_t.
48783         * modules/stdint (Depends-on): Add multiarch.
48784         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48785
48786         New module 'multiarch'.
48787         * modules/multiarch: New file.
48788         * m4/multiarch.m4: New file.
48789
48790 2008-12-25  Bruno Haible  <bruno@clisp.org>
48791
48792         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48793
48794 2008-12-25  Bruno Haible  <bruno@clisp.org>
48795
48796         * modules/btowc (License): Relicense under LGPLv2+.
48797         * modules/mbsinit (License): Likewise.
48798         * modules/mbrtowc (License): Likewise.
48799         * modules/wcrtomb (License): Likewise.
48800         * modules/streq (License): Likewise.
48801         Reported by David Lutterkort <lutter@redhat.com>.
48802
48803 2008-12-23  Bruno Haible  <bruno@clisp.org>
48804
48805         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48806
48807 2008-12-23  Bruno Haible  <bruno@clisp.org>
48808
48809         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48810         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48811         GETADDRINFO_LIB, not in LIBS.
48812         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48813         * modules/canon-host (Link): Likewise.
48814         * NEWS: Mention the change.
48815         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48816         GETADDRINFO_LIB.
48817
48818 2008-12-22  Bruno Haible  <bruno@clisp.org>
48819
48820         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48821         * doc/posix-functions/iswalpha_l.texi: Likewise.
48822         * doc/posix-functions/iswblank_l.texi: Likewise.
48823         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48824         * doc/posix-functions/iswctype_l.texi: Likewise.
48825         * doc/posix-functions/iswdigit_l.texi: Likewise.
48826         * doc/posix-functions/iswgraph_l.texi: Likewise.
48827         * doc/posix-functions/iswlower_l.texi: Likewise.
48828         * doc/posix-functions/iswprint_l.texi: Likewise.
48829         * doc/posix-functions/iswpunct_l.texi: Likewise.
48830         * doc/posix-functions/iswspace_l.texi: Likewise.
48831         * doc/posix-functions/iswupper_l.texi: Likewise.
48832         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48833         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48834         * doc/posix-functions/open_wmemstream.texi: Likewise.
48835         * doc/posix-functions/swscanf.texi: Likewise.
48836         * doc/posix-functions/towctrans_l.texi: Likewise.
48837         * doc/posix-functions/towlower.texi: Likewise.
48838         * doc/posix-functions/towlower_l.texi: Likewise.
48839         * doc/posix-functions/towupper.texi: Likewise.
48840         * doc/posix-functions/towupper_l.texi: Likewise.
48841         * doc/posix-functions/vfwprintf.texi: Likewise.
48842         * doc/posix-functions/vfwscanf.texi: Likewise.
48843         * doc/posix-functions/vswscanf.texi: Likewise.
48844         * doc/posix-functions/vwprintf.texi: Likewise.
48845         * doc/posix-functions/vwscanf.texi: Likewise.
48846         * doc/posix-functions/wcpcpy.texi: Likewise.
48847         * doc/posix-functions/wcpncpy.texi: Likewise.
48848         * doc/posix-functions/wcscasecmp.texi: Likewise.
48849         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48850         * doc/posix-functions/wcscoll_l.texi: Likewise.
48851         * doc/posix-functions/wcsdup.texi: Likewise.
48852         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48853         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48854         * doc/posix-functions/wcsnlen.texi: Likewise.
48855         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48856         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48857         * doc/posix-functions/wctrans_l.texi: Likewise.
48858         * doc/posix-functions/wctype_l.texi: Likewise.
48859         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48860         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48861         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48862         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48863         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48864         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48865         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48866         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48867         * doc/glibc-functions/wcschrnul.texi: Likewise.
48868         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48869         * doc/glibc-functions/wcstod_l.texi: Likewise.
48870         * doc/glibc-functions/wcstof_l.texi: Likewise.
48871         * doc/glibc-functions/wcstol_l.texi: Likewise.
48872         * doc/glibc-functions/wcstold_l.texi: Likewise.
48873         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48874         * doc/glibc-functions/wcstoq.texi: Likewise.
48875         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48876         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48877         * doc/glibc-functions/wcstouq.texi: Likewise.
48878         * doc/glibc-functions/wmempcpy.texi: Likewise.
48879
48880 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48881             Eric Blake  <ebb9@byu.net>
48882             Paolo Bonzini  <bonzini@gnu.org>
48883             Bruno Haible  <bruno@clisp.org>
48884
48885         Make c-stack work on Haiku.
48886         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48887         (c_stack_action): Use SA_ONSTACK flag.
48888
48889 2008-12-22  Bruno Haible  <bruno@clisp.org>
48890
48891         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48892
48893 2008-12-22  Bruno Haible  <bruno@clisp.org>
48894
48895         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48896         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48897         being overridden.
48898         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48899         New macros.
48900         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48901         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48902         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48903         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48904
48905 2008-12-22  Bruno Haible  <bruno@clisp.org>
48906
48907         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48908         from test code.
48909
48910 2008-12-22  Eric Blake  <ebb9@byu.net>
48911
48912         Avoid gcc warnings on cygwin.
48913         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48914         Avoid unused variable.
48915         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48916         Likewise.
48917
48918 2008-12-22  Bruno Haible  <bruno@clisp.org>
48919
48920         Remove HAVE_MBRTOWC conditionals.
48921         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48922         (mbscasecmp): Assume mbrtowc function.
48923         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48924         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48925         * lib/mbschr.c: Include mbuiter.h unconditionally.
48926         (mbschr): Assume mbrtowc function.
48927         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48928         (mbscspn): Assume mbrtowc function.
48929         * lib/mbslen.c: Include mbuiter.h unconditionally.
48930         (mbslen): Assume mbrtowc function.
48931         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48932         (mbsncasecmp): Assume mbrtowc function.
48933         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48934         (mbsnlen): Assume mbrtowc function.
48935         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48936         (mbspbrk): Assume mbrtowc function.
48937         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48938         (mbspcasecmp): Assume mbrtowc function.
48939         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48940         (mbsrchr): Assume mbrtowc function.
48941         * lib/mbssep.c: Include mbuiter.h unconditionally.
48942         (mbssep): Assume mbrtowc function.
48943         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48944         (mbsspn): Assume mbrtowc function.
48945         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48946         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48947         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48948         (mbstok_r): Assume mbrtowc function.
48949         * lib/propername.c: Include mbuiter.h unconditionally.
48950         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48951         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48952         (trim2): Assume mbrtowc function.
48953         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48954         (mbsnwidth): Assume mbrtowc function.
48955         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48956         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48957         fallback definitions.
48958         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48959
48960 2008-12-22  Bruno Haible  <bruno@clisp.org>
48961
48962         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48963
48964 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48965
48966         * modules/regex: Request emulations for the mb*/wc* functions we need.
48967         * m4/regex.m4: Don't look for those functions here.
48968         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48969
48970 2008-12-22  Bruno Haible  <bruno@clisp.org>
48971
48972         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48973
48974 2008-12-21  Bruno Haible  <bruno@clisp.org>
48975
48976         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48977         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48978         (Include): Remove conditionalization.
48979         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48980         (Include): Remove conditionalization.
48981         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48982         (Include): Remove conditionalization.
48983         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48984         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48985         * NEWS: Mention the change.
48986         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48987         via Sergey Poznyakoff <gray@gnu.org.ua>.
48988
48989 2008-12-21  Bruno Haible  <bruno@clisp.org>
48990
48991         * MODULES.html.sh (Extended multibyte and wide character utilities
48992         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48993         wcrtomb, wcsrtombs.
48994         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48995         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48996         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48997         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48998
48999 2008-12-21  Bruno Haible  <bruno@clisp.org>
49000
49001         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49002
49003 2008-12-21  Bruno Haible  <bruno@clisp.org>
49004
49005         * modules/wcsnrtombs-tests: New file.
49006         * tests/test-wcsnrtombs1.sh: New file.
49007         * tests/test-wcsnrtombs2.sh: New file.
49008         * tests/test-wcsnrtombs3.sh: New file.
49009         * tests/test-wcsnrtombs4.sh: New file.
49010         * tests/test-wcsnrtombs.c: New file.
49011
49012         New module 'wcsnrtombs'.
49013         * lib/wchar.in.h (wcsnrtombs): New declaration.
49014         * lib/wcsnrtombs.c: New file.
49015         * lib/wcsrtombs-state.c: New file.
49016         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49017         (internal_state): Remove variable.
49018         * m4/wcsnrtombs.m4: New file.
49019         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49020         compilation units.
49021         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49022         HAVE_WCSNRTOMBS.
49023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49024         HAVE_WCSNRTOMBS.
49025         * modules/wcsnrtombs: New file.
49026         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49027         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49028
49029 2008-12-21  Bruno Haible  <bruno@clisp.org>
49030
49031         * modules/wcsrtombs-tests: New file.
49032         * tests/test-wcsrtombs1.sh: New file.
49033         * tests/test-wcsrtombs2.sh: New file.
49034         * tests/test-wcsrtombs3.sh: New file.
49035         * tests/test-wcsrtombs4.sh: New file.
49036         * tests/test-wcsrtombs.c: New file.
49037
49038         New module 'wcsrtombs'.
49039         * lib/wchar.in.h (wcsrtombs): New declaration.
49040         * lib/wcsrtombs.c: New file.
49041         * m4/wcsrtombs.m4: New file.
49042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49043         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49044         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49045         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49046         * modules/wcsrtombs: New file.
49047         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49048         bugs.
49049
49050 2008-12-21  Bruno Haible  <bruno@clisp.org>
49051
49052         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49053         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49054         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49055         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49056         if not correct.
49057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49058         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49059         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49060         m4/locale-zh.m4, m4/codeset.m4.
49061         * doc/posix-functions/wcrtomb.texi: Document the bug.
49062
49063 2008-12-21  Bruno Haible  <bruno@clisp.org>
49064
49065         Work around a btowc() bug on IRIX 6.5.
49066         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49067         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49068         REPLACE_WTOBC if not.
49069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49070         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49071         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49072
49073 2008-12-21  Bruno Haible  <bruno@clisp.org>
49074
49075         * modules/wcrtomb-tests: New file.
49076         * tests/test-wcrtomb.sh: New file.
49077         * tests/test-wcrtomb.c: New file.
49078
49079         New module 'wcrtomb'.
49080         * lib/wchar.in.h (wcrtomb): New declaration.
49081         * lib/wcrtomb.c: New file.
49082         * m4/wcrtomb.m4: New file.
49083         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49084         HAVE_WCRTOMB.
49085         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49086         HAVE_WCRTOMB.
49087         * modules/wcrtomb: New file.
49088         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49089
49090 2008-12-21  Bruno Haible  <bruno@clisp.org>
49091
49092         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49093         * modules/mbsrtowcs (Files): Likewise.
49094         * modules/wctob (Files): Likewise.
49095         * modules/c-strcase-tests (Files): Likewise.
49096         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49097         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49098         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49099         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49100         * modules/vasnprintf-posix-tests (Files): Likewise.
49101
49102 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49103
49104         gitlog-to-changelog: pass all command-line arguments to git-log
49105         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49106         it is sometimes convenient to filter the commits in various ways.
49107         gitlog-to-changelog only allows --since to specify a start date,
49108         but git-log itself supports many other filtering mechanisms.
49109         At the moment, I want to filter by branch name.  Rather than
49110         adding a --branch option to gitlog-to-changelog, it seems more
49111         flexible to simply pass all options directly to git-log and let
49112         git do the work.  Notice that this effectively makes --since a
49113         redundant option for gitlog-to-changelog, but removing it would
49114         require current usage to change since calls would then require
49115         an additional '--'.
49116
49117 2008-12-21  Bruno Haible  <bruno@clisp.org>
49118
49119         * modules/mbsnrtowcs-tests: New file.
49120         * tests/test-mbsnrtowcs1.sh: New file.
49121         * tests/test-mbsnrtowcs2.sh: New file.
49122         * tests/test-mbsnrtowcs3.sh: New file.
49123         * tests/test-mbsnrtowcs4.sh: New file.
49124         * tests/test-mbsnrtowcs.c: New file.
49125
49126         New module 'mbsnrtowcs'.
49127         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49128         * lib/mbsnrtowcs.c: New file.
49129         * lib/mbsrtowcs-state.c: New file.
49130         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49131         (internal_state): Remove variable.
49132         * m4/mbsnrtowcs.m4: New file.
49133         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49134         compilation units.
49135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49136         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49137         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49138         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49139         * modules/mbsnrtowcs: New file.
49140         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49141         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49142         portability problem.
49143
49144 2008-12-21  Bruno Haible  <bruno@clisp.org>
49145
49146         Work around mbsrtowcs bug.
49147         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49148         (gl_FUNC_MBSRTOWCS): Invoke it.
49149         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49150         m4/locale-zh.m4.
49151         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49152
49153 2008-12-21  Bruno Haible  <bruno@clisp.org>
49154
49155         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49156
49157 2008-12-21  Bruno Haible  <bruno@clisp.org>
49158
49159         Update doc for AIX.
49160         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49161         16-bit wchar_t type.
49162         * doc/posix-functions/btowc.texi: Likewise.
49163         * doc/posix-functions/fgetwc.texi: Likewise.
49164         * doc/posix-functions/fgetws.texi: Likewise.
49165         * doc/posix-functions/fputwc.texi: Likewise.
49166         * doc/posix-functions/fputws.texi: Likewise.
49167         * doc/posix-functions/fwide.texi: Likewise.
49168         * doc/posix-functions/fwprintf.texi: Likewise.
49169         * doc/posix-functions/fwscanf.texi: Likewise.
49170         * doc/posix-functions/getwchar.texi: Likewise.
49171         * doc/posix-functions/getwc.texi: Likewise.
49172         * doc/posix-functions/iswalnum.texi: Likewise.
49173         * doc/posix-functions/iswalpha.texi: Likewise.
49174         * doc/posix-functions/iswblank.texi: Likewise.
49175         * doc/posix-functions/iswcntrl.texi: Likewise.
49176         * doc/posix-functions/iswctype.texi: Likewise.
49177         * doc/posix-functions/iswdigit.texi: Likewise.
49178         * doc/posix-functions/iswgraph.texi: Likewise.
49179         * doc/posix-functions/iswlower.texi: Likewise.
49180         * doc/posix-functions/iswprint.texi: Likewise.
49181         * doc/posix-functions/iswpunct.texi: Likewise.
49182         * doc/posix-functions/iswspace.texi: Likewise.
49183         * doc/posix-functions/iswupper.texi: Likewise.
49184         * doc/posix-functions/iswxdigit.texi: Likewise.
49185         * doc/posix-functions/mbrtowc.texi: Likewise.
49186         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49187         * doc/posix-functions/mbstowcs.texi: Likewise.
49188         * doc/posix-functions/mbtowc.texi: Likewise.
49189         * doc/posix-functions/putwchar.texi: Likewise.
49190         * doc/posix-functions/putwc.texi: Likewise.
49191         * doc/posix-functions/swprintf.texi: Likewise.
49192         * doc/posix-functions/tolower.texi: Likewise.
49193         * doc/posix-functions/toupper.texi: Likewise.
49194         * doc/posix-functions/towctrans.texi: Likewise.
49195         * doc/posix-functions/ungetwc.texi: Likewise.
49196         * doc/posix-functions/vswprintf.texi: Likewise.
49197         * doc/posix-functions/wcrtomb.texi: Likewise.
49198         * doc/posix-functions/wcscat.texi: Likewise.
49199         * doc/posix-functions/wcschr.texi: Likewise.
49200         * doc/posix-functions/wcscmp.texi: Likewise.
49201         * doc/posix-functions/wcscoll.texi: Likewise.
49202         * doc/posix-functions/wcscpy.texi: Likewise.
49203         * doc/posix-functions/wcscspn.texi: Likewise.
49204         * doc/posix-functions/wcsftime.texi: Likewise.
49205         * doc/posix-functions/wcslen.texi: Likewise.
49206         * doc/posix-functions/wcsncat.texi: Likewise.
49207         * doc/posix-functions/wcsncmp.texi: Likewise.
49208         * doc/posix-functions/wcsncpy.texi: Likewise.
49209         * doc/posix-functions/wcspbrk.texi: Likewise.
49210         * doc/posix-functions/wcsrchr.texi: Likewise.
49211         * doc/posix-functions/wcsrtombs.texi: Likewise.
49212         * doc/posix-functions/wcsspn.texi: Likewise.
49213         * doc/posix-functions/wcsstr.texi: Likewise.
49214         * doc/posix-functions/wcstod.texi: Likewise.
49215         * doc/posix-functions/wcstof.texi: Likewise.
49216         * doc/posix-functions/wcstoimax.texi: Likewise.
49217         * doc/posix-functions/wcstok.texi: Likewise.
49218         * doc/posix-functions/wcstold.texi: Likewise.
49219         * doc/posix-functions/wcstoll.texi: Likewise.
49220         * doc/posix-functions/wcstol.texi: Likewise.
49221         * doc/posix-functions/wcstombs.texi: Likewise.
49222         * doc/posix-functions/wcstoull.texi: Likewise.
49223         * doc/posix-functions/wcstoul.texi: Likewise.
49224         * doc/posix-functions/wcstoumax.texi: Likewise.
49225         * doc/posix-functions/wcswidth.texi: Likewise.
49226         * doc/posix-functions/wcsxfrm.texi: Likewise.
49227         * doc/posix-functions/wctob.texi: Likewise.
49228         * doc/posix-functions/wctomb.texi: Likewise.
49229         * doc/posix-functions/wctrans.texi: Likewise.
49230         * doc/posix-functions/wctype.texi: Likewise.
49231         * doc/posix-functions/wcwidth.texi: Likewise.
49232         * doc/posix-functions/wmemchr.texi: Likewise.
49233         * doc/posix-functions/wmemcmp.texi: Likewise.
49234         * doc/posix-functions/wmemcpy.texi: Likewise.
49235         * doc/posix-functions/wmemmove.texi: Likewise.
49236         * doc/posix-functions/wmemset.texi: Likewise.
49237         * doc/posix-functions/wprintf.texi: Likewise.
49238         * doc/posix-functions/wscanf.texi: Likewise.
49239
49240 2008-12-21  Bruno Haible  <bruno@clisp.org>
49241
49242         Update doc for HP-UX 11.11.
49243         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49244         in HP-UX version 11.00, not in all versions of HP-UX 11.
49245         * doc/posix-functions/fwide.texi: Likewise.
49246         * doc/posix-functions/fwprintf.texi: Likewise.
49247         * doc/posix-functions/fwscanf.texi: Likewise.
49248         * doc/posix-functions/inet_ntop.texi: Likewise.
49249         * doc/posix-functions/inet_pton.texi: Likewise.
49250         * doc/posix-functions/mbrlen.texi: Likewise.
49251         * doc/posix-functions/mbrtowc.texi: Likewise.
49252         * doc/posix-functions/mbsinit.texi: Likewise.
49253         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49254         * doc/posix-functions/swprintf.texi: Likewise.
49255         * doc/posix-functions/swscanf.texi: Likewise.
49256         * doc/posix-functions/towctrans.texi: Likewise.
49257         * doc/posix-functions/vfwprintf.texi: Likewise.
49258         * doc/posix-functions/vswprintf.texi: Likewise.
49259         * doc/posix-functions/vwprintf.texi: Likewise.
49260         * doc/posix-functions/wcrtomb.texi: Likewise.
49261         * doc/posix-functions/wcsrtombs.texi: Likewise.
49262         * doc/posix-functions/wcsstr.texi: Likewise.
49263         * doc/posix-functions/wctob.texi: Likewise.
49264         * doc/posix-functions/wctrans.texi: Likewise.
49265         * doc/posix-functions/wmemchr.texi: Likewise.
49266         * doc/posix-functions/wmemcmp.texi: Likewise.
49267         * doc/posix-functions/wmemcpy.texi: Likewise.
49268         * doc/posix-functions/wmemmove.texi: Likewise.
49269         * doc/posix-functions/wmemset.texi: Likewise.
49270         * doc/posix-functions/wprintf.texi: Likewise.
49271         * doc/posix-functions/wscanf.texi: Likewise.
49272
49273 2008-12-21  Bruno Haible  <bruno@clisp.org>
49274
49275         Work around a portability problem.
49276         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49277         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49278
49279 2008-12-20  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49282         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49283         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49285         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49286
49287         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49288         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49289         set.
49290         (GNULIB_defined_mbstate_t): New macro.
49291         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49292         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49293         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49294         reuses the system's mbrtowc function but works around the bugs.
49295         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49296         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49297         macros.
49298         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49299         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49300         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49301         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49302         REPLACE_MBSINIT if mbsinit needs to be overridden.
49303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49304         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49305         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49306         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49307         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49308         m4/locale-zh.m4.
49309         (Depends): Add mbsinit.
49310         * modules/mbsinit (Depends): Add mbrtowc.
49311         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49312
49313 2008-12-20  Bruno Haible  <bruno@clisp.org>
49314
49315         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49316         so that there are no conversion errors on AIX.
49317         * tests/test-mbsrtowcs.c (main): LIkewise.
49318
49319 2008-12-20  Bruno Haible  <bruno@clisp.org>
49320
49321         Work around wctob bug on Solaris <= 9.
49322         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49323         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49325         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49326         * modules/wctob (Files): Add m4/locale-fr.m4.
49327         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49328
49329 2008-12-20  Bruno Haible  <bruno@clisp.org>
49330
49331         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49332         /dev/null.
49333         * tests/test-select-in.sh: Likewise.
49334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49335
49336 2008-12-20  Bruno Haible  <bruno@clisp.org>
49337
49338         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49339         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49340         Cygwin 1.5.x.
49341
49342 2008-12-20  Bruno Haible  <bruno@clisp.org>
49343
49344         Ensure mbstate_t is defined on HP-UX 11.11.
49345         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49346         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49347         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49348         AC_USE_SYSTEM_EXTENSIONS.
49349         * modules/fnmatch (Depends-on): Add extensions.
49350         * modules/mbrlen (Depends-on): Likewise.
49351         * modules/mbrtowc (Depends-on): Likewise.
49352         * modules/mbsinit (Depends-on): Likewise.
49353         * modules/mbsrtowcs (Depends-on): Likewise.
49354         * modules/mbswidth (Depends-on): Likewise.
49355         * modules/quotearg (Depends-on): Likewise.
49356         * modules/strftime (Depends-on): Likewise.
49357
49358 2008-12-20  Bruno Haible  <bruno@clisp.org>
49359
49360         Ensure wctob is declared on IRIX 6.5.
49361         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49362         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49363         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49365         of HAVE_WCTOB.
49366         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49367         HAVE_WCTOB.
49368         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49369
49370 2008-12-19  Bruno Haible  <bruno@clisp.org>
49371
49372         * modules/mbsrtowcs-tests: New file.
49373         * tests/test-mbsrtowcs1.sh: New file.
49374         * tests/test-mbsrtowcs2.sh: New file.
49375         * tests/test-mbsrtowcs3.sh: New file.
49376         * tests/test-mbsrtowcs4.sh: New file.
49377         * tests/test-mbsrtowcs.c: New file.
49378
49379         New module 'mbsrtowcs'.
49380         * lib/wchar.in.h (mbsrtowcs): New declaration.
49381         * lib/mbsrtowcs.c: New file.
49382         * m4/mbsrtowcs.m4: New file.
49383         * modules/mbsrtowcs: New file.
49384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49385         HAVE_MBSRTOWCS.
49386         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49387         HAVE_MBSRTOWCS.
49388         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49389
49390 2008-12-19  Bruno Haible  <bruno@clisp.org>
49391
49392         New module 'mbrlen'.
49393         * lib/wchar.in.h (mbrlen): New declaration.
49394         * lib/mbrlen.c: New file.
49395         * m4/mbrlen.m4: New file.
49396         * modules/mbrlen: New file.
49397         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49398         HAVE_MBRLEN.
49399         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49400         HAVE_MBRLEN.
49401         * doc/posix-functions/mbrlen.texi: Document the new module.
49402
49403 2008-12-19  Bruno Haible  <bruno@clisp.org>
49404
49405         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49406         * modules/mbrtowc (Depends-on): Add verify.
49407         Suggested by Paul Eggert.
49408
49409 2008-12-18  Bruno Haible  <bruno@clisp.org>
49410
49411         * modules/mbsinit-tests: New file.
49412         * tests/test-mbsinit.sh: New file.
49413         * tests/test-mbsinit.c: New file.
49414
49415 2008-12-18  Bruno Haible  <bruno@clisp.org>
49416
49417         * modules/mbrtowc-tests: New file.
49418         * tests/test-mbrtowc1.sh: New file.
49419         * tests/test-mbrtowc2.sh: New file.
49420         * tests/test-mbrtowc3.sh: New file.
49421         * tests/test-mbrtowc4.sh: New file.
49422         * tests/test-mbrtowc.c: New file.
49423
49424         New module 'mbrtowc'.
49425         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49426         mbsinit and mbrtowc.
49427         (mbrtowc): New declaration.
49428         * lib/mbrtowc.c: New file.
49429         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49430         * modules/mbrtowc: New file.
49431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49432         HAVE_MBRTOWC.
49433         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49434         HAVE_MBRTOWC.
49435         * doc/posix-functions/mbrtowc.texi: Document the new module.
49436
49437 2008-12-18  Bruno Haible  <bruno@clisp.org>
49438
49439         New module 'wctob'.
49440         * lib/wchar.in.h (wctob): New declaration.
49441         * lib/wctob.c: New file.
49442         * m4/wctob.m4: New file.
49443         * modules/wctob: New file.
49444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49445         HAVE_WCTOB.
49446         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49447         * doc/posix-functions/wctob.texi: Document the new module.
49448
49449 2008-12-18  Bruno Haible  <bruno@clisp.org>
49450
49451         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49452         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49453
49454 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49455
49456         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49457         G. Christensen" <tgc@jupiterrise.com>.
49458
49459         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49460         G. Christensen" <tgc@jupiterrise.com>.
49461
49462         * lib/flock.c: Need to include string.h.  Reported by "Tom
49463         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49464         <ebb9@byu.net>.
49465
49466 2008-12-18  Bruno Haible  <bruno@clisp.org>
49467
49468         * m4/locale-ja.m4: New file, from GNU gettext.
49469
49470 2008-12-17  Bruno Haible  <bruno@clisp.org>
49471
49472         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49473         Suggested by Eric Blake.
49474
49475 2008-12-17  Bruno Haible  <bruno@clisp.org>
49476
49477         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49478
49479 2008-12-17  Bruno Haible  <bruno@clisp.org>
49480
49481         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49482         * modules/mbsinit (Depends-on): Add verify.
49483         Suggested by Paul Eggert.
49484
49485 2008-12-17  Bruno Haible  <bruno@clisp.org>
49486
49487         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49488         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49489         gl_FUNC_MBRTOWC.
49490         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49491         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49492         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49493         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49494         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49495         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49496         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49497         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49498         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49499         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49500         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49501         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49502         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49503         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49504         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49505         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49506         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49507         * modules/trim (configure.ac): Likewise.
49508
49509 2008-12-17  Bruno Haible  <bruno@clisp.org>
49510
49511         * modules/btowc-tests: New file.
49512         * tests/test-btowc1.sh: New file.
49513         * tests/test-btowc2.sh: New file.
49514         * tests/test-btowc.c: New file.
49515
49516         New module 'btowc'.
49517         * lib/wchar.in.h (btowc): New declaration.
49518         * lib/btowc.c: New file.
49519         * m4/btowc.m4: New file.
49520         * modules/btowc: New file.
49521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49522         HAVE_BTOWC.
49523         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49524         * doc/posix-functions/btowc.texi: Document the new module.
49525
49526 2008-12-17  Bruno Haible  <bruno@clisp.org>
49527
49528         New module 'mbsinit'.
49529         * lib/wchar.in.h (mbsinit): New declaration.
49530         * lib/mbsinit.c: New file.
49531         * m4/mbsinit.m4: New file.
49532         * modules/mbsinit: New file.
49533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49534         HAVE_MBSINIT.
49535         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49536         HAVE_MBSINIT.
49537         * doc/posix-functions/mbsinit.texi: Document the new module.
49538
49539 2008-12-16  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/unistd.in.h: Add comment.
49542         * tests/test-environ.c: Don't include <stdlib.h>.
49543
49544 2008-12-16  Bruno Haible  <bruno@clisp.org>
49545
49546         * lib/parse-duration.h (parse_duration): Document return value
49547         convention.
49548         * lib/parse-duration.c: Include specification header first. Add
49549         comments.
49550         (_): Remove macro.
49551         (parse_year_month_day, parse_hour_minute_second): Move side effects
49552         outside of strchr call.
49553         (parse_non_iso8601): Move side effects outside of isspace call.
49554         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49555         call.
49556
49557 2008-12-16  Bruno Haible  <bruno@clisp.org>
49558
49559         * tests/test-parse-duration.sh: Produce no output when the test
49560         succeeds.
49561
49562 2008-12-16  Bruno Haible  <bruno@clisp.org>
49563
49564         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49565         expressions.
49566
49567 2008-12-15  Bruno Haible  <bruno@clisp.org>
49568
49569         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49570         * doc/glibc-functions/flistxattr.texi: Likewise.
49571         * doc/glibc-functions/fopencookie.texi: Likewise.
49572         * doc/glibc-functions/fremovexattr.texi: Likewise.
49573         * doc/glibc-functions/fsetxattr.texi: Likewise.
49574         * doc/glibc-functions/getxattr.texi: Likewise.
49575         * doc/glibc-functions/lgetxattr.texi: Likewise.
49576         * doc/glibc-functions/listxattr.texi: Likewise.
49577         * doc/glibc-functions/llistxattr.texi: Likewise.
49578         * doc/glibc-functions/lremovexattr.texi: Likewise.
49579         * doc/glibc-functions/lsetxattr.texi: Likewise.
49580         * doc/glibc-functions/removexattr.texi: Likewise.
49581         * doc/glibc-functions/setxattr.texi: Likewise.
49582         * doc/posix-functions/open_memstream.texi: Likewise.
49583
49584 2008-12-15  Eric Blake  <ebb9@byu.net>
49585
49586         Update doc for cygwin 1.7.
49587         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49588         functions.
49589         * doc/posix-functions/fchmodat.texi: Likewise.
49590         * doc/posix-functions/fchownat.texi: Likewise.
49591         * doc/posix-functions/fdopendir.texi: Likewise.
49592         * doc/posix-functions/fmemopen.texi: Likewise.
49593         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49594         * doc/posix-functions/fstatat.texi: Likewise.
49595         * doc/posix-functions/futimens.texi: Likewise.
49596         * doc/posix-functions/gai_strerror.texi: Likewise.
49597         * doc/posix-functions/getaddrinfo.texi: Likewise.
49598         * doc/posix-functions/getnameinfo.texi: Likewise.
49599         * doc/posix-functions/if_freenameindex.texi: Likewise.
49600         * doc/posix-functions/if_indextoname.texi: Likewise.
49601         * doc/posix-functions/if_nameindex.texi: Likewise.
49602         * doc/posix-functions/if_nametoindex.texi: Likewise.
49603         * doc/posix-functions/insque.texi: Likewise.
49604         * doc/posix-functions/linkat.texi: Likewise.
49605         * doc/posix-functions/llrint.texi: Likewise.
49606         * doc/posix-functions/llrintf.texi: Likewise.
49607         * doc/posix-functions/llrintl.texi: Likewise.
49608         * doc/posix-functions/lockf.texi: Likewise.
49609         * doc/posix-functions/lrintl.texi: Likewise.
49610         * doc/posix-functions/mkdirat.texi: Likewise.
49611         * doc/posix-functions/mkfifoat.texi: Likewise.
49612         * doc/posix-functions/mknodat.texi: Likewise.
49613         * doc/posix-functions/mq_close.texi: Likewise.
49614         * doc/posix-functions/mq_getattr.texi: Likewise.
49615         * doc/posix-functions/mq_notify.texi: Likewise.
49616         * doc/posix-functions/mq_open.texi: Likewise.
49617         * doc/posix-functions/mq_receive.texi: Likewise.
49618         * doc/posix-functions/mq_send.texi: Likewise.
49619         * doc/posix-functions/mq_setattr.texi: Likewise.
49620         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49621         * doc/posix-functions/mq_timedsend.texi: Likewise.
49622         * doc/posix-functions/mq_unlink.texi: Likewise.
49623         * doc/posix-functions/open_memstream.texi: Likewise.
49624         * doc/posix-functions/openat.texi: Likewise.
49625         * doc/posix-functions/posix_fadvise.texi: Likewise.
49626         * doc/posix-functions/posix_fallocate.texi: Likewise.
49627         * doc/posix-functions/posix_madvise.texi: Likewise.
49628         * doc/posix-functions/posix_memalign.texi: Likewise.
49629         * doc/posix-functions/posix_openpt.texi: Likewise.
49630         * doc/posix-functions/readlinkat.texi: Likewise.
49631         * doc/posix-functions/remque.texi: Likewise.
49632         * doc/posix-functions/renameat.texi: Likewise.
49633         * doc/posix-functions/rintl.texi: Likewise.
49634         * doc/posix-functions/sem_unlink.texi: Likewise.
49635         * doc/posix-functions/shm_open.texi: Likewise.
49636         * doc/posix-functions/shm_unlink.texi: Likewise.
49637         * doc/posix-functions/signgam.texi: Likewise.
49638         * doc/posix-functions/sigset.texi: Likewise.
49639         * doc/posix-functions/stpcpy.texi: Likewise.
49640         * doc/posix-functions/stpncpy.texi: Likewise.
49641         * doc/posix-functions/strerror.texi: Likewise.
49642         * doc/posix-functions/strtod.texi: Likewise.
49643         * doc/posix-functions/symlinkat.texi: Likewise.
49644         * doc/posix-functions/unlinkat.texi: Likewise.
49645         * doc/posix-functions/utimensat.texi: Likewise.
49646         * doc/glibc-functions/bindresvport.texi: Likewise.
49647         * doc/glibc-functions/dn_expand.texi: Likewise.
49648         * doc/glibc-functions/exp10.texi: Likewise.
49649         * doc/glibc-functions/exp10f.texi: Likewise.
49650         * doc/glibc-functions/fgetxattr.texi: Likewise.
49651         * doc/glibc-functions/flistxattr.texi: Likewise.
49652         * doc/glibc-functions/fopencookie.texi: Likewise.
49653         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49654         * doc/glibc-functions/fremovexattr.texi: Likewise.
49655         * doc/glibc-functions/fsetxattr.texi: Likewise.
49656         * doc/glibc-functions/getifaddrs.texi: Likewise.
49657         * doc/glibc-functions/getxattr.texi: Likewise.
49658         * doc/glibc-functions/lgetxattr.texi: Likewise.
49659         * doc/glibc-functions/listxattr.texi: Likewise.
49660         * doc/glibc-functions/llistxattr.texi: Likewise.
49661         * doc/glibc-functions/lremovexattr.texi: Likewise.
49662         * doc/glibc-functions/lsetxattr.texi: Likewise.
49663         * doc/glibc-functions/pow10.texi: Likewise.
49664         * doc/glibc-functions/pow10f.texi: Likewise.
49665         * doc/glibc-functions/rcmd_af.texi: Likewise.
49666         * doc/glibc-functions/removexattr.texi: Likewise.
49667         * doc/glibc-functions/res_init.texi: Likewise.
49668         * doc/glibc-functions/res_mkquery.texi: Likewise.
49669         * doc/glibc-functions/res_query.texi: Likewise.
49670         * doc/glibc-functions/res_querydomain.texi: Likewise.
49671         * doc/glibc-functions/res_send.texi: Likewise.
49672         * doc/glibc-functions/rresvport_af.texi: Likewise.
49673         * doc/glibc-functions/setxattr.texi: Likewise.
49674         * doc/glibc-functions/strcasestr.texi: Likewise.
49675
49676 2008-12-15  Bruno Haible  <bruno@clisp.org>
49677
49678         Fix compilation error on OSF/1 4.0.
49679         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49680         <sys/time.h>, simply delegate to the system header.
49681         Reported by Daniel Richard G. <oss@teragram.com>.
49682
49683 2008-12-15  Bruno Haible  <bruno@clisp.org>
49684
49685         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49686         * doc/posix-functions/fchmodat.texi: Likewise.
49687         * doc/posix-functions/fchownat.texi: Likewise.
49688         * doc/posix-functions/fdopendir.texi: Likewise.
49689         * doc/posix-functions/fstatat.texi: Likewise.
49690         * doc/posix-functions/mkdirat.texi: Likewise.
49691         * doc/posix-functions/unlinkat.texi: Likewise.
49692
49693 2008-12-14  Bruno Haible  <bruno@clisp.org>
49694
49695         Update doc for POSIX:2008.
49696         * doc/posix-functions/faccessat.texi: New file.
49697         * doc/posix-functions/fchmodat.texi: New file.
49698         * doc/posix-functions/fchownat.texi: New file.
49699         * doc/posix-functions/fdopendir.texi: New file.
49700         * doc/posix-functions/fstatat.texi: New file.
49701         * doc/posix-functions/futimens.texi: New file.
49702         * doc/posix-functions/linkat.texi: New file.
49703         * doc/posix-functions/mkdirat.texi: New file.
49704         * doc/posix-functions/mkfifoat.texi: New file.
49705         * doc/posix-functions/mknodat.texi: New file.
49706         * doc/posix-functions/open_wmemstream.texi: New file.
49707         * doc/posix-functions/openat.texi: New file.
49708         * doc/posix-functions/psiginfo.texi: New file.
49709         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49710         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49711         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49712         * doc/posix-functions/readlinkat.texi: New file.
49713         * doc/posix-functions/renameat.texi: New file.
49714         * doc/posix-functions/strerror_l.texi: New file.
49715         * doc/posix-functions/symlinkat.texi: New file.
49716         * doc/posix-functions/unlinkat.texi: New file.
49717         * doc/posix-functions/utimensat.texi: New file.
49718         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49719
49720 2008-12-14  Bruno Haible  <bruno@clisp.org>
49721
49722         Update doc for POSIX:2008.
49723         * doc/posix-functions/alphasort.texi: Renamed from
49724         doc/glibc-functions/alphasort.texi.
49725         * doc/posix-functions/dirfd.texi: Renamed from
49726         doc/glibc-functions/dirfd.texi.
49727         * doc/posix-functions/dprintf.texi: Renamed from
49728         doc/glibc-functions/dprintf.texi.
49729         * doc/posix-functions/duplocale.texi: Renamed from
49730         doc/glibc-functions/duplocale.texi.
49731         * doc/posix-functions/fexecve.texi: Renamed from
49732         doc/glibc-functions/fexecve.texi.
49733         * doc/posix-functions/fmemopen.texi: Renamed from
49734         doc/glibc-functions/fmemopen.texi.
49735         * doc/posix-functions/freelocale.texi: Renamed from
49736         doc/glibc-functions/freelocale.texi.
49737         * doc/posix-functions/getdate_err.texi: Renamed from
49738         doc/glibc-functions/getdate_err.texi.
49739         * doc/posix-functions/isalnum_l.texi: Renamed from
49740         doc/glibc-functions/isalnum_l.texi.
49741         * doc/posix-functions/isalpha_l.texi: Renamed from
49742         doc/glibc-functions/isalpha_l.texi.
49743         * doc/posix-functions/isblank_l.texi: Renamed from
49744         doc/glibc-functions/isblank_l.texi.
49745         * doc/posix-functions/iscntrl_l.texi: Renamed from
49746         doc/glibc-functions/iscntrl_l.texi.
49747         * doc/posix-functions/isdigit_l.texi: Renamed from
49748         doc/glibc-functions/isdigit_l.texi.
49749         * doc/posix-functions/isgraph_l.texi: Renamed from
49750         doc/glibc-functions/isgraph_l.texi.
49751         * doc/posix-functions/islower_l.texi: Renamed from
49752         doc/glibc-functions/islower_l.texi.
49753         * doc/posix-functions/isprint_l.texi: Renamed from
49754         doc/glibc-functions/isprint_l.texi.
49755         * doc/posix-functions/ispunct_l.texi: Renamed from
49756         doc/glibc-functions/ispunct_l.texi.
49757         * doc/posix-functions/isspace_l.texi: Renamed from
49758         doc/glibc-functions/isspace_l.texi.
49759         * doc/posix-functions/isupper_l.texi: Renamed from
49760         doc/glibc-functions/isupper_l.texi.
49761         * doc/posix-functions/iswalnum_l.texi: Renamed from
49762         doc/glibc-functions/iswalnum_l.texi.
49763         * doc/posix-functions/iswalpha_l.texi: Renamed from
49764         doc/glibc-functions/iswalpha_l.texi.
49765         * doc/posix-functions/iswblank_l.texi: Renamed from
49766         doc/glibc-functions/iswblank_l.texi.
49767         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49768         doc/glibc-functions/iswcntrl_l.texi.
49769         * doc/posix-functions/iswctype_l.texi: Renamed from
49770         doc/glibc-functions/iswctype_l.texi.
49771         * doc/posix-functions/iswdigit_l.texi: Renamed from
49772         doc/glibc-functions/iswdigit_l.texi.
49773         * doc/posix-functions/iswgraph_l.texi: Renamed from
49774         doc/glibc-functions/iswgraph_l.texi.
49775         * doc/posix-functions/iswlower_l.texi: Renamed from
49776         doc/glibc-functions/iswlower_l.texi.
49777         * doc/posix-functions/iswprint_l.texi: Renamed from
49778         doc/glibc-functions/iswprint_l.texi.
49779         * doc/posix-functions/iswpunct_l.texi: Renamed from
49780         doc/glibc-functions/iswpunct_l.texi.
49781         * doc/posix-functions/iswspace_l.texi: Renamed from
49782         doc/glibc-functions/iswspace_l.texi.
49783         * doc/posix-functions/iswupper_l.texi: Renamed from
49784         doc/glibc-functions/iswupper_l.texi.
49785         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49786         doc/glibc-functions/iswxdigit_l.texi.
49787         * doc/posix-functions/isxdigit_l.texi: Renamed from
49788         doc/glibc-functions/isxdigit_l.texi.
49789         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49790         doc/glibc-functions/mbsnrtowcs.texi.
49791         * doc/posix-functions/mkdtemp.texi: Renamed from
49792         doc/glibc-functions/mkdtemp.texi.
49793         * doc/posix-functions/newlocale.texi: Renamed from
49794         doc/glibc-functions/newlocale.texi.
49795         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49796         doc/glibc-functions/nl_langinfo_l.texi.
49797         * doc/posix-functions/open_memstream.texi: Renamed from
49798         doc/glibc-functions/open_memstream.texi.
49799         * doc/posix-functions/opterr.texi: Renamed from
49800         doc/glibc-functions/opterr.texi.
49801         * doc/posix-functions/optind.texi: Renamed from
49802         doc/glibc-functions/optind.texi.
49803         * doc/posix-functions/optopt.texi: Renamed from
49804         doc/glibc-functions/optopt.texi.
49805         * doc/posix-functions/psignal.texi: Renamed from
49806         doc/glibc-functions/psignal.texi.
49807         * doc/posix-functions/scandir.texi: Renamed from
49808         doc/glibc-functions/scandir.texi.
49809         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49810         doc/glibc-functions/sched_get_priority_min.texi.
49811         * doc/posix-functions/signgam.texi: Renamed from
49812         doc/glibc-functions/signgam.texi.
49813         * doc/posix-functions/stpcpy.texi: Renamed from
49814         doc/glibc-functions/stpcpy.texi.
49815         * doc/posix-functions/stpncpy.texi: Renamed from
49816         doc/glibc-functions/stpncpy.texi.
49817         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49818         doc/glibc-functions/strcasecmp_l.texi.
49819         * doc/posix-functions/strcoll_l.texi: Renamed from
49820         doc/glibc-functions/strcoll_l.texi.
49821         * doc/posix-functions/strfmon_l.texi: Renamed from
49822         doc/glibc-functions/strfmon_l.texi.
49823         * doc/posix-functions/strftime_l.texi: Renamed from
49824         doc/glibc-functions/strftime_l.texi.
49825         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49826         doc/glibc-functions/strncasecmp_l.texi.
49827         * doc/posix-functions/strndup.texi: Renamed from
49828         doc/glibc-functions/strndup.texi.
49829         * doc/posix-functions/strnlen.texi: Renamed from
49830         doc/glibc-functions/strnlen.texi.
49831         * doc/posix-functions/strsignal.texi: Renamed from
49832         doc/glibc-functions/strsignal.texi.
49833         * doc/posix-functions/strxfrm_l.texi: Renamed from
49834         doc/glibc-functions/strxfrm_l.texi.
49835         * doc/posix-functions/timer_gettime.texi: Renamed from
49836         doc/glibc-functions/timer_gettime.texi.
49837         * doc/posix-functions/tolower_l.texi: Renamed from
49838         doc/glibc-functions/tolower_l.texi.
49839         * doc/posix-functions/toupper_l.texi: Renamed from
49840         doc/glibc-functions/toupper_l.texi.
49841         * doc/posix-functions/towctrans_l.texi: Renamed from
49842         doc/glibc-functions/towctrans_l.texi.
49843         * doc/posix-functions/towlower_l.texi: Renamed from
49844         doc/glibc-functions/towlower_l.texi.
49845         * doc/posix-functions/towupper_l.texi: Renamed from
49846         doc/glibc-functions/towupper_l.texi.
49847         * doc/posix-functions/uselocale.texi: Renamed from
49848         doc/glibc-functions/uselocale.texi.
49849         * doc/posix-functions/vdprintf.texi: Renamed from
49850         doc/glibc-functions/vdprintf.texi.
49851         * doc/posix-functions/wcpcpy.texi:
49852         Renamed from doc/glibc-functions/wcpcpy.texi.
49853         * doc/posix-functions/wcpncpy.texi: Renamed from
49854         doc/glibc-functions/wcpncpy.texi.
49855         * doc/posix-functions/wcscasecmp.texi: Renamed from
49856         doc/glibc-functions/wcscasecmp.texi.
49857         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49858         doc/glibc-functions/wcscasecmp_l.texi.
49859         * doc/posix-functions/wcscoll_l.texi: Renamed from
49860         doc/glibc-functions/wcscoll_l.texi.
49861         * doc/posix-functions/wcsdup.texi: Renamed from
49862         doc/glibc-functions/wcsdup.texi.
49863         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49864         doc/glibc-functions/wcsncasecmp.texi.
49865         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49866         doc/glibc-functions/wcsncasecmp_l.texi.
49867         * doc/posix-functions/wcsnlen.texi: Renamed from
49868         doc/glibc-functions/wcsnlen.texi.
49869         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49870         doc/glibc-functions/wcsnrtombs.texi.
49871         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49872         doc/glibc-functions/wcsxfrm_l.texi.
49873         * doc/posix-functions/wctrans_l.texi: Renamed from
49874         doc/glibc-functions/wctrans_l.texi.
49875         * doc/posix-functions/wctype_l.texi: Renamed from
49876         doc/glibc-functions/wctype_l.texi.
49877         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49878         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49879         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49880         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49881         these subsections.
49882         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49883         Remove sections.
49884
49885 2008-12-14  Bruno Haible  <bruno@clisp.org>
49886
49887         Update doc for POSIX:2008.
49888         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49889
49890 2008-12-14  Bruno Haible  <bruno@clisp.org>
49891
49892         Update doc for POSIX:2008.
49893         * doc/pastposix-functions/bcmp.texi: Renamed from
49894         doc/posix-functions/bcmp.texi.
49895         * doc/pastposix-functions/bcopy.texi: Renamed from
49896         doc/posix-functions/bcopy.texi.
49897         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49898         doc/posix-functions/bsd_signal.texi.
49899         * doc/pastposix-functions/bzero.texi: Renamed from
49900         doc/posix-functions/bzero.texi.
49901         * doc/pastposix-functions/ecvt.texi: Renamed from
49902         doc/posix-functions/ecvt.texi.
49903         * doc/pastposix-functions/fcvt.texi: Renamed from
49904         doc/posix-functions/fcvt.texi.
49905         * doc/pastposix-functions/ftime.texi: Renamed from
49906         doc/posix-functions/ftime.texi.
49907         * doc/pastposix-functions/gcvt.texi: Renamed from
49908         doc/posix-functions/gcvt.texi.
49909         * doc/pastposix-functions/getcontext.texi: Renamed from
49910         doc/posix-functions/getcontext.texi.
49911         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49912         doc/posix-functions/gethostbyaddr.texi.
49913         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49914         doc/posix-functions/gethostbyname.texi.
49915         * doc/pastposix-functions/getwd.texi: Renamed from
49916         doc/posix-functions/getwd.texi.
49917         * doc/pastposix-functions/h_errno.texi: Renamed from
49918         doc/posix-functions/h_errno.texi.
49919         * doc/pastposix-functions/index.texi: Renamed from
49920         doc/posix-functions/index.texi.
49921         * doc/pastposix-functions/makecontext.texi: Renamed from
49922         doc/posix-functions/makecontext.texi.
49923         * doc/pastposix-functions/mktemp.texi: Renamed from
49924         doc/posix-functions/mktemp.texi.
49925         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49926         doc/posix-functions/pthread_attr_getstackaddr.texi.
49927         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49928         doc/posix-functions/pthread_attr_setstackaddr.texi.
49929         * doc/pastposix-functions/rindex.texi: Renamed from
49930         doc/posix-functions/rindex.texi.
49931         * doc/pastposix-functions/scalb.texi: Renamed from
49932         doc/posix-functions/scalb.texi.
49933         * doc/pastposix-functions/setcontext.texi: Renamed from
49934         doc/posix-functions/setcontext.texi.
49935         * doc/pastposix-functions/swapcontext.texi: Renamed from
49936         doc/posix-functions/swapcontext.texi.
49937         * doc/pastposix-functions/ualarm.texi: Renamed from
49938         doc/posix-functions/ualarm.texi.
49939         * doc/pastposix-functions/usleep.texi: Renamed from
49940         doc/posix-functions/usleep.texi.
49941         * doc/pastposix-functions/vfork.texi: Renamed from
49942         doc/posix-functions/vfork.texi.
49943         * doc/pastposix-functions/wcswcs.texi: Renamed from
49944         doc/posix-functions/wcswcs.texi.
49945         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49946         (Function Substitutes): Update.
49947
49948 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49949
49950         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49951         m4/strerror.m4.
49952
49953 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49954             Bruno Haible  <bruno@clisp.org>
49955
49956         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49957
49958 2008-12-13  Bruno Haible  <bruno@clisp.org>
49959
49960         * modules/strtoull (Depends-on): Remove unistd.
49961
49962 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49963
49964         * modules/strtoull (Depends-on): Add stdlib.
49965
49966 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49967
49968         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49969
49970 2008-12-10  Jim Meyering  <meyering@redhat.com>
49971
49972         gl_ASSERT: don't say assertions are disabled when they're not
49973         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49974         "checking whether to enable assertions... no", when they are in
49975         fact enabled.  This is solely a bug in the output of configure.
49976         In spite of saying "no", NDEBUG was not defined in that case.
49977         Also, as noted by Eric Blake, leave assertions enabled upon
49978         --enable-assert=INVALID.
49979
49980 2008-12-10  Bruno Haible  <bruno@clisp.org>
49981
49982         Change MODULES.html to refer to POSIX:2008 where possible.
49983         * MODULES.html.sh (POSIX2008_URL): New variable.
49984         (posix_headers): Remove sys/timeb, ucontext.
49985         (posix2001_headers): New variable.
49986         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49987         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49988         index, makecontext, mktemp, pthread_attr_getstackaddr,
49989         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49990         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49991         (posix2001_functions): New variable.
49992         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49993         otherwise.
49994
49995 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49996
49997         add missing include to parse-duration.c
49998         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49999         * modules/parse-duration (Depends-on): Add xalloc.
50000
50001         fix sed script reading maint.mk
50002         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50003         (syntax-check-rules): Use it.
50004
50005 2008-12-09  Bruno Haible  <bruno@clisp.org>
50006
50007         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50008         MacOS X 10.4/PowerPC.
50009         Reported by Simon Josefsson.
50010
50011 2008-12-08  Jim Meyering  <meyering@redhat.com>
50012
50013         work around mingw's lack of some S_IF definitions
50014         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50015         Reported by Simon Josefsson.
50016
50017 2008-12-08  Bruno Haible  <bruno@clisp.org>
50018
50019         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50020         applied to variables. Needed on MacOS X 10.4/PowerPC.
50021         Reported by Simon Josefsson.
50022
50023 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50024         and Eric Blake  <ebb9@byu.net>
50025
50026         assert: honor --enable-assert
50027         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50028         order to honor --enable-assert, rather than treating it as a
50029         synonym for --disable-assert.
50030
50031 2008-12-08  Jim Meyering  <meyering@redhat.com>
50032
50033         * lib/posixtm.c: Remove now-useless declaration of mktime.
50034
50035         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50036
50037 2008-12-07  Bruno Haible  <bruno@clisp.org>
50038
50039         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50040         test_once): Mark functions as static.
50041         * tests/test-tls.c (test_tls): Likewise.
50042
50043 2008-12-07  Bruno Haible  <bruno@clisp.org>
50044
50045         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50046         iconv_register_autodetect.
50047
50048 2008-12-07  Jim Meyering  <meyering@redhat.com>
50049
50050         posixtm.c: avoid a warning
50051         * lib/posixtm.c (posixtime): Don't initialize tm0.
50052         It's no longer needed to placate gcc4's -Wuninitialized,
50053         and the attempt to placate would elicit a new warning.
50054
50055         unicodeio.c: mark unused parameters
50056         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50057         (fallback_failure_callback): Likewise.
50058
50059 2008-12-07  Bruno Haible  <bruno@clisp.org>
50060
50061         * gnulib-tool (func_create_testdir): When building the tests
50062         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50063         Reported by Simon Josefsson.
50064
50065 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50066
50067         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50068
50069 2008-12-06  Bruno Haible  <bruno@clisp.org>
50070
50071         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50072         Suggested by Eric Blake.
50073
50074 2008-12-06  Bruno Haible  <bruno@clisp.org>
50075
50076         Fix a c-stack test failure on MacOS X.
50077         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50078         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50079         handler for SIGBUS as well.
50080         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50081         install a signal handler for SIGBUS as well.
50082         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50083
50084 2008-12-06  Bruno Haible  <bruno@clisp.org>
50085
50086         Advocacy documentation.
50087         * doc/gnulib-intro.texi (Benefits): New section.
50088         * doc/gnulib.texi: Update.
50089
50090 2008-12-06  Bruno Haible  <bruno@clisp.org>
50091
50092         Document the 'manywarnings' module.
50093         * doc/manywarnings.texi: New file.
50094         * doc/gnulib.texi: Include it.
50095
50096 2008-12-05  Eric Blake  <ebb9@byu.net>
50097
50098         tests: silence some gcc warnings
50099         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50100         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50101         type mismatches.
50102
50103 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50104             Bruno Haible  <bruno@clisp.org>
50105
50106         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50107
50108 2008-11-29  Jim Meyering  <meyering@redhat.com>
50109
50110         unicodeio.c: mark unused parameters
50111         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50112         (fallback_failure_callback): Likewise.
50113
50114         fts: fix a thinko
50115         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50116         (set_stat_type): Return S_IF*-valued "type" directly.
50117         Prompted by James Youngman's spotting a related bug.
50118         Confirmed by further testing through find.
50119
50120         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50121         * lib/fts.c (D_TYPE): Define.
50122         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50123         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50124         (s_ifmt_shift_bits): New function.
50125         (set_stat_type): New function.
50126         (fts_build): When not calling fts_stat, call set_stat_type
50127         to propagate dirent.d_type info to fts_read caller.
50128         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50129         fts_statp->st_mode type information may be valid.
50130
50131 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50132
50133         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50134         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50135         <sds@gnu.org>.
50136
50137 2008-11-20  Bruno Haible  <bruno@clisp.org>
50138
50139         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50140         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50141         INCLUDE_NEXT.
50142         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50143         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50144         * modules/math (Makefile.am): Substitute
50145         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50146         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50147
50148 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50149             Bruno Haible  <bruno@clisp.org>
50150
50151         * lib/stdint.in.h: Define all type macros so that their expansion is
50152         a single typedef'ed token. Fixes a compilation failure in Boost which
50153         does "using ::int8_t;".
50154
50155 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50156
50157         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50158         gl_MANYWARN_ALL_GCC.
50159         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50160         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50161         * modules/manywarnings: New file.
50162         * MODULES.html.sh: Mention manywarnings module.
50163
50164 2008-11-18  Bruno Haible  <bruno@clisp.org>
50165
50166         * doc/gnulib-tool.texi (Unit tests): New section.
50167
50168 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50169
50170         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50171         paths like 'lib/po/foo.po'.
50172
50173 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50174
50175         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50176         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50177
50178 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50179
50180         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50181         parameter works.
50182
50183 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50184
50185         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50186
50187 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50188
50189         * modules/parse-duration-tests: New file.
50190         * tests/test-parse-duration.sh: New file.
50191         * tests/test-parse-duration.c: New file.
50192
50193         New module 'parse-duration'.
50194         * lib/parse-duration.h: New file.
50195         * lib/parse-duration.c: New file.
50196         * modules/parse-duration: New file.
50197
50198 2008-11-17  Bruno Haible  <bruno@clisp.org>
50199
50200         * tests/test-select-out.sh: Comment out the first pipe test.
50201         Reported by Simon Josefsson.
50202
50203 2008-11-17  Bruno Haible  <bruno@clisp.org>
50204
50205         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50206         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50207         gl_HOSTENT.
50208
50209 2008-11-17  Bruno Haible  <bruno@clisp.org>
50210
50211         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50212         -lnetwork and -lnet. Needed for Haiku and BeOS.
50213
50214 2008-11-16  Bruno Haible  <bruno@clisp.org>
50215
50216         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50217
50218 2008-11-16  Bruno Haible  <bruno@clisp.org>
50219
50220         Avoid test failure on Haiku.
50221         * tests/test-fsync.c: Include <errno.h>.
50222         (main): Don't require that fsync (0) fails.
50223
50224 2008-11-15  Bruno Haible  <bruno@clisp.org>
50225
50226         New module 'hostent'.
50227         * modules/hostent: New file.
50228         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50229
50230 2008-11-15  Bruno Haible  <bruno@clisp.org>
50231
50232         New module 'servent'.
50233         * modules/servent: New file.
50234         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50235
50236 2008-11-15  Bruno Haible  <bruno@clisp.org>
50237
50238         Avoid generating same test program with two different rules.
50239         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50240         test-frexp to test-frexp-nolibm.
50241         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50242         test-frexpl to test-frexpl-nolibm.
50243
50244 2008-11-15  Bruno Haible  <bruno@clisp.org>
50245
50246         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50247         $(FREXPL_LIBM).
50248
50249 2008-11-15  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/netdb.in.h: Activate the definitions also when the system's
50252         <netdb.h> has 'struct addrinfo'.
50253         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50254         EAI_OVERFLOW or AI_NUMERICSERV.
50255         * doc/posix-headers/netdb.texi: Document the problem.
50256
50257 2008-11-15  Bruno Haible  <bruno@clisp.org>
50258
50259         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50260
50261         Make the 'sched' module work on platforms where <sched.h> exists but
50262         is incomplete (such as Haiku).
50263         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50264         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50265         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50266         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50267         HAVE_STRUCT_SCHED_PARAM.
50268         * modules/sched (Depends-on): Add include_next.
50269         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50270         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50271         * doc/posix-headers/sched.texi: Document the issue.
50272
50273 2008-11-13  Jim Meyering  <meyering@redhat.com>
50274
50275         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50276         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50277         test would fail due to the difference in the Report bugs to ...
50278         line.  The expected address is empty, "<>", while the actual
50279         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50280
50281 2008-11-12  Bruno Haible  <bruno@clisp.org>
50282
50283         lstat: don't compile lstat.c on systems lacking lstat
50284         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50285         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50286         Reported by Daniel P. Berrange via Jim Meyering.
50287
50288 2008-11-12  Jim Meyering  <meyering@redhat.com>
50289
50290         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50291
50292 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50293
50294         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50295         instead.
50296
50297 2008-11-12  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/unicodeio.c: Include unistr.h.
50300         (utf8_wctomb): Remove function.
50301         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50302
50303 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50304
50305         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50306         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50307         <bruno@clisp.org>.
50308         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50309
50310 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50311
50312         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50313         * doc/gnulib.texi: Add section for warnings.
50314
50315 2008-11-11  Bruno Haible  <bruno@clisp.org>
50316
50317         * lib/sockets.h: Add a comment.
50318
50319 2008-11-11  Karl Berry  <karl@gnu.org>
50320
50321         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50322
50323 2008-11-11  Eric Blake  <ebb9@byu.net>
50324
50325         fdl.texi: avoid git symlinks
50326         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50327
50328 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50329
50330         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50331
50332 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50333
50334         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50335         (gl_WARN_ADD): Substitute $2 if literal.
50336
50337 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50338
50339         * m4/warning.m4: Remove.
50340
50341 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50342
50343         * m4/warnings.m4: Almost complete rewrite. :-)
50344
50345 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50346
50347         * modules/warnings: New module.
50348         * m4/warnings.m4: New file.
50349         * MODULES.html.sh: Mention warnings module.
50350         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50351         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50352
50353 2008-11-10  Eric Blake  <ebb9@byu.net>
50354
50355         fdl.texi: make a symlink to the latest version
50356         * doc/standards.texi: Revert today's earlier change.
50357         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50358         * doc/fdl.texi: ...and replace this with a symlink to the newer
50359         fdl-1.3.texi.
50360
50361 2008-11-10  Bruno Haible  <bruno@clisp.org>
50362
50363         * tests/test-select-fd.c (main): Accept the result file name as fourth
50364         argument.
50365         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50366         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50367
50368 2008-11-10  Bruno Haible  <bruno@clisp.org>
50369
50370         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50371         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50372         as autoconf-substituted macros.
50373         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50374         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50375         gl_NETDB_H_DEFAULTS. Set these variables.
50376         * modules/netdb (Makefile.am): Substitute these variables.
50377
50378 2008-11-10  Eric Blake  <ebb9@byu.net>
50379
50380         standards.texi: include correct file for FDL 1.3
50381         * doc/standards.texi (GNU Free Documentation License): Change
50382         include file to pull in FDL 1.3, not 1.2.
50383
50384         fdl.texi: revert accidental change to license
50385         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50386
50387 2008-11-10  Bruno Haible  <bruno@clisp.org>
50388
50389         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50390         cross-compiling guesses also when the native compile gives no result.
50391
50392 2008-11-10  Bruno Haible  <bruno@clisp.org>
50393
50394         * lib/spawni.c (__spawni): Force variable into the stack.
50395
50396 2008-11-10  Bruno Haible  <bruno@clisp.org>
50397
50398         Add support for Haiku.
50399         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50400         glibc and BeOS, but also on Haiku.
50401         * lib/fpurge.c (fpurge): Likewise.
50402         * lib/freadable.c (freadable): Likewise.
50403         * lib/freadahead.c (freadahead): Likewise.
50404         * lib/freading.c (freading): Likewise.
50405         * lib/freadptr.c (freadptr): Likewise.
50406         * lib/freadseek.c (freadptrinc): Likewise.
50407         * lib/fseeko.c (rpl_fseeko): Likewise.
50408         * lib/fseterr.c (fseterr): Likewise.
50409         * lib/fwritable.c (fwritable): Likewise.
50410         * lib/fwriting.c (fwriting): Likewise.
50411         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50412
50413 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50414
50415         * lib/config.charset: Treat Haiku like BeOS.
50416
50417 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50418
50419         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50420         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50421
50422 2008-11-08  Bruno Haible  <bruno@clisp.org>
50423
50424         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50425         AC_CACHE_CHECK.
50426
50427 2008-11-08  Bruno Haible  <bruno@clisp.org>
50428
50429         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50430
50431 2008-11-08  Bruno Haible  <bruno@clisp.org>
50432
50433         * tests/test-select-fd.c: New file.
50434         * tests/test-select-in.sh: New file.
50435         * tests/test-select-out.sh: New file.
50436         * tests/test-select-stdin.c: New file.
50437         * modules/select-tests (Files): Add the new files.
50438         (Depends-on): Add gettimeofday.
50439         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50440         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50441         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50442
50443 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50444             Bruno Haible  <bruno@clisp.org>
50445
50446         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50447
50448 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50449
50450         * build-aux/pmccabe2html: Added support for C++ source files.
50451
50452 2008-11-05  Ben Pfaff  <blp@gnu.org>
50453
50454         Fix lib/close.c build on Windows.
50455         * modules/close (Files): Add lib/w32sock.h.
50456
50457 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50458
50459         Accept Bison's NEWS format.
50460         * build-aux/announce-gen (print_news_deltas): Tweak
50461         $re_prefix.
50462
50463 2008-11-04  Bruno Haible  <bruno@clisp.org>
50464
50465         * modules/random_r (Maintainer): Add glibc.
50466
50467 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50468
50469         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50470         by karl@freefriends.org (Karl Berry).
50471         * doc/alloca.texi: Likewise.
50472         * doc/c-ctype.texi: Likewise.
50473         * doc/c-strcase.texi: Likewise.
50474         * doc/c-strcaseeq.texi: Likewise.
50475         * doc/c-strcasestr.texi: Likewise.
50476         * doc/c-strstr.texi: Likewise.
50477         * doc/c-strtod.texi: Likewise.
50478         * doc/c-strtold.texi: Likewise.
50479         * doc/ctime.texi: Likewise.
50480         * doc/error.texi: Likewise.
50481         * doc/fdl.texi: Likewise.
50482         * doc/gcd.texi: Likewise.
50483         * doc/getdate.texi: Likewise.
50484         * doc/gnulib-intro.texi: Likewise.
50485         * doc/gnulib-tool.texi: Likewise.
50486         * doc/gnulib.texi: Likewise.
50487         * doc/inet_ntoa.texi: Likewise.
50488         * doc/maintain.texi: Likewise.
50489         * doc/make-stds.texi: Likewise.
50490         * doc/quote.texi: Likewise.
50491         * doc/regexprops-generic.texi: Likewise.
50492         * doc/standards.texi: Likewise.
50493         * doc/verify.texi: Likewise.
50494         * doc/visibility.texi: Likewise.
50495         * doc/gnulib.texi (GNU Free Documentation License): Include
50496         fdl-1.3.texi instead of fdl.texi.
50497
50498 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50499
50500         * doc/fdl-1.3.texi: New file, from
50501         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50502         * modules/fdl-1.3: Add.
50503         * MODULES.html.sh: Add fdl-1.3.
50504
50505 2008-11-03  Bruno Haible  <bruno@clisp.org>
50506
50507         Make determination of absolute name of header file work with AIX xlc.
50508         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50509         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50510         preprocessing.
50511         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50512         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50513
50514 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50515
50516         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50517         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50518         <ludo@gnu.org>.
50519
50520 2008-11-02  Bruno Haible  <bruno@clisp.org>
50521
50522         Mark 'strpbrk' obsolete.
50523         * modules/strpbrk (Status, Notice): New sections.
50524         * modules/strtok_r (Depends-on): Add strpbrk.
50525
50526 2008-11-02  Bruno Haible  <bruno@clisp.org>
50527
50528         Mark 'strdup' obsolete.
50529         * modules/strdup (Status, Notice): New sections.
50530         * modules/findprog (Depends-on): Add strdup.
50531         * modules/getaddrinfo (Depends-on): Likewise.
50532         * modules/localename (Depends-on): Likewise.
50533         * modules/relocatable-lib (Depends-on): Likewise.
50534         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50535         * modules/relocatable-prog (Depends-on): Likewise.
50536         * modules/trim (Depends-on): Likewise.
50537         * modules/unictype/gen-ctype (Depends-on): Likewise.
50538         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50539
50540 2008-11-02  Bruno Haible  <bruno@clisp.org>
50541
50542         Mark 'strcspn' obsolete.
50543         * modules/strcspn (Status, Notice): New sections.
50544
50545 2008-11-02  Bruno Haible  <bruno@clisp.org>
50546
50547         Mark 'rmdir' obsolete.
50548         * modules/rmdir (Status, Notice): New sections.
50549         * modules/clean-temp (Depends-on): Add rmdir.
50550         * modules/openat (Depends-on): Likewise.
50551
50552 2008-11-02  Bruno Haible  <bruno@clisp.org>
50553
50554         Mark 'raise' obsolete.
50555         * modules/raise (Status, Notice): New sections.
50556         (Include): Specify <signal.h>.
50557         * modules/stdio (Depends-on): Add raise.
50558         * modules/write (Depends-on): Likewise.
50559
50560 2008-11-02  Bruno Haible  <bruno@clisp.org>
50561
50562         Mark 'memset' obsolete.
50563         * modules/memset (Status, Notice): New sections.
50564
50565 2008-11-02  Bruno Haible  <bruno@clisp.org>
50566
50567         Mark 'memmove' obsolete.
50568         * modules/memmove (Status, Notice): New sections.
50569         * modules/argp (Depends-on): Add memmove.
50570         * modules/argz (Depends-on): Likewise.
50571         * modules/canonicalize (Depends-on): Likewise.
50572         * modules/canonicalize-lgpl (Depends-on): Likewise.
50573         * modules/fts (Depends-on): Likewise.
50574         * modules/getcwd (Depends-on): Likewise.
50575         * modules/human (Depends-on): Likewise.
50576         * modules/regex (Depends-on): Likewise.
50577         * modules/striconveh (Depends-on): Likewise.
50578         * modules/trim (Depends-on): Likewise.
50579         * modules/unistr/u8-move (Depends-on): Likewise.
50580         * modules/unistr/u16-move (Depends-on): Likewise.
50581         * modules/unistr/u32-move (Depends-on): Likewise.
50582
50583 2008-11-02  Bruno Haible  <bruno@clisp.org>
50584
50585         Mark 'memcpy' obsolete.
50586         * modules/memcpy (Status, Notice): New sections.
50587
50588 2008-11-02  Bruno Haible  <bruno@clisp.org>
50589
50590         Mark 'memcmp' obsolete.
50591         * modules/memcmp (Status, Notice): New sections.
50592         * modules/argmatch (Depends-on): Add memchr.
50593         * modules/backupfile (Depends-on): Likewise.
50594         * modules/c-strcasestr (Depends-on): Likewise.
50595         * modules/crypto/des (Depends-on): Likewise.
50596         * modules/csharpcomp (Depends-on): Likewise.
50597         * modules/fnmatch (Depends-on): Likewise.
50598         * modules/git-merge-changelog (Depends-on): Likewise.
50599         * modules/isnand (Depends-on): Likewise.
50600         * modules/isnand-nolibm (Depends-on): Likewise.
50601         * modules/isnanf (Depends-on): Likewise.
50602         * modules/isnanf-nolibm (Depends-on): Likewise.
50603         * modules/isnanl (Depends-on): Likewise.
50604         * modules/isnanl-nolibm (Depends-on): Likewise.
50605         * modules/mbchar (Depends-on): Likewise.
50606         * modules/memcoll (Depends-on): Likewise.
50607         * modules/quotearg (Depends-on): Likewise.
50608         * modules/regex (Depends-on): Likewise.
50609         * modules/relocatable-prog (Depends-on): Likewise.
50610         * modules/same (Depends-on): Likewise.
50611         * modules/signbit (Depends-on): Likewise.
50612         * modules/strcasestr-simple (Depends-on): Likewise.
50613         * modules/unictype/gen-ctype (Depends-on): Likewise.
50614         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50615         * modules/uniname/uniname (Depends-on): Likewise.
50616         * modules/unistr/u8-cmp (Depends-on): Likewise.
50617
50618 2008-11-02  Bruno Haible  <bruno@clisp.org>
50619
50620         Mark 'memchr' obsolete.
50621         * modules/memchr (Status, Notice): New sections.
50622         * modules/argp (Depends-on): Add memchr.
50623         * modules/base64 (Depends-on): Likewise.
50624         * modules/c-strcasestr (Depends-on): Likewise.
50625         * modules/chdir-long (Depends-on): Likewise.
50626         * modules/fnmatch (Depends-on): Likewise.
50627         * modules/getsubopt (Depends-on): Likewise.
50628         * modules/git-merge-changelog (Depends-on): Likewise.
50629         * modules/glob (Depends-on): Likewise.
50630         * modules/strcasestr-simple (Depends-on): Likewise.
50631         * modules/strnlen (Depends-on): Likewise.
50632
50633 2008-11-02  Bruno Haible  <bruno@clisp.org>
50634
50635         Mark 'atexit' obsolete.
50636         * modules/atexit (Status, Notice): New sections.
50637         * modules/chdir-long (Depends-on): Add atexit.
50638         * modules/wait-process (Depends-on): Likewise.
50639
50640 2008-11-02  Bruno Haible  <bruno@clisp.org>
50641
50642         * gnulib-tool: New option --with-obsolete.
50643         (func_usage): Document it.
50644         (func_modules_transitive_closure): Drop obsolete dependencies if
50645         incobsolete is not true.
50646         (func_import): Read and save the incobsolete variable to the cache.
50647
50648 2008-11-02  Bruno Haible  <bruno@clisp.org>
50649
50650         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50651         * gnulib-tool: New option --extract-status.
50652         (func_usage): Document it.
50653         (sed_extract_prog): Recognize it.
50654         (func_get_status): New function.
50655
50656 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50657
50658         * modules/sockets (License): Change from LGPL to LGPLv2+.
50659
50660 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50661
50662         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50663
50664 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50665
50666         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50667         Mention times and sys_times.
50668         * modules/sys_times, modules/sys_times-tests: New modules.
50669         * modules/times, modules/times-tests: Likewise
50670         * m4/sys_times_h.m4: New file.
50671         * lib/sys_times.in.h: Likewise
50672         * lib/times.c: Likewise.
50673         * tests/test-sys_times.c: Likewise.
50674         * tests/test-times.c: Likewise.
50675         * doc/posix-headers/sys_times.texi: Update.
50676         * doc/posix-functions/times.texi: Update.
50677
50678 2008-10-28  Jim Meyering  <meyering@redhat.com>
50679
50680         * modules/tempname (Depends-on): Add lstat.
50681
50682         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50683
50684 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50685
50686         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50687         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50688         using idiom used elsewhere in gnulib.
50689
50690 2008-10-27  Jim Meyering  <meyering@redhat.com>
50691
50692         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50693
50694 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50695
50696         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50697         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50698         programs.
50699         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50700
50701 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50702
50703         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50704
50705 2008-10-27  Bruno Haible  <bruno@clisp.org>
50706
50707         * tests/test-lstat.c: Include <stdio.h>.
50708
50709 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50710
50711         * modules/lstat-tests: New module.
50712         * tests/test-lstat.c: New file.
50713
50714 2008-10-26  Jim Meyering  <meyering@redhat.com>
50715
50716         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50717
50718 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50719             Bruno Haible  <bruno@clisp.org>
50720
50721         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50722         * modules/configmake (Include): Add a note that the include must come
50723         after all system headers.
50724         * lib/javaversion.c: Include configmake.h after all other includes.
50725
50726 2008-10-26  Bruno Haible  <bruno@clisp.org>
50727
50728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50729         HAVE_STRUCT_RANDOM_DATA to 1.
50730         (gl_STDLIB_H): Simplify.
50731
50732 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50733
50734         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50735         substitute HAVE_STRUCT_RANDOM_DATA.
50736         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50737         random_data.
50738         * modules/stdlib (Makefile.am): Substitute
50739         HAVE_STRUCT_RANDOM_DATA.
50740
50741 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50742
50743         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50744         * doc/gnulib-intro.texi (Copyright): Likewise.
50745
50746 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50747
50748         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50749         findings.
50750
50751 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50752             Bruno Haible  <bruno@clisp.org>
50753
50754         * lib/unistd.in.h: Include <winsock2.h>.
50755         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50756         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50757         Provide dummy declarations.
50758         (gethostname): Override.
50759         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50760         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50761         gl_PREREQ_SYS_H_WINSOCK2.
50762         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50763         * doc/posix-functions/gethostname.texi: More details.
50764
50765 2008-10-25  Bruno Haible  <bruno@clisp.org>
50766
50767         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50768         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50769         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50770
50771         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50772         here ...
50773         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50774         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50775         gl_UNISTD_H_DEFAULTS.
50776
50777 2008-10-25  Eric Blake  <ebb9@byu.net>
50778
50779         signbit: avoid spurious compiler failure
50780         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50781         declarations inside function.
50782
50783 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50784             Bruno Haible  <bruno@clisp.org>
50785
50786         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50787         * modules/random_r (Depends-on): Add stdint.
50788
50789 2008-10-24  Bruno Haible  <bruno@clisp.org>
50790
50791         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50792         Eggert.
50793         * modules/strerror (License): Likewise.
50794
50795 2008-10-24  Jim Meyering  <meyering@redhat.com>
50796
50797         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50798         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50799
50800 2008-10-24  Eric Blake  <ebb9@byu.net>
50801
50802         getgroups: fix compilation when getgroups is available
50803         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50804         but with <config.h> override of getgroups disabled.
50805
50806 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50807
50808         * doc/gnulib.texi (Header files): Add note about C++ problems.
50809         Explained by Bruno Haible <bruno@clisp.org>.
50810
50811 2008-10-23  Bruno Haible  <bruno@clisp.org>
50812
50813         Define a dummy SA_NODEFER macro on Interix.
50814         * lib/signal.in.h (SA_NODEFER): Define fallback.
50815         Reported by Aleksey Cheusov <cheusov@tut.by> via
50816         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50817
50818 2008-10-23  Bruno Haible  <bruno@clisp.org>
50819
50820         * modules/freadahead (License): Change to LGPLv2+.
50821         Suggested by Simon Josefsson.
50822
50823 2008-10-23  Jim Meyering  <meyering@redhat.com>
50824
50825         random_r: new module
50826         * modules/random_r: New file.
50827         * m4/random_r.m4: New file.
50828         * lib/random_r.c: New file, from glibc.
50829         * modules/random_r-tests: New file.
50830         * tests/test-random_r.c: New file.
50831         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50832          Declare.
50833         (RAND_MAX): Define.
50834         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50835         * modules/stdlib: Substitute them, too.
50836         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50837         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50838         * doc/glibc-functions/random_r.texi: Likewise.
50839         * doc/glibc-functions/setstate_r.texi: Likewise.
50840         * doc/glibc-functions/srandom_r.texi: Likewise.
50841         * config/srclist.txt: Mention it.
50842
50843 2008-10-23  David Lutterkort  <lutter@redhat.com>
50844
50845         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50846         link requirement
50847
50848 2008-10-23  Jim Meyering  <meyering@redhat.com>
50849
50850         selinux-h: mark parameters of stub functions as intentionally unused
50851         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50852         * lib/se-context.in.h: Likewise.
50853
50854 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50855
50856         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50857
50858 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50859
50860         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50861
50862 2008-10-22  Eric Blake  <ebb9@byu.net>
50863
50864         glthread/thread: avoid compiler warning
50865         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50866         Add unreachable abort to silence compiler.
50867
50868 2008-10-22  Eric Blake  <ebb9@byu.net>
50869
50870         netdb: also supply struct addrinfo for cygwin 1.5.x
50871         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50872         older cygwin.
50873         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50874         cygwin.
50875         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50876
50877 2008-10-22  Bruno Haible  <bruno@clisp.org>
50878
50879         * users.txt: Update entry about pspp.
50880
50881 2008-10-21  Bruno Haible  <bruno@clisp.org>
50882
50883         Simplification.
50884         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50885         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50886
50887         Simplification.
50888         * lib/ioctl.c (ioctl): Don't undefine.
50889         * lib/socket.c (socket): Don't undefine.
50890
50891         Remove unused module indicator macros.
50892         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50893         GNULIB_$1 as a C macro.
50894
50895         * doc/posix-functions/close.texi: Undo last change.
50896         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50897         Windows platforms.
50898
50899 2008-10-21  Bruno Haible  <bruno@clisp.org>
50900
50901         Add gethostname() declaration to <unistd.h>.
50902         * lib/unistd.in.h (gethostname): New declaration.
50903         * lib/gethostname.c: Include <unistd.h>.
50904         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50905         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50907         and HAVE_GETHOSTNAME.
50908         * modules/gethostname (Depends-on): Add unistd.
50909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50910         (Include): Specify <unistd.h>.
50911         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50912         HAVE_GETHOSTNAME.
50913         * tests/test-gethostname.c: Include <unistd.h> first.
50914
50915 2008-10-21  Bruno Haible  <bruno@clisp.org>
50916
50917         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50918         * modules/select-tests (Depends-on): Likewise.
50919         Reported by Simon Josefsson.
50920
50921 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50922
50923         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50924         * lib/accept.c: New file, based on winsock.c.
50925         * lib/bind.c: New file, based on winsock.c.
50926         * lib/connect.c: New file, based on winsock.c.
50927         * lib/getpeername.c: New file, based on winsock.c.
50928         * lib/getsockname.c: New file, based on winsock.c.
50929         * lib/getsockopt.c: New file, based on winsock.c.
50930         * lib/ioctl.c: New file, based on winsock.c.
50931         * lib/listen.c: New file, based on winsock.c.
50932         * lib/recv.c: New file, based on winsock.c.
50933         * lib/recvfrom.c: New file, based on winsock.c.
50934         * lib/send.c: New file, based on winsock.c.
50935         * lib/sendto.c: New file, based on winsock.c.
50936         * lib/setsockopt.c: New file, based on winsock.c.
50937         * lib/shutdown.c: New file, based on winsock.c.
50938         * lib/socket.c: New file, based on winsock.c.
50939         * lib/w32sock.h: New file, based on winsock.c.
50940         * lib/winsock.c: Remove file.
50941         * modules/accept: Likewise.
50942         * modules/bind: Likewise.
50943         * modules/connect: Likewise.
50944         * modules/getpeername: Likewise.
50945         * modules/getsockname: Likewise.
50946         * modules/getsockopt: Likewise.
50947         * modules/ioctl: Likewise.
50948         * modules/listen: Likewise.
50949         * modules/recv: Likewise.
50950         * modules/recvfrom: Likewise.
50951         * modules/send: Likewise.
50952         * modules/sendto: Likewise.
50953         * modules/setsockopt: Likewise.
50954         * modules/shutdown: Likewise.
50955         * modules/socket: Use socket.c instead of winsock.c.
50956         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50957         * doc/posix-functions/accept.texi: Doc fix.
50958         * doc/posix-functions/bind.texi: Doc fix.
50959         * doc/posix-functions/close.texi: Doc fix.
50960         * doc/posix-functions/connect.texi: Doc fix.
50961         * doc/posix-functions/getpeername.texi: Doc fix.
50962         * doc/posix-functions/getsockname.texi: Doc fix.
50963         * doc/posix-functions/getsockopt.texi: Doc fix.
50964         * doc/posix-functions/ioctl.texi: Doc fix.
50965         * doc/posix-functions/listen.texi: Doc fix.
50966         * doc/posix-functions/recv.texi: Doc fix.
50967         * doc/posix-functions/recvfrom.texi: Doc fix.
50968         * doc/posix-functions/send.texi: Doc fix.
50969         * doc/posix-functions/sendto.texi: Doc fix.
50970         * doc/posix-functions/setsockopt.texi: Doc fix.
50971         * doc/posix-functions/shutdown.texi: Doc fix.
50972         * doc/posix-functions/socket.texi: Doc fix.
50973
50974 2008-10-20  Bruno Haible  <bruno@clisp.org>
50975
50976         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50977         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50978         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50979         as an alias for SIGABRT.
50980         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50981         (sigaction): Map it to SIGABRT.
50982         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50983
50984 2008-10-20  Bruno Haible  <bruno@clisp.org>
50985
50986         * lib/fts.c: Don't include lstat.h.
50987         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50988
50989         Move the lstat() declaration to <sys/stat.h>.
50990         * lib/lstat.h: Remove file.
50991         * lib/sys_stat.in.h: Add special invocation convention.
50992         (lstat): New declaration.
50993         * lib/lstat.c (orig_lstat): New function.
50994         (rpl_lstat): Use orig_lstat instead of lstat.
50995         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50996         AC_C_INLINE. Set REPLACE_LSTAT.
50997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50998         and REPLACE_LSTAT.
50999         * modules/lstat (Files): Remove lib/lstat.h.
51000         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51001         (Include): Specify <sys/stat.h> instead of lstat.h.
51002         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51003         REPLACE_LSTAT.
51004         * NEWS: Mention the change.
51005
51006 2008-10-20  Bruno Haible  <bruno@clisp.org>
51007
51008         * modules/posix_spawn-tests: New file.
51009         * tests/test-posix_spawn3.c: New file.
51010
51011 2008-10-20  Bruno Haible  <bruno@clisp.org>
51012
51013         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51014         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51015         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51016         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51017         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51018
51019 2008-10-20  Bruno Haible  <bruno@clisp.org>
51020
51021         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51022         of posix_spawn on AIX 5.3.
51023
51024 2008-10-20  Bruno Haible  <bruno@clisp.org>
51025
51026         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51027
51028 2008-10-20  Bruno Haible  <bruno@clisp.org>
51029
51030         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51031         of AC_LANG_PROGRAM.
51032
51033 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51034
51035         * lib/netdb.in.h: Don't define GNU specific constants until they
51036         are supported or needed.  Reported by Bruno Haible
51037         <bruno@clisp.org>.
51038
51039 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51040
51041         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51042
51043 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51044
51045         * lib/getaddrinfo.h: Remove file.
51046         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51047         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51048         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51049         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51050         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51051         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51052         * tests/test-getaddrinfo.c: Likewise.
51053         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51054         * NEWS: Mention change.
51055
51056 2008-10-19  Bruno Haible  <bruno@clisp.org>
51057
51058         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51059
51060 2008-10-19  Bruno Haible  <bruno@clisp.org>
51061
51062         * lib/wait-process.c: Include simply <sys/wait.h>.
51063         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51064         WIFSTOPPED): Remove fallback definitions.
51065         * modules/wait-process (Depends-on): Add sys_wait.
51066
51067         New module 'sys_wait'.
51068         * modules/sys_wait: New file.
51069         * lib/sys_wait.in.h: New file, partially copied from
51070         lib/wait-process.c.
51071         * m4/sys_wait_h.m4: New file.
51072         * doc/posix-headers/sys_wait.texi: Mention the new module.
51073
51074 2008-10-19  Bruno Haible  <bruno@clisp.org>
51075
51076         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51077
51078 2008-10-19  Bruno Haible  <bruno@clisp.org>
51079
51080         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51081         * lib/wait-process.c (WAIT_T): Remove type.
51082         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51083         (wait_subprocess): Update.
51084
51085 2008-10-19  Bruno Haible  <bruno@clisp.org>
51086
51087         New module 'atoll'.
51088         * modules/atoll: New file.
51089         * lib/stdlib.in.h (atoll): New declaration.
51090         * lib/atoll.c: New file, from glibc with modifications.
51091         * m4/atoll.m4: New file.
51092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51093         HAVE_ATOLL.
51094         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51095         * doc/posix-functions/atoll.texi: Mention the new module.
51096
51097 2008-10-19  Bruno Haible  <bruno@clisp.org>
51098
51099         Add strtoull() declaration to <stdlib.h>.
51100         * lib/stdlib.in.h (strtoull): New declaration.
51101         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51102         Set HAVE_STRTOULL.
51103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51104         HAVE_STRTOULL.
51105         * modules/strtoull (Depends-on): Add stdlib.
51106         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51107         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51108         HAVE_STRTOULL.
51109
51110 2008-10-19  Bruno Haible  <bruno@clisp.org>
51111
51112         Add strtoll() declaration to <stdlib.h>.
51113         * lib/stdlib.in.h (strtoll): New declaration.
51114         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51115         Set HAVE_STRTOLL.
51116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51117         HAVE_STRTOLL.
51118         * modules/strtoll (Depends-on): Add stdlib.
51119         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51120         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51121
51122 2008-10-19  Bruno Haible  <bruno@clisp.org>
51123
51124         * modules/bcopy (Depends-on): Add strings.
51125         (Include): Specify <strings.h>.
51126
51127 2008-10-19  Bruno Haible  <bruno@clisp.org>
51128
51129         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51130
51131 2008-10-19  Bruno Haible  <bruno@clisp.org>
51132
51133         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51134         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51135         mingw.
51136
51137 2008-10-19  Bruno Haible  <bruno@clisp.org>
51138
51139         * lib/atanl.c: Don't include isnanl.h.
51140         * lib/cosl.c: Likewise.
51141         * lib/ldexpl.c: Likewise.
51142         * lib/logl.c: Likewise.
51143         * lib/sinl.c: Likewise.
51144         * lib/sqrtl.c: Likewise.
51145         * lib/tanl.c: Likewise.
51146
51147         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51148         * lib/isnanf.h: Remove file.
51149         * lib/isnand.h: Remove file.
51150         * lib/isnanl.h: Remove file.
51151         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51152         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51153         macros.
51154         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51155         HAVE_ISNANF, don't define it as a C macro.
51156         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51157         HAVE_ISNAND, don't define it as a C macro.
51158         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51159         HAVE_ISNANL, don't define it as a C macro.
51160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51161         HAVE_ISNAN[FDL].
51162         * modules/isnanf (Files): Remove lib/isnanf.h.
51163         (Depends-on): Add math.
51164         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51165         (Include): Specify <math.h> instead of isnanf.h.
51166         * modules/isnand (Files): Remove lib/isnand.h.
51167         (Depends-on): Add math.
51168         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51169         (Include): Specify <math.h> instead of isnand.h.
51170         * modules/isnanl (Files): Remove lib/isnanl.h.
51171         (Depends-on): Add math.
51172         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51173         (Include): Specify <math.h> instead of isnanl.h.
51174         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51175         HAVE_ISNAN[FDL].
51176         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51177         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51178         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51179         * NEWS: Mention the change.
51180
51181 2008-10-18  Bruno Haible  <bruno@clisp.org>
51182
51183         Add getusershell(), setusershell(), endusershell() declarations to
51184         <unistd.h>.
51185         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51186         declarations.
51187         * lib/getusershell.c: Include unistd.h.
51188         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51189         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51190         HAVE_GETUSERSHELL.
51191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51192         and HAVE_GETUSERSHELL.
51193         * modules/getusershell (Depends-on): Add unistd, extensions.
51194         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51195         (Include): Specify <unistd.h>.
51196         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51197         HAVE_GETUSERSHELL.
51198
51199 2008-10-18  Bruno Haible  <bruno@clisp.org>
51200
51201         Add a getloadavg() declaration to <stdlib.h>.
51202         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51203         getloadavg declaration.
51204         (getloadavg): New declaration.
51205         * lib/getloadavg.c: Include <stdlib.h> first.
51206         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51207         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51208         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51209         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51210         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51211         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51212         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51213         (Include): Specify <stdlib.h>.
51214         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51215         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51216
51217 2008-10-18  Bruno Haible  <bruno@clisp.org>
51218
51219         * lib/dirchownmod.c: Don't include lchmod.h.
51220
51221         Move the lchmod() declaration to <sys/stat.h>.
51222         * lib/lchmod.h: Remove file.
51223         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51224         (lchmod): New declaration, moved here from lib/lchown.h.
51225         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51226         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51228         and HAVE_LCHMOD.
51229         * modules/lchmod (Files): Remove lib/lchmod.h.
51230         (Depends-on): Add sys_stat, extensions.
51231         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51232         (Include): Specify <sys/stat.h> instead of lchmod.h.
51233         * modules/sys_stat (Depends-on): Add link-warning.
51234         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51235         definition of GL_LINK_WARNING.
51236         * NEWS: Mention the change.
51237
51238 2008-10-18  Bruno Haible  <bruno@clisp.org>
51239
51240         * lib/fchdir.c: Don't include dirfd.h.
51241         * lib/fts.c: Likewise.
51242         * lib/getcwd.c: Likewise.
51243         * lib/glob.c: Likewise.
51244
51245         Move the dirfd() declaration to <dirent.h>.
51246         * lib/dirfd.h: Remove file.
51247         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51248         (dirfd): New declaration.
51249         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51250         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51251         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51252         HAVE_DECL_DIRFD.
51253         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51254         HAVE_DECL_DIRFD.
51255         * modules/dirfd (Files): Remove lib/dirfd.h.
51256         (Depends-on): Add dirent, extensions.
51257         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51258         (Include): Specify <dirent.h> instead of dirfd.h.
51259         * modules/dirent (Depends-on): Add link-warning.
51260         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51261         definition of GL_LINK_WARNING.
51262         * NEWS: Mention the change.
51263
51264 2008-10-18  Bruno Haible  <bruno@clisp.org>
51265
51266         Move the euidaccess() declaration to <unistd.h>.
51267         * lib/euidaccess.h: Remove file.
51268         * lib/unistd.in.h (euidaccess): New declaration.
51269         * lib/euidaccess.c: Don't include euidaccess.h.
51270         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51271         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51273         and HAVE_EUIDACCESS.
51274         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51275         (Depends-on): Add unistd.
51276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51277         (Include): Specify <unistd.h> instead of euidaccess.h.
51278         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51279         HAVE_EUIDACCESS.
51280         * NEWS: Mention the change.
51281
51282 2008-10-18  Bruno Haible  <bruno@clisp.org>
51283
51284         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51285
51286         Move the getdomainname() declaration to <unistd.h>.
51287         * lib/getdomainname.h: Remove file.
51288         * lib/unistd.in.h (getdomainname): New declaration.
51289         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51290         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51291         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51292         HAVE_GETDOMAINNAME.
51293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51294         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51295         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51296         (Depends-on): Add unistd, extensions.
51297         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51298         (Includes): Specify <unistd.h> instead of getdomainname.h.
51299         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51300         HAVE_GETDOMAINNAME.
51301         * NEWS: Mention the change.
51302
51303 2008-10-18  Bruno Haible  <bruno@clisp.org>
51304
51305         * modules/dirent: New file.
51306         * m4/dirent_h.m4: New file.
51307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51308         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51309         * modules/fchdir (Files): Remove lib/dirent.in.h.
51310         (Depends-on): Add dirent.
51311         (Makefile.am): Move rules to modules/dirent.
51312         * doc/posix-headers/dirent.texi: Mention the new module.
51313
51314 2008-10-18  Bruno Haible  <bruno@clisp.org>
51315
51316         Avoid -Wunused-parameter warnings in public gnulib header files.
51317         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51318         macro.
51319         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51320
51321 2008-10-18  Bruno Haible  <bruno@clisp.org>
51322
51323         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51324         * doc/glibc-functions/error.texi: Mention the module 'error'.
51325         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51326         * doc/glibc-functions/getdomainname.texi: Mention the module
51327         'getdomainname'.
51328         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51329         * doc/glibc-functions/getpagesize.texi: Mention the module
51330         'getpagesize'.
51331         * doc/glibc-functions/getusershell.texi: Mention the module
51332         'getusershell'.
51333         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51334         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51335         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51336         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51337         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51338         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51339         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51340         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51341         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51342         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51343         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51344         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51345         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51346         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51347
51348 2008-10-17  Bruno Haible  <bruno@clisp.org>
51349
51350         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51351         HP-UX and IRIX, use -0.0L.
51352         * tests/test-ceill.c (minus_zero): Likewise.
51353         * tests/test-floorl.c (minus_zero): Likewise.
51354         * tests/test-frexpl.c (minus_zero): Likewise.
51355         * tests/test-isnan.c (minus_zerol): Likewise.
51356         * tests/test-isnanl.h (minus_zero): Likewise.
51357         * tests/test-ldexpl.c (minus_zero): Likewise.
51358         * tests/test-roundl.c (minus_zero): Likewise.
51359         * tests/test-signbit.c (minus_zerol): Likewise.
51360         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51361         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51362         * tests/test-truncl.c (minus_zero): Likewise.
51363         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51364         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51365         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51366         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51367
51368 2008-10-17  Bruno Haible  <bruno@clisp.org>
51369
51370         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51371         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51372         that it gets activated only for gcc >= 3.0.
51373         * lib/dirent.in.h: Likewise.
51374         * lib/errno.in.h: Likewise.
51375         * lib/fcntl.in.h: Likewise.
51376         * lib/float.in.h: Likewise.
51377         * lib/iconv.in.h: Likewise.
51378         * lib/inttypes.in.h: Likewise.
51379         * lib/locale.in.h: Likewise.
51380         * lib/math.in.h: Likewise.
51381         * lib/netdb.in.h: Likewise.
51382         * lib/netinet_in.in.h: Likewise.
51383         * lib/search.in.h: Likewise.
51384         * lib/signal.in.h: Likewise.
51385         * lib/spawn.in.h: Likewise.
51386         * lib/stdarg.in.h: Likewise.
51387         * lib/stdint.in.h: Likewise.
51388         * lib/stdio.in.h: Likewise.
51389         * lib/stdlib.in.h: Likewise.
51390         * lib/string.in.h: Likewise.
51391         * lib/strings.in.h: Likewise.
51392         * lib/sys_file.in.h: Likewise.
51393         * lib/sys_ioctl.in.h: Likewise.
51394         * lib/sys_select.in.h: Likewise.
51395         * lib/sys_socket.in.h: Likewise.
51396         * lib/sys_stat.in.h: Likewise.
51397         * lib/sys_time.in.h: Likewise.
51398         * lib/sysexits.in.h: Likewise.
51399         * lib/time.in.h: Likewise.
51400         * lib/unistd.in.h: Likewise.
51401         * lib/wchar.in.h: Likewise.
51402         * lib/wctype.in.h: Likewise.
51403         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51404
51405 2008-10-17  Jim Meyering  <meyering@redhat.com>
51406
51407         ignore-value: don't depend on inline module
51408         * modules/ignore-value (Depends-on): Remove 'inline'.
51409         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51410         Suggestion from Bruno Haible.
51411
51412 2008-10-17  Bruno Haible  <bruno@clisp.org>
51413
51414         New implementation of condition variables for Win32.
51415         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51416         (gl_linked_waitqueue_t): New type.
51417         (gl_cond_t): Use it.
51418         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51419         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51420         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51421         (glthread_cond_init_func, glthread_cond_wait_func,
51422         glthread_cond_timedwait_func, glthread_cond_signal_func,
51423         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51424         Reimplemented on the basis of gl_linked_waitqueue_t.
51425         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51426         gl_waitqueue_t.
51427         (gl_rwlock_t): Update.
51428         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51429
51430 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51431
51432         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51433         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51434
51435 2008-10-17  Jim Meyering  <meyering@redhat.com>
51436
51437         ignore-value: new module
51438         * modules/ignore-value: New file.
51439         * lib/ignore-value.h: New file.
51440         * MODULES.html.sh (Compiler warning management): New section,
51441         just for this module.  More to come.
51442
51443 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51444
51445         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51446         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51447         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51448
51449 2008-10-16  Jim Meyering  <meyering@redhat.com>
51450
51451         openat-die.c: avoid 'no previous prototype' warning
51452         * lib/openat-die.c: Include "openat.h".
51453         Reported by Reuben Thomas <rrt@sc3d.org>.
51454
51455 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51456
51457         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51458         * lib/netdb.in.h: Fix typo.
51459         Reported by Bruno Haible  <bruno@clisp.org>
51460
51461         * lib/netdb.in.h: Include sys/socket.h for platforms without
51462         netdb.h, to get structures like hostent on MinGW.
51463         * modules/netdb (Depends-on): Add sys_socket.
51464
51465 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51466
51467         * modules/netdb, modules/netdb-tests: New file.
51468         * m4/netdb_h.m4: New file.
51469         * lib/netdb.in.h: Add, currently just an empty file pending
51470         definitions.
51471         * tests/test-netdb.c: New file.
51472         * doc/posix-headers/netdb.texi: Mention that we replace it if
51473         needed.
51474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51475         netdb.
51476
51477 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51478
51479         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51480         with code.
51481
51482 2008-10-13  Bruno Haible  <bruno@clisp.org>
51483
51484         * lib/glthread/cond.c (glthread_cond_wait_func,
51485         glthread_cond_timedwait_func): Add a comment.
51486
51487 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51488
51489         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51490         * tests/test-select.c: Likewise,
51491
51492 2008-10-13  Bruno Haible  <bruno@clisp.org>
51493
51494         * lib/glthread/cond.c (glthread_cond_wait_func,
51495         glthread_cond_timedwait_func): Fix variable name.
51496         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51497
51498 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51499
51500         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51501         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51502         struct sockaddr.sa_len.
51503         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51504
51505 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51506
51507         * build-aux/pmccabe2html: Add css and css_url parameters.
51508
51509 2008-10-12  Bruno Haible  <bruno@clisp.org>
51510
51511         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51512         calling aclx_get.
51513         Reported by Rainer Tammer <tammer@tammer.net>.
51514
51515 2008-10-12  Bruno Haible  <bruno@clisp.org>
51516
51517         Use msvcrt aware primitives for creation/termination of Win32 threads.
51518         * lib/glthread/thread.c: Include <process.h>.
51519         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51520         (wrapper_func): Update signature.
51521         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51522
51523 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51524             Bruno Haible  <bruno@clisp.org>
51525
51526         Provide a Win32 implementation of the 'cond' module.
51527         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51528         * lib/glthread/cond.c (glthread_cond_init_func,
51529         glthread_cond_wait_func, glthread_cond_timedwait_func,
51530         glthread_cond_signal_func, glthread_cond_broadcast_func,
51531         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51532         * modules/cond (Dependencies): Add gettimeofday.
51533
51534 2008-10-11  Bruno Haible  <bruno@clisp.org>
51535
51536         Make sleep work on older versions of mingw.
51537         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51538         only whether it exists.
51539         * doc/posix-functions/sleep.texi: Mention the problem with older
51540         versions of mingw.
51541
51542 2008-10-11  Bruno Haible  <bruno@clisp.org>
51543
51544         New module 'shutdown'.
51545         * modules/shutdown: New file.
51546         * lib/sys_socket.in.h (shutdown): New declaration.
51547         * lib/winsock.c (shutdown): New function.
51548         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51549         GNULIB_SHUTDOWN.
51550         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51551         * doc/posix-functions/shutdown.texi: Document the new module.
51552
51553 2008-10-11  Jim Meyering  <meyering@redhat.com>
51554
51555         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51556
51557 2008-10-11  Bruno Haible  <bruno@clisp.org>
51558
51559         New module 'fclose'.
51560         * modules/fclose: New file.
51561         * lib/stdio.in.h (fclose): New declaration.
51562         * lib/fclose.c: New file.
51563         * m4/fclose.m4: New file.
51564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51565         REPLACE_FCLOSE.
51566         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51567         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51568         REPLACE_FCLOSE.
51569         * modules/close (Depends-on): fclose.
51570         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51571
51572 2008-10-11  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51575         set errno and don't call _close.
51576
51577 2008-10-10  Bruno Haible  <bruno@clisp.org>
51578
51579         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51580         ACL, not afterwards. Fixes test failure on Cygwin.
51581
51582 2008-10-09  Ben Pfaff  <blp@gnu.org>
51583
51584         * build-aux/announce-gen: Fix gnulib version related part of usage
51585         message.  Die with a useful error message if no tarballs are
51586         found.
51587
51588 2008-10-10  Jim Meyering  <meyering@redhat.com>
51589
51590         bootstrap: use git's --depth=N option only if it's supported
51591         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51592         recognize the --depth option.  Reported by Pádraig Brady.
51593
51594 2008-10-09  Bruno Haible  <bruno@clisp.org>
51595
51596         New module 'ioctl'.
51597         * modules/ioctl: New file.
51598         * lib/sys_socket.in.h (ioctl): Remove declaration.
51599         * lib/winsock.c: Include <sys/ioctl.h>.
51600         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51601         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51602         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51603         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51604         * doc/posix-functions/ioctl.texi: Mention the new module.
51605
51606 2008-10-09  Bruno Haible  <bruno@clisp.org>
51607
51608         New module 'sys_ioctl'.
51609         * lib/sys_ioctl.in.h: New file.
51610         * m4/sys_ioctl_h.m4: New file.
51611         * modules/sys_ioctl: New file.
51612         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51613
51614 2008-10-09  Bruno Haible  <bruno@clisp.org>
51615
51616         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51617         * lib/winsock.c: Include <stdarg.h>.
51618         (rpl_ioctl): Change to second argument 'int' and then varargs.
51619
51620 2008-10-09  Bruno Haible  <bruno@clisp.org>
51621
51622         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51623         when the sys_socket module is present and the system has <winsock2.h>.
51624
51625 2008-10-09  Bruno Haible  <bruno@clisp.org>
51626
51627         * doc/posix-functions/close.texi: Mention module 'close' instead of
51628         module 'sys_socket'.
51629
51630 2008-10-09  Bruno Haible  <bruno@clisp.org>
51631
51632         * doc/glibc-headers/sys_ioctl.texi: New file.
51633         * doc/gnulib.texi: Include it.
51634
51635 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51636             Bruno Haible  <bruno@clisp.org>
51637
51638         Combine the two replacements of 'close'.
51639         * lib/sys_socket.in.h (close): Define to a reminder to include
51640         <unistd.h>.
51641         (_gl_close_fd_maybe_socket): New declaration.
51642         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51643         * lib/winsock.c (close): Remove undefinition.
51644         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51645         needed for the gnulib module 'close'.
51646         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51647         define to an error symbol or to a warning, if suitable.
51648         * lib/close.c: Include <sys/socket.h>.
51649         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51650         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51651         UNISTD_H_HAVE_WINSOCK2_H.
51652         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51654         UNISTD_H_HAVE_WINSOCK2_H.
51655         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51656         (configure.ac): Set a module indicator.
51657         (Makefile.am): Substitute GNULIB_CLOSE.
51658         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51659         * modules/poll-tests (Depends-on): Add close.
51660         * modules/select-tests (Depends-on): Likewise.
51661
51662 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51663             Bruno Haible  <bruno@clisp.org>
51664
51665         New module 'close'.
51666         * modules/close: New file.
51667         * lib/unistd.in.h (close): Move declaration out of the
51668         FCHDIR_REPLACEMENT scope.
51669         (_gl_unregister_fd): New declaration.
51670         * lib/close.c: New file.
51671         * lib/fchdir.c (rpl_close): Remove function.
51672         * m4/close.m4: New file.
51673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51674         close.
51675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51676         REPLACE_CLOSE.
51677         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51678         REPLACE_CLOSE.
51679         * modules/fchdir (Depends-on): Add close.
51680
51681 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51682             Bruno Haible  <bruno@clisp.org>
51683
51684         * lib/fcntl.in.h (open): Simplify conditionals.
51685         (_gl_register_fd): New declaration.
51686         * lib/fchdir.c (rpl_open): Remove function.
51687         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51688         also.
51689         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51691         open.
51692
51693 2008-10-09  Jim Meyering  <meyering@redhat.com>
51694
51695         GNUmakefile: use the more name-space-friendly "_version"
51696         * top/GNUmakefile (_dummy): Update.
51697         (_version): Rename from "version".
51698
51699 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51700             Bruno Haible  <bruno@clisp.org>
51701
51702         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51703         rpl_close.
51704         (_gl_register_fd): New function, extracted from rpl_open.
51705         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51706         (rpl_open, rpl_opendir): Use _gl_register_fd.
51707
51708 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51709
51710         Fix organization of 'open' replacement.
51711         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51712         (gl_FUNC_OPEN): Use it.
51713         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51714
51715 2008-10-08  Bruno Haible  <bruno@clisp.org>
51716
51717         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51718
51719 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51720
51721         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51722         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51723         listen).
51724
51725 2008-10-08  Eric Blake  <ebb9@byu.net>
51726
51727         GNUmakefile: add 'make version' target
51728         * top/GNUmakefile (_curr-ver): Split version update rules...
51729         (version): ...into a target.
51730
51731 2008-10-07  Bruno Haible  <bruno@clisp.org>
51732
51733         Use a more portable replacement expression for -0.0L.
51734         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51735         instead of -0.0L. Fix m4 quotation.
51736
51737         * tests/test-signbit.c: Include <float.h>.
51738         (minus_zero): New variable.
51739         (test_signbitl): Use minus_zero instead of -zero.
51740         * modules/signbit-tests (Depends-on): Add float.
51741
51742         * tests/test-ceill.c: Include <float.h>.
51743         (zero): Remove variable.
51744         (minus_zero): New variable.
51745         (main): Use minus_zero instead of -zero.
51746         * modules/ceill-tests (Depends-on): Add float.
51747
51748         * tests/test-floorl.c: Include <float.h>.
51749         (zero): Remove variable.
51750         (minus_zero): New variable.
51751         (main): Use minus_zero instead of -zero.
51752         * modules/floorl-tests (Depends-on): Add float.
51753
51754         * tests/test-roundl.c: Include <float.h>.
51755         (zero): Remove variable.
51756         (minus_zero): New variable.
51757         (main): Use minus_zero instead of -zero.
51758         * modules/roundl-tests (Depends-on): Add float.
51759
51760         * tests/test-truncl.c: Include <float.h>.
51761         (zero): Remove variable.
51762         (minus_zero): New variable.
51763         (main): Use minus_zero instead of -zero.
51764         * modules/truncl-tests (Depends-on): Add float.
51765
51766         * tests/test-frexpl.c (zero): Remove variable.
51767         (minus_zero): New variable.
51768         (main): Use minus_zero instead of -zero.
51769         * modules/frexpl-tests (Depends-on): Add float.
51770
51771         * tests/test-isnan.c (zerol): Remove variable.
51772         (minus_zerol): New variable.
51773         (test_long_double): Use minus_zerol instead of -zerol.
51774         * modules/isnan-tests (Depends-on): Add float.
51775
51776         * tests/test-isnanl.h (zero): Remove variable.
51777         (minus_zero): New variable.
51778         (main): Use minus_zero instead of -zero.
51779         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51780         * modules/isnanl-tests (Depends-on): Add float.
51781
51782         * tests/test-ldexpl.c (zero): Remove variable.
51783         (minus_zero): New variable.
51784         (main): Use minus_zero instead of -zero.
51785         * modules/ldexpl-tests (Depends-on): Add float.
51786
51787         * tests/test-snprintf-posix.h (zerol): Remove variable.
51788         (minus_zerol): New variable.
51789         (test_function): Use minus_zerol instead of -zerol.
51790         * modules/snprintf-posix-tests (Depends-on): Add float.
51791         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51792
51793         * tests/test-sprintf-posix.h (zerol): Remove variable.
51794         (minus_zerol): New variable.
51795         (test_function): Use minus_zerol instead of -zerol.
51796         * modules/sprintf-posix-tests (Depends-on): Add float.
51797         * modules/vsprintf-posix-tests (Depends-on): Add float.
51798
51799         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51800         (minus_zerol): New variable.
51801         (test_function): Use minus_zerol instead of -zerol.
51802         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51803
51804         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51805         (minus_zerol): New variable.
51806         (test_function): Use minus_zerol instead of -zerol.
51807         * modules/vasprintf-posix-tests (Depends-on): Add float.
51808
51809 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51810
51811         * MODULES.html.sh (Support for building documentation): Mention
51812         pmccabe2html.  Sort entries.
51813
51814         Add pmccabe2html module, from gnupdf.
51815         * build-aux/pmccabe.css: New file.
51816         * build-aux/pmccabe2html: New file.
51817         * m4/pmccabe2html.m4: New file.
51818         * modules/pmccabe2html: New file.
51819
51820 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51821
51822         flock: new module
51823         * MODULES.html.sh: Add to list of modules.
51824         * lib/flock.c: flock implementation for Windows and Unix systems
51825         which have fcntl.
51826         * doc/glibc-functions/flock.texi: Update documentation.
51827         * lib/sys_file.in.h: <sys/file.h> header file.
51828         * m4/flock.m4: M4 macros.
51829         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51830         * modules/flock: flock module.
51831         * modules/flock-tests: flock tests module.
51832         * modules/sys_file: sys/file.h module.
51833         * tests/test-flock.c: test suite for flock.
51834
51835 2008-10-06  Jim Meyering  <meyering@redhat.com>
51836
51837         bootstrap: check for LT_INIT more portably still ;-)
51838         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51839         Spotted by Bruno Haible.
51840
51841 2008-10-06  Eric Blake  <ebb9@byu.net>
51842
51843         test-signbit: avoid tripping Irix cc bug on -0.0L
51844         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51845         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51846         entire testsuite consistent and avoids an Irix 6.2 bug.
51847
51848 2008-10-05  Bruno Haible  <bruno@clisp.org>
51849             Jim Meyering  <jim@meyering.net>
51850
51851         Add an option for ignoring EPIPE during close_stdout.
51852         * lib/closeout.h: Include <stdbool.h>.
51853         (close_stdout_set_ignore_EPIPE): New declaration.
51854         * lib/closeout.c: Include <stdbool.h>.
51855         (ignore_EPIPE): New variable.
51856         (close_stdout_set_ignore_EPIPE): New function.
51857         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51858         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51859         failure.
51860         * modules/closeout (Depends-on): Add stdbool.
51861
51862 2008-10-05  Bruno Haible  <bruno@clisp.org>
51863
51864         * modules/accept: New file.
51865         * modules/bind: New file.
51866         * modules/connect: New file.
51867         * modules/getpeername: New file.
51868         * modules/getsockname: New file.
51869         * modules/getsockopt: New file.
51870         * modules/listen: New file.
51871         * modules/recv: New file.
51872         * modules/recvfrom: New file.
51873         * modules/send: New file.
51874         * modules/sendto: New file.
51875         * modules/setsockopt: New file.
51876         * modules/socket: New file.
51877         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51878         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51879         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51880         the particular module is requested. Add a link warning when the
51881         particular module is not requested.
51882         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51883         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51884         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51885         the particular module is requested.
51886         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51887         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51888         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51889         * modules/sys_socket (Depends-on): Add link-warning.
51890         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51891         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51892         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51893         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51894         GL_LINK_WARNING.
51895         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51896         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51897         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51898         * doc/posix-functions/getpeername.texi: Mention the new module
51899         'getpeername'.
51900         * doc/posix-functions/getsockname.texi: Mention the new module
51901         'getsockname'.
51902         * doc/posix-functions/getsockopt.texi: Mention the new module
51903         'getsockopt'.
51904         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51905         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51906         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51907         * doc/posix-functions/send.texi: Mention the new module 'send'.
51908         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51909         * doc/posix-functions/setsockopt.texi: Mention the new module
51910         'setsockopt'.
51911         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51912         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51913         listen, connect, accept.
51914         * modules/select-tests (Depends-on): Likewise.
51915
51916 2008-10-05  Bruno Haible  <bruno@clisp.org>
51917
51918         * lib/winsock.c (strerror): Remove unused #undef.
51919         (rpl_close): Remove unused local variable.
51920
51921         * modules/sys_socket (Depends-on); Add errno.
51922
51923 2008-10-05  Bruno Haible  <bruno@clisp.org>
51924
51925         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51926         (select): Add a link warning when the 'select' module is not used.
51927         * modules/sys_select (Depends-on): Add link-warning.
51928         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51929         Suggested by Paolo Bonzini.
51930
51931 2008-10-05  Jim Meyering  <meyering@redhat.com>
51932
51933         bootstrap: check for LT_INIT more portably
51934         * build-aux/bootstrap: Avoid using grep -E, since it's not
51935         portable enough.  Suggestion from Bruno Haible.
51936
51937 2008-10-05  Bruno Haible  <bruno@clisp.org>
51938
51939         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51940         as being fixed by gnulib.
51941
51942 2008-10-05  Bruno Haible  <bruno@clisp.org>
51943
51944         * modules/select-tests: New file, mostly copied from
51945         modules/sys_select-tests.
51946         * tests/test-select.c: New file, mostly copied from
51947         tests/test-sys_select.c.
51948         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51949         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51950         (Makefile.am): Remove test_sys_select_LDADD.
51951
51952         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51953         to an undefined symbol, for an error message.
51954         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51955         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51956         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51957         winsock-select.c here.
51958         * modules/sys_select (Files): Remove lib/winsock-select.c.
51959         (Depends-on): Remove alloca.
51960         (Makefile.am): Substitute GNULIB_SELECT.
51961         * modules/select: New file.
51962         * doc/posix-functions/select.texi: Update.
51963
51964 2008-10-05  Bruno Haible  <bruno@clisp.org>
51965
51966         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51967         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51968         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51969         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51970         getdtablesize.
51971         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51972         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51973
51974 2008-10-05  Bruno Haible  <bruno@clisp.org>
51975
51976         * modules/getdtablesize-tests: New file.
51977         * tests/test-getdtablesize.c: New file.
51978
51979         New module 'getdtablesize'.
51980         * lib/unistd.in.h (getdtablesize): New declaration.
51981         * lib/getdtablesize.c: New file.
51982         * m4/getdtablesize.m4: New file.
51983         * modules/getdtablesize: New file.
51984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51985         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51986         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51987         HAVE_GETDTABLESIZE.
51988         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51989
51990 2008-10-05  Bruno Haible  <bruno@clisp.org>
51991
51992         * modules/sched (Makefile.am): Fix typo.
51993         Reported by Simon Josefsson.
51994
51995 2008-10-05  Jim Meyering  <meyering@redhat.com>
51996
51997         bootstrap: check for LT_INIT, too
51998         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51999         are deprecated.  Suggestion from Ralf Wildenhues.
52000
52001 2008-10-05  Bruno Haible  <bruno@clisp.org>
52002
52003         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52004         overriding them by ours.
52005         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52006
52007 2008-10-05  Jim Meyering  <meyering@redhat.com>
52008
52009         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52010         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52011         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52012
52013 2008-10-04  Bruno Haible  <bruno@clisp.org>
52014
52015         * modules/dup2 (License): Change to LGPLv2+.
52016         * modules/sleep (License): Likewise.
52017         * modules/perror (License): Likewise.
52018         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52019         Blake.
52020         * modules/signal (License): Likewise.
52021         * modules/sigprocmask (License): Likewise.
52022         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52023         Meyering.
52024
52025 2008-10-04  Bruno Haible  <bruno@clisp.org>
52026
52027         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52028         Reported by Rainer Tammer <tammer@tammer.net>.
52029
52030 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52031             Bruno Haible  <bruno@clisp.org>
52032
52033         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52034         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52035         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52036
52037 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52038
52039         filevercmp: new module
52040         * lib/filevercmp.h: New function filevercmp comparing version strings.
52041         * lib/filevercmp.c: Implementation of filevercmp function.
52042         * modules/filevercmp: Module metadata.
52043         * tests/test-filevercmp.c: Unit test for new module.
52044         * modules/filevercmp-tests: Unit test metadata.
52045         * MODULES.html.sh: Add filevercmp module.
52046
52047 2008-10-03  Bruno Haible  <bruno@clisp.org>
52048
52049         * lib/c-ctype.h: Add comment.
52050         Reported by Jim Meyering.
52051
52052 2008-10-02  Bruno Haible  <bruno@clisp.org>
52053
52054         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52055
52056 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52057
52058         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52059         name of bootstrap.conf accordingly.
52060
52061 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52062
52063         * build-aux/bootstrap: Install git-merge-changelog configuration
52064         items into .gitconfig if needed.
52065
52066 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52067
52068         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52069         git repository, and initialize/update it accordingly.
52070
52071 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52072
52073         * modules/fsync-tests: New file.
52074         * tests/test-fsync.c: New file.
52075
52076         New module 'fsync'.
52077         * lib/fsync.c: New file.
52078         * m4/fsync.m4: New file.
52079         * modules/fsync: New file.
52080         * lib/unistd.in.h (fsync): New declaration.
52081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52082         GNULIB_FSYNC and HAVE_FSYNC.
52083         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52084         * MODULES.html.sh (posix_functions): Add fsync.
52085         * doc/posix-functions/fsync.texi: Mention the new module.
52086
52087 2008-10-02  Jim Meyering  <meyering@redhat.com>
52088
52089         fts.c: sync with similar code from coreutils' remove.c
52090         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52091         Guard also with "#if defined __linux__", since for now at least,
52092         this code is Linux-kernel-specific.
52093
52094 2008-10-02  Jim Meyering  <meyering@redhat.com>
52095
52096         fts: bug fixes
52097         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52098         Include <sys/vfs.h>, not <sys/statfs.h>.
52099
52100         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52101         Include <sys/vfs.h>, not <sys/statfs.h>.
52102
52103 2008-10-01  Bruno Haible  <bruno@clisp.org>
52104
52105         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52107         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52108         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52109         * doc/posix-functions/posix_spawnp.texi: Likewise.
52110         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52111         whether posix_spawn actually works.
52112         * m4/pipe.m4 (gl_PIPE): Likewise.
52113         * modules/execute (Files): Add m4/posix_spawn.m4.
52114         * modules/pipe (Files): Add m4/posix_spawn.m4.
52115         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52116
52117 2008-10-01  Jim Meyering  <meyering@redhat.com>
52118
52119         remove trailing spaces
52120         * NEWS: Likewise.
52121         * lib/poll.c (poll): Likewise.
52122         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52123         * lib/winsock.c (rpl_close): Likewise.
52124         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52125         * modules/yield: Likewise.
52126         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52127         * tests/test-sys_select.c (connect_to_socket): Likewise.
52128
52129         fts.c: adjust a new interface to be more generally useful
52130         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52131         (fts_build): Adjust caller.
52132
52133 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52134
52135         * modules/cond-tests: New file.
52136         * tests/test-cond.c: New file.
52137
52138 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52139             Bruno Haible  <bruno@clisp.org>
52140
52141         * modules/cond (Dependencies): Add errno, time.
52142         * lib/glthread/cond.h: Include <time.h>.
52143         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52144         across platforms.
52145
52146 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52147             Bruno Haible  <bruno@clisp.org>
52148
52149         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52150
52151 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52152             Bruno Haible  <bruno@clisp.org>
52153
52154         * modules/tls-tests (Depends-on): Add thread, yield.
52155         (configure.ac): Remove all checks.
52156         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52157         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52158         gl_thread_self): Remove definitions. Include glthread/thread.h and
52159         glthread/yield.h instead.
52160         (test_tls): Pass an additional NULL argument to gl_thread_join.
52161
52162 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52163             Bruno Haible  <bruno@clisp.org>
52164
52165         * modules/lock-tests (Depends-on): Add thread, yield.
52166         (configure.ac): Remove all checks.
52167         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52168         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52169         gl_thread_self): Remove definitions. Include glthread/thread.h and
52170         glthread/yield.h instead.
52171         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52172         additional NULL argument to gl_thread_join.
52173
52174 2008-09-30  Bruno Haible  <bruno@clisp.org>
52175
52176         Fix the Win32 implementation of the 'thread' module.
52177         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52178         pointer type.
52179         (gl_thread_self): Invoke gl_thread_self_func.
52180         (gl_thread_self_func): New declaration.
52181         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52182         (do_init_self_key, init_self_key): New functions.
52183         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52184         Remove some fields.
52185         (running_threads, running_lock): Remove variables.
52186         (get_current_thread_handle): New function.
52187         (gl_thread_self_func, wrapper_func, glthread_create_func,
52188         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52189         simplified.
52190
52191 2008-09-30  Bruno Haible  <bruno@clisp.org>
52192
52193         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52194         files.
52195
52196 2008-09-30  Jim Meyering  <meyering@redhat.com>
52197
52198         fts.m4: correct the test for statfs.f_type
52199         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52200         when checking for statfs.f_type.
52201
52202 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52203
52204         tests: avoid some compiler warnings
52205         * tests/test-memchr.c (main): Pass NULL indirectly.
52206         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52207
52208 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52209
52210         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52211         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52212         exactly specified dayshifts.
52213         (dayshift): New rule.
52214         (rel): Add dayshift.
52215         (relative_time_table) [tomorrow, yesterday, today, now]:
52216         Use tDAY_SHIFT in place of tDAY_UNIT.
52217         * tests/test-getdate.c: Add tests for now-disallowed countable
52218         dayshifts, e.g., "4 yesterday ago".
52219
52220 2008-09-29  Bruno Haible  <bruno@clisp.org>
52221
52222         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52223         * tests/test-posix_spawn1.in.sh: Renamed from
52224         tests/test-posix_spawn.in.sh.
52225         * tests/test-posix_spawn2.c: New file.
52226         * tests/test-posix_spawn2.in.sh: New file.
52227         * modules/posix_spawnp-tests (Files): Update.
52228         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52229
52230 2008-09-29  Bruno Haible  <bruno@clisp.org>
52231
52232         Propagate effects of putenv/setenv/unsetenv to child processes.
52233         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52234         * lib/pipe.c (create_pipe): Likewise.
52235
52236 2008-09-29  Bruno Haible  <bruno@clisp.org>
52237
52238         Enable use of shell scripts as executables in mingw.
52239         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52240         run the program as a shell script.
52241         * lib/pipe.c (create_pipe): Likewise.
52242         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52243         resulting array.
52244
52245 2008-09-29  Eric Blake  <ebb9@byu.net>
52246
52247         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52248
52249 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52250
52251         * doc/posix-functions/accept.texi: Update mingw problems.
52252         * doc/posix-functions/bind.texi: Update mingw problems.
52253         * doc/posix-functions/close.texi: Update mingw problems.
52254         * doc/posix-functions/connect.texi: Update mingw problems.
52255         * doc/posix-functions/getpeername.texi: Update mingw problems.
52256         * doc/posix-functions/getsockname.texi: Update mingw problems.
52257         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52258         * doc/posix-functions/ioctl.texi: Update mingw problems.
52259         * doc/posix-functions/listen.texi: Update mingw problems.
52260         * doc/posix-functions/recv.texi: Update mingw problems.
52261         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52262         * doc/posix-functions/select.texi: Update mingw problems.
52263         * doc/posix-functions/send.texi: Update mingw problems.
52264         * doc/posix-functions/sendto.texi: Update mingw problems.
52265         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52266         * doc/posix-functions/socket.texi: Update mingw problems.
52267
52268 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52269             Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/sys_select.in.h: Include sys/time.h.
52272         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52273         * modules/sys_select: Depend on sys_time.
52274         * tests/test-sys_select.c: Test that sys/select.h defines struct
52275         timeval fully.
52276
52277 2008-09-29  Bruno Haible  <bruno@clisp.org>
52278
52279         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52280         * lib/sys_select.in.h: Likewise.
52281
52282 2008-09-29  Bruno Haible  <bruno@clisp.org>
52283
52284         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52285
52286 2008-09-29  Bruno Haible  <bruno@clisp.org>
52287
52288         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52289         Set LIBSOCKET instead of augmenting LIBS.
52290         * modules/sockets (Link): New section.
52291         * modules/sockets-tests (test_sockets_LDADD): New variable.
52292         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52293         * modules/poll-tests (test_poll_LDADD): New variable.
52294         * NEWS: Document the change.
52295
52296 2008-09-29  Bruno Haible  <bruno@clisp.org>
52297
52298         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52299         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52300         ARPA_INET_H directly.
52301         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52302
52303 2008-09-28  Bruno Haible  <bruno@clisp.org>
52304
52305         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52306         from gl_HEADER_SYS_SOCKET.
52307         (gl_HEADER_SYS_SOCKET): Invoke it.
52308         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52309
52310 2008-09-28  Bruno Haible  <bruno@clisp.org>
52311
52312         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52313         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52314         Needed on OSF/1 4.0.
52315
52316 2008-09-28  Bruno Haible  <bruno@clisp.org>
52317
52318         Override open more carefully.
52319         * lib/open.c (orig_open): New function.
52320         (rpl_open): Use orig_open instead of open.
52321         * lib/fcntl.in.h: Add special invocation convention.
52322         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52323         (gl_FUNC_OPEN): Invoke it.
52324
52325         Override freopen more carefully.
52326         * lib/freopen.c (orig_freopen): New function.
52327         (rpl_freopen): Use orig_freopen instead of freopen.
52328         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52329         (gl_FUNC_FREOPEN): Invoke it.
52330
52331         Override fopen more carefully.
52332         * lib/fopen.c (orig_fopen): New function.
52333         (rpl_fopen): Use orig_fopen instead of fopen.
52334         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52335         (gl_FUNC_FOPEN): Invoke it.
52336         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52337
52338 2008-09-28  Bruno Haible  <bruno@clisp.org>
52339
52340         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52341         SIGPIPE.
52342
52343 2008-09-28  Bruno Haible  <bruno@clisp.org>
52344
52345         * tests/test-sigaction.c (handler, main): Disable the check whether
52346         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52347         glibc systems with LinuxThreads.
52348
52349 2008-09-28  Bruno Haible  <bruno@clisp.org>
52350
52351         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52352
52353         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52354         with AIX xlc.
52355         * lib/fcntl.in.h (open): Likewise.
52356         Reported by Rainer Tammer <tammer@tammer.net>.
52357
52358 2008-09-28  Bruno Haible  <bruno@clisp.org>
52359
52360         * modules/posix_spawnp-tests: New file.
52361         * tests/test-posix_spawn.c: New file.
52362         * tests/test-posix_spawn.in.sh: New file.
52363
52364         New module 'posix_spawnp'.
52365         * modules/posix_spawnp: New file.
52366         * lib/spawnp.c: New file, from GNU libc with modifications.
52367         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52368
52369         New module 'posix_spawn'.
52370         * modules/posix_spawn: New file.
52371         * lib/spawn.c: New file, from GNU libc with modifications.
52372         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52373
52374         New module 'posix_spawnattr_destroy'.
52375         * modules/posix_spawnattr_destroy: New file.
52376         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52377         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52378         module.
52379
52380         New module 'posix_spawnattr_setsigmask'.
52381         * modules/posix_spawnattr_setsigmask: New file.
52382         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52383         modifications.
52384         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52385         new module.
52386
52387         New module 'posix_spawnattr_getsigmask'.
52388         * modules/posix_spawnattr_getsigmask: New file.
52389         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52390         modifications.
52391         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52392         new module.
52393
52394         New module 'posix_spawnattr_setsigdefault'.
52395         * modules/posix_spawnattr_setsigdefault: New file.
52396         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52397         modifications.
52398         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52399         new module.
52400
52401         New module 'posix_spawnattr_getsigdefault'.
52402         * modules/posix_spawnattr_getsigdefault: New file.
52403         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52404         modifications.
52405         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52406         new module.
52407
52408         New module 'posix_spawnattr_setschedpolicy'.
52409         * modules/posix_spawnattr_setschedpolicy: New file.
52410         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52411         modifications.
52412         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52413         new module.
52414
52415         New module 'posix_spawnattr_getschedpolicy'.
52416         * modules/posix_spawnattr_getschedpolicy: New file.
52417         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52418         modifications.
52419         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52420         new module.
52421
52422         New module 'posix_spawnattr_setschedparam'.
52423         * modules/posix_spawnattr_setschedparam: New file.
52424         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52425         modifications.
52426         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52427         new module.
52428
52429         New module 'posix_spawnattr_getschedparam'.
52430         * modules/posix_spawnattr_getschedparam: New file.
52431         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52432         modifications.
52433         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52434         new module.
52435
52436         New module 'posix_spawnattr_setpgroup'.
52437         * modules/posix_spawnattr_setpgroup: New file.
52438         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52439         modifications.
52440         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52441         module.
52442
52443         New module 'posix_spawnattr_getpgroup'.
52444         * modules/posix_spawnattr_getpgroup: New file.
52445         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52446         modifications.
52447         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52448         module.
52449
52450         New module 'posix_spawnattr_setflags'.
52451         * modules/posix_spawnattr_setflags: New file.
52452         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52453         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52454         module.
52455
52456         New module 'posix_spawnattr_getflags'.
52457         * modules/posix_spawnattr_getflags: New file.
52458         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52459         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52460         module.
52461
52462         New module 'posix_spawnattr_init'.
52463         * modules/posix_spawnattr_init: New file.
52464         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52465         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52466         module.
52467
52468         New module 'posix_spawn_file_actions_destroy'.
52469         * modules/posix_spawn_file_actions_destroy: New file.
52470         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52471         modifications.
52472         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52473         the new module.
52474
52475         New module 'posix_spawn_file_actions_addopen'.
52476         * modules/posix_spawn_file_actions_addopen: New file.
52477         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52478         modifications.
52479         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52480         the new module.
52481
52482         New module 'posix_spawn_file_actions_adddup2'.
52483         * modules/posix_spawn_file_actions_adddup2: New file.
52484         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52485         modifications.
52486         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52487         the new module.
52488
52489         New module 'posix_spawn_file_actions_addclose'.
52490         * modules/posix_spawn_file_actions_addclose: New file.
52491         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52492         modifications.
52493         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52494         the new module.
52495
52496         New module 'posix_spawn_file_actions_init'.
52497         * modules/posix_spawn_file_actions_init: New file.
52498         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52499         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52500         new module.
52501
52502         New module 'posix_spawn-internal'.
52503         * modules/posix_spawn-internal: New file.
52504         * lib/spawn_int.h: New file, from GNU libc with modifications.
52505         * lib/spawni.c: New file, from GNU libc with modifications.
52506         * m4/posix_spawn.m4: New file.
52507
52508         New module 'spawn'.
52509         * modules/spawn: New file.
52510         * lib/spawn.in.h: New file, from GNU libc with modifications.
52511         * m4/spawn_h.m4: New file.
52512         * doc/posix-headers/spawn.texi: Mention the new module.
52513
52514 2008-09-28  Bruno Haible  <bruno@clisp.org>
52515
52516         * modules/sched-tests: New file.
52517         * tests/test-sched.c: New file.
52518
52519         New module 'sched'.
52520         * modules/sched: New file.
52521         * lib/sched.in.h: New file.
52522         * m4/sched_h.m4: New file.
52523         * doc/posix-headers/sched.texi: Mention the new module.
52524
52525 2008-09-27  Eric Blake  <ebb9@byu.net>
52526
52527         Fix previous patch, and tweak references to $0.
52528         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52529         (func_version, func_gnulib_dir): Don't call this program
52530         gnulib-tool.
52531         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52532         with using $0 in function.
52533         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52534         (func_fatal_error): Reuse the name the user invoked us with.
52535
52536 2008-09-27  Bruno Haible  <bruno@clisp.org>
52537
52538         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52539         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52540         (gl_ICONV_H): Not here.
52541         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52542         instead of assigning ICONV_H directly.
52543
52544         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52545         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52546         WCHAR_H directly.
52547
52548 2008-09-27  Bruno Haible  <bruno@clisp.org>
52549
52550         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52551         * modules/arpa_inet (Depends-on): Add link-warning.
52552         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52553         * modules/unistd (Makefile.am): Likewise.
52554
52555 2008-09-26  Bruno Haible  <bruno@clisp.org>
52556
52557         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52558         variables.
52559         (func_version): Essentially copied from gnulib-tool.
52560         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52561         func_readlink): Copied from gnulib-tool.
52562
52563 2008-09-26  Bruno Haible  <bruno@clisp.org>
52564
52565         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52566         invoking git-version-gen.
52567
52568 2008-09-26  Bruno Haible  <bruno@clisp.org>
52569
52570         * posix-modules: Update to directory names changed on 2008-01-19.
52571         Remove commas in output before splitting into words. No more need to
52572         avoid 'ftruncate' since 2007-02-19.
52573
52574 2008-09-26  Bruno Haible  <bruno@clisp.org>
52575
52576         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52577
52578 2008-09-26  Bruno Haible  <bruno@clisp.org>
52579
52580         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52581         * modules/fwriteerror (Depends-on): Add errno.
52582
52583 2008-09-26  Bruno Haible  <bruno@clisp.org>
52584
52585         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52586         * tests/test-vc-list-files-cvs.sh: Likewise.
52587
52588 2008-09-26  Bruno Haible  <bruno@clisp.org>
52589
52590         * doc/posix-headers/sys_resource.texi: Reorder items.
52591
52592 2008-09-26  Jim Meyering  <meyering@redhat.com>
52593
52594         fts: tweak inode comparison function
52595         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52596         inode numbers, as documented.
52597
52598         fts: sort dirent entries on inode number before traversing
52599         This avoids a quadratic, seek-related performance penalty when
52600         operating on a directory containing many entries (measurable at 10k;
52601         3.5 hours at 2 million entries with a cold cache) on certain types
52602         of file systems, including ext3 and ext4, but not tmpfs.
52603         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52604         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52605         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52606         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52607         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52608         (fts_build): Set the stat.st_ino member from D_INO.
52609         If it is likely to be useful, sort dirent entries on inode number.
52610
52611         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52612         and the struct statfs.f_type member.
52613         * modules/fts (Depends-on): Add d-ino.
52614
52615 2008-09-26  Bruno Haible  <bruno@clisp.org>
52616
52617         * modules/sigpipe-die (Depends-on): Add sigpipe.
52618
52619         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52620         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52621         and GNULIB_STDIO_H_SIGPIPE are set.
52622         * lib/stdio-write.c: New file.
52623         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52624         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52625         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52626         REPLACE_STDIO_WRITE_FUNCS.
52627         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52628         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52629         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52630         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52631         * modules/stdio (Files): Add lib/stdio-write.c.
52632         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52633         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52634         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52635         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52636         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52637         REPLACE_FPRINTF_POSIX.
52638         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52639         REPLACE_PRINTF_POSIX.
52640         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52641         REPLACE_VFPRINTF_POSIX.
52642         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52643         REPLACE_VPRINTF_POSIX.
52644         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52645         SIGPIPE issue.
52646         * doc/posix-functions/fputc.texi: Likewise.
52647         * doc/posix-functions/fputs.texi: Likewise.
52648         * doc/posix-functions/fwrite.texi: Likewise.
52649         * doc/posix-functions/printf.texi: Likewise.
52650         * doc/posix-functions/putc.texi: Likewise.
52651         * doc/posix-functions/putchar.texi: Likewise.
52652         * doc/posix-functions/puts.texi: Likewise.
52653         * doc/posix-functions/vfprintf.texi: Likewise.
52654         * doc/posix-functions/vprintf.texi: Likewise.
52655
52656         * modules/safe-write (Depends-on): Add write.
52657
52658         * modules/sigpipe-tests: New file.
52659         * tests/test-sigpipe.c: New file.
52660         * tests/test-sigpipe.sh: New file.
52661
52662         * modules/write: New file.
52663         * lib/unistd.in.h: Include <sys/types.h>.
52664         (write): New declaration.
52665         * lib/write.c: New file.
52666         * m4/write.m4: New file.
52667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52668         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52669         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52670         GNULIB_WRITE, REPLACE_WRITE.
52671         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52672         and the SIGPIPE issue.
52673
52674         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52675         (raise): New declaration.
52676         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52677         (ext_signal): New function.
52678         (rpl_raise): New function.
52679         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52680         GNULIB_SIGNAL_H_SIGPIPE.
52681         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52682         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52683
52684         * modules/sigpipe: New file.
52685         * m4/sigpipe.m4: New file.
52686
52687 2008-09-25  Derek Price  <derek@ximbiot.com>
52688             Bruno Haible  <bruno@clisp.org>
52689
52690         * gnulib-tool (func_import): Report all license incompatibilities, not
52691         just the first one.
52692
52693 2008-09-25  Bruno Haible  <bruno@clisp.org>
52694
52695         * gnulib-tool (func_import): When computing the edits, consider not
52696         only the Makefile.ams that exist but also those that will be generated.
52697
52698 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52699
52700         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52701         fixes gnulib-tool --test warning about duplicate dependency.
52702
52703 2008-09-25  Bruno Haible  <bruno@clisp.org>
52704
52705         * gnulib-tool: Don't ask the user to perform edits in the generated
52706         Makefile.ams.
52707         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52708         apply to the Makefile.am being generated.
52709         (func_emit_tests_Makefile_am): Execute edits that apply to the
52710         Makefile.am being generated.
52711         (func_import): Setup list of Makefile.am edits before emitting the
52712         Makefile.ams, not at the end.
52713         (func_create_testdir): Update.
52714         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52715
52716 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52717
52718         * gnulib-tool (func_import): Store the --tests-base option in the
52719         comment in gnulib-cache.m4.
52720
52721 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52722
52723         * NEWS: Document increased portability that sys_select now provides.
52724
52725         * lib/sys_select.in.h: Install select wrapper.
52726         * lib/sys_socket.in.h: Use more descriptive name when there is no
52727         select wrapper.
52728         * lib/winsock-select.c: New.
52729         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52730         Require gl_HEADER_SYS_SOCKET.
52731         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52732         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52733         * tests/test-sys_select.c: Add functional tests.
52734
52735 2008-09-24  Eric Blake  <ebb9@byu.net>
52736
52737         open, fopen: close fd leak in last patch
52738         * lib/open.c (rpl_open): Close fd before returning error.
52739         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52740         * doc/posix-functions/open.texi (open): Document that Irix also
52741         has the bug.
52742         * doc/posix-functions/fopen.texi (fopen): Likewise.
52743         Reported by Paolo Bonzini.
52744
52745 2008-09-24  Bruno Haible  <bruno@clisp.org>
52746
52747         Ensure that a filename ending in a slash cannot be used to access a
52748         non-directory.
52749         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52750         to check whether it's really a directory.
52751         * lib/fopen.c: Include fcntl.h, unistd.h.
52752         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52753         and fdopen().
52754         * modules/fopen (Depends-on): Add unistd.
52755         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52756         * tests/test-fopen.c (main): Likewise.
52757         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52758         * doc/posix-functions/fopen.texi: Likewise.
52759         Reported by Eric Blake.
52760
52761 2008-09-23  Eric Blake  <ebb9@byu.net>
52762
52763         c-stack: avoid compiler optimizations when provoking overflow
52764         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52765         recursion harder to optimize, to ensure a stack overflow occurs.
52766         * tests/test-c-stack.c (recurse): Likewise.
52767         Borrowed from libsigsegv.
52768
52769         c-stack: work around Irix sigaltstack bug
52770         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52771         whether sigaltstack uses wrong end of stack_t (copied in part from
52772         libsigsegv).
52773         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52774         Irix bug, without requiring an over-allocation.
52775         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52776         bug.
52777
52778         fopen: document mingw bug on directories
52779         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52780         not allowing a stream visiting a directory, even though reading
52781         from such a stream is not portable.
52782
52783 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52784
52785         * lib/poll.c: Rewrite.
52786         * modules/poll: Depend on alloca.
52787
52788 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52789
52790         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52791         instead define prototypes for a full set of wrappers.  Ensure
52792         that Cygwin does not use the compatibility code, which is only
52793         for MinGW.
52794         * lib/winsock.c: New.
52795         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52796         * modules/sys_socket: Add lib/winsock.c.
52797
52798         * modules/poll-tests: Add errno and perror.
52799         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52800
52801 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52802
52803         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52804
52805 2008-09-23  Bruno Haible  <bruno@clisp.org>
52806
52807         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52808         * doc/glibc-functions/*: Likewise.
52809
52810 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52811
52812         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52813         success.
52814
52815 2008-09-22  Eric Blake  <ebb9@byu.net>
52816             Bruno Haible  <bruno@clisp.org>
52817
52818         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52819         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52820         supply %A but mishandle pseudo-NaN.
52821         Reported by Simon Josefsson.
52822
52823 2008-09-21  Bruno Haible  <bruno@clisp.org>
52824
52825         * tests/test-lock.c (main): Tweak skip message.
52826         * tests/test-tls.c (main): Likewise.
52827
52828 2008-09-21  Bruno Haible  <bruno@clisp.org>
52829
52830         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52831         whether 'struct sigaction' has sa_sigaction here...
52832         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52833         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52834
52835 2008-09-21  Bruno Haible  <bruno@clisp.org>
52836
52837         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52838         section.
52839         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52840         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52841         the new section.
52842         (Support for obsolete systems lacking POSIX:2001): New section.
52843         (String handling <string.h>): Move strdup to the new section.
52844         Suggested by Simon Josefsson and Paolo Bonzini.
52845
52846 2008-09-21  Bruno Haible  <bruno@clisp.org>
52847
52848         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52849         exponents in %e and %g results on 'long double'. Needed for mingw's
52850         improved *printf functions.
52851         * tests/test-vasprintf-posix.c (test_function): Likewise.
52852         * tests/test-snprintf-posix.h (test_function): Likewise.
52853         * tests/test-sprintf-posix.h (test_function): Likewise.
52854         Reported by Eric Blake.
52855
52856 2008-09-21  Bruno Haible  <bruno@clisp.org>
52857
52858         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52859         * tests/test-sprintf-posix.h (test_function): Likewise.
52860
52861 2008-09-21  Bruno Haible  <bruno@clisp.org>
52862
52863         * modules/getpass (Depends-on): Add strdup-posix.
52864
52865         New module 'strdup-posix'.
52866         * modules/strdup-posix: New file.
52867         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52868         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52870         REPLACE_STRDUP.
52871         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52872         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52873         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52874         strdup-posix.
52875
52876         * modules/strdup (Depends-on): Remove malloc-posix.
52877
52878 2008-09-20  Bruno Haible  <bruno@clisp.org>
52879
52880         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52881         Wildenhues.
52882
52883 2008-09-20  Bruno Haible  <bruno@clisp.org>
52884
52885         Ensure that wint_t gets defined on IRIX 5.3.
52886         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52887         * lib/wctype.in.h (wint_t): Likewise.
52888         (__wctype_wint_t): Remove type.
52889         (isw*): Use wint_t instead of __wctype_wint_t.
52890         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52891         * modules/wchar (Files): Add m4/wint_t.m4.
52892         (Makefile.am): Substitute HAVE_WINT_T.
52893         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52894         * tests/test-wctype.c: Check that wint_t is defined.
52895         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52896         * doc/posix-headers/wctype.texi: Likewise.
52897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52898
52899 2008-09-18  Bruno Haible  <bruno@clisp.org>
52900
52901         * gnulib-tool (func_exit): Update comment.
52902
52903 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52904
52905         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52906         assumes strdup exists and does not depend on strdup to return
52907         ENOMEM on out of memory conditions.
52908
52909 2008-09-18  Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52912         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52913         digits for the exponent.
52914
52915 2008-09-18  Jim Meyering  <meyering@redhat.com>
52916             Bruno Haible  <bruno@clisp.org>
52917
52918         * lib/vasnprintf.c (decimal_point_char): Define also if
52919         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52920
52921 2008-09-16  Bruno Haible  <bruno@clisp.org>
52922         and Eric Blake  <ebb9@byu.net>
52923
52924         vasnprintf: support Irix 5.3
52925         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52926         that mishandle long double infinity.
52927         Reported by Tom G. Christensen.
52928
52929 2008-09-16  Bruno Haible  <bruno@clisp.org>
52930
52931         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52932         Solaris 9.
52933         * doc/glibc-functions/alphasort.texi: Likewise.
52934         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52935
52936 2008-09-16  Jim Meyering  <meyering@redhat.com>
52937
52938         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52939         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52940         a umask modification leak out of a subshell.  Otherwise, the
52941         opensolaris /bin/sh would be accepted and thus cause unwarranted
52942         failures in the coreutils test suite.
52943
52944 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52945
52946         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52947         to succeed.
52948
52949 2008-09-16  Jim Meyering  <meyering@redhat.com>
52950
52951         avoid spurious test failure when library is built without ACL support
52952         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52953         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52954         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52955         * tests/test-copy-acl.sh: Likewise.
52956
52957 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52958
52959         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52960         based on character occurrence counts.
52961
52962 2008-09-15  Eric Blake  <ebb9@byu.net>
52963
52964         tests: avoid some compiler warnings
52965         * tests/test-memchr.c (main): Pass NULL indirectly.
52966         * tests/test-closein.c (main): Avoid unused variable.
52967
52968 2008-09-15  Bruno Haible  <bruno@clisp.org>
52969
52970         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52971         are missing on OpenBSD 4.0 individually.
52972         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52973
52974 2008-09-15  Bruno Haible  <bruno@clisp.org>
52975
52976         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52977         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52978         * doc/posix-functions/perror.texi: Likewise.
52979         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52980         is missing.
52981         Reported by Eric Blake.
52982
52983         * lib/errno.in.h: Use replacement values >= 2000.
52984         Reported by Eric Blake.
52985
52986 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52987
52988         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52989         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52990         limit.
52991         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52992         compareseq was aborted.
52993
52994 2008-09-14  Bruno Haible  <bruno@clisp.org>
52995
52996         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52997         yvec_edit_count.
52998         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52999         (fstrcmp_bounded): Simplify result computation accordingly.
53000
53001 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53002
53003         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53004         (fstrcmp): Define in terms of fstrcmp_bounded.
53005         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53006         lower_bound argument.
53007         Return quickly if the result is certainly < lower_bound.
53008         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53009
53010 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53011
53012         * lib/diffseq.h (EARLY_ABORT): New macro.
53013         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53014         evaluates to true.
53015
53016 2008-09-14  Bruno Haible  <bruno@clisp.org>
53017
53018         * modules/perror-tests: New file.
53019         * tests/test-perror.sh: New file.
53020         * tests/test-perror.c: New file.
53021
53022         New module 'perror'.
53023         * lib/stdio.in.h (perror): New declaration.
53024         * lib/perror.c: New file.
53025         * m4/perror.m4: New file.
53026         * modules/perror: New file.
53027         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53028         * doc/posix-functions/perror.texi: Mention the perror module.
53029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53030         REPLACE_PERROR.
53031         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53032         REPLACE_PERROR.
53033
53034 2008-09-14  Bruno Haible  <bruno@clisp.org>
53035
53036         * modules/stdio (Makefile.am): Reorder to match the order in
53037         lib/stdio.in.h.
53038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53039
53040 2008-09-13  Bruno Haible  <bruno@clisp.org>
53041
53042         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53043
53044 2008-09-13  Bruno Haible  <bruno@clisp.org>
53045
53046         Extend strerror to cover the added errno values.
53047         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53048         (rpl_strerror): Provide error messages for the added errno values and
53049         for the WSA* values.
53050         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53051         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53052         strerror.
53053         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53054         * modules/strerror (Depends-on): Add errno.
53055         * doc/posix-functions/strerror.texi: Document the change.
53056         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53057         and EOVERFLOW.
53058
53059 2008-09-13  Bruno Haible  <bruno@clisp.org>
53060
53061         * modules/EOVERFLOW: Remove file.
53062         * m4/eoverflow.m4: Remove file.
53063         * modules/EOVERFLOW-tests: Remove file.
53064         * tests/test-EOVERFLOW.c: Remove file.
53065         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53066         * modules/ftell (Depends-on): Likewise.
53067         * modules/getdelim (Depends-on): Likewise.
53068         * modules/getugroups (Depends-on): Likewise.
53069         * modules/poll (Depends-on): Likewise.
53070         * modules/snprintf (Depends-on): Likewise.
53071         * modules/sprintf-posix (Depends-on): Likewise.
53072         * modules/vasnprintf (Depends-on): Likewise.
53073         * modules/vasprintf (Depends-on): Likewise.
53074         * modules/vfprintf-posix (Depends-on): Likewise.
53075         * modules/vsnprintf (Depends-on): Likewise.
53076         * modules/vsprintf-posix (Depends-on): Likewise.
53077         * modules/xvasprintf (Depends-on): Likewise.
53078         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53079         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53080         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53081         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53082         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53083         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53084         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53085         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53086         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53087         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53088         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53089         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53090         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53091         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53092         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53093         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53094         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53095         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53096         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53097         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53098         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53099         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53100         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53101         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53102         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53103         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53104         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53105         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53106         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53107         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53108         * MODULES.html.sh: Remove EOVERFLOW.
53109         * NEWS: Mention the change.
53110
53111 2008-09-13  Bruno Haible  <bruno@clisp.org>
53112
53113         * modules/errno-tests: New file.
53114         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53115
53116         * lib/errno.in.h: New file.
53117         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53118         * modules/errno: New file.
53119         * doc/posix-headers/errno.texi: Update documentation.
53120         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53121
53122 2008-09-13  Bruno Haible  <bruno@clisp.org>
53123
53124         * tests/test-poll.c: Use #if for native Windows, rather than testing
53125         __MSVCRT__.
53126
53127 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53128             Bruno Haible  <bruno@clisp.org>
53129
53130         * lib/glob.c: Don't include <pwd.h> on native Windows.
53131         (WINDOWS32): New macro.
53132         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53133
53134 2008-09-13  Bruno Haible  <bruno@clisp.org>
53135
53136         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53137         (ETIMEDOUT): Remove macro.
53138         (glthread_cond_timedwait_multithreaded): New declaration.
53139         (glthread_cond_timedwait): Use it.
53140         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53141         (glthread_cond_timedwait_multithreaded): New function.
53142
53143 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53144
53145         * modules/poll-tests: Do not check for io.h.
53146         * tests/test-poll.c: Check for __MSVCRT__ instead.
53147
53148 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53149
53150         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53151         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53152         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53153
53154 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53155
53156         * modules/poll-tests: New.
53157         * tests/test-poll.c: New.
53158
53159 2008-09-12  Eric Blake  <ebb9@byu.net>
53160
53161         frexp: test for NetBSD failure on -0.0
53162         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53163         not all, bugs from NetBSD 3.0 have been fixed.
53164         * doc/posix-functions/frexp.texi (frexp): Document bug.
53165         Reported by Thomas Klausner.
53166
53167         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53168         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53169         literal -0.0.
53170         Reported by Jonathan C. Patschke <jp@centtech.com>.
53171
53172 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53173
53174         * lib/glthread/cond.h: Use dummy implementation also if
53175         USE_WIN32_THREADS.
53176
53177 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53178
53179         * modules/fnmatch-posix (License): Change to LGPLv2+.
53180         * modules/fnmatch-gnu (License): Likewise.
53181
53182 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53183
53184         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53185
53186 2008-09-11  Jim Meyering  <meyering@redhat.com>
53187
53188         * users.txt: Add gtk-vnc.
53189
53190 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53191
53192         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53193         rotate amounts.
53194
53195         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53196         required for 16-bit and 8-bit rotates.
53197         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53198         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53199         UINT8_MAX instead of hard-coded constants.
53200         Suggested by Paul Eggert.
53201
53202 2008-09-07  Bruno Haible  <bruno@clisp.org>
53203
53204         * tests/test-striconveh.c (main): Check behaviour when converting from
53205         UTF-7.
53206
53207         Make striconveh work better with stateful encodings.
53208         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53209         that iconv does not increment the inptr when returning -1/EINVAL.
53210
53211 2008-09-07  Bruno Haible  <bruno@clisp.org>
53212
53213         * build-aux/config.rpath: Update according to libtool-2.2.6.
53214         * build-aux/config.libpath: Likewise.
53215
53216 2008-09-06  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53219         * lib/freadptr.c (freadptr): Likewise.
53220         * lib/freadseek.c (freadptrinc): Likewise.
53221         Reported by Simon Josefsson.
53222
53223 2008-09-06  Bruno Haible  <bruno@clisp.org>
53224
53225         * modules/freadptr (License): Change to LGPLv2+.
53226         * modules/freadseek (License): Likewise.
53227         Suggested by Eric Blake.
53228
53229         * modules/memchr2 (License): Change to LGPLv2+.
53230         Approved by Eric Blake.
53231
53232 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53233             Bruno Haible  <bruno@clisp.org>
53234
53235         Make gnulib-tool work with native 'sed' on AIX.
53236         * gnulib-tool (sed_noop): New variable.
53237         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53238         func_add_or_update, func_create_testdir): Use it to initialize sed
53239         script variables.
53240         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53241
53242 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53243             Bruno Haible  <bruno@clisp.org>
53244
53245         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53246         also works after #include directives.
53247
53248 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53249
53250         getdate.y: reject an out-of-range timezone value
53251         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53252         the range [-24...+24].  When specified with only one or two digits,
53253         * tests/test-getdate.c: Tests for the fix.
53254         * doc/getdate.texi: Document this change.
53255
53256 2008-09-03  Bruno Haible  <bruno@clisp.org>
53257
53258         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53259
53260 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53261
53262         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53263         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53264         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53265         Blake <ebb9@byu.net>.
53266
53267         * tests/test-bitrotate.c: Add more test vectors.
53268
53269 2008-09-02  Eric Blake  <ebb9@byu.net>
53270
53271         vasnprintf-posix: handle large precision via %.*d
53272         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53273         when handling it ourselves.
53274         * tests/test-vasnprintf-posix.c (test_function): Add test.
53275         * tests/test-snprintf-posix.h (test_function): Likewise.
53276         * tests/test-sprintf-posix.h (test_function): Likewise.
53277         * tests/test-vasprintf-posix.c (test_function): Likewise.
53278         Reported by Alain Guibert.
53279
53280 2008-09-01  Eric Blake  <ebb9@byu.net>
53281
53282         c-stack: make configure-time check more robust
53283         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53284         successful sigaction call.
53285         Reported by Tom G. Christensen.
53286
53287 2008-09-01  Bruno Haible  <bruno@clisp.org>
53288
53289         New module 'findprog-lgpl'.
53290         * modules/findprog-lgpl: New file.
53291         * lib/findprog-lgpl.c: New file.
53292         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53293         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53294         to decide whether to use strdup or xstrdup, concatenated_filename or
53295         xconcatenated_filename.
53296
53297 2008-09-01  Bruno Haible  <bruno@clisp.org>
53298
53299         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53300         'xconcat-filename' (GPL).
53301         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53302         (License): Change to LGPLv2+.
53303         * modules/xconcat-filename: New file.
53304         * lib/concat-filename.h (concatenated_filename): Change specification.
53305         (xconcatenated_filename): New declaration.
53306         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53307         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53308         memory situations.
53309         * lib/xconcat-filename.c: New file.
53310         * NEWS: Mention the change.
53311         * lib/findprog.c: Include concat-filename.h, not filename.h.
53312         (find_in_path): Use xconcatenated_filename instead of
53313         concatenated_filename.
53314         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53315         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53316         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53317         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53318         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53319         instead of concatenated_filename.
53320         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53321         (execute_java_class): Use xconcatenated_filename instead of
53322         concatenated_filename.
53323         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53324         * modules/javacomp (Depends-on): Likewise.
53325         * modules/javaexec (Depends-on): Likewise.
53326
53327 2008-09-01  Bruno Haible  <bruno@clisp.org>
53328
53329         Split module 'filename' into 'filename' and 'concat-filename'.
53330         * modules/filename: Keep only lib/filename.h.
53331         (License): Change to LGPLv2+.
53332         * modules/concat-filename: New file, extracted from modules/filename.
53333         * lib/filename.h (concatenated_filename): Remove declaration.
53334         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53335         * lib/concat-filename.c: Include concat-filename.h.
53336         * NEWS: Mention the change.
53337
53338 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53339
53340         * lib/bitrotate.h (rotl8, rotr8): Add.
53341
53342         * modules/bitrotate (configure.ac): Need
53343         AC_REQUIRE([AC_C_INLINE]).
53344         (Description): Mention stdint.h.  Reported by Bruno Haible
53345         <bruno@clisp.org>.
53346
53347         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53348         Paolo Bonzini <bonzini@gnu.org>.
53349
53350 2008-08-31  Bruno Haible  <bruno@clisp.org>
53351
53352         Assume Solaris specific bi-arch conventions on Solaris systems.
53353         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53354         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53355         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53356         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53357         like acl_libdirstem.
53358         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53359         acl_libdirstem.
53360         * NEWS: Mention the change.
53361         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53362
53363 2008-08-31  Jim Meyering  <meyering@redhat.com>
53364
53365         * lib/strftime.h: Add comments describing the two added arguments.
53366
53367         remove duplicate #include directives
53368         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53369         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53370
53371 2008-08-31  Bruno Haible  <bruno@clisp.org>
53372
53373         New module 'sigpipe-die'.
53374         * modules/sigpipe-die: New file.
53375         * lib/sigpipe-die.h: New file.
53376         * lib/sigpipe-die.c: New file.
53377         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53378
53379 2008-08-31  Bruno Haible  <bruno@clisp.org>
53380
53381         Don't override previously installed signal handlers.
53382         * lib/fatal-signal.c (saved_sigactions): New variable.
53383         (uninstall_handlers): Reset the signal to the saved handler, not
53384         to SIG_DFL (except when ignored).
53385         (install_handlers): Save the previous handlers.
53386
53387 2008-08-30  Bruno Haible  <bruno@clisp.org>
53388
53389         * gnulib-tool (func_reset_sigpipe): New function.
53390         (func_get_automake_snippet, func_modules_transitive_closure,
53391         func_import): Invoke it before a join command that reads from stdin,
53392         to avoid "echo: write error: Broken pipe" error messages on stderr.
53393         Reported by Sam Steingold <sds@gnu.org>.
53394
53395 2008-08-30  Bruno Haible  <bruno@clisp.org>
53396
53397         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53398         Code copied from m4/open.m4.
53399         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53400         access and the filename ends in a slash. Code copied from lib/open.c.
53401         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53402         * tests/test-fopen.c (main): Check against bug with trailing slash.
53403
53404 2008-08-29  Bruno Haible  <bruno@clisp.org>
53405
53406         Avoid some "gcc -pedantic" warnings.
53407         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53408         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53409         * lib/dirent.in.h: Likewise.
53410         * lib/fcntl.in.h: Likewise.
53411         * lib/float.in.h: Likewise.
53412         * lib/iconv.in.h: Likewise.
53413         * lib/inttypes.in.h: Likewise.
53414         * lib/locale.in.h: Likewise.
53415         * lib/math.in.h: Likewise.
53416         * lib/netinet_in.in.h: Likewise.
53417         * lib/search.in.h: Likewise.
53418         * lib/signal.in.h: Likewise.
53419         * lib/stdarg.in.h: Likewise.
53420         * lib/stdint.in.h: Likewise.
53421         * lib/stdio.in.h: Likewise.
53422         * lib/stdlib.in.h: Likewise.
53423         * lib/string.in.h: Likewise.
53424         * lib/strings.in.h: Likewise.
53425         * lib/sys_select.in.h: Likewise.
53426         * lib/sys_socket.in.h: Likewise.
53427         * lib/sys_stat.in.h: Likewise.
53428         * lib/sys_time.in.h: Likewise.
53429         * lib/sysexits.in.h: Likewise.
53430         * lib/time.in.h: Likewise.
53431         * lib/unistd.in.h: Likewise.
53432         * lib/wchar.in.h: Likewise.
53433         * lib/wctype.in.h: Likewise.
53434         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53435         * modules/fchdir (Makefile.am): Likewise.
53436         * modules/fcntl (Makefile.am): Likewise.
53437         * modules/float (Makefile.am): Likewise.
53438         * modules/iconv_open (Makefile.am): Likewise.
53439         * modules/inttypes (Makefile.am): Likewise.
53440         * modules/locale (Makefile.am): Likewise.
53441         * modules/math (Makefile.am): Likewise.
53442         * modules/netinet_in (Makefile.am): Likewise.
53443         * modules/search (Makefile.am): Likewise.
53444         * modules/signal (Makefile.am): Likewise.
53445         * modules/stdarg (Makefile.am): Likewise.
53446         * modules/stdint (Makefile.am): Likewise.
53447         * modules/stdio (Makefile.am): Likewise.
53448         * modules/stdlib (Makefile.am): Likewise.
53449         * modules/string (Makefile.am): Likewise.
53450         * modules/strings (Makefile.am): Likewise.
53451         * modules/sys_select (Makefile.am): Likewise.
53452         * modules/sys_socket (Makefile.am): Likewise.
53453         * modules/sys_stat (Makefile.am): Likewise.
53454         * modules/sys_time (Makefile.am): Likewise.
53455         * modules/sysexits (Makefile.am): Likewise.
53456         * modules/time (Makefile.am): Likewise.
53457         * modules/unistd (Makefile.am): Likewise.
53458         * modules/wchar (Makefile.am): Likewise.
53459         * modules/wctype (Makefile.am): Likewise.
53460         Reported by Reuben Thomas <rrt@sc3d.org>.
53461
53462 2008-08-29  Bruno Haible  <bruno@clisp.org>
53463
53464         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53465         any more.
53466
53467 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53468
53469         * MODULES.html.sh (Misc): Add bitrotate.
53470
53471         * modules/bitrotate: New file.
53472
53473         * lib/bitrotate.h: New file.
53474
53475         * modules/bitrotate-tests: New file.
53476
53477         * tests/test-bitrotate.c: New file.
53478
53479         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53480         on the bitrotate module.
53481
53482         * lib/arctwo.c: Use new bitrotate module.
53483
53484 2008-08-29  Jim Meyering  <meyering@redhat.com>
53485
53486         bootstrap: merge changes from coreutils
53487         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53488         of copied files.  Remove a kludge, now that this is fixed.
53489         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53490         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53491         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53492
53493 2008-08-29  Bruno Haible  <bruno@clisp.org>
53494
53495         * MODULES.html.sh: Remove --cvs-urls option.
53496
53497 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53498
53499         maint.mk: adjust to file name change
53500         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53501
53502 2008-08-28  Jim Meyering  <meyering@redhat.com>
53503
53504         * modules/getndelim2 (License): Relicense to LGPLv2+.
53505         Approved by Richard Stallman for the version of 1995, and by
53506         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53507
53508 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53509
53510         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53511         dummy if one is not available.  Do not touch them if
53512         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53513         (getc_maybe_unlocked): New.
53514         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53515
53516 2008-08-26  Eric Blake  <ebb9@byu.net>
53517
53518         doc/INSTALL: resync from autoconf
53519         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53520         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53521         moving...
53522         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53523         * INSTALL: Regenerate.
53524         * INSTALL.ISO: New file.
53525         * INSTALL.UTF-8: Likewise.
53526
53527 2008-08-26  Jim Meyering  <meyering@redhat.com>
53528
53529         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53530         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53531         these definitions conditional, so that they may be overridden, too.
53532
53533 2008-08-26  Bruno Haible  <bruno@clisp.org>
53534
53535         Generate INSTALL file variants with prettier quotes.
53536         * doc/Makefile (INSTALL_PRELUDE): New macro.
53537         (INSTALL): Use it.
53538         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53539
53540 2008-08-26  Bruno Haible  <bruno@clisp.org>
53541
53542         Run makeinfo in an English locale.
53543         * doc/Makefile (MAKEINFO): New variable.
53544
53545 2008-08-26  Bruno Haible  <bruno@clisp.org>
53546
53547         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53548         Suggested by Eric Blake.
53549
53550 2008-08-25  Bruno Haible  <bruno@clisp.org>
53551
53552         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53553
53554 2008-08-25  Eric Blake  <ebb9@byu.net>
53555
53556         c-stack: test that stack overflow can be caught
53557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53558         that platform allows handling stack overflow; at least OS/2 EMX
53559         has sigaltstack, but crashes before transferring control to
53560         handler on stack overflow.
53561         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53562         check for HAVE_STACK_OVERFLOW_HANDLING.
53563         Reported by Elbert Pol.
53564
53565 2008-08-25  Bruno Haible  <bruno@clisp.org>
53566
53567         * doc/posix-functions/strftime.texi: Fix description of strftime
53568         module.
53569
53570 2008-08-24  Bruno Haible  <bruno@clisp.org>
53571
53572         * tests/uniwidth/test-uc_width2.c: New file.
53573         * tests/uniwidth/test-uc_width2.sh: New file.
53574         * modules/uniwidth/width-tests (Files): Add the new files.
53575         (TESTS): Add uniwidth/test-uc_width2.sh.
53576         (TESTS_ENVIRONMENT): New variable.
53577         (check_PROGRAMS): Add test-uc_width2.
53578         (test_uc_width2_SOURCES): New variable.
53579
53580         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53581         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53582         not 0x00AB.
53583         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53584
53585 2008-08-22  Eric Blake  <ebb9@byu.net>
53586
53587         test-lock, test-tls: mention why a test is skipped
53588         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53589         skipped.
53590         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53591
53592         count-one-bits: relax license
53593         * modules/count-one-bits (License): Relicense to LGPLv2+.
53594         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53595
53596 2008-08-22  Andreas Schwab  <schwab@suse.de>
53597
53598         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53599         Remove spurious space in assignment.
53600
53601 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53602
53603         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53604         Paul Eggert <eggert@CS.UCLA.EDU>.
53605
53606 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53607
53608         * modules/gettext: Add m4/threadlib.m4.
53609
53610 2008-08-19  Eric Blake  <ebb9@byu.net>
53611
53612         test-c-stack: fix compilation failure on FreeBSD 5.0
53613         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53614         headers before <sys/resource.h>.
53615         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53616         the bug.
53617         Reported by Nelson H. F. Beebe.
53618
53619         strverscmp: migrate from "strverscmp.h" to <string.h>
53620         * modules/string (Makefile.am): Add new hooks.
53621         * modules/strverscmp (Files): Remove strverscmp.h.
53622         (Depends-on): Add string.
53623         (configure.ac): Add indicator.
53624         (Include): Mention new header.
53625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53626         defaults.
53627         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53628         results.
53629         * lib/strverscmp.h: Delete.
53630         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53631         * tests/test-strverscmp.c (includes): Adjust client.
53632         * lib/check-version.c (includes): Likewise.
53633         * NEWS: Document the change.
53634
53635         strverscmp: add unit test
53636         * modules/strverscmp-tests: New file.
53637         * tests/test-strverscmp.c: Likewise.
53638
53639 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53640
53641         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53642         regarding Windows crypto stuff, from Mono.
53643
53644 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53645
53646         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53647         if present, for intel RND.  Return error on failures.
53648
53649 2008-08-18  Ben Pfaff  <blp@gnu.org>
53650
53651         gitlog-to-changelog: give better diagnostic for failed pipe-open
53652         * build-aux/gitlog-to-changelog: Improve error message: suggest
53653         that the version of Git may be too old.
53654
53655 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53656
53657         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53658         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53659
53660 2008-08-18  Bruno Haible  <bruno@clisp.org>
53661
53662         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53663         pthread_in_use().
53664
53665 2008-08-18  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/glthread/threadlib.c: Include <pthread.h>.
53668
53669 2008-08-18  Bruno Haible  <bruno@clisp.org>
53670
53671         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53672         glthread_recursive_lock_* macros.
53673         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53674         Fix syntax error.
53675
53676 2008-08-18  Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/glthread/thread.c: Avoid forcing a context switch right after
53679         thread creation.
53680
53681 2008-08-17  Bruno Haible  <bruno@clisp.org>
53682
53683         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53684         * lib/glthread/thread.h: Provide Win32 specific implementation.
53685         * modules/thread (Files): Add lib/glthread/thread.c.
53686         (Depends-on): Add lock.
53687         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53688
53689 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53690
53691         New module 'yield'.
53692         * modules/yield: New file.
53693         * lib/glthread/yield.h: New file.
53694         * m4/yield.m4: New file.
53695         * MODULES.html.sh (Multithreading): Add yield.
53696
53697 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53698
53699         New module 'thread'.
53700         * modules/thread: New file.
53701         * lib/glthread/thread.h: New file.
53702         * m4/thread.m4: New file.
53703         * MODULES.html.sh (Multithreading): Add thread.
53704
53705 2008-08-17  Bruno Haible  <bruno@clisp.org>
53706
53707         * lib/glthread/lock.h: Include <stdlib.h> always.
53708         * lib/glthread/tls.h: Likewise.
53709         * lib/glthread/cond.h: Likewise.
53710
53711 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53712
53713         New module 'cond'.
53714         * modules/cond: New file.
53715         * lib/glthread/cond.h: New file.
53716         * lib/glthread/cond.c: New file.
53717         * m4/cond.m4: New file.
53718         * MODULES.html.sh (Multithreading): Add cond.
53719
53720 2008-08-16  Eric Blake  <ebb9@byu.net>
53721
53722         c-stack: fix regression on Irix 5.3 from 2008-06-21
53723         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53724         sa_sigaction...
53725         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53726         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53727         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53728         * modules/signal (Makefile.am): Use the value.
53729         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53730         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53731         * doc/posix-headers/signal.texi (signal.h): Document this
53732         portability issue.
53733         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53734         Reported by Tom G. Christensen.
53735
53736 2008-08-17  Bruno Haible  <bruno@clisp.org>
53737
53738         New module 'threadlib'.
53739         * modules/threadlib: New file.
53740         * lib/glthread/threadlib.c: New file, extracted from
53741         lib/glthread/lock.c.
53742         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53743         functions.
53744         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53745         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53746         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53747         macros.
53748         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53749         (gl_DISABLE_THREADS): Remove macro.
53750         * modules/lock (Files): Remove build-aux/config.rpath.
53751         (Depends-on): Remove havelib. Add threadlib.
53752         (configure.ac-early): Remove section.
53753         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53754         * modules/tls (Depends-on): Remove lock. Add threadlib.
53755         (Link): New section, copied from threadlib.
53756         * MODULES.html.sh (Multithreading): Add threadlib.
53757
53758 2008-08-14  Bruno Haible  <bruno@clisp.org>
53759
53760         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53761         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53762         glthread_rwlock_unlock, glthread_rwlock_destroy,
53763         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53764         glthread_recursive_lock_destroy): Define as macros always.
53765         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53766         glthread_lock_lock.
53767         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53768         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53769         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53770         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53771         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53772         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53773         (glthread_recursive_lock_lock_func): Renamed from
53774         glthread_recursive_lock_lock.
53775         (glthread_recursive_lock_unlock_func): Renamed from
53776         glthread_recursive_lock_unlock.
53777         (glthread_recursive_lock_destroy_func): Renamed from
53778         glthread_recursive_lock_destroy.
53779
53780 2008-08-14  Bruno Haible  <bruno@clisp.org>
53781
53782         * lib/glthread/lock.h: Renamed from lib/lock.h.
53783         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53784         * lib/glthread/tls.h: Renamed from lib/tls.h.
53785         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53786         * lib/fstrcmp.c: Update includes.
53787         * lib/strsignal.c: Update includes.
53788         * modules/lock (Files, Makefile.am): Update.
53789         (Include): Change to "glthread/lock.h".
53790         * modules/tls (Files, Makefile.am): Update.
53791         (Include): Change to "glthread/tls.h".
53792         * tests/test-lock.c: Update includes.
53793         * tests/test-tls.c: Update includes.
53794         * NEWS: Mention the renamed header files.
53795
53796 2008-08-11  Jim Meyering  <meyering@redhat.com>
53797
53798         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53799
53800 2008-08-11  Eric Blake  <ebb9@byu.net>
53801
53802         test-c-stack: avoid C99-ism
53803         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53804         before statement.
53805         Reported by Alain Guibert.
53806
53807 2008-08-10  Jim Meyering  <meyering@redhat.com>
53808
53809         ensure that return value of uinttostr et al are not ignored
53810         * lib/inttostr.h (__GNUC_PREREQ): Define.
53811         (__attribute_warn_unused_result__): Define.
53812         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53813
53814 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53815
53816         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53817         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53818
53819 2008-08-07  Jim Meyering  <meyering@redhat.com>
53820
53821         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53822
53823         * modules/mkstemp (License): Relicense under LGPLv2+.
53824         * modules/tempname (License): Likewise.
53825
53826 2008-08-06  Bruno Haible  <bruno@clisp.org>
53827
53828         * lib/poll.c (poll): Further micro-optimization.
53829
53830 2008-08-06  Jim Meyering  <meyering@redhat.com>
53831
53832         inet_pton.c: use locale-independent tolower
53833         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53834         (inet_pton6): Use c_tolower rather than tolower.
53835         * modules/inet_pton (Depends-on): Add c-ctype.
53836
53837 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53838
53839         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53840         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53841
53842 2008-08-06  Jim Meyering  <meyering@redhat.com>
53843
53844         * modules/inet_pton (License): Relicense under LGPLv2+.
53845
53846 2008-08-03  Bruno Haible  <bruno@clisp.org>
53847
53848         Additional non-aborting API for lock and tls.
53849         * lib/lock.h: Include <errno.h>.
53850         (glthread_lock_init): New macro/function.
53851         (gl_lock_init): Define as wrapper around glthread_lock_init.
53852         (glthread_lock_lock): New macro/function.
53853         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53854         (glthread_lock_unlock): New macro/function.
53855         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53856         (glthread_lock_destroy): New macro/function.
53857         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53858         (glthread_rwlock_init): New macro/function.
53859         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53860         (glthread_rwlock_rdlock): New macro/function.
53861         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53862         (glthread_rwlock_wrlock): New macro/function.
53863         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53864         (glthread_rwlock_unlock): New macro/function.
53865         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53866         (glthread_rwlock_destroy): New macro/function.
53867         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53868         (glthread_recursive_lock_init): New macro/function.
53869         (gl_recursive_lock_init): Define as wrapper around
53870         glthread_recursive_lock_init.
53871         (glthread_recursive_lock_lock): New macro/function.
53872         (gl_recursive_lock_lock): Define as wrapper around
53873         glthread_recursive_lock_lock.
53874         (glthread_recursive_lock_unlock): New macro/function.
53875         (gl_recursive_lock_unlock): Define as wrapper around
53876         glthread_recursive_lock_unlock.
53877         (glthread_recursive_lock_destroy): New macro/function.
53878         (gl_recursive_lock_destroy): Define as wrapper around
53879         glthread_recursive_lock_destroy.
53880         (glthread_once): New macro/function.
53881         (gl_once): Define as wrapper around glthread_once.
53882         Update function declarations.
53883         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53884         glthread_rwlock_init. Return error code.
53885         (glthread_rwlock_rdlock_multithreaded): Renamed from
53886         glthread_rwlock_rdlock. Return error code.
53887         (glthread_rwlock_wrlock_multithreaded): Renamed from
53888         glthread_rwlock_wrlock. Return error code.
53889         (glthread_rwlock_unlock_multithreaded): Renamed from
53890         glthread_rwlock_unlock. Return error code.
53891         (glthread_rwlock_destroy_multithreaded): Renamed from
53892         glthread_rwlock_destroy. Return error code.
53893         (glthread_recursive_lock_init_multithreaded): Renamed from
53894         glthread_recursive_lock_init. Return error code.
53895         (glthread_recursive_lock_lock_multithreaded): Renamed from
53896         glthread_recursive_lock_lock. Return error code.
53897         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53898         glthread_recursive_lock_unlock. Return error code.
53899         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53900         glthread_recursive_lock_destroy. Return error code.
53901         (glthread_once_call): Make static.
53902         (glthread_once_multithreaded): Renamed from glthread_once.
53903         * lib/tls.h: Include <errno.h>.
53904         (glthread_tls_key_init): New macro/function.
53905         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53906         (glthread_tls_set): New macro/function.
53907         (gl_tls_set): Define as wrapper around glthread_tls_set.
53908         (glthread_tls_key_destroy): New macro/function.
53909         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53910         Update function declarations.
53911         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53912         glthread_tls_get.
53913         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53914
53915 2008-08-04  Eric Blake  <ebb9@byu.net>
53916
53917         gnumakefile: use space, not TAB, outside of targets
53918         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53919
53920 2008-08-02  Jim Meyering  <meyering@redhat.com>
53921
53922         getdate.y: avoid locale-dependent date parsing failure
53923         In Turkish locales, getdate would fail to recognize keywords
53924         containing a lowercase "i".  The solution is not to rely on
53925         locale-sensitive case-conversion.
53926         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53927         (lookup_word): Use c_toupper in place of toupper.
53928         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53929         Reported by Vefa Bicakci <bicave@superonline.com> in
53930         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53931         * modules/getdate (Depends-on): Add c-ctype.
53932
53933 2008-08-02  Bruno Haible  <bruno@clisp.org>
53934
53935         * gnulib-tool (func_import): When updating or creating a .gitignore
53936         file, prepend each added line with a slash, and ignore leading slashes
53937         from the existing lines.
53938         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53939
53940 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53941
53942         Portability fix for GNU make 3.79.1.
53943         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53944         versions do not understand.
53945
53946 2008-08-01  Bruno Haible  <bruno@clisp.org>
53947
53948         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53949         * tests/test-isnanf.h (zero): New variable.
53950         (main): Avoid literal -0.0f.
53951         * tests/test-isnand.h (zero): New variable.
53952         (main): Avoid literal -0.0.
53953         * tests/test-isnanl.h (zero): New variable.
53954         (main): Avoid literal -0.0L.
53955         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53956         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53957         -0.0, -0.0L.
53958         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53959         (test_signbitd): Avoid literal -0.0.
53960         (test_signbitl): Avoid literal -0.0L.
53961         * tests/test-ceilf1.c (zero): New variable.
53962         (main): Avoid literal -0.0f.
53963         * tests/test-ceill.c (zero): New variable.
53964         (main): Avoid literal -0.0L.
53965         * tests/test-floorf1.c (zero): New variable.
53966         (main): Avoid literal -0.0f.
53967         * tests/test-floorl.c (zero): New variable.
53968         (main): Avoid literal -0.0L.
53969         * tests/test-roundf1.c (zero): New variable.
53970         (main): Avoid literal -0.0f.
53971         * tests/test-round1.c (zero): New variable.
53972         (main): Avoid literal -0.0.
53973         * tests/test-roundl.c (zero): New variable.
53974         (main): Avoid literal -0.0L.
53975         * tests/test-truncf1.c (zero): New variable.
53976         (main): Avoid literal -0.0f.
53977         * tests/test-trunc1.c (zero): New variable.
53978         (main): Avoid literal -0.0.
53979         * tests/test-truncl.c (zero): New variable.
53980         (main): Avoid literal -0.0L.
53981         * tests/test-frexp.c (zero): New variable.
53982         (main): Avoid literal -0.0.
53983         * tests/test-frexpl.c (zero): New variable.
53984         (main): Avoid literal -0.0L.
53985         * tests/test-ldexpl.c (zero): New variable.
53986         (main): Avoid literal -0.0L.
53987         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53988         (zerod, zerol): New variables.
53989         (test_function): Avoid literals -0.0, -0.0L.
53990         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53991         (zerod, zerol): New variables.
53992         (test_function): Avoid literals -0.0, -0.0L.
53993         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53994         (zerod, zerol): New variables.
53995         (test_function): Avoid literals -0.0, -0.0L.
53996         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53997         (zerod, zerol): New variables.
53998         (test_function): Avoid literals -0.0, -0.0L.
53999         * tests/test-strtod.c (zero): New variable.
54000         (main): Avoid literal -0.0.
54001         Reported by Jonathan C. Patschke <jp@centtech.com>.
54002
54003 2008-07-31  Jim Meyering  <meyering@redhat.com>
54004
54005         sha256.h: correct definition of SHA224_DIGEST_SIZE
54006         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54007         Reported by Paulie Pena IV <paulie4@gmail.com>.
54008         Define as 224 / 8, rather than as a literal.
54009         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54010         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54011         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54012
54013 2008-07-31  Bruno Haible  <bruno@clisp.org>
54014
54015         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54016         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54017         Reported by Jonathan Patschke <jp@centtech.com>.
54018
54019 2008-07-31  Bruno Haible  <bruno@clisp.org>
54020
54021         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54022         Reported by Paolo Bonzini <bonzini@gnu.org>.
54023
54024 2008-07-30  Eric Blake  <ebb9@byu.net>
54025
54026         test-strtod: allow compilation without -lm
54027         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54028         Reported by Dennis Clarke <blastwave@gmail.com>.
54029
54030 2008-07-28  Jim Meyering  <meyering@redhat.com>
54031
54032         bootstrap: work also when there are no .po files in po/
54033         * build-aux/bootstrap (update_po_files): Complete the change
54034         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54035
54036 2008-07-27  Jim Meyering  <meyering@redhat.com>
54037
54038         * users.txt: Add zile.
54039
54040 2008-07-26  Ben Pfaff  <blp@gnu.org>
54041
54042         Add missing dependencies on new m4/exponent[fdl].m4 files.
54043         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54044         * modules/isnand-nolibm: Add m4/exponentd.m4.
54045         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54046         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54047         m4/isnan[fdl].m4, because the macros actually used moved.
54048         Reported by Jim Meyering.
54049
54050 2008-07-14  Ben Pfaff  <blp@gnu.org>
54051
54052         Add isinf module.
54053         * lib/isinf.c: New file.
54054         * lib/math.in.h: Define isinf macro if we have decided to replace
54055         it.
54056         * m4/isinf.m4: New file.
54057         * m4/math_h.m4: Initialize and substitute variables for isinf
54058         module.
54059         * modules/isinf: New file.
54060         * modules/isinf-tests: New file.
54061         * modules/math: Add substitutions for new module.
54062         * tests/test-isinf.c: New file.
54063         * doc/posix-functions/isinf.texi: Mention new module.
54064         * MODULES.html.sh: Mention new module.
54065
54066 2008-07-14  Ben Pfaff  <blp@gnu.org>
54067
54068         Factor out some macros for use by additional modules.
54069         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54070         exponentf.m4.
54071         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54072         exponentd.m4.
54073         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54074         file exponentl.m4.
54075         * m4/exponentf.m4: New file.
54076         * m4/exponentd.m4: New file.
54077         * m4/exponentl.m4: New file.
54078         * modules/isnanf: Use new file m4/exponentf.m4.
54079         * modules/isnand: Use new file m4/exponentd.m4.
54080         * modules/isnanl: Use new file m4/exponentl.m4.
54081
54082 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54083
54084         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54085         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54086         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54087         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54088
54089         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54090         readlink on platforms without PATH_MAX.
54091
54092 2008-07-21  Eric Blake  <ebb9@byu.net>
54093
54094         Warn, not fail, on stale version.
54095         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54096
54097         Don't allow installation with stale devel version number.
54098         * top/GNUmakefile (_is-install-target): New macro.
54099         (_curr-ver): Forbid installation with stale version number.
54100
54101 2008-07-20  Bruno Haible  <bruno@clisp.org>
54102
54103         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54104         TESTS_ENVIRONMENT.
54105         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54106
54107 2008-07-20  Bruno Haible  <bruno@clisp.org>
54108
54109         * lib/c-stack.h (c_stack_action): Add documentation.
54110         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54111
54112 2008-07-20  Bruno Haible  <bruno@clisp.org>
54113
54114         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54115         * modules/readlink (License): Likewise.
54116
54117 2008-07-17  Eric Blake  <ebb9@byu.net>
54118
54119         * modules/c-stack (Link): Fix typo.
54120
54121         Make c-stack use libsigsegv, when available.
54122         * modules/c-stack (Depends-on): Add libsigsegv.
54123         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54124         needed.
54125         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54126         (segv_handler, overflow_handler, c_stack_action)
54127         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54128         implementation when libsigsegv is available, but only when using
54129         the library is necessary.
54130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54131         comment, explaining why XSI check fails on Linux.
54132         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54133         * tests/test-c-stack2.sh: Tweak skip message.
54134         * NEWS: Document new link-time requirements.
54135
54136 2008-07-16  Eric Blake  <ebb9@byu.net>
54137
54138         c-stack: Expose false positives when not using libsigsegv.
54139         * modules/c-stack-tests (Files): Expand test.
54140         * tests/test-c-stack.c (main): Add means to conditionally trigger
54141         non-overflow SIGSEGV.
54142         * tests/test-c-stack2.sh: New file.
54143
54144 2008-07-14  Bruno Haible  <bruno@clisp.org>
54145
54146         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54147         Reported by Eric Blake.
54148
54149 2008-07-14  Sam Steingold  <sds@gnu.org>
54150             Bruno Haible  <bruno@clisp.org>
54151
54152         New module libsigsegv.
54153         * modules/libsigsegv: New file.
54154         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54155         modifications.
54156         * MODULES.html.sh (Signal handling): New section.
54157
54158 2008-07-14  Bruno Haible  <bruno@clisp.org>
54159
54160         * modules/unictype/ctype-* (Description): Add the word "function".
54161         Improves the resulting doc in MODULES.html.
54162
54163 2008-07-12  Ben Pfaff  <blp@gnu.org>
54164
54165         Add longlong module.
54166         * modules/longlong: New file.
54167
54168 2008-07-12  Bruno Haible  <bruno@clisp.org>
54169
54170         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54171         to empty.
54172
54173 2008-07-10  Ben Pfaff  <blp@gnu.org>
54174
54175         Add isnan module.
54176         * doc/posix-functions/isnan.texi: Mention new module.
54177         * lib/math.in.h: Define isnan macro if we have decided to replace
54178         it.
54179         * m4/isnan.m4: New file.
54180         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54181         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54182         also.
54183         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54184         redundancy.
54185         * m4/math_h.m4: Initialize and substitute variables for isnan
54186         module.
54187         * modules/isnan: New file.
54188         * modules/isnan-tests: New file.
54189         * modules/math: Add substitutions for new module.
54190         * tests/test-isnan.c: New file.
54191         * MODULES.html.sh: Mention new module.
54192
54193 2008-07-10  Ben Pfaff  <blp@gnu.org>
54194
54195         Add isnanf module.
54196         * lib/isnanf.m4: New file.
54197         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54198         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54199         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54200         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54201         * modules/isnanf: New file.
54202         * modules/isnanf-tests: New file.
54203         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54204         files.
54205         * tests/test-isnanf-nolibm.c: factored most of its contents into
54206         new file tests/test-isnanf.h.
54207         * tests/test-isnanf.h: New file.
54208         * tests/test-isnanf.c: New file.
54209         * MODULES.html.sh: Mention new module.
54210         * doc/glibc-functions/isnanf.texi: Mention new module.
54211
54212 2008-07-10  Ben Pfaff  <blp@gnu.org>
54213
54214         Add isnand module.
54215         * lib/isnand.h: New file.
54216         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54217         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54218         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54219         functionality also.
54220         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54221         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54222         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54223         * modules/isnand: New file.
54224         * modules/isnand-tests: New file.
54225         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54226         files.
54227         * tests/test-isnand-nolibm.c: factored most of its contents into
54228         new file tests/test-isnand.h.
54229         * tests/test-isnand.h: New file.
54230         * tests/test-isnand.c: New file.
54231         * MODULES.html.sh: Mention new module.
54232
54233 2008-07-10  Ben Pfaff  <blp@gnu.org>
54234
54235         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54236         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54237         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54238         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54239         * modules/isnanf-nolibm: Update references to renamed files.
54240         * modules/isnand-nolibm: Likewise.
54241         * modules/isnanf-nolibm-tests: Likewise.
54242         * modules/isnand-nolibm-tests: Likewise.
54243         * lib/frexp.c: Likewise.
54244         * lib/isfinite.c: Likewise.
54245         * lib/signbitd.c: Likewise.
54246         * lib/signbitf.c: Likewise.
54247         * lib/vasnprintf.c: Likewise.
54248         * tests/test-ceilf1.c: Likewise.
54249         * tests/test-ceilf2.c: Likewise.
54250         * tests/test-floorf1.c: Likewise.
54251         * tests/test-floorf2.c: Likewise.
54252         * tests/test-frexp.c: Likewise.
54253         * tests/test-round1.c: Likewise.
54254         * tests/test-round2.c: Likewise.
54255         * tests/test-roundf1.c: Likewise.
54256         * tests/test-strtod.c: Likewise.
54257         * tests/test-trunc1.c: Likewise.
54258         * tests/test-trunc2.c: Likewise.
54259         * tests/test-truncf1.c: Likewise.
54260         * tests/test-truncf2.c: Likewise.
54261         * NEWS: Mention the renamed header files.
54262
54263 2008-07-11  Jim Meyering  <meyering@redhat.com>
54264
54265         vc-list-files: make the last-resort awk code more portable
54266         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54267         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54268         does not support it.
54269
54270 2008-07-10  Eric Blake  <ebb9@byu.net>
54271
54272         Work with tar's bootstrap.
54273         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54274         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54275         an m4 comment.
54276
54277 2008-07-09  Jim Meyering  <meyering@redhat.com>
54278
54279         posix-shell.m4: fix typo that made this test malfunction
54280         * m4/posix-shell.m4: Remove capitalization in variable name.
54281
54282 2008-07-08  Bruno Haible  <bruno@clisp.org>
54283
54284         * m4/onceonly.m4: Update comments.
54285         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54286
54287 2008-07-04  Jim Meyering  <meyering@redhat.com>
54288
54289         * users.txt: Add vc-dwim.
54290         (bison, coreutils): Use the gitweb URL.
54291
54292 2008-07-03  Jim Meyering  <meyering@redhat.com>
54293
54294         * users.txt: Add libffcall.  From Sam Steingold.
54295
54296 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54297
54298         getdate.y: do not ignore TZ with relative day, month or year offset
54299         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54300         relative-date-handling, since otherwise, the latter would clobber the
54301         sole output (an updated Start value) of the tz-handling block.
54302         * tests/test-getdate.c: Tests for the fix
54303
54304 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54305
54306         Recognize 'foo_LIBRARIES += libgnu.a'.
54307         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54308         makefile snippet has already specified an installation location,
54309         also using '+='.
54310
54311 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54312
54313         getdate.y: factor out common actions
54314         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54315         Use them in place of open-coded actions.
54316
54317 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54318
54319         Add self-test for getdate module.
54320         * modules/getdate-tests: New file.
54321         * tests/test-getdate.c: New file.
54322
54323 2008-06-29  Bruno Haible  <bruno@clisp.org>
54324
54325         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54326         .gitignore.
54327         Reported by Sylvain Beucler <beuc@beuc.net>.
54328
54329 2008-06-29  Bruno Haible  <bruno@clisp.org>
54330
54331         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54332         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54333
54334 2008-06-29  Bruno Haible  <bruno@clisp.org>
54335
54336         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54337         EXTRA_DIST.
54338         Reported by Sylvain Beucler <beuc@beuc.net>.
54339
54340 2008-06-26  Jim Meyering  <meyering@redhat.com>
54341
54342         make several modules depend on the "open" module
54343         This provides slightly increased consistency when opening-for-write
54344         the name of a non-directory spelled with a trailing slash.
54345         * modules/chdir-safer: Likewise.
54346         * modules/chown: Likewise.
54347         * modules/clean-temp: Likewise.
54348         * modules/copy-file: Likewise.
54349         * modules/fchdir: Likewise.
54350         * modules/fcntl-safer: Likewise.
54351         * modules/pipe: Likewise.
54352         * modules/utime: Likewise.
54353         Prompted by Eric Blake and Bruno Haible.
54354
54355 2008-06-24  Andreas Schwab  <schwab@suse.de>
54356
54357         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54358         literals can be used as initializers for global variables.
54359
54360 2008-06-23  Eric Blake  <ebb9@byu.net>
54361
54362         Make gnulib-cache.m4 easier to diff.
54363         * gnulib-tool (func_import): Allow newlines when reading cached
54364         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54365
54366 2008-06-23  Bruno Haible  <bruno@clisp.org>
54367
54368         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54369         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54370         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54371         m4/signalblocking.m4.
54372         (gl_PREREQ_SIGACTION): Don't invoke it.
54373         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54374         gl_PREREQ_SIG_HANDLER_H.
54375         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54376         Don't check for sigaction here.
54377
54378 2008-06-23  Bruno Haible  <bruno@clisp.org>
54379
54380         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54381         (install_handlers): Don't set the SA_RESETHAND flag.
54382
54383 2008-06-23  Bruno Haible  <bruno@clisp.org>
54384
54385         * m4/sigaction.m4: Comment fixes.
54386         * lib/signal.in.h: Likewise.
54387
54388 2008-06-23  Eric Blake  <ebb9@byu.net>
54389
54390         Fix typo.
54391         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54392
54393         Avoid SA_ namespace.
54394         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54395         Reported by Ralf Wildenhues.
54396
54397         Avoid test failure due to SA_RESTORER.
54398         * tests/test-sigaction.c (SA_MASK): New macro.
54399         (main): Avoid failing due to extension flags being set.
54400         Reported by Jim Meyering.
54401
54402         Revert use of sig-handler.h in sigprocmask.c.
54403         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54404         it requires the existence of struct sigaction.
54405         * lib/sigprocmask.c (handler_t): Restore typedef.
54406         (rpl_signal, old_handlers): Use local type.
54407
54408 2008-06-22  Bruno Haible  <bruno@clisp.org>
54409
54410         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54411         conditionally.
54412         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54413
54414 2008-06-22  Bruno Haible  <bruno@clisp.org>
54415
54416         * doc/posix-functions/siginterrupt.texi: Move note.
54417
54418         * lib/signal.in.h (SA_RESTART): New macro.
54419         * lib/sigaction.c: Update comment.
54420
54421         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54422
54423         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54424         (gl_PREREQ_SIGPROCMASK): Invoke it.
54425         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54426
54427         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54428
54429         * lib/sigprocmask.c: Update a comment.
54430
54431 2008-06-21  Eric Blake  <ebb9@byu.net>
54432
54433         Use sigaction module rather than signal().
54434         * modules/c-stack (Depends-on): Add sigaction.
54435         * modules/fatal-signal (Depends-on): Likewise.
54436         * modules/nanosleep (Depends-on): Likewise.
54437         * modules/sigprocmask (Files): Add sig-handler.h.
54438         * modules/sigaction (Files): Likewise.
54439         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54440         Eggert.
54441         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54442         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54443         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54444         (init_fatal_signals): Likewise.
54445         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54446         (siginterrupt): Delete fallback.
54447         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54448         instead.
54449         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54450         siginterrupt.
54451
54452         New module sigaction, for mingw.
54453         * modules/sigaction: New module...
54454         * modules/sigaction-tests: ...and its test.
54455         * m4/sigaction.m4: New file.
54456         * lib/sigaction.c: Likewise.
54457         * tests/test-sigaction.c: Likewise.
54458         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54459         * modules/signal (Makefile.am): Likewise.
54460         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54461         needed.
54462         * doc/posix-headers/signal.texi (signal.h): Mention provided
54463         types.
54464         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54465         that sigaction is preferable.
54466         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54467         module.
54468         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54469         sigaction.
54470
54471         Improve robustness of sigprocmask by overriding signal.
54472         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54473         is in use.
54474         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54475         (SIGKILL, SIGSTOP): Provide fallbacks.
54476         (rpl_signal): Implement.
54477         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54478         signal can be called inside handlers.
54479
54480         Fix nanosleep module on mingw.
54481         * modules/nanosleep (Depends-on): Add sys_select.
54482         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54483
54484         Fix licensing of sigprocmask.
54485         * modules/raise (License): Relicense as LGPL.
54486
54487 2008-06-21  Bruno Haible  <bruno@clisp.org>
54488
54489         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54490         result if it contains question marks.
54491         Reported by Michael Geng <linux@michaelgeng.de>.
54492
54493 2008-06-19  Bruno Haible  <bruno@clisp.org>
54494
54495         Fix CVS-ism.
54496         * doc/gnulib.texi: Include updated-stamp.texi.
54497         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54498         (updated-stamp.texi): New rule.
54499         (gnulib.info): Depend on it.
54500         * doc/.gitignore: Add updated-stamp.texi.
54501         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54502
54503 2008-06-19  Bruno Haible  <bruno@clisp.org>
54504
54505         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54506         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54507
54508 2008-06-19  Eric Blake  <ebb9@byu.net>
54509
54510         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54511         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54512         Reported by Stepan Kasal.
54513
54514 2008-06-18  Bruno Haible  <bruno@clisp.org>
54515
54516         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54517         Reported by Eric Blake.
54518
54519 2008-06-18  Eric Blake  <ebb9@byu.net>
54520
54521         Work around cygwin 1.5.25 strsignal bug.
54522         * tests/test-strsignal.c: Allow for const char *.
54523         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54524
54525 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54526
54527         * users.txt: Update URL to article and add author/date
54528         information.
54529
54530 2008-06-17  Bruno Haible  <bruno@clisp.org>
54531
54532         New macro gl_DISABLE_THREADS.
54533         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54534         if the user did not pass --enable-threads or --disable-threads option.
54535         (gl_DISABLE_THREADS): New macro.
54536         Reported by Eric Blake <ebb9@byu.net>.
54537
54538 2008-06-17  Bruno Haible  <bruno@clisp.org>
54539
54540         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54541         when the macro ignores it.
54542         Based on a patch by Eric Blake <ebb9@byu.net>.
54543
54544 2008-06-17  Bruno Haible  <bruno@clisp.org>
54545
54546         * modules/tls (License): Change to LGPLv2+.
54547         Reported by Eric Blake.
54548
54549 2008-06-17  Eric Blake  <ebb9@byu.net>
54550
54551         Simplify c-stack prerequisites.
54552         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54553         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54554         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54555         check.
54556         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54557         <sys/resource.h>.
54558
54559         Move c-stack test into testsuite.
54560         * modules/c-stack-tests: New file.
54561         * lib/c-stack.c [DEBUG]: Move test program...
54562         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54563         fail test if sigaltstack is lacking.
54564         * tests/test-c-stack.sh: New driver file.
54565
54566 2008-06-16  Eric Blake  <ebb9@byu.net>
54567
54568         Use raise module consistently.
54569         * modules/fatal-signal (Depends-on): Add raise.
54570         * modules/sigprocmask (Depends-on): Likewise.
54571         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54572         * lib/sigprocmask.c (sigprocmask): Likewise.
54573         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54574         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54575
54576         Fix compliance bug in sigpending.
54577         * lib/sigprocmask.c (sigpending): Return pending array via
54578         parameter, not return value.
54579
54580 2008-06-14  Eric Blake  <ebb9@byu.net>
54581
54582         Improve obstack-printf test code.
54583         * tests/test-obstack-printf.c (test_function): Fix comment, and
54584         simplify usage of obstack_* in macros.  Add a test for coverage.
54585         Reported by Bruno Haible.
54586
54587 2008-06-14  Bruno Haible  <bruno@clisp.org>
54588
54589         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54590         array size as a constant, not as a const variable.
54591         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54592         AC_USE_SYSTEM_EXTENSIONS.
54593         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54594         Test whether the obstack_printf function actually exists.
54595         * modules/obstack-printf (Depends-on): Add extensions.
54596         (Include): Remove obstack.h.
54597         * modules/obstack-printf-posix (Depends-on): Add extensions.
54598         (Include): Remove obstack.h.
54599
54600 2008-06-13  Eric Blake  <ebb9@byu.net>
54601
54602         Add obstack-printf and obstack-printf-posix modules.
54603         * modules/obstack-printf: New file.
54604         * modules/obstack-printf-posix: Likewise.
54605         * MODULES.html.sh (Misc): Mention them.
54606         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54607         Likewise.
54608         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54609         Likewise.
54610         * modules/stdio (Makefile.am): Accomodate new modules.
54611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54612         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54613         Declare.
54614         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54615         functions.
54616         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54617         (gl_REPLACE_OBSTACK_PRINTF): New macros
54618         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54619         * tests/test-obstack-printf.c: New file.
54620         * modules/obstack-printf-tests: Likewise.
54621         * modules/obstack-printf-posix-tests: Likewise.
54622
54623 2008-06-11  Bruno Haible  <bruno@clisp.org>
54624
54625         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54626         * lib/open.c: Include errno.h.
54627         (open): Fail when attempting to write to a file that has a trailing
54628         slash.
54629         * tests/test-open.c (main): Test against trailing slash bug.
54630         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54631
54632 2008-06-10  Bruno Haible  <bruno@clisp.org>
54633
54634         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54635         for $? to work inside the trap command, with various /bin/sh-s.
54636         * tests/test-vc-list-files-cvs.sh: Likewise.
54637
54638 2008-06-10  Bruno Haible  <bruno@clisp.org>
54639
54640         * lib/acl-internal.h: Don't include gettext.h here.
54641         * lib/set-mode-acl.c: Include gettext.h here.
54642         * lib/copy-acl.c: Likewise.
54643
54644 2008-06-10  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54647         * lib/wait-process.c (wait_subprocess): Likewise.
54648         * lib/execute.h (execute): Add termsigp argument.
54649         * lib/execute.c (execute): Likewise.
54650         * lib/csharpcomp.c (compile_csharp_using_pnet,
54651         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54652         * lib/csharpexec.c (execute_csharp_using_pnet,
54653         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54654         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54655         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54656         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54657         is_jikes_present): Update.
54658         * lib/javaexec.c (execute_java_class): Update.
54659         * lib/javaversion.c (execute_and_read_line): Update.
54660         * NEWS: Document the changes.
54661         Reported by Eric Blake.
54662
54663 2008-06-10  Eric Blake  <ebb9@byu.net>
54664
54665         Add missing include.
54666         * tests/test-strstr.c (includes): Add <signal.h>.
54667         * tests/test-strcasestr.c (includes): Likewise.
54668         * tests/test-memmem.c (includes): Likewise.
54669
54670 2008-06-10  Bruno Haible  <bruno@clisp.org>
54671
54672         * lib/wait-process.c (wait_subprocess): Add an assertion.
54673
54674 2008-06-10  Bruno Haible  <bruno@clisp.org>
54675
54676         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54677
54678 2008-06-10  Bruno Haible  <bruno@clisp.org>
54679
54680         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54681         using alarm().
54682         * tests/test-strcasestr.c (main): Likewise.
54683         * tests/test-strstr.c (main): Likewise.
54684
54685 2008-06-09  Bruno Haible  <bruno@clisp.org>
54686
54687         Work around the Solaris 10 ACE ACLs ABI change.
54688         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54689         declare if ACL_NO_TRIVIAL is present.
54690         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54691         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54692         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54693         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54694         define if ACL_NO_TRIVIAL is present.
54695         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54696         and use the current ABI.
54697         (file_has_acl): Use same #if condition as elsewhere.
54698         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54699         in use, and use the current ABI.
54700         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54701         Reported by Jim Meyering.
54702
54703 2008-06-09  Eric Blake  <ebb9@byu.net>
54704
54705         Work around environments that (stupidly) ignore SIGALRM.
54706         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54707         before using alarm().
54708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54709         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54710         Reported by Ian Beckwith <ianb@erislabs.net>.
54711
54712         Produce autobuild blurb earlier in log.
54713         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54714
54715 2008-06-09  Jim Meyering  <meyering@redhat.com>
54716         and OndÅ™ej Vašík  <ovasik@redhat.com>
54717
54718         utimens.c: correct kernel bug work-around
54719         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54720         failure, not success, and the kernel bug we're trying to work
54721         around affects not just the utimensat call, but also the fallback
54722         futimens call.
54723         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54724         not success.
54725         [HAVE_FUTIMENS]: Use the same work-around, here.
54726
54727 2008-06-09  Jim Meyering  <meyering@redhat.com>
54728
54729         add more guards around definition of ACE_-related code
54730         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54731         ALLOW and ACE_OWNER are also defined.
54732
54733 2008-06-08  Bruno Haible  <bruno@clisp.org>
54734
54735         * lib/acl-internal.h: Add me as co-author.
54736         * lib/file-has-acl.c: Likewise.
54737         * lib/set-mode-acl.c: Likewise.
54738         * lib/copy-acl.c: Likewise.
54739
54740 2008-06-08  Bruno Haible  <bruno@clisp.org>
54741
54742         Add support for AIX ACLs.
54743         * lib/acl-internal.h (acl_nontrivial): New declaration.
54744         * lib/file-has-acl.c (acl_nontrivial): New function.
54745         (file_has_acl): Add implementation using AIX 4 ACL API.
54746         * lib/set-mode-acl.c (qset_acl): Likewise.
54747         * lib/copy-acl.c (qcopy_acl): Likewise.
54748
54749 2008-06-08  Bruno Haible  <bruno@clisp.org>
54750
54751         Add support for HP-UX ACLs.
54752         * lib/acl-internal.h (acl_nontrivial): New declaration.
54753         * lib/file-has-acl.c (acl_nontrivial): New function.
54754         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54755         * lib/set-mode-acl.c (qset_acl): Likewise.
54756         * lib/copy-acl.c (qcopy_acl): Likewise.
54757
54758 2008-06-08  Bruno Haible  <bruno@clisp.org>
54759
54760         Add support for Cygwin ACLs.
54761         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54762         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54763         the chmod_or_fchmod call.
54764         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54765
54766 2008-06-08  Bruno Haible  <bruno@clisp.org>
54767
54768         Fix bug with setuid modes in Solaris 10+ code.
54769         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54770         succeeded, when the mode contains some special bits.
54771
54772 2008-06-08  Bruno Haible  <bruno@clisp.org>
54773
54774         Add support for Solaris 7..10 ACLs.
54775         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54776         declarations.
54777         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54778         functions.
54779         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54780         * lib/set-mode-acl.c (qset_acl): Likewise.
54781         * lib/copy-acl.c (qcopy_acl): Likewise.
54782
54783 2008-06-08  Bruno Haible  <bruno@clisp.org>
54784
54785         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54786         declaration.
54787         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54788         (acl_access_nontrivial): Remove MacOS X case.
54789         (file_has_acl): Use acl_extended_nontrivial.
54790         * lib/copy-acl.c (qcopy_acl): Likewise.
54791
54792 2008-06-08  Bruno Haible  <bruno@clisp.org>
54793
54794         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54795
54796 2008-06-08  Jim Meyering  <meyering@redhat.com>
54797
54798         * modules/acl (Maintainer): Add Bruno Haible.
54799
54800 2008-06-07  Bruno Haible  <bruno@clisp.org>
54801
54802         Improve support for Tru64 ACLs.
54803         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54804         ACL on OSF/1.
54805
54806 2008-06-07  Bruno Haible  <bruno@clisp.org>
54807
54808         Add support for MacOS X ACLs.
54809         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54810         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54811         * lib/set-mode-acl.c (qset_acl): Likewise.
54812         * lib/copy-acl.c (qcopy_acl): Likewise.
54813
54814 2008-06-07  Bruno Haible  <bruno@clisp.org>
54815
54816         Fix memory leak introduced on 2008-05-22.
54817         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54818         use.
54819
54820 2008-06-07  Bruno Haible  <bruno@clisp.org>
54821
54822         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54823         to construct an empty ACL.
54824
54825 2008-06-07  Bruno Haible  <bruno@clisp.org>
54826
54827         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54828         precisely.
54829         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54830
54831 2008-06-07  Bruno Haible  <bruno@clisp.org>
54832
54833         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54834         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54835
54836 2008-06-07  Bruno Haible  <bruno@clisp.org>
54837
54838         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54839         regardless of POSIX.
54840         * doc/posix-functions/_longjmp.texi: Likewise.
54841         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54842         SystemV platform in this case.
54843
54844 2008-06-06  Eric Blake  <ebb9@byu.net>
54845
54846         Document abort() bugs.
54847         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54848
54849         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54850         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54851         sigsetjmp.
54852         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54853         siglongjmp, but only as a macro.
54854         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54855         is obsolete.
54856         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54857
54858         Tweak documentation to cover cygwin argz bugs.
54859         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54860         argz bug fix; no code change needed since no cygwin releases
54861         occurred between the last fix and the bug being tested.
54862         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54863         module and recently fixed cygwin bugs.
54864         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54865         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54866         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54867         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54868         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54869         Likewise.
54870         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54871         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54872         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54873         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54874         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54875         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54876         Likewise.
54877
54878         Avoid gcc warning on cygwin.
54879         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54880         !ACL_NO_TRIVIAL]: Avoid unused variable.
54881
54882 2008-06-05  Eric Blake  <ebb9@byu.net>
54883
54884         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54885         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54886         git-version-gen fails to come up with a version.
54887         Reported by Simon Josefsson.
54888
54889 2008-06-05  Jim Meyering  <meyering@redhat.com>
54890             Paul Eggert  <eggert@cs.ucla.edu>
54891
54892         utimens.c: work around a probable Linux kernel bug
54893         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54894         appears to be a kernel bug that causes utimensat to return 280
54895         instead of 0, indicating success.
54896
54897 2008-06-04  Bruno Haible  <bruno@clisp.org>
54898
54899         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54900         2008-06-01 commit.
54901
54902 2008-06-04  Bruno Haible  <bruno@clisp.org>
54903
54904         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54905         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54906         (file_has_acl): Use it. Save errno afterwards.
54907         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54908
54909 2008-06-03  Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54912         draft code. Simplify #ifs.
54913         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54914         Put Solaris code after POSIX-draft code. Fix comments regarding
54915         Solaris 10, HP-UX. Mention Cygwin.
54916         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54917
54918 2008-06-03  Eric Blake  <ebb9@byu.net>
54919
54920         Provide fallback for older kernels.
54921         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54922         Provide runtime fallback if kernel lacks support.
54923         Reported by Mike Frysinger.
54924
54925 2008-06-02  Bruno Haible  <bruno@clisp.org>
54926
54927         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54928         it exists.
54929
54930 2008-06-02  Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54933         * lib/copy-acl.c (qcopy_acl): Update comment.
54934
54935 2008-06-02  Bruno Haible  <bruno@clisp.org>
54936
54937         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54938         like ACL APIs.
54939
54940 2008-06-02  Bruno Haible  <bruno@clisp.org>
54941
54942         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54943         * tests/test-set-mode-acl.sh: Likewise.
54944         * tests/test-copy-acl.sh: Likewise.
54945         * tests/test-copy-file.sh: Likewise.
54946
54947 2008-06-02  Bruno Haible  <bruno@clisp.org>
54948
54949         * tests/test-file-has-acl.sh: Remove unused code.
54950
54951 2008-06-01  Bruno Haible  <bruno@clisp.org>
54952
54953         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54954         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54955         messages.
54956         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54957
54958 2008-06-01  Bruno Haible  <bruno@clisp.org>
54959
54960         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54961         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54962         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54963         APIs.
54964         * modules/acl-tests (configure.ac): Remove tests now contained in
54965         m4/acl.m4.
54966
54967 2008-06-02  Jim Meyering  <meyering@redhat.com>
54968
54969         announce-gen: use a better key-server host name
54970         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54971         it may be more consistently reliable.  Suggested by Werner Koch
54972         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54973
54974 2008-06-01  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54977         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54978
54979 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54980
54981         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54982
54983 2008-06-01  Bruno Haible  <bruno@clisp.org>
54984
54985         New ACL tests.
54986         * tests/test-file-has-acl.sh: New file.
54987         * tests/test-file-has-acl.c: New file.
54988         * tests/test-set-mode-acl.sh: New file.
54989         * tests/test-set-mode-acl.c: New file.
54990         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54991         * tests/test-copy-acl.c: New file.
54992         * modules/acl-tests: New file, based on modules/copy-file-tests.
54993         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54994         (Depends-on): Add acl-tests.
54995         (configure.ac): Remove checks.
54996         (Makefile.am): Don't create test-sameacls program here any more.
54997
54998 2008-06-01  Bruno Haible  <bruno@clisp.org>
54999
55000         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55001         * tests/test-sameacls.c: Include progname.h.
55002         (main): Invoke set_program_name. Portability fixes for MacOS X,
55003         Solaris, HP-UX.
55004
55005 2008-06-01  Bruno Haible  <bruno@clisp.org>
55006
55007         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55008         function.
55009         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55010
55011 2008-06-01  Bruno Haible  <bruno@clisp.org>
55012
55013         * modules/rpmatch (Depends-on): Add strdup.
55014
55015 2008-06-01  Bruno Haible  <bruno@clisp.org>
55016
55017         * lib/pipe.c: Include unistd-safer.h.
55018         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55019         * modules/pipe (Depends-on): Add unistd-safer.
55020
55021 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55022
55023         * modules/autobuild (configure.ac): Call AB_INIT.
55024
55025 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55026
55027         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55028         Suggested by Bruno Haible <bruno@clisp.org>.
55029
55030 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55031
55032         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55033         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55034         <bruno@clisp.org>.
55035
55036 2008-05-29  Eric Blake  <ebb9@byu.net>
55037
55038         Prefer new POSIX 200x interfaces over futimesat.
55039         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55040         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55041         when available.
55042         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55043
55044 2008-05-28  Bruno Haible  <bruno@clisp.org>
55045
55046         * modules/stpcpy (License): Change to LGPLv2+.
55047         Requested by David Lutterkort <dlutter@redhat.com>.
55048
55049 2008-05-27  Bruno Haible  <bruno@clisp.org>
55050
55051         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55052         current mingw.
55053         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55054
55055 2008-05-27  Bruno Haible  <bruno@clisp.org>
55056
55057         * modules/iconv_open (Link): New section, from module 'iconv'.
55058         * modules/striconv (Link): Likewise.
55059         * modules/striconveh (Link): Likewise.
55060         * modules/xstriconv (Link): Likewise.
55061         * modules/unicodeio (Link): Likewise.
55062         * modules/propername (Link): Likewise.
55063         Reported by Jim Meyering.
55064
55065 2008-05-26  Jim Meyering  <meyering@redhat.com>
55066
55067         sha256: do not artificially restrict buffer length to be < 2^32
55068         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55069         uint32_t to size_t.
55070         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55071         to match.
55072
55073         avoid unaligned access errors, e.g., on sparc
55074         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55075         direct access through a possibly-unaligned uint64* pointer.
55076         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55077         direct access through a possibly-unaligned uint32* pointer.
55078         Prompted by this patch from Tom "spot" Callaway:
55079         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55080
55081         sha512.c: fix typo in comment
55082         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55083
55084 2008-05-25  Bruno Haible  <bruno@clisp.org>
55085
55086         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55087         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55088         (Makefile.am): Update lib_SOURCES.
55089
55090 2008-05-25  Bruno Haible  <bruno@clisp.org>
55091
55092         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55093
55094 2008-05-25  Jim Meyering  <meyering@redhat.com>
55095
55096         useless-if-before-free: freed expr may have white-space differences
55097         * build-aux/useless-if-before-free: Recognize cases in which the
55098         freed expression differs from the tested one in embedded white
55099         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55100         $1 was used, so we can't make any regexp shy.  Improved tests now
55101         detect this.
55102
55103         useless-if-before-free: accept white space in the expression.
55104         * build-aux/useless-if-before-free: For now, any white space
55105         in the expression must be identical in the free argument.
55106
55107         useless-if-before-free: efficiency tweak
55108         * build-aux/useless-if-before-free: Make the expression-matching
55109         regexp "shy".
55110         Make the *outer* regexp shy, not the expr-matching one.
55111
55112         update code-in-comment to accept cast of free arg
55113         * build-aux/useless-if-before-free: Update regexp.
55114
55115 2008-05-25  Bruno Haible  <bruno@clisp.org>
55116
55117         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55118         * modules/copy-file-tests (Files, Makefile.am): Update.
55119         * tests/test-copy-file.c (func_test_copy): Update.
55120
55121 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55122
55123         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55124
55125 2008-05-23  Bruno Haible  <bruno@clisp.org>
55126
55127         Improve support for ACLs on OSF/1.
55128         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55129         Remove fallback for unknown flavors of ACLs.
55130
55131 2008-05-22  Bruno Haible  <bruno@clisp.org>
55132
55133         Add support for ACLs on OSF/1.
55134         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55135         replacements.
55136         (acl_free_text): New macro fallback.
55137         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55138         acl_free.
55139         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55140         acl_free_text function. Require AC_C_INLINE.
55141
55142 2008-05-22  Bruno Haible  <bruno@clisp.org>
55143
55144         Make copy_acl work on MacOS X 10.5.
55145         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55146         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55147         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55148         If MODE_INSIDE_ACL, don't assume that every system has the same text
55149         representation for ACLs as FreeBSD.
55150         * lib/copy-acl.c (copy_acl): Add support for platforms with
55151         !MODE_INSIDE_ACL.
55152         * lib/file-has-acl.c (file_has_acl): Likewise.
55153         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55154         FreeBSD, MacOS X, or IRIX, respectively.
55155
55156 2008-05-22  Bruno Haible  <bruno@clisp.org>
55157
55158         * lib/acl.h: Don't include <sys/acl.h>.
55159         (GETACLCNT): Move fallback to lib/acl-internal.h.
55160         * lib/acl-internal.h: Include <sys/acl.h> here.
55161         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55162
55163 2008-05-22  Bruno Haible  <bruno@clisp.org>
55164
55165         Split off copy_acl function to separate file.
55166         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55167         * lib/acl.c (copy_acl): Moved function to separate file.
55168         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55169         * modules/acl (Files): Add lib/copy-acl.c.
55170         (Makefiles.am): Augment lib_SOURCES.
55171
55172 2008-05-22  Bruno Haible  <bruno@clisp.org>
55173
55174         * modules/copy-file-tests: New file.
55175         * tests/test-copy-file.sh: New file.
55176         * tests/test-copy-file.c: New file.
55177         * tests/test-copy-file-sameacls.c: New file.
55178
55179 2008-05-22  Eric Blake  <ebb9@byu.net>
55180
55181         Avoid gcc warning.
55182         * tests/test-memcmp.c (main): Pass NULL indirectly.
55183
55184 2008-05-21  Bruno Haible  <bruno@clisp.org>
55185
55186         Add reference doc about ACLs.
55187         * doc/acl-resources.txt: New file.
55188         * doc/acl-cygwin.txt: New file.
55189
55190 2008-05-21  Bruno Haible  <bruno@clisp.org>
55191
55192         Avoid one more warning from gcc.
55193         * lib/vasnprintf.c (IF_LINT): Update comments.
55194         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55195
55196 2008-05-21  Jim Meyering  <meyering@redhat.com>
55197
55198         avoid a warning from gcc
55199         * lib/vasnprintf.c (IF_LINT): Define.
55200         (scale10_round_decimal_long_double):
55201         Use it to avoid a "may be used uninitialized" warning.
55202         (scale10_round_decimal_double): Likewise.
55203
55204 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55205
55206         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55207         declared.
55208
55209 2008-05-20  Bruno Haible  <bruno@clisp.org>
55210
55211         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55212         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55213
55214 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55215
55216         * modules/memcmp-tests: New file.
55217         * tests/test-memcmp.c: New file.
55218
55219 2008-05-19  Bruno Haible  <bruno@clisp.org>
55220
55221         * modules/propername (Notice, configure.ac): Put quoted "..." into
55222         --keyword option.
55223         * lib/propername.h: Update comments accordingly.
55224         Reported by Eric Blake.
55225
55226 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55227
55228         * modules/getpass-gnu (Depends-on): Add fseeko.
55229
55230 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55231
55232         * modules/base64-tests: New file.
55233
55234 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55235
55236         * lib/base64.c (base64_decode_ctx): If a decode context structure
55237         was passed in use it to ignore newlines.  If a context structure
55238         was _not_ passed in, continue to treat newlines as garbage (this
55239         is the historical behavior).  Formerly base64_decode.
55240         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55241         takes a decode context structure.
55242         * lib/base64.h (base64_decode): Macro for four-argument calls.
55243         (base64_decode_alloc): Likewise.
55244         * lib/base64.c (base64_decode_ctx): If a decode context structure
55245         was passed in use it to ignore newlines.  If a context structure
55246         was _not_ passed in, continue to treat newlines as garbage (this
55247         is the historical behavior).  Formerly base64_decode.
55248         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55249         takes a decode context structure.
55250         * lib/base64.h (base64_decode): Macro for four-argument calls.
55251         (base64_decode_alloc): Likewise.
55252
55253 2008-05-19  Jim Meyering  <meyering@redhat.com>
55254
55255         avoid a warning from gcc
55256         * lib/trim.c (IF_LINT): Define.
55257         (trim2): Use it to avoid a "may be used uninitialized" warning.
55258
55259         Fix doc typo.
55260         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55261
55262 2008-05-19  Bruno Haible  <bruno@clisp.org>
55263
55264         * doc/glibc-functions/getpass.texi: Document limits of other
55265         implementations.
55266
55267 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55268             Bruno Haible <bruno@clisp.org>
55269
55270         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55271
55272 2008-05-18  Bruno Haible  <bruno@clisp.org>
55273
55274         * modules/propername: New file, from GNU gettext.
55275         * lib/propername.h: New file, from GNU gettext.
55276         * lib/propername.c: New file, from GNU gettext.
55277         * MODULES.html.sh (Internationalization functions): Add propername.
55278
55279 2008-05-16  Jim Meyering  <meyering@redhat.com>
55280             Bruno Haible  <bruno@clisp.org>
55281
55282         Avoid some warnings from "gcc -Wshadow".
55283         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55284
55285 2008-05-15  Eric Blake  <ebb9@byu.net>
55286
55287         Extend previous patch to cygwin 1.7.0.
55288         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55289         fast implementation in cygwin >= 1.7.0.
55290         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55291         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55292
55293 2008-05-15  Bruno Haible  <bruno@clisp.org>
55294
55295         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55296         implementation in glibc >= 2.9.
55297         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55299
55300 2008-05-15  Bruno Haible  <bruno@clisp.org>
55301
55302         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55303         (Unicode string functions): Add unilbrk/*.
55304         Reported by Karl Berry.
55305
55306 2008-05-15  Eric Blake  <ebb9@byu.net>
55307
55308         Fix violation of <stdbool.h> replacement in regex.
55309         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55310         * lib/regexec.c (re_search_internal): Likewise.
55311         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55312
55313 2008-05-15  Jim Meyering  <meyering@redhat.com>
55314
55315         avoid distracting test output when git or cvs is not found
55316         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55317         * tests/test-vc-list-files-git.sh: Likewise.
55318
55319 2008-05-15  Eric Blake  <ebb9@byu.net>
55320
55321         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55322         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55323         glibc version.
55324         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55325         * doc/posix-functions/strstr.texi (strstr): Likewise.
55326         * lib/str-two-way.h (MAX): Sychronize with glibc.
55327
55328 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55329
55330         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55331         opr.ctx_type.
55332         (calc_first): Initialize constraint field.
55333         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55334         Fix grammar.
55335         (duplicate_node): Merge constraint field for all node types.
55336         (calc_eclosure_iter): Look at constraint field for all node types.
55337         * lib/regex_internal.c (create_cd_newstate): Don't look at
55338         opr.ctx_type.
55339
55340 2008-05-14  Bruno Haible  <bruno@clisp.org>
55341
55342         Help GCC to do better code generation.
55343         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55344         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55345         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55346         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55347         Declare with attribute 'malloc' if supported.
55348
55349 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55350
55351         use "echo STR|wc -c" rather than unportable "expr length STR"
55352         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55353         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55354
55355 2008-05-14  Jim Meyering  <meyering@redhat.com>
55356
55357         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55358         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55359         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55360         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55361         via Collin Lasse.
55362
55363 2008-05-14  Eric Blake  <ebb9@byu.net>
55364
55365         Avoid quadratic growth in gl_LIBSOURCES.
55366         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55367         Suggested by Bruno Haible.
55368
55369         Test xmemdup0.
55370         * modules/xmemdup0-tests: New file.
55371         * tests/test-xmemdup0.c: Likewise.
55372
55373 2008-05-13  Eric Blake  <ebb9@byu.net>
55374
55375         Split xmemdup0 into its own module.
55376         * modules/xmemdup0: New file.
55377         * lib/xmemdup0.h: Likewise.
55378         * lib/xmemdup0.c: Likewise.
55379         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55380         * lib/xalloc.h (xmemdup0): Remove.
55381         * lib/xmalloc.c (xmemdup0): Likewise.
55382
55383 2008-05-13  Eric Blake  <ebb9@byu.net>
55384             Bruno Haible  <bruno@clisp.org>
55385
55386         Reduce number of forks required during autoconf.
55387         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55388         and gl_LIBSOURCES_DIR.
55389         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55390         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55391         m4_syscmd per file.
55392         <m4_foreach_w>: Move...
55393         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55394
55395 2008-05-13  Eric Blake  <ebb9@byu.net>
55396
55397         * gnulib-tool: Fix various comment typos.
55398
55399 2008-05-12  Bruno Haible  <bruno@clisp.org>
55400
55401         Tailor the linebreaking algorithm.
55402         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55403
55404 2008-05-12  Bruno Haible  <bruno@clisp.org>
55405
55406         Update to Unicode 5.0.0.
55407         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55408         LBP_JV, LBP_JT. Redistribute values.
55409         (unilbrk_table): Change size.
55410         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55411         Unicode TR#14 rev. 22.
55412         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55413         LBP_JV, LBP_JT. Redistribute values.
55414         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55415         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55416         Update.
55417         * lib/unilbrk/lbrkprop1.h: Regenerated.
55418         * lib/unilbrk/lbrkprop2.h: Regenerated.
55419         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55420         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55421         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55422         Likewise.
55423         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55424         Likewise.
55425         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55426         result.
55427         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55428         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55429         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55430         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55431         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55432         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55433
55434 2008-05-11  Bruno Haible  <bruno@clisp.org>
55435
55436         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55437
55438 2008-05-11  Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55441         * modules/unilbrk/gen-lbrk: New file.
55442
55443 2008-05-11  Bruno Haible  <bruno@clisp.org>
55444
55445         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55446         * m4/sha512.m4 (gl_SHA512): Likewise.
55447
55448 2008-05-11  Jim Meyering  <meyering@redhat.com>
55449
55450         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55451         * modules/crypto/sha256: New file.
55452         * modules/crypto/sha512: Likewise.
55453         * lib/sha256.c: Likewise.
55454         * lib/sha256.h: Likewise.
55455         * lib/sha512.c: Likewise.
55456         * lib/sha512.h: Likewise.
55457         * lib/u64.h: Likewise.
55458         * m4/sha256.m4: Likewise.
55459         * m4/sha512.m4: Likewise.
55460         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55461
55462 2008-05-10  Bruno Haible  <bruno@clisp.org>
55463
55464         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55465         (Input/Output <stdio.h>): Add xprintf.
55466         (Signal handling <signal.h>): Add strsignal.
55467         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55468         (Core language properties): Add func.
55469         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55470         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55471         strings.
55472         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55473         (Input/output): New section.
55474         (File system functions): Add openat-die, stat-macros.
55475         (Networking functions): Add sockets.
55476         (Unicode string functions): Add unictype/*.
55477         (Support for building libraries and executables): Add gperf.
55478         (Support for building documentation): Add agpl-3.0.
55479         (Misc): Add nocrash.
55480
55481 2008-05-10  Bruno Haible  <bruno@clisp.org>
55482
55483         * modules/unictype/gen-ctype: New file.
55484
55485 2008-05-10  Jim Meyering  <meyering@redhat.com>
55486
55487         Make chdir-safer.c more efficient on a system with no symlinks.
55488         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55489         also if ELOOP is zero.  Suggested by Bruno Haible.
55490
55491         Make chdir-safer.c slightly safer.
55492         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55493         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55494
55495         Avoid compile failure on systems without ELOOP (like mingw).
55496         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55497         Reported by Bruno Haible.
55498
55499 2008-05-10  Bruno Haible  <bruno@clisp.org>
55500
55501         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55502         (is_utf8_encoding): Use a case-insensitive comparison.
55503         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55504         streq.
55505
55506 2008-05-10  Bruno Haible  <bruno@clisp.org>
55507
55508         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55509         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55510         * lib/unilbrk/ulc-common.h (iconv_string_length,
55511         iconv_string_keeping_offsets): Remove declarations.
55512         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55513         Don't include <iconv.h>, streq.h, xsize.h.
55514         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55515         conversion.
55516         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55517         <iconv.h>, streq.h, xsize.h.
55518         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55519         conversion.
55520         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55521         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55522         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55523         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55524
55525 2008-05-10  Bruno Haible  <bruno@clisp.org>
55526
55527         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55528         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55529
55530         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55531         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55532
55533         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55534         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55535
55536         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55537         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55538
55539         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55540         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55541
55542         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55543         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55544
55545         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55546         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55547
55548         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55549         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55550
55551 2008-05-10  Bruno Haible  <bruno@clisp.org>
55552
55553         Split up 'linebreak' module.
55554         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55555         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55556         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55557         modifications.
55558         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55559         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55560         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55561         lib/linebreak.c.
55562         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55563         lib/linebreak.c.
55564         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55565         lib/linebreak.c.
55566         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55567         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55568         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55569         lib/linebreak.c.
55570         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55571         lib/linebreak.c.
55572         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55573         lib/linebreak.c.
55574         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55575         lib/linebreak.c.
55576         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55577         lib/linebreak.c.
55578         * modules/unilbrk/base: New file.
55579         * modules/unilbrk/tables: New file.
55580         * modules/unilbrk/u8-possible-linebreaks: New file.
55581         * modules/unilbrk/u16-possible-linebreaks: New file.
55582         * modules/unilbrk/u32-possible-linebreaks: New file.
55583         * modules/unilbrk/ulc-common: New file.
55584         * modules/unilbrk/ulc-possible-linebreaks: New file.
55585         * modules/unilbrk/u8-width-linebreaks: New file.
55586         * modules/unilbrk/u16-width-linebreaks: New file.
55587         * modules/unilbrk/u32-width-linebreaks: New file.
55588         * modules/unilbrk/ulc-width-linebreaks: New file.
55589         * lib/linebreak.h: Remove file.
55590         * lib/linebreak.c: Remove file.
55591         * m4/linebreak.m4: Remove file.
55592         * modules/linebreak: Remove file.
55593         * NEWS: Mention the changes.
55594
55595 2008-05-09  Eric Blake  <ebb9@byu.net>
55596
55597         Add xmemdup0.
55598         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55599         implementation.
55600         * lib/xmalloc.c (xmemdup0): New C implementation.
55601
55602 2008-05-08  Bruno Haible  <bruno@clisp.org>
55603
55604         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55605
55606 2008-05-07  Eric Blake  <ebb9@byu.net>
55607
55608         Support cross-compilation of <wctype.h>.
55609         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55610         AC_CACHE_CHECK.
55611
55612 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55613
55614         * build-aux/vc-list-files: Add support for bzr.
55615
55616 2008-05-03  Jim Meyering  <meyering@redhat.com>
55617
55618         avoid failed assertion with tight malloc
55619         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55620
55621 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55622
55623         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55624         are needed from arpa/inet.h.
55625         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55626         Reported by Bruno Haible.
55627
55628 2008-05-02  Jim Meyering  <meyering@redhat.com>
55629
55630         avoid compilation error on FreeBSD 6
55631         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55632
55633 2008-05-01  Jim Meyering  <meyering@redhat.com>
55634
55635         useless-if-before-free: correct --help's exit status description
55636         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55637         for one or more matches, etc.  Reported by Bruno Haible.
55638
55639         vc-list-files: make the stand-alone gnulib test work
55640         * modules/vc-list-files-tests (configure.ac):
55641         Define and AC_SUBST abs_aux_dir.
55642         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55643         $(abs_top_srcdir) to each script and having each of them
55644         duplicate the work of setting PATH, set PATH here, using
55645         the new variable, abs_aux_dir instead.
55646         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55647         * tests/test-vc-list-files-git.sh: Likewise.
55648         Reported by Bruno Haible.
55649
55650 2008-05-01  Bruno Haible  <bruno@clisp.org>
55651
55652         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55653         reallocation. Rename 'done' to 'found_delimiter'.
55654
55655 2008-05-01  Jim Meyering  <meyering@redhat.com>
55656
55657         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55658         * build-aux/vc-list-files: Use `...`, not $(...).
55659
55660 2008-04-30  Jim Meyering  <meyering@redhat.com>
55661
55662         add tests for vc-list-files
55663         * modules/vc-list-files-tests: New module.
55664         * tests/test-vc-list-files-cvs.sh: New file.
55665         * tests/test-vc-list-files-git.sh: New file.
55666
55667         avoid a warning from gcc
55668         * lib/getndelim2.c (IF_LINT): Define.
55669         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55670
55671         vc-list-files: work properly with build-aux/cvsu, too
55672         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55673         to all cvs-based clauses.
55674
55675         vc-list-files: work properly in the CVS+awk case, too
55676         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55677
55678         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55679         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55680         take more than one file argument, so .  Add quotes, just in case $dir
55681         ever contains a shell meta-character.  Prompted by Soren Hansen in
55682         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55683
55684 2008-04-29  Eric Blake  <ebb9@byu.net>
55685
55686         Optimize getndelim2 to use block operations when possible.
55687         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55688         freadseek, and memchr2.
55689         * lib/getndelim2.c (getndelim2): Use them for block reads.
55690
55691 2008-04-29  Bruno Haible  <bruno@clisp.org>
55692
55693         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55694         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55695         * modules/inet_ntop (Depends-on): Add extensions.
55696         * modules/inet_pton (Depends-on): Likewise.
55697         Reported by Simon Josefsson.
55698
55699 2008-04-29  Jim Meyering  <meyering@redhat.com>
55700
55701         When the is more than one match in a block, match all of them.
55702         * build-aux/useless-if-before-free: Iterate through each block
55703         until there are no more matches.
55704
55705         Fix broken useless-if-before-free script.
55706         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55707         the expression to match cast of argument to free-like function.
55708
55709 2008-04-29  Eric Blake  <ebb9@byu.net>
55710
55711         Use new header.
55712         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55713
55714 2008-04-29  Jim Meyering  <meyering@redhat.com>
55715
55716         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55717         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55718         by gnulib to exist and to declare e.g., inet_ntop.
55719         Don't include "inet_ntop.h", now removed.
55720
55721         * m4/arpa_inet_h.m4: Remove trailing blanks.
55722
55723 2008-04-29  Eric Blake  <ebb9@byu.net>
55724
55725         Silence valgrind on safe reads beyond potential array bounds.
55726         * lib/rawmemchr.valgrind: New file.
55727         * lib/strchrnul.valgrind: Likewise.
55728         * modules/rawmemchr (Files): Distribute new file.
55729         * modules/strchrnul (Files): Likewise.
55730         Suggested by Bruno Haible.
55731
55732 2008-04-29  Bruno Haible  <bruno@clisp.org>
55733
55734         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55735         (inet_ntop, inet_pton): Change portability warning's wording.
55736         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55737         Invoke gl_CHECK_NEXT_HEADERS.
55738         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55739         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55740         set ARPA_INET_H.
55741         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55742         * modules/arpa_inet (Description): No longer only for systems that
55743         lack it.
55744         (Depends-on): Add include_next.
55745         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55746         HAVE_ARPA_INET_H.
55747
55748 2008-04-29  Jim Meyering  <meyering@redhat.com>
55749
55750         * modules/mkdir (License): Re-license as LGPLv2+.
55751
55752 2008-04-29  Bruno Haible  <bruno@clisp.org>
55753
55754         * modules/rawmemchr (Maintainer): Set to Eric.
55755         * modules/strchrnul (Maintainer): Likewise.
55756
55757 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55758
55759         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55760         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55761
55762         * modules/arpa_inet (arpa/inet.h): Use them.
55763
55764 2008-04-28  Eric Blake  <ebb9@byu.net>
55765
55766         Test getndelim2.
55767         * modules/getndelim2-tests: New file.
55768         * tests/test-getndelim2.c: Likewise.
55769         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55770         stream.
55771         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55772
55773         * MODULES.html.sh: Document new module.
55774
55775 2008-04-20  Bruno Haible  <bruno@clisp.org>
55776
55777         * lib/c-stack.c (die): Use raise.
55778         * modules/c-stack (Depends-on): Add raise.
55779
55780 2008-04-28  Bruno Haible  <bruno@clisp.org>
55781
55782         Expect rpmatch to be declared.
55783         * lib/yesno.c (rpmatch): Remove declaration.
55784
55785         Declare rpmatch.
55786         * lib/stdlib.in.h (rpmatch): New declaration.
55787         * lib/rpmatch.c: Include <stdlib.h> first.
55788         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55789         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55791         HAVE_RPMATCH.
55792         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55793         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55794         (Include): Set to <stdlib.h>.
55795         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55796         HAVE_RPMATCH.
55797         * NEWS: Document the change.
55798
55799 2008-04-28  Bruno Haible  <bruno@clisp.org>
55800
55801         Change rpmatch to use nl_langinfo when appropriate.
55802         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55803         (N_): New macro.
55804         (localized_pattern): New function/macro.
55805         (try): Remove match, nomatch arguments. Copy the pattern into safe
55806         memory before caching it.
55807         (rpmatch): Use localized_pattern. Add translator comments.
55808         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55809         Suggested by Eric Blake.
55810         * modules/rpmatch (Depends-on): Add stdbool.
55811
55812 2008-04-28  Eric Blake  <ebb9@byu.net>
55813
55814         Add rawmemchr module, matching glibc.
55815         * modules/string (Makefile.am): New indicator.
55816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55817         * lib/string.in.h (rawmemchr): Declare when appropriate.
55818         * modules/rawmemchr: New file.
55819         * m4/rawmemchr.m4: Likewise.
55820         * lib/rawmemchr.c: Likewise.
55821         * modules/rawmemchr-tests: Likewise.
55822         * tests/test-rawmemchr.c: Likewise.
55823         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55824         module.
55825         * modules/strchrnul (Depends-on): Add rawmemchr.
55826         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55827
55828         Whitespace cleanup.
55829         * tests/test-strchrnul.c: Reindent.
55830         * lib/strchrnul.c: Likewise.
55831
55832         Optimize and test strchrnul.
55833         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55834         * modules/strchrnul-tests: New file.
55835         * tests/test-strchrnul.c: Likewise.
55836
55837         Remove intprops dependency.
55838         * modules/memchr (Depends-on): Remove intprops.
55839         * modules/memrchr (Depends-on): Likewise.
55840         * modules/memchr2 (Depends-on): Likewise.
55841         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55842         * lib/memrchr.c (__memrchr): Likewise.
55843         * lib/memrchr2.c (memchr2): Likewise.
55844         Reported by Simon Josefsson.
55845
55846 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55847
55848         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55849         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55850
55851 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55852
55853         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55854
55855         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55856
55857         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55858
55859         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55860         declarations.
55861         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55862
55863         * m4/inet_pton.m4: Don't check for header files.
55864
55865         * m4/inet_ntop.m4: Don't check for header files.
55866
55867 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55868
55869         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55870         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55871         trigger for cygwin).
55872         Reported by Bruno Haible  <bruno@clisp.org>.
55873
55874 2008-04-28  Bruno Haible  <bruno@clisp.org>
55875
55876         * doc/posix-functions/strdup.texi: Mention mingw problem.
55877
55878 2008-04-27  Bruno Haible  <bruno@clisp.org>
55879
55880         * modules/stat-time-tests (Depends-on): Add sleep.
55881         * tests/test-stat-time.c (force_unlink): New function.
55882         (cleanup): Use it.
55883         (test_mtime): Remove the ctime related tests.
55884         (test_ctime): New function, containing the ctime related tests.
55885         (main): Call test_ctime, except on native Windows platforms.
55886
55887 2008-04-27  Bruno Haible  <bruno@clisp.org>
55888
55889         * lib/rpmatch.c (rpmatch): Add some comments.
55890         Reported by James Youngman <jay@gnu.org>.
55891
55892 2008-04-27  Bruno Haible  <bruno@clisp.org>
55893
55894         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55895         quiet NaNs.
55896
55897 2008-04-27  Bruno Haible  <bruno@clisp.org>
55898
55899         Make test-yesno.sh work on mingw.
55900         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55901         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55902         (main): Set stdin to binary mode.
55903         * modules/yesno-tests (Depends-on): Add binary-io.
55904
55905 2008-04-27  Bruno Haible  <bruno@clisp.org>
55906
55907         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55908         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55909         argument that lie outside the IEEE 854 domain.
55910         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55911         (gl_ISFINITE): Use it.
55912         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55913
55914 2008-04-27  Bruno Haible  <bruno@clisp.org>
55915
55916         Allow local renaming in config.h.
55917         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55918
55919 2008-04-27  Bruno Haible  <bruno@clisp.org>
55920
55921         * lib/memchr.c (__memchr): Change type of 'i'.
55922         * lib/memchr2.c (memchr2): Likewise.
55923
55924 2008-04-26  Eric Blake  <ebb9@byu.net>
55925         and Bruno Haible  <bruno@clisp.org>
55926
55927         Optimize and test memrchr.
55928         * modules/memrchr (Depends-on): Add intprops.
55929         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55930         * modules/memrchr-tests: New file.
55931         * tests/test-memrchr.c: New file.
55932
55933 2008-04-26  Bruno Haible  <bruno@clisp.org>
55934
55935         Add tentative support for DragonFly BSD.
55936         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55937         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55938         fp.
55939         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55940         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55941         * lib/fpurge.c (fpurge): Likewise.
55942         * lib/freadable.c (freaadable): Likewise.
55943         * lib/freadahead.c (freadahead): Likewise.
55944         * lib/freading.c (freading): Likewise.
55945         * lib/freadptr.c (freadptr): Likewise.
55946         * lib/freadseek.c (freadptrinc): Likewise.
55947         * lib/fseeko.c (fseeko): Likewise.
55948         * lib/fseterr.c (fseterr): Likewise.
55949         * lib/fwritable.c (fwritable): Likewise.
55950         * lib/fwriting.c (fwriting): Likewise.
55951
55952 2008-04-26  Bruno Haible  <bruno@clisp.org>
55953
55954         * lib/stdio-impl.h: New file.
55955         * lib/fbufmode.c: Include stdio-impl.h.
55956         (fbufmode): Use fp_, remove redundant #defines.
55957         * lib/fflush.c: Include stdio-impl.h.
55958         (clear_ungetc_buffer): Remove redundant #defines.
55959         * lib/fpurge.c: Include stdio-impl.h.
55960         (fpurge): Remove redundant #defines.
55961         * lib/freadable.c: Include stdio-impl.h.
55962         (freadable): Remove redundant #defines.
55963         * lib/freadahead.c: Include stdio-impl.h.
55964         (freadahead): Remove redundant #defines.
55965         * lib/freading.c: Include stdio-impl.h.
55966         (freading): Remove redundant #defines.
55967         * lib/freadptr.c: Include stdio-impl.h.
55968         (freadptr): Remove redundant #defines.
55969         * lib/freadseek.c: Include stdio-impl.h.
55970         (freadptrinc): Remove redundant #defines.
55971         * lib/fseeko.c: Include stdio-impl.h.
55972         (rpl_fseeko): Remove redundant #defines.
55973         * lib/fseterr.c: Include stdio-impl.h.
55974         (fseterr): Remove redundant #defines.
55975         * lib/fwritable.c: Include stdio-impl.h.
55976         (fwritable: Remove redundant #defines.
55977         * lib/fwriting.c: Include stdio-impl.h.
55978         (fwriting): Remove redundant #defines.
55979         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55980         * modules/fflush (Files): Likewise.
55981         * modules/fpurge (Files): Likewise.
55982         * modules/freadable (Files): Likewise.
55983         * modules/freadahead (Files): Likewise.
55984         * modules/freading (Files): Likewise.
55985         * modules/freadptr (Files): Likewise.
55986         * modules/freadseek (Files): Likewise.
55987         * modules/fseeko (Files): Likewise.
55988         * modules/fseterr (Files): Likewise.
55989         * modules/fwritable (Files): Likewise.
55990         * modules/fwriting (Files): Likewise.
55991
55992 2008-04-26  Bruno Haible  <bruno@clisp.org>
55993
55994         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55995         restore_seek_optimization, update_fpos_cache): New functions, extracted
55996         from rpl_fflush.
55997         (rpl_fflush): Use them.
55998         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55999         (gl_REPLACE_FFLUSH): Use it.
56000
56001 2008-04-26  Bruno Haible  <bruno@clisp.org>
56002
56003         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56004         on Solaris.
56005         * tests/test-xstrtoimax.sh: Likewise.
56006         * tests/test-xstrtoumax.sh: Likewise.
56007         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56008
56009 2008-04-26  Bruno Haible  <bruno@clisp.org>
56010
56011         * modules/memchr-tests: New file.
56012         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56013
56014 2008-04-26  Eric Blake  <ebb9@byu.net>
56015             Bruno Haible  <bruno@clisp.org>
56016
56017         * lib/memchr.c: Include intprops.h.
56018         (__memchr): Optimize parallel detection of matching bytes. Rename local
56019         variables. Add explanatory comments.
56020
56021 2008-04-26  Bruno Haible  <bruno@clisp.org>
56022
56023         Fix module 'memchr', broken since 2000-10-28.
56024         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56025
56026 2008-04-26  Bruno Haible  <bruno@clisp.org>
56027
56028         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56029         comments.
56030
56031 2008-04-25  Eric Blake  <ebb9@byu.net>
56032
56033         Use native fstatat on cygwin 1.7.0.
56034         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56035         first.
56036
56037 2008-04-23  Eric Blake  <ebb9@byu.net>
56038
56039         Improve memchr2 performance.
56040         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56041         NUL bytes.
56042         * modules/memchr2 (Depends-on): Use intprops.h.
56043
56044 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56045
56046         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56047         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56048         <blp@cs.stanford.edu>.
56049
56050 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56051
56052         * lib/arpa_inet.in.h: New file.
56053
56054         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56055         (Makefile.am): Sed in substitute header file.
56056
56057         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56058         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56059
56060         * modules/inet_ntop (configure.ac): Use
56061         gl_ARPA_INET_MODULE_INDICATOR.
56062
56063         * modules/inet_pton (configure.ac): Use
56064         gl_ARPA_INET_MODULE_INDICATOR.
56065
56066 2008-04-22  Jim Meyering  <meyering@redhat.com>
56067
56068         * modules/verify (License): Re-license as LGPLv2+.
56069
56070 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56071
56072         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56073         parameter to void* as per POSIX standard (MinGW uses char*).
56074
56075 2008-04-21  Bruno Haible  <bruno@clisp.org>
56076
56077         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56078         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56079         Define to replacements if REPLACE_ISWCNTRL is 1.
56080         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56081         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56082         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56083         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56084         what it fixes.
56085         * doc/posix-functions/iswalpha.texi: Likewise.
56086         * doc/posix-functions/iswblank.texi: Likewise.
56087         * doc/posix-functions/iswcntrl.texi: Likewise.
56088         * doc/posix-functions/iswdigit.texi: Likewise.
56089         * doc/posix-functions/iswgraph.texi: Likewise.
56090         * doc/posix-functions/iswlower.texi: Likewise.
56091         * doc/posix-functions/iswprint.texi: Likewise.
56092         * doc/posix-functions/iswpunct.texi: Likewise.
56093         * doc/posix-functions/iswspace.texi: Likewise.
56094         * doc/posix-functions/iswupper.texi: Likewise.
56095         * doc/posix-functions/iswxdigit.texi: Likewise.
56096         Reported by Alain Guibert.
56097
56098 2008-04-21  Bruno Haible  <bruno@clisp.org>
56099
56100         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56101         Patch by Alain Guibert.
56102
56103 2008-04-21  Bruno Haible  <bruno@clisp.org>
56104
56105         Fix test failures on mingw.
56106         * tests/test-xstrtol.c (print_no_progname): New function.
56107         (main): Install it in error_print_progname hook.
56108         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56109         * tests/test-xstrtoimax.sh: Likewise.
56110         * tests/test-xstrtoumax.sh: Likewise.
56111
56112 2008-04-21  Bruno Haible  <bruno@clisp.org>
56113
56114         Fix test failure on mingw.
56115         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56116
56117 2008-04-21  Bruno Haible  <bruno@clisp.org>
56118
56119         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56120         Actually assign a value.
56121
56122 2008-04-20  Bruno Haible  <bruno@clisp.org>
56123
56124         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56125         take 2.
56126         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56127         'canonicalize-lgpl' module is also used.
56128         * lib/canonicalize-lgpl.c: Undo last change.
56129         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56130
56131 2008-04-20  Bruno Haible  <bruno@clisp.org>
56132
56133         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56134         config.h. Provide _mkdir based fallback for mingw.
56135         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56136         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56137         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56138         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56139         rather than defining mkdir in config.h.
56140         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56141         (gl_SYS_STAT_H_DEFAULTS): New macro.
56142         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56143         HAVE_IO_H any more.
56144         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56145         HAVE_DECL_MKDIR and HAVE_IO_H.
56146
56147 2008-04-20  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/isapipe.c: Port to native Windows platforms.
56150
56151 2008-04-20  Bruno Haible  <bruno@clisp.org>
56152
56153         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56154
56155 2008-04-21  Eric Blake  <ebb9@byu.net>
56156
56157         Work around preprocessors that don't handle UINTMAX_MAX.
56158         * lib/memchr2.c (memchr2): Avoid embedded #if.
56159         Reported by Alain Guibert, fix suggested by Bruno Haible.
56160
56161 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56162
56163         * doc/posix-functions/strftime.texi (strftime): Explain better
56164         Windows incompatibility.  Suggested by Micah Cowan
56165         <micah@cowan.name>.
56166
56167 2008-04-20  Bruno Haible  <bruno@clisp.org>
56168
56169         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56170         unistr/u8-mblen.
56171
56172 2008-04-20  Bruno Haible  <bruno@clisp.org>
56173
56174         Fix test failure on platforms with non-GNU iconv.
56175         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56176         (U_TO_U8): Use it, rather than u16_to_u8.
56177         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56178         units at the end of the input string.
56179         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56180
56181 2008-04-20  Bruno Haible  <bruno@clisp.org>
56182
56183         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56184         when the resulting length is 0.
56185         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56186
56187 2008-04-20  Bruno Haible  <bruno@clisp.org>
56188
56189         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56190         works.
56191         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56192
56193 2008-04-20  Bruno Haible  <bruno@clisp.org>
56194
56195         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56196         * modules/tsearch-tests (configure.ac): Test for initstate function.
56197
56198 2008-04-20  Bruno Haible  <bruno@clisp.org>
56199
56200         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56201         for nlink_t if missing.
56202         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56203
56204 2008-04-19  Bruno Haible  <bruno@clisp.org>
56205
56206         Work around snprintf bug on Linux libc5.
56207         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56208         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56209         gl_SNPRINTF_SIZE1.
56210         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56211         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56212         that test failed.
56213         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56214         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56215         * modules/snprintf (Files): Add m4/printf.m4.
56216         * modules/vsnprintf (Files): Likewise.
56217         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56218         * doc/posix-functions/vsnprintf.texi: Likewise.
56219
56220 2008-04-19  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56223         from 0.0058 to less than 10^-7.
56224
56225 2008-04-19  Bruno Haible  <bruno@clisp.org>
56226
56227         Fix rounding when a precision is given.
56228         * lib/vasnprintf.c (is_borderline): New function.
56229         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56230         9...9x.
56231         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56232         %e, %g.
56233         * tests/test-vasprintf-posix.c (test_function): Likewise.
56234         * tests/test-snprintf-posix.h (test_function): Likewise.
56235         * tests/test-sprintf-posix.h (test_function): Likewise.
56236         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56237         * tests/test-printf-posix.h (test_function): Likewise.
56238         * tests/test-printf-posix.output: Update.
56239         Reported by John Darrington <john@darrington.wattle.id.au> via
56240         Ben Pfaff <blp@cs.stanford.edu>.
56241
56242 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56243
56244         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56245         Suggested by Bruno Haible <bruno@clisp.org>.
56246
56247 2008-04-17  Bruno Haible  <bruno@clisp.org>
56248
56249         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56250         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56251         implementation.
56252         Patch by Bruce Merry <bmerry@gmail.com>.
56253
56254 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56255
56256         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56257         doesn't work under Windows.
56258
56259 2008-04-16  Bruno Haible  <bruno@clisp.org>
56260
56261         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56262         New macros.
56263         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56264         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56265         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56266         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56267         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56268         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56269         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56270         macros.
56271         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56272         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56273         Northern Sotho, Uighur.
56274
56275 2008-04-16  Bruno Haible  <bruno@clisp.org>
56276
56277         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56278         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56279         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56280         Reported by Daniel Bergström <daniel@octocode.com>.
56281
56282 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56283             Bruno Haible  <bruno@clisp.org>
56284
56285         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56286         function.
56287         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56288         New functions, mostly extracted from gl_locale_name_default.
56289         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56290
56291 2008-04-16  Eric Blake  <ebb9@byu.net>
56292
56293         Adjust strtod detection to catch glibc 2.7 bug.
56294         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56295         Reported by John Gatewood Ham.
56296
56297 2008-04-16  Bruno Haible  <bruno@clisp.org>
56298
56299         Add tentative support for Linux libc5.
56300         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56301         * lib/fpurge.c (fpurge): Likewise.
56302         * lib/freadable.c (freadable): Likewise.
56303         * lib/freadahead.c (freadahead): Likewise.
56304         * lib/freading.c (freading): Likewise.
56305         * lib/freadptr.c (freadptr): Likewise.
56306         * lib/freadseek.c (freadptrinc): Likewise.
56307         * lib/fseeko.c (rpl_fseeko): Likewise.
56308         * lib/fseterr.c (fseterr): Likewise.
56309         * lib/fwritable.c (fwritable): Likewise.
56310         * lib/fwriting.c (fwriting): Likewise.
56311         Reported by Alain Guibert <alguibert+bts@free.fr>.
56312
56313 2008-04-15  Bruno Haible  <bruno@clisp.org>
56314
56315         * modules/mathl (configure.ac): Define module indicator.
56316
56317 2008-04-15  Bruno Haible  <bruno@clisp.org>
56318
56319         * lib/logl.c (logl): Remove unused variables.
56320
56321 2008-04-15  Bruno Haible  <bruno@clisp.org>
56322
56323         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56324         fails.
56325
56326 2008-04-15  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/trim.c (trim2): Fix argument of isspace() macro.
56329
56330 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56331
56332         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56333         to 0.
56334         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56335
56336 2008-04-14  Bruno Haible  <bruno@clisp.org>
56337
56338         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56339         AC_LANG_PROGRAM argument.
56340         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56341         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56343         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56344         * m4/math_h.m4 (gl_MATH_H): Likewise.
56345         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56346         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56347         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56348         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56349         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56350         * m4/regex.m4 (gl_REGEX): Likewise.
56351         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56352         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56354         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56356         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56358         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56359
56360 2008-04-14  Jim Meyering  <meyering@redhat.com>
56361
56362         test-strtod: fix typos: s/abs/fabs/
56363         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56364
56365 2008-04-13  Bruno Haible  <bruno@clisp.org>
56366
56367         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56368         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56369         module is also used and while not building the reloc-wrapper.
56370
56371 2008-04-13  Bruno Haible  <bruno@clisp.org>
56372
56373         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56374
56375 2008-04-13  Bruno Haible  <bruno@clisp.org>
56376
56377         Fix AIX compilation failure introduced on 2008-04-02.
56378         * tests/test-frexp.c (exp): Undefine before redefining.
56379         * tests/test-frexpl.c (exp): Likewise.
56380
56381 2008-04-13  Bruno Haible  <bruno@clisp.org>
56382
56383         Work around a HP-UX stdio bug.
56384         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56385         * tests/test-ftello.c (main): Likewise.
56386         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56387         * doc/posix-functions/ftello.texi: Likewise.
56388
56389 2008-04-13  Bruno Haible  <bruno@clisp.org>
56390
56391         Make test-signbit pass on HP-UX/hppa.
56392         * tests/test-signbit.c (minus_zerol): New variable.
56393         (test_signbitl): Use it.
56394
56395 2008-04-13  Bruno Haible  <bruno@clisp.org>
56396
56397         Make truncl work on OSF/1 4.0.
56398         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56399         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56400         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56402         HAVE_DECL_TRUNCL.
56403         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56404         HAVE_DECL_TRUNCL.
56405         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56406
56407 2008-04-13  Bruno Haible  <bruno@clisp.org>
56408
56409         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56410
56411 2008-04-13  Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56414         expression, so as to avoid HP-UX 11 cc compiler bug.
56415
56416 2008-04-13  Bruno Haible  <bruno@clisp.org>
56417
56418         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56419
56420 2008-04-13  Bruno Haible  <bruno@clisp.org>
56421
56422         * lib/git-merge-changelog.c: Remove empty declaration outside of
56423         functions.
56424
56425 2008-04-13  Bruno Haible  <bruno@clisp.org>
56426
56427         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56428
56429 2008-04-13  Bruno Haible  <bruno@clisp.org>
56430
56431         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56432         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56433         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56434         also if it exists but lacks definitions of the SHUT_* macros.
56435         * modules/sys_socket (Description): Update.
56436         Reported by Elbert Pol <e.pol@chello.nl>.
56437
56438 2008-04-13  Bruno Haible  <bruno@clisp.org>
56439
56440         * lib/localcharset.c (OS2): Don't redefine if already defined.
56441         Reported by Elbert Pol <e.pol@chello.nl>.
56442
56443 2008-04-13  Bruno Haible  <bruno@clisp.org>
56444
56445         * lib/binary-io.h [__EMX__]: Include <io.h>.
56446         Reported by Elbert Pol <e.pol@chello.nl>.
56447
56448 2008-04-12  Bruno Haible  <bruno@clisp.org>
56449
56450         * lib/fpucw.h: Enable the definitions also for x86_64.
56451         Needed for NetBSD/x86_64.
56452         Reported by Thomas Klausner <tk@giga.or.at>.
56453
56454 2008-04-12  Bruno Haible  <bruno@clisp.org>
56455
56456         * tests/test-strtod.c: Include isnand.h.
56457         (main): Use isnand instead of isnan.
56458         Reported by Jim Meyering.
56459
56460 2008-04-12  Bruno Haible  <bruno@clisp.org>
56461
56462         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56463         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56464
56465 2008-04-12  Jim Meyering  <meyering@redhat.com>
56466
56467         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56468
56469 2008-04-12  Bruno Haible  <bruno@clisp.org>
56470
56471         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56472         Reported by Elbert Pol <e.pol@chello.nl>.
56473
56474 2008-04-12  Eric Blake  <ebb9@byu.net>
56475
56476         Work around Solaris 10 math.h bug.
56477         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56478         (gl_MATH_H_DEFAULTS): Set up default.
56479         * modules/math (Makefile.am): Replace new indicators.
56480         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56481         * tests/test-math.c (main): Test this.
56482         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56483         * doc/posix-headers/math.texi (math.h): Mention bug.
56484         Reported by Nelson H. F. Beebe and Jim Meyering.
56485
56486 2008-04-11  Bruno Haible  <bruno@clisp.org>
56487
56488         Adapt to future versions of Apple GCC.
56489         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56490         Reported by Peter O'Gorman <peter@pogma.com>.
56491
56492 2008-04-11  Bruno Haible  <bruno@clisp.org>
56493
56494         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56495
56496 2008-04-11  Bruno Haible  <bruno@clisp.org>
56497
56498         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56499
56500         * modules/getaddrinfo-tests (Makefile.am): Define
56501         test_getaddrinfo_LDADD.
56502
56503 2008-04-11  Bruno Haible  <bruno@clisp.org>
56504
56505         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56506         (init): Fix syntax error.
56507         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56508         is declared.
56509
56510 2008-04-11  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56513         * modules/glob (Depends-on): Add stdbool.
56514
56515 2008-04-11  Bruno Haible  <bruno@clisp.org>
56516
56517         * lib/trim.c: Include <string.h>.
56518
56519 2008-04-11  Eric Blake  <ebb9@byu.net>
56520
56521         Avoid compile failure on OS/2.
56522         * lib/regex_internal.h (internal_function): Disable optimization
56523         on OS/2 (__EMX__), where it caused compiler error.
56524         Reported by Elbert Pol.
56525
56526 2008-04-11  Bruno Haible  <bruno@clisp.org>
56527
56528         Flush the standard error stream before aborting. Needed on mingw.
56529         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56530         * tests/test-array_list.c (ASSERT): Likewise.
56531         * tests/test-array_oset.c (ASSERT): Likewise.
56532         * tests/test-avltree_list.c (ASSERT): Likewise.
56533         * tests/test-avltree_oset.c (ASSERT): Likewise.
56534         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56535         * tests/test-binary-io.c (ASSERT): Likewise.
56536         * tests/test-byteswap.c (ASSERT): Likewise.
56537         * tests/test-c-ctype.c (ASSERT): Likewise.
56538         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56539         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56540         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56541         * tests/test-c-strstr.c (ASSERT): Likewise.
56542         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56543         * tests/test-canonicalize.c (ASSERT): Likewise.
56544         * tests/test-carray_list.c (ASSERT): Likewise.
56545         * tests/test-ceilf1.c (ASSERT): Likewise.
56546         * tests/test-ceilf2.c (ASSERT): Likewise.
56547         * tests/test-ceill.c (ASSERT): Likewise.
56548         * tests/test-count-one-bits.c (ASSERT): Likewise.
56549         * tests/test-fbufmode.c (ASSERT): Likewise.
56550         * tests/test-fflush2.c (ASSERT): Likewise.
56551         * tests/test-floorf1.c (ASSERT): Likewise.
56552         * tests/test-floorf2.c (ASSERT): Likewise.
56553         * tests/test-floorl.c (ASSERT): Likewise.
56554         * tests/test-fopen.c (ASSERT): Likewise.
56555         * tests/test-fpending.c (ASSERT): Likewise.
56556         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56557         * tests/test-fpurge.c (ASSERT): Likewise.
56558         * tests/test-freadable.c (ASSERT): Likewise.
56559         * tests/test-freadahead.c (ASSERT): Likewise.
56560         * tests/test-freading.c (ASSERT): Likewise.
56561         * tests/test-freadptr.c (ASSERT): Likewise.
56562         * tests/test-freadptr2.c (ASSERT): Likewise.
56563         * tests/test-freadseek.c (ASSERT): Likewise.
56564         * tests/test-freopen.c (ASSERT): Likewise.
56565         * tests/test-frexp.c (ASSERT): Likewise.
56566         * tests/test-frexpl.c (ASSERT): Likewise.
56567         * tests/test-fseek.c (ASSERT): Likewise.
56568         * tests/test-fseeko.c (ASSERT): Likewise.
56569         * tests/test-fstrcmp.c (ASSERT): Likewise.
56570         * tests/test-ftell.c (ASSERT): Likewise.
56571         * tests/test-ftello.c (ASSERT): Likewise.
56572         * tests/test-func.c (ASSERT): Likewise.
56573         * tests/test-fwritable.c (ASSERT): Likewise.
56574         * tests/test-fwriting.c (ASSERT): Likewise.
56575         * tests/test-getdelim.c (ASSERT): Likewise.
56576         * tests/test-getline.c (ASSERT): Likewise.
56577         * tests/test-i-ring.c (ASSERT): Likewise.
56578         * tests/test-iconv-utf.c (ASSERT): Likewise.
56579         * tests/test-iconv.c (ASSERT): Likewise.
56580         * tests/test-isfinite.c (ASSERT): Likewise.
56581         * tests/test-isnand.c (ASSERT): Likewise.
56582         * tests/test-isnanf.c (ASSERT): Likewise.
56583         * tests/test-isnanl.h (ASSERT): Likewise.
56584         * tests/test-ldexpl.c (ASSERT): Likewise.
56585         * tests/test-linked_list.c (ASSERT): Likewise.
56586         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56587         * tests/test-localename.c (ASSERT): Likewise.
56588         * tests/test-lseek.c (ASSERT): Likewise.
56589         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56590         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56591         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56592         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56593         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56594         * tests/test-mbschr.c (ASSERT): Likewise.
56595         * tests/test-mbscspn.c (ASSERT): Likewise.
56596         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56597         * tests/test-mbspbrk.c (ASSERT): Likewise.
56598         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56599         * tests/test-mbsrchr.c (ASSERT): Likewise.
56600         * tests/test-mbsspn.c (ASSERT): Likewise.
56601         * tests/test-mbsstr1.c (ASSERT): Likewise.
56602         * tests/test-mbsstr2.c (ASSERT): Likewise.
56603         * tests/test-mbsstr3.c (ASSERT): Likewise.
56604         * tests/test-memchr2.c (ASSERT): Likewise.
56605         * tests/test-memmem.c (ASSERT): Likewise.
56606         * tests/test-open.c (ASSERT): Likewise.
56607         * tests/test-printf-frexp.c (ASSERT): Likewise.
56608         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56609         * tests/test-printf-posix.c (ASSERT): Likewise.
56610         * tests/test-quotearg.c (ASSERT): Likewise.
56611         * tests/test-rbtree_list.c (ASSERT): Likewise.
56612         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56613         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56614         * tests/test-round1.c (ASSERT): Likewise.
56615         * tests/test-roundf1.c (ASSERT): Likewise.
56616         * tests/test-roundl.c (ASSERT): Likewise.
56617         * tests/test-signbit.c (ASSERT): Likewise.
56618         * tests/test-sleep.c (ASSERT): Likewise.
56619         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56620         * tests/test-snprintf.c (ASSERT): Likewise.
56621         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56622         * tests/test-stat-time.c (ASSERT): Likewise.
56623         * tests/test-strcasestr.c (ASSERT): Likewise.
56624         * tests/test-strerror.c (ASSERT): Likewise.
56625         * tests/test-striconv.c (ASSERT): Likewise.
56626         * tests/test-striconveh.c (ASSERT): Likewise.
56627         * tests/test-striconveha.c (ASSERT): Likewise.
56628         * tests/test-strsignal.c (ASSERT): Likewise.
56629         * tests/test-strstr.c (ASSERT): Likewise.
56630         * tests/test-strtod.c (ASSERT): Likewise.
56631         * tests/test-trunc1.c (ASSERT): Likewise.
56632         * tests/test-trunc2.c (ASSERT): Likewise.
56633         * tests/test-truncf1.c (ASSERT): Likewise.
56634         * tests/test-truncf2.c (ASSERT): Likewise.
56635         * tests/test-truncl.c (ASSERT): Likewise.
56636         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56637         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56638         * tests/test-vasnprintf.c (ASSERT): Likewise.
56639         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56640         * tests/test-vasprintf.c (ASSERT): Likewise.
56641         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56642         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56643         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56644         * tests/test-vsnprintf.c (ASSERT): Likewise.
56645         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56646         * tests/test-wcwidth.c (ASSERT): Likewise.
56647         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56648         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56649         * tests/test-xvasprintf.c (ASSERT): Likewise.
56650         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56651         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56652         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56653         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56654         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56655         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56656         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56657         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56658         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56659         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56660         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56661         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56662         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56663         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56664         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56665         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56666         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56667         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56668         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56669         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56670         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56671         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56672         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56673         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56674         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56675         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56676         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56677         * tests/unictype/test-combining.c (ASSERT): Likewise.
56678         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56679         * tests/unictype/test-digit.c (ASSERT): Likewise.
56680         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56681         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56682         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56683         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56684         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56685         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56686         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56687         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56688         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56689         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56690         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56691         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56692         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56693         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56694         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56695         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56696         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56697         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56698         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56699         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56700         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56701         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56702         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56703         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56704         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56705         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56706         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56707         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56708         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56709         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56710         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56711         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56712         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56713         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56714         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56715         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56716         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56717         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56718         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56719         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56720         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56721         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56722         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56723         Reported by Eric Blake.
56724
56725 2008-04-11  Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/wchar.in.h: Tweak comment.
56728
56729 2008-04-11  Bruno Haible  <bruno@clisp.org>
56730
56731         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56732         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56733         gl_COMMON.
56734         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56735
56736 2008-04-11  Bruno Haible  <bruno@clisp.org>
56737
56738         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56739
56740 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56741
56742         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56743         of attempting to use non-existing /dev/*random.  Based on patch
56744         from Adam Strzelecki <ono@java.pl> in
56745         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56746
56747 2008-04-08  Bruno Haible  <bruno@clisp.org>
56748
56749         Add tentative support for emx+gcc.
56750         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56751         * lib/fpurge.c (fpurge): Likewise.
56752         * lib/freadable.c (freadable): Likewise.
56753         * lib/freadahead.c (freadahead): Likewise.
56754         * lib/freading.c (freading): Likewise.
56755         * lib/freadptr.c (freadptr): Likewise.
56756         * lib/freadseek.c (freadptrinc): Likewise.
56757         * lib/fseeko.c (rpl_fseeko): Likewise.
56758         * lib/fseterr.c (fseterr): Likewise.
56759         * lib/fwritable.c (fwritable): Likewise.
56760         * lib/fwriting.c (fwriting): Likewise.
56761         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56762
56763 2008-04-09  Eric Blake  <ebb9@byu.net>
56764
56765         Avoid some autoconf warnings.
56766         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56767         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56768         * m4/afs.m4 (gl_AFS): Likewise.
56769         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56770         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56771         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56772         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56773         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56774         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56775         (AC_CHECK_DECLS_ONCE): Likewise.
56776         Rename file...
56777         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56778         gnulib-tool requires autoconf 2.59 or better.
56779         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56780
56781 2008-04-08  Eric Blake  <ebb9@byu.net>
56782
56783         Use 'git describe --match' if present (added in git 1.5.5).
56784         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56785         if possible.
56786
56787 2008-04-08  Bruno Haible  <bruno@clisp.org>
56788
56789         Add tentative support for OpenServer.
56790         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56791         _ptr, _cnt.
56792         * lib/fpurge.c (fpurge): Likewise.
56793         * lib/freadable.c (freadable): Likewise.
56794         * lib/freadahead.c (freadahead): Likewise.
56795         * lib/freading.c (freading): Likewise.
56796         * lib/freadptr.c (freadptr): Likewise.
56797         * lib/freadseek.c (freadptrinc): Likewise.
56798         * lib/fseeko.c (rpl_fseeko): Likewise.
56799         * lib/fseterr.c (fseterr): Likewise.
56800         * lib/fwritable.c (fwritable): Likewise.
56801         * lib/fwriting.c (fwriting): Likewise.
56802         Reported by Roger Cornelius <rac@tenzing.org> and
56803         Brian K. White <brian@aljex.com>.
56804
56805 2008-04-06  Jim Meyering  <meyering@redhat.com>
56806
56807         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56808
56809 2008-04-06  Bruno Haible  <bruno@clisp.org>
56810
56811         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56812         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56813         * tests/test-printf-posix.sh: Likewise.
56814         * tests/test-vfprintf-posix.sh: Likewise.
56815         * tests/test-vprintf-posix.sh: Likewise.
56816         * tests/test-xprintf-posix.sh: Likewise.
56817
56818 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56819
56820         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56821         hide error from 'ls', needed on OS/2.
56822         Report by Elbert Pol <elbert.pol@gmail.com>.
56823
56824 2008-04-04  Eric Blake  <ebb9@byu.net>
56825
56826         Make test-fseeko.c failures meaningful.
56827         * tests/test-fseeko.c: Print line number on failure.
56828         * tests/test-fseek.c: Likewise.
56829         Reported by Nelson H. F. Beebe.
56830
56831         Improve strtod bug detection check.
56832         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56833         required for Solaris 10.
56834         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56835
56836 2008-04-04  Bruno Haible  <bruno@clisp.org>
56837
56838         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56839         by m4/setenv.m4.
56840
56841 2008-04-03  Eric Blake  <ebb9@byu.net>
56842
56843         Ensure sane .version contents.
56844         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56845         version string.
56846         * build-aux/git-version-gen: Improve documentation.
56847
56848         Make GNU make output nicer.
56849         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56850         MAKECMDGOALS to enforce message for all command line targets.  Set
56851         srcdir for use in maint.mk.
56852
56853         Another maintainer tweak.
56854         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56855         a target that regenerates version.
56856
56857 2008-04-03  Jim Meyering  <meyering@redhat.com>
56858
56859         vc-list-files: don't cause coreutils "make po-check" failure
56860         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56861
56862 2008-04-03  Eric Blake  <ebb9@byu.net>
56863
56864         Allow VPATH usage of vc-list-files.
56865         * build-aux/vc-list-files (scriptversion): Add timestamp.
56866         (options): Add --help, --version, -C.
56867         (CVS): Support installed cvsu.
56868
56869 2008-04-02  Bruno Haible  <bruno@clisp.org>
56870
56871         Avoid some "statement with no effect" warnings from gcc.
56872         * tests/test-wctype.c (main): Explicitly ignore unused values.
56873         Reported by Jim Meyering.
56874
56875 2008-04-02  Jim Meyering  <meyering@redhat.com>
56876
56877         Avoid some warnings from "gcc -Wshadow".
56878         * tests/test-frexp.c (exp): Define to a different identifier.
56879         * tests/test-frexpl.c (exp): Likewise.
56880
56881 2008-04-03  Jim Meyering  <meyering@redhat.com>
56882
56883         bootstrap: remove dangling *.[ch] symlinks from lib
56884         * build-aux/bootstrap [dangling symlink removal]: Move find's
56885         -depth option to precede all others, to avoid a warning.
56886         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56887
56888 2008-04-02  Bruno Haible  <bruno@clisp.org>
56889
56890         Avoid some warnings from "gcc -Wshadow".
56891         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56892         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56893         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56894         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56895         Reported by Jim Meyering.
56896
56897 2008-04-01  Bruno Haible  <bruno@clisp.org>
56898
56899         Fix test to work on IRIX 6.5 with cc.
56900         * tests/test-math.c (numeric_equal): New function.
56901         (main): Use it.
56902
56903 2008-04-01  Bruno Haible  <bruno@clisp.org>
56904
56905         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56906
56907 2008-04-01  Bruno Haible  <bruno@clisp.org>
56908
56909         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56910         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56911         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56912         (Depends-on): Remove math.
56913
56914         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56915         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56916         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56917         (Depends-on): Remove math.
56918
56919         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56920         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56921         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56922         (Depends-on): Remove math.
56923         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56924         (Depends-on): Remove math.
56925
56926         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56927         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56928         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56929         (Depends-on): Remove math.
56930         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56931         (Depends-on): Remove math.
56932
56933         * tests/test-round1.c: Include nan.h.
56934         (main): Use NaNd instead of NAN.
56935         * modules/round-tests (Files): Add tests/nan.h.
56936
56937         * tests/test-trunc1.c: Include nan.h.
56938         (main): Use NaNd instead of NAN.
56939         * modules/trunc-tests (Files): Add tests/nan.h.
56940
56941         * tests/test-roundf1.c: Include nan.h.
56942         (main): Use NaNf instead of NAN.
56943         * modules/roundf-tests (Files): Add tests/nan.h.
56944
56945         * tests/test-truncf1.c: Include nan.h.
56946         (main): Use NaNf instead of NAN.
56947         * modules/truncf-tests (Files): Add tests/nan.h.
56948
56949         * tests/test-ceilf1.c: Include nan.h.
56950         (main): Use NaNf instead of NAN.
56951         * modules/ceilf-tests (Files): Add tests/nan.h.
56952
56953         * tests/test-floorf1.c: Include nan.h.
56954         (main): Use NaNf instead of NAN.
56955         * modules/floorf-tests (Files): Add tests/nan.h.
56956
56957         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56958         (main): Use NaNf instead of NAN.
56959         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56960
56961         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56962         (main): Use NaNd instead of NAN.
56963         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56964
56965         * tests/test-frexp.c: Include nan.h.
56966         (main): Use NaNd instead of NAN.
56967         * modules/frexp-tests (Files): Add tests/nan.h.
56968
56969         * lib/isnan.c: Don't include <math.h>.
56970         (FUNC): Don't use NAN macro.
56971         * modules/isnand-nolibm (Depends-on): Remove math.
56972         * modules/isnanf-nolibm (Depends-on): Remove math.
56973         * modules/isnanl (Depends-on): Remove math.
56974         * modules/isnanl-nolibm (Depends-on): Remove math.
56975
56976         * tests/nan.h: New file.
56977
56978 2008-04-01  Eric Blake  <ebb9@byu.net>
56979
56980         Fix typos.
56981         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56982         values to be the right type.
56983
56984         For now, cater to gnulib strtod inaccuracies.
56985         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56986         fractional results.  While not as nice from a QoI perspective, it
56987         is a quicker patch than correctly implementing decimal to binary
56988         rounding.
56989
56990 2008-03-31  Eric Blake  <ebb9@byu.net>
56991
56992         Guarantee a definition of NAN.
56993         * lib/math.in.h (NAN): Define if missing.
56994         * tests/test-math.c (main): Test it.
56995         * doc/posix-headers/math.texi (math.h): Document this.
56996         * lib/isnan.c (rpl_isnand): Use it.
56997         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56998         * tests/test-floorf1.c (NaN): Likewise.
56999         * tests/test-frexp.c (NaN): Likewise.
57000         * tests/test-isnand.c (NaN): Likewise.
57001         * tests/test-isnanf.c (NaN): Likewise.
57002         * tests/test-round1.c (NaN): Likewise.
57003         * tests/test-roundf1.c (NaN): Likewise.
57004         * tests/test-snprintf-posix.h (NaN): Likewise.
57005         * tests/test-sprintf-posix.h (NaN): Likewise.
57006         * tests/test-trunc1.c (NaN): Likewise.
57007         * tests/test-truncf1.c (NaN): Likewise.
57008         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57009         * tests/test-vasprintf-posix.c (NaN): Likewise.
57010         * modules/isnand-nolibm (Depends-on): Add math.
57011         * modules/isnanf-nolibm (Depends-on): Likewise.
57012         * modules/isnanl (Depends-on): Likewise.
57013         * modules/isnanl-nolibm (Depends-on): Likewise.
57014         * modules/snprintf-posix-tests (Depends-on): Likewise.
57015         * modules/sprintf-posix-tests (Depends-on): Likewise.
57016         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57017         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57018         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57019         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57020
57021 2008-03-31  Bruno Haible  <bruno@clisp.org>
57022
57023         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57024         * doc/posix-functions/strtod.texi: Likewise.
57025
57026 2008-03-31  Bruno Haible  <bruno@clisp.org>
57027
57028         * tests/test-strtod.c (main): Don't use C99 syntax.
57029
57030 2008-03-31  Bruno Haible  <bruno@clisp.org>
57031
57032         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57033         Reported by Eric Blake.
57034
57035 2008-03-31  Jim Meyering  <meyering@redhat.com>
57036
57037         Don't compare actual signbit return values.
57038         * tests/test-strtod.c (main): Rather, compare only their
57039         zero/non-zero nature.
57040
57041 2008-03-31  Eric Blake  <ebb9@byu.net>
57042
57043         More strtod documentation.
57044         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57045         failures as distinct bugs.
57046
57047 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57048
57049         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57050         Problem reported by Erik Benada in
57051         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57052
57053 2008-03-30  Bruno Haible  <bruno@clisp.org>
57054
57055         * tests/test-strtod.c: Add comments about which assertion fails on which
57056         platform.
57057         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57058
57059 2008-03-30  Eric Blake  <ebb9@byu.net>
57060
57061         Test signbit behavior on zeros.
57062         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57063         (test_signbitd, test_signbitl): Likewise.
57064
57065         More strtod touchups.
57066         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57067         sign of negative underflow, for now.  Use .5, not .1.
57068         * doc/posix-functions/strtod.texi (strtod): Mention these
57069         limitations.
57070         Reported by Jim Meyering.
57071
57072 2008-03-30  Bruno Haible  <bruno@clisp.org>
57073
57074         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57075         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57076
57077 2008-03-30  Bruno Haible  <bruno@clisp.org>
57078
57079         Avoid failure when attempting to return empty iconv results on some
57080         platforms.
57081         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57082         allocation, don't report ENOMEM when the resulting string is empty.
57083
57084 2008-03-30  Bruno Haible  <bruno@clisp.org>
57085
57086         Fix buffer overrun.
57087         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57088         Don't consider the width for tmp_length. Check count against tmp_length
57089         before doing the padding. Ensure enough allocation during padding.
57090
57091 2008-03-30  Eric Blake  <ebb9@byu.net>
57092
57093         strtod touchups.
57094         * lib/strtod.c (strtod): Avoid compiler warnings.
57095         Reported by Jim Meyering.
57096
57097 2008-03-30  Bruno Haible  <bruno@clisp.org>
57098
57099         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57100         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57101         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57102         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57103         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57104         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57105         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57106         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57107
57108         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57109         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57110         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57111         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57112         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57113         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57114         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57115         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57116
57117         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57118         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57119         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57120         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57121         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57122         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57123         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57124         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57125
57126         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57127         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57128
57129         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57130         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57131
57132         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57133         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57134
57135         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57136         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57137         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57138
57139         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57140         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57141         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57142
57143         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57144         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57145         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57146
57147         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57148         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57149         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57150
57151         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57152         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57153         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57154         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57155         (Depends-on): Add EOVERFLOW.
57156         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57157         (Depends-on): Add EOVERFLOW.
57158         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57159         (Depends-on): Add EOVERFLOW.
57160         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57161         (Depends-on): Add EOVERFLOW.
57162         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57163         (Depends-on): Add EOVERFLOW.
57164         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57165         (Depends-on): Add EOVERFLOW.
57166         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57167         (Depends-on): Add EOVERFLOW.
57168         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57169         (Depends-on): Add EOVERFLOW.
57170
57171         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57173         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57174
57175         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57177         * modules/snprintf (Depends-on): Add EOVERFLOW.
57178
57179         * lib/poll.c (EOVERFLOW): Remove fallback.
57180         * modules/poll (Depends-on): Add EOVERFLOW.
57181
57182         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57183         * modules/getugroups (Depends-on): Add EOVERFLOW.
57184
57185         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57186         * modules/getdelim (Depends-on): Add EOVERFLOW.
57187
57188         * lib/ftell.c (EOVERFLOW): Remove fallback.
57189         * modules/ftell (Depends-on): Add EOVERFLOW.
57190
57191         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57193         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57194
57195         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57196
57197         * modules/EOVERFLOW-tests: New file.
57198         * tests/test-EOVERFLOW.c: New file.
57199
57200         * modules/EOVERFLOW: New file.
57201         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57202
57203 2008-03-30  Bruno Haible  <bruno@clisp.org>
57204
57205         Fix bug introduced on 2007-06-10.
57206         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57207         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57208
57209 2008-03-30  Bruno Haible  <bruno@clisp.org>
57210
57211         Improve freadseek's efficiency after ungetc.
57212         * lib/freadseek.c: Include freadahead.h.
57213         (freadptrinc): New function, extracted from freadseek.
57214         (freadseek): Use it in a loop. Use freadahead to determine the number
57215         of loop iterations.
57216         * modules/freadseek (Depends-on): Add freadahead.
57217         (configure.ac): Require AC_C_INLINE.
57218
57219 2008-03-30  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/freadseek.c (freadseek): Don't ignore the return value of
57222         freadptr.
57223
57224 2008-03-29  Eric Blake  <ebb9@byu.net>
57225
57226         Add hex float support.
57227         * modules/strtod (Depends-on): Add c-ctype.
57228         (Link): Mention POW_LIB.
57229         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57230         whitespace between 'e' and exponent.
57231         * tests/test-strtod.c (main): Enable hex float tests.
57232         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57233         now provides.
57234
57235         Document various strtod bugs, with some fixes.
57236         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57237         "-0x", "inf", "nan", and hex constants.
57238         * doc/posix-functions/atof.texi (atof): Likewise.
57239         * modules/stdlib (Makefile.am): Support strtod.
57240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57241         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57242         detect additional strtod bugs.
57243         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57244         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57245         bool where appropriate.  Parse 'inf' and 'nan'.
57246         * tests/test-strtod.c: New file.
57247         * modules/strtod (Depends-on): Add stdbool, stdlib.
57248         (configure.ac): Turn on module indicator.
57249         * modules/strtod-tests: New module.
57250
57251 2008-03-29  Eric Blake  <ebb9@byu.net>
57252
57253         Fix ftell on mingw.
57254         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57255         * modules/ftell-tests (Depends-on): Add binary-io.
57256         * modules/ftello-tests (Depends-on): Likewise.
57257         * tests/test-ftell.c (main): Enhance test to cover behavior after
57258         ungetc.  Enforce binary mode.
57259         * tests/test-ftello.c (main): Likewise.
57260
57261         Pass test-freadseek on cygwin.
57262         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57263         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57264         ungetc buffer.
57265
57266         * tests/test-fflush2.c (main): Fix typo.
57267
57268 2008-03-29  Bruno Haible  <bruno@clisp.org>
57269
57270         * tests/test-fflush2.c (main): Temporarily disable the contents of
57271         this test.
57272         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57273         Reported by Eric Blake.
57274
57275 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57276
57277         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57278         (GC_SHA224_DIGEST_SIZE): Add.
57279
57280         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57281         (gc_hash_digest_length): Likewise.
57282         (gc_hash_buffer): Likewise.
57283
57284 2008-03-25  Bruno Haible  <bruno@clisp.org>
57285
57286         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57287         detail which gettext release to use.
57288         Reported by Simon Josefsson.
57289
57290 2008-03-26  Jim Meyering  <meyering@redhat.com>
57291
57292         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57293         * modules/gnumakefile (clean-GNUmakefile): Also, use
57294         test ... && ... || : syntax rather than if-then ... fi.
57295
57296         gnumakefile: Don't double-quote-expand $(VPATH) value.
57297         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57298
57299 2008-03-24  Eric Blake  <ebb9@byu.net>
57300
57301         Alter GNUmakefile to install into top directory.
57302         * modules/maintainer-makefile: Split, and add dependency...
57303         * modules/gnumakefile: to this new module.
57304         * build-aux/GNUmakefile: Move...
57305         * top/GNUmakefile: ...here.
57306         * build-aux/maint.mk: Move...
57307         * top/maint.mk: ...here.
57308         * MODULES.html.sh (Support for maintaining...): Document new
57309         module.
57310
57311 2008-03-23  Bruno Haible  <bruno@clisp.org>
57312
57313         * gnulib-tool: New options --vc-files, --no-vc-files.
57314         (func_usage): Document them.
57315         (vc_files): New variable.
57316         (func_import): Consider vc_files.
57317         (func_create_testdir): Set vc_files to empty.
57318         Suggested by Jim Meyering and Karl Berry.
57319
57320 2008-03-23  Bruno Haible  <bruno@clisp.org>
57321
57322         Fix regex compilation error on HP-UX 11.
57323         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57324         * modules/regex (Files): Add m4/mbstate_t.m4.
57325         Reported by Ton Voon <ton.voon@altinity.com>.
57326
57327 2008-03-23  Bruno Haible  <bruno@clisp.org>
57328
57329         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57330
57331 2008-03-23  Eric Blake  <ebb9@byu.net>
57332             Bruno Haible  <bruno@clisp.org>
57333
57334         Install files from top/ in the destination directory.
57335         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57336         augmentation also for the files from top/.
57337         (func_import, func_create_testdir): Rewrite file names:
57338         top/filename -> filename.
57339
57340 2008-03-23  Bruno Haible  <bruno@clisp.org>
57341
57342         Tweak "gnulib --version" output.
57343         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57344
57345 2008-03-23  Bruno Haible  <bruno@clisp.org>
57346
57347         Tweak "gnulib --version" output.
57348         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57349         rather than contents of ChangeLog, when possible.
57350
57351 2008-03-21  Eric Blake  <ebb9@byu.net>
57352
57353         More --version tweaks.
57354         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57355         date of last ChangeLog entry.
57356
57357 2008-03-21  Jim Meyering  <meyering@redhat.com>
57358
57359         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57360
57361 2008-03-20  Eric Blake  <ebb9@byu.net>
57362
57363         VPATH fix.
57364         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57365
57366 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57367
57368         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57369         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57370
57371 2008-03-20  Eric Blake  <ebb9@byu.net>
57372
57373         Sync GNUmakefile with coreutils.
57374         * build-aux/GNUmakefile (have-Makefile): Rename...
57375         (_have-Makefile): ...to this, for namespace consideration.
57376         (GNUmakefile.cfg): Include, if present.
57377         (_autoreconf): Define a default.
57378         (_is-dist-target): New rule for rebuilds to pick up intra-release
57379         version.
57380         (maint-cfg.mk): Rename...
57381         (cfg.mk): ...to this.
57382
57383 2008-03-18  Jim Meyering  <meyering@redhat.com>
57384
57385         New script and module: mktempd
57386         * MODULES.html.sh (maint+release support): Add mktempd.
57387         * build-aux/mktempd: New file.
57388         * modules/mktempd: New file.
57389
57390 2008-03-15  Jim Meyering  <meyering@redhat.com>
57391
57392         Undo last change.
57393         * lib/sha1.c, lib/md5.c: 63 != ~63.
57394         Reported by Andreas Schwab.
57395
57396         sha1.c, md5.c: Hoist a redundant expression.
57397         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57398         "ctx->buflen" only once, before calling *_process_block.
57399         * lib/md5.c (md5_process_bytes): Likewise.
57400
57401 2008-03-14  Eric Blake  <ebb9@byu.net>
57402
57403         Bump copyright year in files generated by gnulib-tool.
57404         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57405         gnulib-tool, rather than hard-coding it.
57406
57407         Fix 'gnulib-tool --version' output to work with git.
57408         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57409         (startup): ...here.
57410         (func_version): Use it to invoke git-version-gen, rather than
57411         relying on CVS keyword expansion.  Modernize wording.
57412         (cvsdatestamp, last_checkin_date, version): Kill unused
57413         variables.
57414
57415 2008-03-12  Jim Meyering  <meyering@redhat.com>
57416
57417         Recognize optional cast of the argument to free.
57418         * build-aux/useless-if-before-free: Update regexps.
57419
57420         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57421
57422 2008-03-11  Bruno Haible  <bruno@clisp.org>
57423
57424         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57425         by a single package.
57426         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57427         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57428         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57429         Reported by Sam Steingold <sds@gnu.org>.
57430
57431 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57432
57433         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57434         repositories.
57435
57436 2008-03-11  Bruno Haible  <bruno@clisp.org>
57437
57438         Avoid conflicts between local macro definitions.
57439         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57440         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57441
57442 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57443             Bruno Haible  <bruno@clisp.org>
57444
57445         Make va_copy work with some version of xlc on AIX 5.1.
57446         * lib/stdarg.in.h: New file.
57447         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57448         On AIX, use a <stdarg.h> file substitute.
57449         * modules/stdarg (Files): Add lib/stdarg.in.h.
57450         (Depends-on): Add include_next.
57451         (Makefile.am): Build a stdarg.h substitute if requested.
57452         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57453
57454 2008-03-10  Bruno Haible  <bruno@clisp.org>
57455
57456         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57457         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57458         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57459
57460 2008-03-10  Bruno Haible  <bruno@clisp.org>
57461
57462         * modules/stdlib (Depends-on): Add include_next, remove
57463         absolute-header.
57464
57465 2008-03-09  Bruno Haible  <bruno@clisp.org>
57466
57467         * lib/freadahead.h (freadahead): Document more precisely.
57468         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57469         the sum of both buffer sizes.
57470         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57471         * NEWS: Document the change.
57472
57473 2008-03-09  Bruno Haible  <bruno@clisp.org>
57474
57475         Extend freadptr to return also the buffer size.
57476         * lib/freadptr.h (freadptr): Add sizep argument.
57477         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57478         (freadptr): Add sizep argument. Determine buffer size like freadahead
57479         does.
57480         * tests/test-freadptr.c: Don't include freadahead.h.
57481         (main): Adapt for new calling convention of freadptr.
57482         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57483         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57484         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57485         tests/test-freadptr2.sh.
57486         (Depends): Remove freadahead.
57487         (TESTS): Add test-freadptr2.sh.
57488         (check_PROGRAMS): Add test-freadptr2.
57489
57490 2008-03-09  Bruno Haible  <bruno@clisp.org>
57491
57492         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57493         Report and solution by Simon Josefsson.
57494
57495 2008-03-06  Bruno Haible  <bruno@clisp.org>
57496
57497         Make fflush after ungetc work on BSD platforms.
57498         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57499         * tests/test-fflush2.c: New file.
57500         * tests/test-fflush2.sh: New file.
57501         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57502         tests/test-fflush2.c.
57503         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57504         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57505
57506 2008-03-06  Eric Blake  <ebb9@byu.net>
57507
57508         Likewise for ftello.
57509         * modules/ftello (Dependencies): Add extensions.
57510         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57511
57512 2008-03-06  Bruno Haible  <bruno@clisp.org>
57513
57514         * modules/fseeko (Dependencies): Add extensions.
57515         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57516         Needed on glibc systems.
57517
57518 2008-03-06  Bruno Haible  <bruno@clisp.org>
57519
57520         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57521         email address.
57522         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57523
57524 2008-03-06  Bruno Haible  <bruno@clisp.org>
57525
57526         * users.txt: Add libgnupdf.
57527
57528 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57529
57530         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57531         (Header File Substitutes, Function Substitutes,
57532         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57533         (Build robot for gnulib): Fix typo.
57534
57535 2008-03-06  Bruno Haible  <bruno@clisp.org>
57536
57537         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57538         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57539
57540 2008-03-06  Bruno Haible  <bruno@clisp.org>
57541
57542         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57543         * doc/gnulib.texi: Include it.
57544
57545 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57546
57547         * modules/func (License): Change license to unlimited; there was
57548         no LGPL parts in the module anyway.
57549
57550 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57551
57552         * modules/__func__: Renamed to modules/func.
57553         * modules/__func__-tests: Renamed to modules/func-tests.
57554         * tests/test-__func__.c: Renamed to tests/test-func.c.
57555         * m4/__func__.m4: Renamed to m4/func.m4.
57556         * doc/gnulib.texi (__func__): Section renamed to func.
57557         Suggested by Eric Blake <ebb9@byu.net>.
57558
57559 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57560
57561         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57562         about __func__.  Make example self-contained.  Suggested by Eric
57563         Blake <ebb9@byu.net>.
57564
57565         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57566         Suggested by Eric Blake <ebb9@byu.net>.
57567
57568 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57569
57570         * modules/__func__: New file.
57571         * modules/__func__-tests: New file.
57572         * tests/test-__func__.c: New file.
57573         * m4/__func__.m4: New file.
57574         * doc/gnulib.texi (__func__): Document __func__ module.
57575
57576 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57577
57578         * modules/byteswap (License): Re-license as LGPLv2+.
57579
57580 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57581
57582         * doc/Makefile: Add pdf target.
57583
57584 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57585
57586         * modules/inline (License): Use 'unlimited', since there are only
57587         *.m4 files in this module.
57588
57589 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57590             Bruno Haible  <bruno@clisp.org>
57591
57592         Add support for HP C 7.1 on OpenVMS 8.3.
57593         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57594
57595 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57596
57597         Update VMS specifics.
57598         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57599
57600 2008-03-02  Jim Meyering  <meyering@redhat.com>
57601
57602         Remove the last dependency on the "free" module.
57603         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57604         Reported by Bob Proulx.
57605
57606         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57607
57608         Remove useless "if" tests before free.  Deprecate "free" module.
57609         * doc/posix-functions/free.texi: Mention that this
57610         module is no longer useful.
57611         * modules/free (Notice): Say this module is obsolete.
57612         * modules/readutmp (Depends-on): Remove free.
57613         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57614         * lib/putenv.c (putenv): Likewise.
57615         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57616         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57617         * tests/test-c-strcasestr.c (main): Likewise.
57618         * tests/test-c-strstr.c (main): Likewise.
57619         * tests/test-mbscasestr1.c (main): Likewise.
57620         * tests/test-mbscasestr2.c (main): Likewise.
57621         * tests/test-mbsstr1.c (main): Likewise.
57622         * tests/test-mbsstr2.c (main): Likewise.
57623         * tests/test-memmem.c (main): Likewise.
57624         * tests/test-strcasestr.c (main): Likewise.
57625         * tests/test-striconv.c (main): Likewise.
57626         * tests/test-striconveh.c (main): Likewise.
57627         * tests/test-striconveha.c (main): Likewise.
57628         * tests/test-strstr.c (main): Likewise.
57629
57630         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57631
57632         bootstrap: sync from coreutils again
57633         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57634
57635 2008-03-01  Jim Meyering  <meyering@redhat.com>
57636
57637         bootstrap: sync from coreutils
57638         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57639         also when the target doesn't exist.
57640
57641 2008-03-01  Eric Blake  <ebb9@byu.net>
57642
57643         Fix bugs in last patch.
57644         * lib/memchr2.c (memchr2): Fix typo.
57645         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57646         extension.
57647         Reported by Bruce Korb.
57648
57649         New module 'memchr2'.
57650         * modules/memchr2: New file.
57651         * modules/memchr2-tests: Likewise.
57652         * lib/memchr2.h: Likewise.
57653         * lib/memchr2.c: Likewise, based on memchr.c.
57654         * tests/test-memchr2.c: New test.
57655         * MODULES.html.sh (String handling): Add memchr2.
57656
57657 2008-02-29  Bruno Haible  <bruno@clisp.org>
57658
57659         * modules/freadseek-tests: New file.
57660         * tests/test-freadseek.sh: New file.
57661         * tests/test-freadseek.c: New file.
57662
57663         New module 'freadseek'.
57664         * modules/freadseek: New file.
57665         * lib/freadseek.h: New file.
57666         * lib/freadseek.c: New file.
57667         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57668
57669 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57670
57671         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57672         wydawca.
57673
57674         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57675         program_invocation_name and program_invocation_short_name are
57676         present.
57677
57678 2008-02-28  Bruno Haible  <bruno@clisp.org>
57679
57680         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57681         * tests/test-freadptr.sh: Also test non-seekable stdin.
57682
57683 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57684
57685         * build-aux/bootstrap (source_base, m4_base)
57686         (doc_base, tests_base): New variables.
57687         (gnulib_tool_options): Do not hardcode base directories, use
57688         the above variables instead.
57689
57690 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57691
57692         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57693
57694 2008-02-28  Bruno Haible  <bruno@clisp.org>
57695
57696         * modules/freadptr-tests: New file.
57697         * tests/test-freadptr.sh: New file.
57698         * tests/test-freadptr.c: New file.
57699
57700         New module 'freadptr'.
57701         * modules/freadptr: New file.
57702         * lib/freadptr.h: New file.
57703         * lib/freadptr.c: New file.
57704         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57705
57706 2008-02-26  Karl Berry  <karl@freefriends.org>
57707
57708         Sync from Libtool:
57709         * libltdl/argz.c (argz_add, argz_count): New functions.
57710         * libltdl/argz.in.h: Declare them.
57711         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57712
57713 2008-02-22  Bruno Haible  <bruno@clisp.org>
57714
57715         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57716         is a pointer type.  Needed for HP-UX 10.
57717         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57718         * doc/posix-functions/gmtime_r.texi: Likewise.
57719         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57720
57721 2008-02-24  Bruno Haible  <bruno@clisp.org>
57722
57723         * modules/environ-tests: New file.
57724         * tests/test-environ.c: New file.
57725
57726         New module 'environ'.
57727         * modules/environ: New file.
57728         * lib/unistd.in.h (environ): New declaration.
57729         * m4/environ.m4: New file.
57730         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57731         after use.
57732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57733         HAVE_DECL_ENVIRON.
57734         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57735         HAVE_DECL_ENVIRON.
57736         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57737         wrong claim that 'environ' is missing on some systems.
57738         * modules/execute (Depends-on): Add environ.
57739         * lib/execute.c (environ): Remove fallback declaration.
57740         * modules/pipe (Depends-on): Add environ.
57741         * lib/pipe.c (environ): Remove fallback declaration.
57742         * modules/setenv (Depends-on): Add environ.
57743         * lib/setenv.c (environ): Remove fallback declaration.
57744         * modules/unsetenv (Depends-on): Add environ.
57745         * lib/unsetenv.c (environ): Remove fallback declaration.
57746         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57747         m4/environ.m4.
57748         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57749         (gl_PREREQ_UNSETENV): Likewise.
57750
57751 2008-02-24  Bruno Haible  <bruno@clisp.org>
57752
57753         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57754
57755 2008-02-20  Bob Proulx  <bob@proulx.com>
57756
57757         Enable use of older two part flavor 'git describe'.
57758         * build-aux/git-version-gen: If using the older two part flavor of
57759         git version then recreate the third part now present in the
57760         newer three part flavor of git describe.
57761
57762 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57763
57764         * lib/fts.c (fts_build): Typo correction to comment.
57765
57766 2008-02-17  Bruno Haible  <bruno@clisp.org>
57767
57768         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57769         generating no-op conflicts.
57770
57771 2008-02-17  Bruno Haible  <bruno@clisp.org>
57772
57773         Speed up by 10%.
57774         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57775         result_entries, rather than an index-based loop.
57776
57777 2008-02-17  Bruno Haible  <bruno@clisp.org>
57778
57779         Speed up by 25%.
57780         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57781         'hashcode_cached'.
57782         (entry_create): New function.
57783         (entry_hashcode): Use the cached hashcode if possible.
57784         (read_changelog_file, try_split_merged_entry): Use entry_create.
57785
57786 2008-02-17  Bruno Haible  <bruno@clisp.org>
57787
57788         Speed up from O(n^2) to O(n) for long ChangeLog files.
57789         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57790         (read_changelog_file): Change implementation of entries_reversed list
57791         to rbtreehash.
57792         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57793
57794 2008-02-17  Bruno Haible  <bruno@clisp.org>
57795
57796         New option --split-merged-entry.
57797         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57798         (find_paragraph_end, try_split_merged_entry): New functions.
57799         (long_options): Add option --split-merged-entry.
57800         (usage): Document option --split-merged-entry.
57801         (main): Implement option --split-merged-entry.
57802         Reported by Eric Blake.
57803
57804 2008-02-17  Bruno Haible  <bruno@clisp.org>
57805
57806         * lib/git-merge-changelog.c: Include c-strstr.h.
57807         (main): Support the "git pull --rebase" situation.
57808         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57809         Reported by Eric Blake.
57810
57811 2008-02-16  Eric Blake  <ebb9@byu.net>
57812
57813         Avoid doubling \ in common case of "c-maybe" quoting style.
57814         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57815         eliding outer quotes.
57816         * lib/quotearg.h: Document this.
57817         * tests/test-quotearg.c (result_strings, inputs, results_g)
57818         (flag_results, locale_results): Test it by adding a new string to
57819         each test group.
57820         (compare_strings): Test new string.
57821
57822 2008-02-13  Eric Blake  <ebb9@byu.net>
57823
57824         Avoid trigraph quoting in default output.
57825         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57826         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57827         unless explicitly requested.
57828         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57829
57830 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57831
57832         Don't rely on signed integer overflowing to negative value.
57833         * lib/getugroups.c (getugroups): Include <limits.h>.
57834         Instead, compare against INT_MAX, and increment only if the test passes.
57835
57836 2008-02-13  Jim Meyering  <meyering@redhat.com>
57837         and Eric Blake  <ebb9@byu.net>
57838
57839         Avoid shadowing warning and compile errors on Linux.
57840         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57841         forwarding macros on Linux.
57842         (dcgettext): Define a stub, for Linux.
57843         (results_g, main): Avoid warnings.
57844
57845 2008-02-12  Eric Blake  <ebb9@byu.net>
57846
57847         Silence warning in last patch.
57848         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57849
57850         Quotearg part 4: add tests, fix c-maybe colon quoting.
57851         * lib/quotearg.h: Improve documentation.
57852         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57853         escapes when adding outer quotes.  When quoting trigraphs, use
57854         valid C notation.  When quoting NUL, omit extra characters if next
57855         character is not digit.  Alter prototype.
57856         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57857         callers.
57858         * modules/quotearg-tests: New module.
57859         * tests/test-quotearg.c: New test.
57860
57861 2008-02-07  Eric Blake  <ebb9@byu.net>
57862
57863         Quotearg part 3: add flag to control outer quote elision.
57864         * lib/quotearg.h (c_maybe_quoting_style): New style.
57865         (enum quoting_flags): Better documentation of flags.
57866         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57867         c-maybe style.
57868         (quotearg_buffer_restyled): Handle new flag to elide outer
57869         quotes.
57870
57871         Quotearg part 2: add flag that can control NUL elision.
57872         * lib/quotearg.h (set_quoting_flags): New prototype.
57873         * lib/quotearg.c (struct quoting_options): Add flag field.
57874         (set_quoting_flags): New function.
57875         (quotearg_buffer_restyled): Add flags parameter.
57876         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57877         (quotearg_n_options): Set the flag, since length cannot be
57878         returned.
57879         (quoting_options_from_style): Default flags correctly.
57880
57881         Quotearg part 1: more wrappers, restore quotearg_char state.
57882         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57883         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57884         (quotearg_colon_mem): New wrappers.
57885         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57886         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57887         functions.
57888         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57889         (quotearg_colon_mem): New functions.
57890
57891 2008-02-11  Bruno Haible  <bruno@clisp.org>
57892
57893         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57894         library in the current directory: it does not work with parallel make.
57895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57896
57897 2008-02-11  Bruno Haible  <bruno@clisp.org>
57898
57899         * .gitattributes: New file.
57900
57901 2008-02-11  Jim Meyering  <meyering@redhat.com>
57902
57903         useless-if-before-free: Fix reversed exit values.
57904         * build-aux/useless-if-before-free: Use correct values
57905         for EXIT_MATCH and EXIT_NO_MATCH.
57906
57907         * build-aux/useless-if-before-free: Close stdout carefully.
57908
57909 2008-02-10  Bruno Haible  <bruno@clisp.org>
57910
57911         New module 'git-merge-changelog'.
57912         * modules/git-merge-changelog: New file.
57913         * lib/git-merge-changelog.c: New file.
57914
57915 2008-02-10  Jim Meyering  <meyering@redhat.com>
57916
57917         useless-if-before-free: New option: --list (-l).
57918
57919         useless-if-before-free: Don't exit immediately upon open failure.
57920         * build-aux/useless-if-before-free: Exit 2 for errors.
57921         Upon failure to open a file, don't exit immediately.
57922         Rather, just warn and continue with any remaining files.
57923
57924 2008-02-10  Bruno Haible  <bruno@clisp.org>
57925
57926         New abstract list operation 'node_set_value'.
57927         * lib/gl_list.h (gl_list_node_set_value): New function.
57928         (struct gl_list_implementation): New field node_set_value.
57929         * lib/gl_list.c (gl_list_node_set_value): New function.
57930         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57931         (gl_array_list_implementation): Update.
57932         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57933         (gl_carray_list_implementation): Update.
57934         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57935         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57936         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57937         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57938         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57939         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57940         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57941         Update.
57942         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57943         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57944         (gl_sublist_list_implementation): Update.
57945
57946 2008-02-10  Bruno Haible  <bruno@clisp.org>
57947
57948         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57949         Needed when ELEMENT is #defined to 'some_type *'.
57950
57951 2008-02-10  Jim Meyering  <meyering@redhat.com>
57952
57953         New script and module: useless-if-before-free
57954         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57955         * build-aux/useless-if-before-free: New file.
57956         * modules/useless-if-before-free: New file.
57957
57958         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57959
57960         xstrtol_error: Fix typo.
57961         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57962         s/exit_failure/exit_status/.
57963
57964 2008-02-09  Jim Meyering  <meyering@redhat.com>
57965
57966         New script and module: gitlog-to-changelog
57967         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57968         * modules/gitlog-to-changelog: New file.
57969         * build-aux/gitlog-to-changelog: New file.
57970
57971 2008-02-08  Jim Meyering  <meyering@redhat.com>
57972
57973         Avoid two "parameter unused" warnings.
57974         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57975         Mark "st" as used.
57976
57977         Use "git COMMAND", not "git-COMMAND".
57978         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57979         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57980         * build-aux/git-version-gen: Use "git status", not "git-status".
57981
57982 2008-02-07  Bruno Haible  <bruno@clisp.org>
57983
57984         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57985         Avoids a crash on Windows Vista.
57986         Reported by Adam Strzelecki <ono@java.pl> via
57987         Simon Josefsson <simon@josefsson.org>.
57988
57989 2008-02-06  Bruno Haible  <bruno@clisp.org>
57990
57991         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57992         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57993         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57995         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57997         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57998         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58000         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58001         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58002         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58003         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58004         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58005         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58006         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58007         left-adjust flag.
58008         * tests/test-snprintf-posix.h (test_function): Likewise.
58009         * tests/test-sprintf-posix.h (test_function): Likewise.
58010         * tests/test-vasprintf-posix.c (test_function): Likewise.
58011         * doc/posix-functions/fprintf.texi: Update.
58012         * doc/posix-functions/printf.texi: Update.
58013         * doc/posix-functions/snprintf.texi: Update.
58014         * doc/posix-functions/sprintf.texi: Update.
58015         * doc/posix-functions/vfprintf.texi: Update.
58016         * doc/posix-functions/vprintf.texi: Update.
58017         * doc/posix-functions/vsnprintf.texi: Update.
58018         * doc/posix-functions/vsprintf.texi: Update.
58019         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58020
58021 2008-02-06  Bruno Haible  <bruno@clisp.org>
58022
58023         Fix bug introduced on 2008-01-26.
58024         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58025
58026 2008-02-06  Bruno Haible  <bruno@clisp.org>
58027
58028         Fix bug introduced on 2007-06-10.
58029         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58030         !NEED_PRINTF_FLAG_ZERO.
58031
58032 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58033
58034         getloadavg: use libperfstat on AIX5
58035         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58036
58037 2008-02-03  Bruno Haible  <bruno@clisp.org>
58038
58039         * lib/diffseq.h: Add comments about required #includes.
58040         Reported by Michael Biggs <gnulib@doubleplum.net>.
58041
58042 2008-02-01  Bruno Haible  <bruno@clisp.org>
58043
58044         * users.txt: Add gnuit.
58045
58046 2008-01-31  Bruno Haible  <bruno@clisp.org>
58047
58048         * lib/md4.c (set_uint32): Mark as inline.
58049         * lib/md5.c (set_uint32): Likewise.
58050         * lib/sha1.c (set_uint32): Likewise.
58051         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58052         * m4/md5.m4 (gl_MD5): Likewise.
58053         * m4/sha1.m4 (gl_SHA1): Likewise.
58054
58055 2008-01-31  Jim Meyering  <meyering@redhat.com>
58056
58057         Use "sizeof VAR", rather than a literal "4".
58058         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58059         * lib/md4.c (md4_read_ctx): Likewise.
58060         * lib/sha1.c (sha1_read_ctx): Likewise.
58061
58062 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58063
58064         * tests/test-sha1.c: New file, based on test-md5.c.
58065
58066         * modules/crypto/sha1-tests: New file.
58067
58068 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58069
58070         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58071
58072 2008-01-31  Jim Meyering  <meyering@redhat.com>
58073
58074         Prefer "sizeof v" over the equivalent "4".
58075         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58076         * lib/md5.c (set_uint32): Likewise.
58077         * lib/sha1.c (set_uint32): Likewise.
58078
58079 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58080
58081         * lib/sha1.c (set_uint32): Mark function as static.
58082
58083 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58084
58085         md2: clarify comments to say that alignment is not required.
58086         * lib/md2.h: Remove warning about alignment in comment.
58087         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58088         never been required.
58089
58090 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58091
58092         md4: adapt alignment constraint fix from sha1.
58093         * lib/md4.c (set_uint32): New function, from sha1.c
58094         (md4_read_ctx): Use it.
58095         (md4_finish_ctx): Doc fix.
58096         * lib/md4.h: Doc fix.
58097
58098 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58099
58100         md5: adapt alignment constraint fix from sha1.
58101         * lib/md5.c (set_uint32): New function, from sha1.c
58102         (md5_read_ctx): Use it.
58103         (md5_finish_ctx): Doc fix.
58104         * lib/md5.h: Doc fix.
58105
58106 2008-01-30  Peter Palfrader  <weasel@debian.org>
58107
58108         sha1: remove the result buffer alignment constraint
58109         * lib/sha1.c (set_uint32): New function.
58110         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58111         constraint.
58112         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58113         * lib/sha1.h: Likewise.
58114
58115 2008-01-30  Andreas Schwab  <schwab@suse.de>
58116             Bruno Haible  <bruno@clisp.org>
58117
58118         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58119         correct definition of LDBL_MIN_EXP.
58120
58121 2008-01-30  Karl Berry  <karl@gnu.org>
58122
58123         * config/srclist-update: try to preserve x bit on updates.
58124         * config/srclistvars.sh: update for karl.
58125
58126 2008-01-29  Jim Meyering  <meyering@redhat.com>
58127
58128         vasnprintf.c: Avoid warning about unused label
58129         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58130         "overflow" label definition and associated code with the
58131         same cpp condition that guards the sole use of that label.
58132
58133 2008-01-26  Bruno Haible  <bruno@clisp.org>
58134
58135         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58136         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58137         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58138         * lib/isnanl-nolibm.h (isnanl): Likewise.
58139         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58140
58141 2008-01-26  Bruno Haible  <bruno@clisp.org>
58142
58143         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58144         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58145
58146 2008-01-26  Bruno Haible  <bruno@clisp.org>
58147
58148         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58149         GCC >= 4.0 built-in.
58150         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58151
58152 2008-01-26  Bruno Haible  <bruno@clisp.org>
58153
58154         Rename isnan, applicable to 'double' only, to isnand.
58155         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58156         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58157         (configure.ac): Update.
58158         (Include): Replace "isnan.h" with "isnand.h".
58159         * m4/isnand.m4: Renamed from m4/isnan.m4.
58160         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58161         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58162         instead of isnan.c.
58163         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58164         instead of HAVE_ISNAN_IN_LIBC.
58165         (isnand): Renamed from isnan.
58166         * lib/isnand.c: New file.
58167         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58168         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58169         (Makefile.am): Update.
58170         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58171         Include isnand.h instead of isnan.h.
58172         (main): Test isnand instead of isnan.
58173         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58174         isnan-nolibm.
58175         * modules/frexp (Depends-on): Likewise.
58176         * modules/frexp-tests (Depends-on): Likewise.
58177         * modules/frexp-nolibm (Depends-on): Likewise.
58178         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58179         * modules/isfinite (Depends-on): Likewise.
58180         * modules/round-tests (Depends-on): Likewise.
58181         * modules/signbit (Depends-on): Likewise.
58182         * modules/signbit-tests (Depends-on): Likewise.
58183         * modules/snprintf-posix (Depends-on): Likewise.
58184         * modules/sprintf-posix (Depends-on): Likewise.
58185         * modules/trunc-tests (Depends-on): Likewise.
58186         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58187         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58188         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58189         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58190         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58191         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58192         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58193         * modules/vasnprintf-posix (Depends-on): Likewise.
58194         * modules/vasprintf-posix (Depends-on): Likewise.
58195         * modules/vfprintf-posix (Depends-on): Likewise.
58196         * modules/vsnprintf-posix (Depends-on): Likewise.
58197         * modules/vsprintf-posix (Depends-on): Likewise.
58198         * lib/frexp.c: Include isnand.h instead of isnan.h.
58199         (ISNAN): Set to isnand instead of isnan.
58200         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58201         (gl_isfinited): Use isnand instead of isnan.
58202         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58203         (gl_signbitd): Use isnand instead of isnan.
58204         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58205         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58206         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58207         (main): Use isnand instead of isnan.
58208         * tests/test-round1.c: Include isnand.h.
58209         (main): Use isnand instead of isnan.
58210         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58211         (ISNAN): Set to isnand instead of isnan.
58212         * tests/test-trunc1.c: Include isnand.h.
58213         (main): Use isnand instead of isnan.
58214         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58215         (equal): Use isnand instead of isnan.
58216         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58217         isnand-nolibm.
58218         * NEWS: Mention the change.
58219
58220 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58221             Bruno Haible  <bruno@clisp.org>
58222
58223         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58224         the GCC builtins for signbits are present and set
58225         REPLACE_SIGNBIT_USING_GCC if so.
58226         * lib/math.in.h (signbit): Define using GCC builtins if
58227         REPLACE_SIGNBIT_USING_GCC is set.
58228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58229         REPLACE_SIGNBIT_USING_GCC.
58230         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58231
58232 2008-01-25  Jim Meyering  <meyering@redhat.com>
58233
58234         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58235         * lib/poll.c: Include <config.h>, not "config.h".
58236         * tests/test-getaddrinfo.c: Likewise.
58237
58238 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58239
58240         * modules/sockets-tests: New file.
58241
58242 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58243
58244         * modules/sockets: New module, can be used to call WSA_Startup and
58245         WSA_Cleanup when needed.
58246
58247         * lib/sockets.h, lib/sockets.c: New files.
58248
58249         * m4/sockets.m4: New file.
58250
58251         * tests/test-sockets.c: New file.
58252
58253 2008-01-19  Bruno Haible  <bruno@clisp.org>
58254
58255         * doc/posix-headers: Renamed from doc/headers.
58256         * doc/posix-functions: Renamed from doc/functions.
58257         * doc/gnulib.texi: Update.
58258
58259 2008-01-19  Bruno Haible  <bruno@clisp.org>
58260
58261         * doc/glibc-functions/strcasestr.texi: Include contents of
58262         doc/functions/strcasestr.texi, fixing the list of platforms.
58263         * doc/functions/strcasestr.texi: Remove file.
58264
58265 2008-01-19  Bruno Haible  <bruno@clisp.org>
58266
58267         * doc/glibc-functions/memmem.texi: Include contents of
58268         doc/functions/memmem.texi.
58269         * doc/functions/memmem.texi: Remove file.
58270
58271 2008-01-18  Bruno Haible  <bruno@clisp.org>
58272
58273         * doc/glibc-functions/*.texi: New files.
58274         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58275         to use the new files.
58276
58277 2008-01-17  Bruno Haible  <bruno@clisp.org>
58278
58279         * tests/test-gethostname.c (main): Fix printf statement.
58280
58281 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58282
58283         * modules/gethostname-tests: New file.
58284
58285         * tests/test-gethostname.c: New file.
58286
58287 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58288
58289         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58290         used by the UNAME case.  Reported by Bruno Haible
58291         <bruno@clisp.org>.
58292
58293 2008-01-17  Eric Blake  <ebb9@byu.net>
58294
58295         Convert c-strcasestr to be more efficient.
58296         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58297         (Depends-on): Add c-strcase, remove malloca, strnlen.
58298         * tests/test-c-strcasestr.c (main): Enhance test.
58299         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58300
58301 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58302
58303         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58304         Use it in creating po/Makevars.
58305
58306 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58307
58308         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58309         Applications that requires it should initialize libgcrypt
58310         manually.
58311
58312 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58313
58314         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58315
58316 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58317
58318         Fix problem with getdate on mingw32 reported by Simon Josefsson
58319         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58320         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58321         tzname", when deciding whether to declare tzname.
58322         * lib/strftime.c (tzname): Likewise.
58323
58324 2008-01-15  Bruno Haible  <bruno@clisp.org>
58325
58326         Work around a MacOS X 10.5 bug in frexpl().
58327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58328         * doc/functions/frexpl.texi: Document the bug.
58329         Reported by Elias Pipping <pipping@gentoo.org>.
58330
58331 2008-01-14  Eric Blake  <ebb9@byu.net>
58332
58333         Touch up previous patch.
58334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58335         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58336
58337         Convert strcasestr module to use Two-Way algorithm.
58338         * modules/strcasestr-simple: New module, based on the old
58339         strcasestr, but with Two-Way rather than KMP.
58340         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58341         * lib/string.in.h (rpl_strcasestr): Declare.
58342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58343         performance.
58344         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58345         * modules/string (Makefile.am): Support strcasestr.
58346         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58347         * modules/strcasestr-tests (Depends-on): Check for alarm.
58348         * tests/test-strcasestr.c: Augment test.
58349         * lib/str-two-way.h: Clean up stray macro.
58350         * NEWS: Document new module.
58351         * MODULES.html.sh (string handling): Likewise.
58352         * doc/functions/strcasestr.texi: New file.
58353         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58354         here, since it is not a POSIX function.
58355
58356 2008-01-14  Colin Watson  <cjwatson@debian.org>
58357             Bruno Haible  <bruno@clisp.org>
58358
58359         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58360         works fine; if not, set REPLACE_STRSIGNAL.
58361         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58363         REPLACE_STRSIGNAL.
58364         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58365         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58366         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58367
58368 2008-01-14  Bruno Haible  <bruno@clisp.org>
58369
58370         * modules/strsignal (Include): Change to <string.h>.
58371
58372 2008-01-14  Colin Watson  <cjwatson@debian.org>
58373
58374         * modules/argp (Notice): Add a notice recommending to change
58375         XGETTEXT_OPTIONS.
58376         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58377
58378 2008-01-13  Colin Watson  <cjwatson@debian.org>
58379
58380         * modules/strsignal-tests: New file.
58381         * tests/test-strsignal.c: New file.
58382
58383         * lib/strsignal.c: New file, from glibc with modifications.
58384         * lib/siglist.h: New file, from glibc with modifications.
58385         * lib/string.in.h (strsignal): New declaration.
58386         * m4/strsignal.m4: New file.
58387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58388         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58389         * modules/strsignal: New file.
58390         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58391         HAVE_DECL_STRSIGNAL.
58392
58393 2008-01-13  Bruno Haible  <bruno@clisp.org>
58394
58395         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58396         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58397         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58398         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58399
58400 2008-01-13  Bruno Haible  <bruno@clisp.org>
58401
58402         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58403         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58404         * lib/argp.h (__attribute__): Likewise.
58405         * lib/c-stack.c (__attribute__): Likewise.
58406         * lib/error.h (__attribute__): Likewise.
58407         * lib/fts.c (__attribute__): Likewise.
58408         * lib/openat.h (__attribute__): Likewise.
58409         * lib/stdio.in.h (__attribute__): Likewise.
58410         * lib/string.in.h (__attribute__): Likewise.
58411         * lib/utimens.c (__attribute__): Likewise.
58412         * lib/vasnprintf.h (__attribute__): Likewise.
58413         * lib/xalloc.h (__attribute__): Likewise.
58414         * lib/xprintf.h (__attribute__): Likewise.
58415         * lib/xstrtol.h (__attribute__): Likewise.
58416         * lib/xvasprintf.h (__attribute__): Likewise.
58417
58418 2008-01-12  Bruno Haible  <bruno@clisp.org>
58419
58420         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58421         * doc/glibc-headers/a.out.texi: New file.
58422         * doc/glibc-headers/aliases.texi: New file.
58423         * doc/glibc-headers/alloca.texi: New file.
58424         * doc/glibc-headers/ar.texi: New file.
58425         * doc/glibc-headers/argp.texi: New file.
58426         * doc/glibc-headers/argz.texi: New file.
58427         * doc/glibc-headers/byteswap.texi: New file.
58428         * doc/glibc-headers/crypt.texi: New file.
58429         * doc/glibc-headers/endian.texi: New file.
58430         * doc/glibc-headers/envz.texi: New file.
58431         * doc/glibc-headers/err.texi: New file.
58432         * doc/glibc-headers/error.texi: New file.
58433         * doc/glibc-headers/execinfo.texi: New file.
58434         * doc/glibc-headers/fpu_control.texi: New file.
58435         * doc/glibc-headers/fstab.texi: New file.
58436         * doc/glibc-headers/fts.texi: New file.
58437         * doc/glibc-headers/getopt.texi: New file.
58438         * doc/glibc-headers/ieee754.texi: New file.
58439         * doc/glibc-headers/ifaddrs.texi: New file.
58440         * doc/glibc-headers/libintl.texi: New file.
58441         * doc/glibc-headers/mcheck.texi: New file.
58442         * doc/glibc-headers/mntent.texi: New file.
58443         * doc/glibc-headers/obstack.texi: New file.
58444         * doc/glibc-headers/paths.texi: New file.
58445         * doc/glibc-headers/printf.texi: New file.
58446         * doc/glibc-headers/pty.texi: New file.
58447         * doc/glibc-headers/resolv.texi: New file.
58448         * doc/glibc-headers/shadow.texi: New file.
58449         * doc/glibc-headers/sysexits.texi: New file.
58450         * doc/glibc-headers/ttyent.texi: New file.
58451
58452 2008-01-12  Jim Meyering  <meyering@redhat.com>
58453
58454         announce-gen: emit Gnulib's git-based version string.
58455         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58456         New option --gnulib-version=V, where V is expected to be
58457         the output of running git describe in the gnulib directory.
58458         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58459         not useful, and plan to stop publishing an xdelta file with each
58460         coreutils release.
58461
58462         * build-aux/announce-gen: Also check for lzma-compressed files.
58463
58464 2008-01-11  Bruno Haible  <bruno@clisp.org>
58465
58466         * tests/test-memmem.c (main): Increase maximum allowed time.
58467         * tests/test-strstr.c (main): Likewise.
58468
58469 2008-01-11  Bruno Haible  <bruno@clisp.org>
58470
58471         * doc/functions/memmem.texi: Add more precisions about platforms.
58472         * doc/functions/strstr.texi: Likewise.
58473
58474 2008-01-10  Eric Blake  <ebb9@byu.net>
58475
58476         * m4/strstr.m4: Delete cruft from copy-n-paste.
58477         Reported by Bruno Haible.
58478
58479 2008-01-10  Bruno Haible  <bruno@clisp.org>
58480
58481         Make c-strstr rely on strstr.
58482         * lib/c-strstr.c: Don't include str-kmp.h.
58483         (c_strstr): Define in terms of strstr.
58484         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58485         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58486
58487 2008-01-10  Bruno Haible  <bruno@clisp.org>
58488
58489         * doc/gnulib.texi (String Functions in C Locale): New section.
58490         * doc/c-ctype.texi: New file.
58491         * doc/c-strcase.texi: New file.
58492         * doc/c-strcaseeq.texi: New file.
58493         * doc/c-strcasestr.texi: New file.
58494         * doc/c-strstr.texi: New file.
58495         * doc/c-strtod.texi: New file.
58496         * doc/c-strtold.texi: New file.
58497
58498 2008-01-10  Eric Blake  <ebb9@byu.net>
58499
58500         * lib/relocatable.h: Fix a comment.
58501
58502 2008-01-10  Eric Blake  <ebb9@byu.net>
58503
58504         Share two-way algorithm.
58505         * lib/str-two-way.h: New file, merged from...
58506         * lib/memmem.c: ...here...
58507         * lib/strstr.c: ...and here.
58508         * modules/memmem (Files): Use it.
58509         * modules/strstr (Files): Likewise.
58510
58511         Avoid quadratic strstr implementations.
58512         * lib/strstr.c: New file.
58513         * m4/strstr.m4: Likewise.
58514         * modules/strstr: Likewise.
58515         * modules/strstr-tests: Likewise.
58516         * tests/test-strstr.c: Likewise.
58517         * lib/string.in.h (rpl_strstr): Declare.
58518         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58520         * modules/string (Makefile.am): Likewise.
58521         * MODULES.html.sh (string handling): Mention new module.
58522         * doc/functions/strstr.texi (strstr): Document the bug.
58523
58524 2008-01-10  Bruno Haible  <bruno@clisp.org>
58525
58526         * lib/relocatable.h (relocate): State whether result is freshly
58527         allocated or not.
58528         * lib/relocatable.c (relocate): Return a freshly allocated string
58529         instead of a pointer to a privately held string.
58530         Reported by Sylvain Beucler <beuc@gnu.org>.
58531
58532 2008-01-10  Colin Watson  <cjwatson@debian.org>
58533
58534         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58535         s/S_ISNLK/S_ISLNK/.
58536
58537 2008-01-09  Bruno Haible  <bruno@clisp.org>
58538
58539         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58540         and other files.
58541         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58542         if it's only a guess.
58543         * modules/memmem: Simplify by depending on memmem-simple.
58544
58545 2008-01-09  Bruno Haible  <bruno@clisp.org>
58546
58547         Work around OpenBSD 4.0 tdelete() bug.
58548         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58549         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58550         macros and don't redefine the enum values.
58551         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58552         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58553         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58554
58555 2008-01-09  Bruno Haible  <bruno@clisp.org>
58556
58557         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58558         (main): Don't perform the tests if setlocale did not install a UTF-8
58559         locale. Needed on OpenBSD 4.0.
58560         * modules/wcwidth-tests (Depends-on): Add localcharset.
58561
58562 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58563
58564         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58565         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58566         * NEWS: announce this.
58567         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58568
58569 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58570         and Eric Blake  <ebb9@byu.net>
58571
58572         Add memmem-simple module.
58573         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58574         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58575         * modules/memmem-simple: New file.
58576         * modules/memmem (Description): Tweak.
58577         * MODULES.html.sh (string handling): Mention new module.
58578         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58579         addressed by memmem-simple.
58580         * NEWS: Document the difference.
58581
58582 2008-01-09  Eric Blake  <ebb9@byu.net>
58583
58584         Give gcc some memmem optimization hints.
58585         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58586         (strcasestr): Declare as pure.
58587         * modules/memmem (Maintainer): Claim my implementation.
58588
58589 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58590
58591         Support AIX 6.1 and higher.
58592         * build-aux/config.libpath: Likewise.
58593         * build-aux/config.rpath: Likewise.
58594
58595 2008-01-08  Jim Meyering  <meyering@redhat.com>
58596             Bruno Haible  <bruno@clisp.org>
58597
58598         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58599         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58600         Reported by Peter Fales in
58601         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58602
58603 2008-01-08  Bruno Haible  <bruno@clisp.org>
58604
58605         * modules/unictype/category-of (Depends-on): Add
58606         unictype/category-none.
58607         * modules/unictype/category-and-tests (Depends-on): Add
58608         unictype/category-{L,N,Lu,Nd}.
58609         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58610         * modules/unictype/category-or-tests (Depends-on): Add
58611         unictype/category-{L,N}.
58612         * modules/unictype/category-name-tests (Depends-on): Add
58613         unictype/category-{Z,Nl}.
58614         Reported by Simon Josefsson.
58615
58616 2008-01-08  Bruno Haible  <bruno@clisp.org>
58617
58618         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58619         convention better.
58620         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58621         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58622         Reported by Peter Miller <millerp@canb.auug.org.au>.
58623
58624 2008-01-08  Eric Blake  <ebb9@byu.net>
58625
58626         Rewrite memmem to guarantee linear complexity without malloc.
58627         * lib/memmem.c (memmem): Use Two-Way rather than
58628         Knuth-Morris-Pratt, to allow O(1) space usage.
58629         (critical_factorization, two_way_short_needle)
58630         (two_way_long_needle): New functions.
58631         (knuth_morris_pratt): Delete.
58632         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58633         Add stdint.
58634         * tests/test-memmem.c (main): Add tests for periodic needle and
58635         sublinear performance.
58636         * doc/functions/memmem.texi (memmem): Document other deficiencies
58637         in cygwin and older glibc.
58638
58639 2008-01-08  Bruno Haible  <bruno@clisp.org>
58640
58641         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58642         augmentation.
58643
58644 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58645
58646         Add a configure time option: --disable-acl.
58647         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58648         AC_ARG_ENABLE(acl).
58649
58650 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58651
58652         * tests/test-localename.c: Don't include obsolete "setenv.h".
58653
58654         * modules/localename-tests (Depends-on): Need unsetenv.
58655
58656 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58657
58658         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58659
58660 2008-01-06  Colin Watson  <cjwatson@debian.org>
58661
58662         * users.txt: Add man-db.
58663
58664 2008-01-07  Bruno Haible  <bruno@clisp.org>
58665
58666         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58667         previous section name.
58668
58669 2008-01-07  Bruno Haible  <bruno@clisp.org>
58670
58671         * lib/progname.c (set_program_name): Don't strip off a leading
58672         "lt-" prefix outside a .libs directory.
58673         Suggested by Paul Eggert.
58674
58675 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58676             Bruno Haible  <bruno@clisp.org>
58677
58678         Improve memory cleanup in 'relocatable' module.
58679         * lib/relocatable.h (compute_curr_prefix): Change return type to
58680         'char *'.
58681         * lib/relocatable.c (compute_curr_prefix): Change return type to
58682         'char *'. Free curr_installdir after use.
58683         (relocate): Free curr_prefix_better after use.
58684         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58685
58686 2008-01-01  Bruno Haible  <bruno@clisp.org>
58687
58688         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58689         failure on older glibc systems.
58690         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58691
58692 2008-01-05  Eric Blake  <ebb9@byu.net>
58693
58694         Avoid quadratic system memmem.
58695         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58696         Reported by Ralf Wildenhues.
58697
58698         Fix memmem test for mingw.
58699         * modules/memmem-tests (configure.ac): Check for alarm.
58700         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58701         it.
58702         * doc/functions/memmem.texi: New file.
58703         * doc/gnulib.texi (Function Substitutes): Add memmem.
58704         Reported by Bruno Haible.
58705
58706 2008-01-04  Bruno Haible  <bruno@clisp.org>
58707
58708         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58709         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58710         gl_HEADER_STRING_H_DEFAULTS.
58711
58712 2008-01-04  Eric Blake  <ebb9@byu.net>
58713
58714         Shorten duration of memmem test.
58715         * tests/test-memmem.c (main): Use alarm to declare failure if test
58716         is taking too long.
58717         Reported by Ralf Wildenhues.
58718
58719 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58720
58721         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58722         string, needed by strerror.
58723
58724 2008-01-03  Colin Watson  <cjwatson@debian.org>
58725             Bruno Haible  <bruno@clisp.org>
58726
58727         * doc/gnulib-tool.texi (Localization): New section.
58728
58729 2008-01-02  Bruno Haible  <bruno@clisp.org>
58730
58731         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58732         variables to 'unsigned char *' type.
58733         Reported by Paul Eggert.
58734
58735 2008-01-02  Jim Meyering  <jim@meyering.net>
58736
58737         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58738
58739 2007-12-31  Jim Meyering  <jim@meyering.net>
58740
58741         Avoid use of private FTS type name.
58742         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58743
58744 2007-12-30  Karl Berry  <karl@gnu.org>
58745
58746         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58747         work around defect in Texinfo and/or the standalone Info browser.
58748
58749 2007-12-30  Bruno Haible  <bruno@clisp.org>
58750
58751         Unify 5 copies of the KMP code.
58752         * lib/str-kmp.h: New file.
58753         * lib/c-strcasestr.c: Include str-kmp.h.
58754         (knuth_morris_pratt): Remove function.
58755         (c_strcasestr): Update.
58756         * lib/c-strstr.c: Include str-kmp.h.
58757         (knuth_morris_pratt): Remove function.
58758         (c_strcasestr): Update.
58759         * lib/mbscasestr.c: Include str-kmp.h.
58760         (knuth_morris_pratt_unibyte): Remove function.
58761         * lib/mbsstr.c: Include str-kmp.h.
58762         (knuth_morris_pratt_unibyte): Remove function.
58763         * lib/strcasestr.c: Include str-kmp.h.
58764         (knuth_morris_pratt): Remove function.
58765         (strcasestr): Update.
58766         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58767         * modules/c-strstr (Files): Likewise.
58768         * modules/mbscasestr (Files): Likewise.
58769         * modules/mbsstr (Files): Likewise.
58770         * modules/strcasestr (Files): Likewise.
58771         Suggested by Paul Eggert.
58772
58773 2007-12-30  Bruno Haible  <bruno@clisp.org>
58774
58775         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58776         defined.
58777
58778 2007-12-30  Bruno Haible  <bruno@clisp.org>
58779
58780         * lib/xmalloca.h: Include xalloc.h.
58781         (xnmalloca): New macro.
58782
58783 2007-12-30  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/malloca.h (nmalloca): New macro.
58786         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58787         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58788         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58789         knuth_morris_pratt_multibyte): Likewise.
58790         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58791         knuth_morris_pratt_multibyte): Likewise.
58792         * lib/memmem.c (knuth_morris_pratt): Likewise.
58793         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58794
58795 2007-12-25  Bruno Haible  <bruno@clisp.org>
58796
58797         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58798         * lib/glob.c: Don't include openat.h.
58799         (link_exists2_p): Add back the code that deals with the
58800         !GLOB_ALTDIRFUNC case.
58801         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58802         let it do the filename concatenation.
58803         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58804         * modules/glob (Depends-on): Remove openat.
58805
58806 2007-12-31  Bruno Haible  <bruno@clisp.org>
58807
58808         * modules/dirfd (License): Change to LGPLv2+.
58809         Approved by Jim Meyering.
58810
58811 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58812
58813         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58814         when multiplying M by sizeof (size_t).
58815
58816 2007-12-10  Martin Lambers  <marlam@marlam.de>
58817
58818         Override getpagesize on mingw.
58819         * lib/getpagesize.c: New file.
58820         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58821         * modules/getpagesize (Files): Add lib/getpagesize.c.
58822         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58824         REPLACE_GETPAGESIZE.
58825         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58826
58827 2007-12-25  Bruno Haible  <bruno@clisp.org>
58828
58829         * modules/localcharset (Notice): New field.
58830         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58831         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58832
58833 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58834             Bruno Haible  <bruno@clisp.org>
58835
58836         Avoid using the syntax symbol() in formatted documentation.
58837         * MODULES.html.sh (func_module): When replacing symbol() with a
58838         hyperlink, remove the parentheses. Show an error if some remain.
58839         Recognize and render the '...' syntax.
58840         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58841         Rework. Add paragraph about GCC's inlining.
58842         * doc/alloca.texi: Likewise.
58843         * doc/error.texi: Remove parentheses from symbol reference.
58844         * doc/gnulib-intro.texi: Likewise.
58845         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58846         * modules/fnmatch (Description): Reword to say "the ... function".
58847         * modules/full-read (Description): Likewise.
58848         * modules/full-write (Description): Likewise.
58849         * modules/safe-read (Description): Likewise.
58850         * modules/safe-write (Description): Likewise.
58851         * modules/strchrnul (Description): Likewise.
58852         * modules/trim (Description): Likewise.
58853         * modules/error (Description): Remove parentheses from symbol
58854         references.
58855         * modules/verror (Description): Likewise.
58856         Reported by Karl Berry.
58857
58858 2007-12-25  Bruno Haible  <bruno@clisp.org>
58859
58860         Fixup after 2007-10-16 commit.
58861         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58862
58863 2007-12-24  Bruno Haible  <bruno@clisp.org>
58864
58865         Make --enable-relocatable work with DESTDIR.
58866         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58867         to compute installdir from destprog.
58868         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58869         also set the RELOC_DESTDIR variable.
58870         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58871
58872 2007-12-24  Bruno Haible  <bruno@clisp.org>
58873
58874         Fix link error due to xalloc_die().
58875         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58876         of xreadlink.
58877         * lib/relocwrapper.c: Update comments.
58878         * build-aux/install-reloc: Remove xreadlink.c from file list.
58879         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58880         xreadlink.c.
58881         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58882
58883 2007-12-24  Bruno Haible  <bruno@clisp.org>
58884
58885         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58886         * lib/setenv.h: Remove file.
58887         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58888         lib/setenv.h.
58889         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58890         (Depends-on): Add stdlib.
58891         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58892         gl_FUNC_UNSETENV.
58893         (Include): Replace setenv.h with <stdlib.h>.
58894         * modules/unsetenv: New file.
58895         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58896         * lib/unsetenv.c: Include <stdlib.h> first.
58897         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58898         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58899         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58900         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58901         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58902         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58904         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58905         * doc/functions/unsetenv.texi: Update.
58906         * modules/xsetenv (Depends-on): Add unsetenv.
58907         * modules/getdate (Depends-on): Likewise.
58908         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58909         * lib/xsetenv.c: Don't include setenv.h.
58910         * lib/getdate.y: Likewise.
58911         * lib/relocwrapper.c: Likewise.
58912         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58913         (Depends-on): Add stdlib.
58914         * NEWS: Mention the changes.
58915         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58916
58917 2007-12-23  Bruno Haible  <bruno@clisp.org>
58918
58919         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58920         indentation.
58921
58922 2007-12-23  Bruno Haible  <bruno@clisp.org>
58923
58924         * lib/c-strcasestr.c: Add more comments.
58925         * lib/c-strstr.c: Likewise.
58926         * lib/mbscasestr.c: Likewise.
58927         * lib/mbsstr.c: Likewise.
58928         * lib/strcasestr.c: Likewise.
58929         * lib/memmem.c: Likewise.
58930
58931 2007-12-23  Bruno Haible  <bruno@clisp.org>
58932
58933         * tests/test-memmem.c: Include <string.h> first.
58934
58935 2007-12-22  Bruno Haible  <bruno@clisp.org>
58936
58937         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58938         the contents of $testsbase.
58939         Reported by Ralf Wildenhues.
58940
58941 2007-12-22  Bruno Haible  <bruno@clisp.org>
58942
58943         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58944         two variables local_ldadd_before, local_ldadd_last.
58945
58946 2007-12-20  Eric Blake  <ebb9@byu.net>
58947
58948         Work around circular library issue when cross-compiling.
58949         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58950         that progname.o does not need to pull in rpl_memcmp.
58951
58952 2007-12-19  Eric Blake  <ebb9@byu.net>
58953
58954         Fix memmem to avoid O(n^2) worst-case complexity.
58955         * lib/memmem.c (knuth_morris_pratt): New function.
58956         (memmem): Use it if first few naive iterations fail.
58957         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58958         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58959         * modules/memchr (License): Likewise.
58960         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58961         malloca.
58962         * tests/test-memmem.c: Rewrite, borrowing ideas from
58963         test-mbsstr1.c; the old version wouldn't even compile!
58964         * modules/memmem-tests: New file.
58965         * lib/string.in.h (rpl_memmem): Add declaration.
58966         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58968         REPLACE_MEMMEM.
58969
58970 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58971
58972         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58973         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58974         before any system include files, and undef after them all.  This
58975         should fix a problem on VMS reported by John E. Malmberg in
58976         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58977
58978 2007-12-17  Eric Blake  <ebb9@byu.net>
58979
58980         Revert addition of verify, for BSD/OS.
58981         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58982         can't handle large files, for the sake of obsolete platforms.
58983         * modules/fseeko (Depends-on): Remove verify.
58984         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58985         * doc/functions/ftello.texi (ftello): Likewise.
58986         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58987         Reported by Larry Jones.
58988
58989 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58990
58991         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58992         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58993
58994 2007-12-17  Jim Meyering  <meyering@redhat.com>
58995
58996         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58997         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58998         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58999         * modules/getcwd (Depends-on): Add openat.
59000         Reported by Petr Salinger.
59001
59002 2007-12-17  Bruno Haible  <bruno@clisp.org>
59003
59004         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59005         avoid a segmentation fault of the configure test on x86_64 systems.
59006
59007 2007-12-15  Jim Meyering  <meyering@redhat.com>
59008
59009         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59010
59011 2007-12-13  Eric Blake  <ebb9@byu.net>
59012
59013         Another fseek test.
59014         * tests/test-fseek.c (main): Also test ungetc handling.
59015         * tests/test-fseeko.c (main): Likewise.
59016         * modules/fseeko (Depends-on): Add verify.
59017         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59018         large.
59019         Reported by Larry Jones.
59020
59021         Fix fseeko on mingw.
59022         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59023         seek.
59024
59025         Beef up fseek tests.
59026         * tests/test-fseek.c (main): Also test eof handling.
59027         * tests/test-fseeko.c (main): Likewise.
59028         Reported by Larry Jones.
59029
59030 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59031
59032         Fix fseeko on BSD-based platforms.
59033         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59034         successful seek.
59035
59036 2007-12-12  Eric Blake  <ebb9@byu.net>
59037
59038         Allow circular dependency of separate libtests.a
59039         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59040         when use_libtests.
59041
59042 2007-12-11  Eric Blake  <ebb9@byu.net>
59043
59044         Fix bug with -0.0L in previous patch.
59045         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59046         * tests/test-isnan.c (main): Also test on zeroes.
59047         * tests/test-isnanf.c (main): Likewise.
59048         * tests/test-isnanl.h (main): Likewise.
59049
59050         Detect pseudo-denormals on x86 even when cross-compiling.
59051         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59052         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59053         invalid bit patterns that happen to satisfy ==.
59054
59055         Avoid link failures with separate libtests.a.
59056         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59057         last, to satisfy circular dependencies.
59058
59059 2007-12-11  Eric Blake  <ebb9@byu.net>
59060         and Bruno Haible  <bruno@clisp.org>
59061
59062         Fix OpenBSD 4.0 <float.h> handling of long double.
59063         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59064         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59065         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59066
59067 2007-12-11  Jim Meyering  <meyering@redhat.com>
59068
59069         * users.txt: Add libvirt.
59070
59071         Support versions of autoconf prior to 2.59c.
59072         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59073         if it is not already defined.
59074
59075 2007-12-09  Bruno Haible  <bruno@clisp.org>
59076
59077         Let 'gnulib-tool --import' collect sources needed for the tests in
59078         tests/ rather than in lib/.
59079         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59080         argument. If true, add rules to generate libtests.a, and put libtests.a
59081         into $(LDADD). Consider source files in subdirectories and set
59082         uses_subdirs.
59083         (func_emit_initmacro_start, func_emit_initmacro_end,
59084         func_emit_initmacro_done): Pass all arguments explicitly.
59085         (func_import): Determine two module lists main_modules,
59086         testsrelated_modules. Determine use_libtests. Determine two variables
59087         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59088         instead of just sed_transform_lib_file. Determine two variables
59089         main_files and testsrelated_files. Compute 'files' as the union of
59090         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59091         func_add_or_update. In the generated gnulib-comp.m4, collect the
59092         object files for tests/ in different variables than those for lib/.
59093         Substitute LIBTESTS_LIBDEPS.
59094         (func_create_testdir): Combine the uses_subdirs results from
59095         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59096
59097 2007-12-09  Bruno Haible  <bruno@clisp.org>
59098
59099         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59100         the build-aux directory.
59101
59102 2007-12-09  Bruno Haible  <bruno@clisp.org>
59103
59104         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59105         introduced on 2006-09-09.
59106
59107 2007-12-07  Jim Meyering  <meyering@redhat.com>
59108
59109         Let these macros work also with autoconf-2.59.
59110         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59111         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59112         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59113
59114 2007-12-06  Jim Meyering  <meyering@redhat.com>
59115
59116         Avoid a configure-time syntax error in gl_FUNC_ACL.
59117         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59118         function in each branch, before testing the cache variable.
59119
59120 2007-12-04  Eric Blake  <ebb9@byu.net>
59121
59122         Make scripts executable.
59123         * build-aux/config.guess: Add execute permissions.
59124         * build-aux/config.sub: Likewise.
59125         * build-aux/gendocs.sh: Likewise.
59126
59127         Fix frexp on mingw.
59128         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59129         cross-compiling.
59130         * doc/functions/frexp.texi (frexp): Document the bug.
59131
59132         Make cygwin fseeko check more reliable.
59133         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59134         version numbers, rather than unrelated feature check.
59135         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59136         * doc/functions/ftello.texi (ftello): Likewise.
59137         Reported by Bruno Haible.
59138
59139         * m4/strerror.m4: Bump version number.
59140
59141 2007-12-03  Bruno Haible  <bruno@clisp.org>
59142
59143         * doc/functions/mprotect.texi: Mention the mingw problem.
59144
59145 2007-12-03  Eric Blake  <ebb9@byu.net>
59146
59147         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59148         REPLACE_STRERROR is initialized before this macro.
59149
59150 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59151
59152         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59153         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59154         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59155         put -lsec in even for programs other than 'ls'.  This fixes a problem
59156         for gettext reported by Bruno Haible in
59157         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59158         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59159         Add support for Solaris 10.  This isn't efficient, but should get the
59160         job done for now.
59161
59162 2007-12-03  James Youngman  <jay@gnu.org>
59163
59164         * doc/regexprops-generic.texi: change "an close-group" to "a
59165         close-group" and "illegal" to "not allowed".
59166
59167 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59168
59169         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59170         pr_byname.h. Needed for the rare case when the maintainer has done
59171         "make maintainer-clean" in the source directory and then attempts a
59172         build outside the source directory.
59173         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59174         scripts_byname.h.
59175
59176 2007-12-02  Martin Lambers <marlam@marlam.de>
59177             Bruno Haible  <bruno@clisp.org>
59178
59179         * lib/getpagesize.h: Remove file.
59180         * lib/unistd.in.h: Include declaration of getpagesize here.
59181         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59182         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59183         HAVE_SYS_PARAM_H.
59184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59185         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59186         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59187         (Depends-on): Add unistd.
59188         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59189         (Include): Use <unistd.h> instead of getpagesize.h.
59190         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59191         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59192         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59193         gl_GETPAGESIZE invocation, already handled by module dependency.
59194         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59195
59196 2007-12-02  Bruno Haible  <bruno@clisp.org>
59197
59198         * modules/strings-tests: New file.
59199         * tests/test-strings.c: New file.
59200
59201         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59202         * lib/strings.in.h: New file.
59203         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59204         * m4/strings_h.m4: New file.
59205         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59206         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59207         * modules/strings: New file.
59208         * modules/string (Makefile.am): Update.
59209         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59210         Reported by Karl Berry.
59211
59212 2007-12-01  Eric Blake  <ebb9@byu.net>
59213
59214         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59215         accomodate fix in cygwin 1.5.25.
59216
59217 2007-12-01  Jim Meyering  <meyering@redhat.com>
59218
59219         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59220         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59221         that would inhibit utf8-optimization of a regexp containing line-
59222         or buffer-anchors, e.g., `^', `$'.
59223
59224 2007-11-30  Bruno Haible  <bruno@clisp.org>
59225
59226         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59227         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59228         glthread_recursive_lock_init.
59229         * lib/lock.c (glthread_recursive_lock_init)
59230         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59231         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59232
59233 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59234
59235         New function qset_acl, like set_acl but with syscall semantics.
59236         * lib/acl.h (qset_acl): New decl.
59237         * lib/acl.c (qset_acl): New function.
59238         (set_acl): Use new function.  Use more-consistent diagnostics.
59239
59240 2007-11-28  Jim Meyering  <meyering@redhat.com>
59241
59242         * modules/physmem (License): Change from GPL to LGPLv2+.
59243
59244 2007-11-26  Bruno Haible  <bruno@clisp.org>
59245
59246         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59247         'long double' type has excess precision.
59248         Reported by Jim Meyering in
59249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59250
59251 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59252
59253         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59254         Sync from <http://gnu.org/licenses>.
59255         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59256         with license text from same location.
59257         * doc/maintain.texi, doc/standards.texi:  Sync from
59258         <http://savannah.gnu.org/projects/gnustandards>.
59259
59260 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59261         and Jim Meyering  <meyering@redhat.com>
59262
59263         Adjust getdate' grammar to accept a slightly more regular language.
59264         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59265         Before, the former was rejected.
59266         * lib/getdate.y (digits_to_date_time): New function, factored
59267         out of ...
59268         (number): ...here.  Just call digits_to_date_time.
59269         (hybrid): New non-terminal to handle an <unsigned number,
59270         signed relative offset> sequence consistently.
59271
59272 2007-11-18  Jim Meyering  <meyering@redhat.com>
59273
59274         Pull my changes from coreutils:
59275         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59276         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59277         use of $gnulib_tool_option_extras, so that it's separated from the
59278         preceding argument.
59279
59280         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59281         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59282         parent destination directories before copying a file into place.
59283
59284 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59285
59286         bootstrap: work also with 4-argument variant of AC_INIT
59287         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59288
59289 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59290
59291         Port test-getaddrinfo to Solaris.
59292         Problem reported by Bruno Haible in
59293         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59294         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59295         explanation of setting 'hints'.
59296         Don't reject an implementation merely because it returns EAI_SERVICE.
59297         (EAI_SERVICE): Define to 0 if not defined.
59298
59299 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59300
59301         The license of gnu-make and posix-shell is now "GPLed build tool".
59302         * modules/gnu-make (License): Likewise.
59303         * modules/posix-shell (License): Likewise.
59304
59305         New module posix-shell, for determining a POSIX shell
59306         or perhaps something that is close enough to a POSIX shell.
59307         * m4/posix-shell.m4: New file.
59308         * modules/posix-shell: New file.
59309
59310         * MODULES.html.sh: Mention new module.
59311
59312         New module gnu-make, for determining whether we're using GNU Make.
59313         * m4/gnu-make.m4: New file.
59314         * modules/gnu-make: New file.
59315         * MODULES.html.sh: Mention new module.
59316
59317 2007-11-14  Jim Meyering  <meyering@redhat.com>
59318
59319         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59320         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59321         use this macro to create a function _definition_.
59322         Remove useless "#undef ARGMATCH_DIE".
59323
59324 2007-11-14  Bruno Haible  <bruno@clisp.org>
59325
59326         * lib/config.charset: Update for OpenBSD 4.1.
59327         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59328
59329 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59330
59331         Document 64-bit #if problems in stdint.texi.
59332         * doc/headers/stdint.texi (stdint.h): Mention problems with
59333         64-bit-#if, and how to work around them.
59334
59335         Don't insist on 'long long int' support in the preprocessor.  It
59336         breaks too many things.  For example, PRIdMAX still uses a 'long
59337         long int' format with the latest Sun compiler, even though
59338         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59339         preprocessor problem.  This causes the latest coreutils to dump
59340         core on Solaris 10 sparc with the Sun C compiler.
59341         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59342         the troublesome expressions at configure-time, not at #if-time.
59343         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59344         preprocessor.
59345         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59346         compile-time C checks, done at 'configure'-time.
59347         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59348         * modules/inttypes (Makefile): Substitute the new symbols that
59349         gl_INTTYPES_H now generates.
59350         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59351
59352 2007-11-12  Bruno Haible  <bruno@clisp.org>
59353
59354         Tests for Unicode character classification functions.
59355
59356         * modules/unictype/bidicategory-byname-tests: New file.
59357         * modules/unictype/bidicategory-name-tests: New file.
59358         * modules/unictype/bidicategory-of-tests: New file.
59359         * modules/unictype/bidicategory-test-tests: New file.
59360         * modules/unictype/block-list-tests: New file.
59361         * modules/unictype/block-of-tests: New file.
59362         * modules/unictype/block-test-tests: New file.
59363         * modules/unictype/category-C-tests: New file.
59364         * modules/unictype/category-Cc-tests: New file.
59365         * modules/unictype/category-Cf-tests: New file.
59366         * modules/unictype/category-Cn-tests: New file.
59367         * modules/unictype/category-Co-tests: New file.
59368         * modules/unictype/category-Cs-tests: New file.
59369         * modules/unictype/category-L-tests: New file.
59370         * modules/unictype/category-Ll-tests: New file.
59371         * modules/unictype/category-Lm-tests: New file.
59372         * modules/unictype/category-Lo-tests: New file.
59373         * modules/unictype/category-Lt-tests: New file.
59374         * modules/unictype/category-Lu-tests: New file.
59375         * modules/unictype/category-M-tests: New file.
59376         * modules/unictype/category-Mc-tests: New file.
59377         * modules/unictype/category-Me-tests: New file.
59378         * modules/unictype/category-Mn-tests: New file.
59379         * modules/unictype/category-N-tests: New file.
59380         * modules/unictype/category-Nd-tests: New file.
59381         * modules/unictype/category-Nl-tests: New file.
59382         * modules/unictype/category-No-tests: New file.
59383         * modules/unictype/category-P-tests: New file.
59384         * modules/unictype/category-Pc-tests: New file.
59385         * modules/unictype/category-Pd-tests: New file.
59386         * modules/unictype/category-Pe-tests: New file.
59387         * modules/unictype/category-Pf-tests: New file.
59388         * modules/unictype/category-Pi-tests: New file.
59389         * modules/unictype/category-Po-tests: New file.
59390         * modules/unictype/category-Ps-tests: New file.
59391         * modules/unictype/category-S-tests: New file.
59392         * modules/unictype/category-Sc-tests: New file.
59393         * modules/unictype/category-Sk-tests: New file.
59394         * modules/unictype/category-Sm-tests: New file.
59395         * modules/unictype/category-So-tests: New file.
59396         * modules/unictype/category-Z-tests: New file.
59397         * modules/unictype/category-Zl-tests: New file.
59398         * modules/unictype/category-Zp-tests: New file.
59399         * modules/unictype/category-Zs-tests: New file.
59400         * modules/unictype/category-and-not-tests: New file.
59401         * modules/unictype/category-and-tests: New file.
59402         * modules/unictype/category-byname-tests: New file.
59403         * modules/unictype/category-name-tests: New file.
59404         * modules/unictype/category-none-tests: New file.
59405         * modules/unictype/category-of-tests: New file.
59406         * modules/unictype/category-or-tests: New file.
59407         * modules/unictype/category-test-withtable-tests: New file.
59408         * modules/unictype/combining-class-tests: New file.
59409         * modules/unictype/ctype-alnum-tests: New file.
59410         * modules/unictype/ctype-alpha-tests: New file.
59411         * modules/unictype/ctype-blank-tests: New file.
59412         * modules/unictype/ctype-cntrl-tests: New file.
59413         * modules/unictype/ctype-digit-tests: New file.
59414         * modules/unictype/ctype-graph-tests: New file.
59415         * modules/unictype/ctype-lower-tests: New file.
59416         * modules/unictype/ctype-print-tests: New file.
59417         * modules/unictype/ctype-punct-tests: New file.
59418         * modules/unictype/ctype-space-tests: New file.
59419         * modules/unictype/ctype-upper-tests: New file.
59420         * modules/unictype/ctype-xdigit-tests: New file.
59421         * modules/unictype/decimal-digit-tests: New file.
59422         * modules/unictype/digit-tests: New file.
59423         * modules/unictype/mirror-tests: New file.
59424         * modules/unictype/numeric-tests: New file.
59425         * modules/unictype/property-alphabetic-tests: New file.
59426         * modules/unictype/property-ascii-hex-digit-tests: New file.
59427         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59428         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59429         * modules/unictype/property-bidi-block-separator-tests: New file.
59430         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59431         * modules/unictype/property-bidi-common-separator-tests: New file.
59432         * modules/unictype/property-bidi-control-tests: New file.
59433         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59434         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59435         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59436         * modules/unictype/property-bidi-european-digit-tests: New file.
59437         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59438         * modules/unictype/property-bidi-left-to-right-tests: New file.
59439         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59440         * modules/unictype/property-bidi-other-neutral-tests: New file.
59441         * modules/unictype/property-bidi-pdf-tests: New file.
59442         * modules/unictype/property-bidi-segment-separator-tests: New file.
59443         * modules/unictype/property-bidi-whitespace-tests: New file.
59444         * modules/unictype/property-byname-tests: New file.
59445         * modules/unictype/property-combining-tests: New file.
59446         * modules/unictype/property-composite-tests: New file.
59447         * modules/unictype/property-currency-symbol-tests: New file.
59448         * modules/unictype/property-dash-tests: New file.
59449         * modules/unictype/property-decimal-digit-tests: New file.
59450         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59451         * modules/unictype/property-deprecated-tests: New file.
59452         * modules/unictype/property-diacritic-tests: New file.
59453         * modules/unictype/property-extender-tests: New file.
59454         * modules/unictype/property-format-control-tests: New file.
59455         * modules/unictype/property-grapheme-base-tests: New file.
59456         * modules/unictype/property-grapheme-extend-tests: New file.
59457         * modules/unictype/property-grapheme-link-tests: New file.
59458         * modules/unictype/property-hex-digit-tests: New file.
59459         * modules/unictype/property-hyphen-tests: New file.
59460         * modules/unictype/property-id-continue-tests: New file.
59461         * modules/unictype/property-id-start-tests: New file.
59462         * modules/unictype/property-ideographic-tests: New file.
59463         * modules/unictype/property-ids-binary-operator-tests: New file.
59464         * modules/unictype/property-ids-trinary-operator-tests: New file.
59465         * modules/unictype/property-ignorable-control-tests: New file.
59466         * modules/unictype/property-iso-control-tests: New file.
59467         * modules/unictype/property-join-control-tests: New file.
59468         * modules/unictype/property-left-of-pair-tests: New file.
59469         * modules/unictype/property-line-separator-tests: New file.
59470         * modules/unictype/property-logical-order-exception-tests: New file.
59471         * modules/unictype/property-lowercase-tests: New file.
59472         * modules/unictype/property-math-tests: New file.
59473         * modules/unictype/property-non-break-tests: New file.
59474         * modules/unictype/property-not-a-character-tests: New file.
59475         * modules/unictype/property-numeric-tests: New file.
59476         * modules/unictype/property-other-alphabetic-tests: New file.
59477         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59478         * modules/unictype/property-other-grapheme-extend-tests: New file.
59479         * modules/unictype/property-other-id-continue-tests: New file.
59480         * modules/unictype/property-other-id-start-tests: New file.
59481         * modules/unictype/property-other-lowercase-tests: New file.
59482         * modules/unictype/property-other-math-tests: New file.
59483         * modules/unictype/property-other-uppercase-tests: New file.
59484         * modules/unictype/property-paired-punctuation-tests: New file.
59485         * modules/unictype/property-paragraph-separator-tests: New file.
59486         * modules/unictype/property-pattern-syntax-tests: New file.
59487         * modules/unictype/property-pattern-white-space-tests: New file.
59488         * modules/unictype/property-private-use-tests: New file.
59489         * modules/unictype/property-punctuation-tests: New file.
59490         * modules/unictype/property-quotation-mark-tests: New file.
59491         * modules/unictype/property-radical-tests: New file.
59492         * modules/unictype/property-sentence-terminal-tests: New file.
59493         * modules/unictype/property-soft-dotted-tests: New file.
59494         * modules/unictype/property-space-tests: New file.
59495         * modules/unictype/property-terminal-punctuation-tests: New file.
59496         * modules/unictype/property-test-tests: New file.
59497         * modules/unictype/property-titlecase-tests: New file.
59498         * modules/unictype/property-unassigned-code-value-tests: New file.
59499         * modules/unictype/property-unified-ideograph-tests: New file.
59500         * modules/unictype/property-uppercase-tests: New file.
59501         * modules/unictype/property-variation-selector-tests: New file.
59502         * modules/unictype/property-white-space-tests: New file.
59503         * modules/unictype/property-xid-continue-tests: New file.
59504         * modules/unictype/property-xid-start-tests: New file.
59505         * modules/unictype/property-zero-width-tests: New file.
59506         * modules/unictype/scripts-tests: New file.
59507         * modules/unictype/syntax-c-ident-tests: New file.
59508         * modules/unictype/syntax-c-whitespace-tests: New file.
59509         * modules/unictype/syntax-java-ident-tests: New file.
59510         * modules/unictype/syntax-java-whitespace-tests: New file.
59511         * tests/unictype/test-bidi_byname.c: New file.
59512         * tests/unictype/test-bidi_name.c: New file.
59513         * tests/unictype/test-bidi_of.c: New file.
59514         * tests/unictype/test-bidi_test.c: New file.
59515         * tests/unictype/test-block_list.c: New file.
59516         * tests/unictype/test-block_of.c: New file.
59517         * tests/unictype/test-block_test.c: New file.
59518         * tests/unictype/test-categ_and.c: New file.
59519         * tests/unictype/test-categ_and_not.c: New file.
59520         * tests/unictype/test-categ_byname.c: New file.
59521         * tests/unictype/test-categ_name.c: New file.
59522         * tests/unictype/test-categ_none.c: New file.
59523         * tests/unictype/test-categ_of.c: New file.
59524         * tests/unictype/test-categ_or.c: New file.
59525         * tests/unictype/test-categ_test_withtable.c: New file.
59526         * tests/unictype/test-combining.c: New file.
59527         * tests/unictype/test-decdigit.c: New file.
59528         * tests/unictype/test-digit.c: New file.
59529         * tests/unictype/test-mirror.c: New file.
59530         * tests/unictype/test-numeric.c: New file.
59531         * tests/unictype/test-pr_byname.c: New file.
59532         * tests/unictype/test-pr_test.c: New file.
59533         * tests/unictype/test-predicate-part1.h: New file.
59534         * tests/unictype/test-predicate-part2.h: New file.
59535         * tests/unictype/test-scripts.c: New file.
59536         * tests/unictype/test-sy_c_ident.c: New file.
59537         * tests/unictype/test-sy_java_ident.c: New file.
59538
59539         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59540         for Unicode 5.0.0.
59541         * tests/unictype/test-categ_Cc.c: Likewise.
59542         * tests/unictype/test-categ_Cf.c: Likewise.
59543         * tests/unictype/test-categ_Cn.c: Likewise.
59544         * tests/unictype/test-categ_Co.c: Likewise.
59545         * tests/unictype/test-categ_Cs.c: Likewise.
59546         * tests/unictype/test-categ_L.c: Likewise.
59547         * tests/unictype/test-categ_Ll.c: Likewise.
59548         * tests/unictype/test-categ_Lm.c: Likewise.
59549         * tests/unictype/test-categ_Lo.c: Likewise.
59550         * tests/unictype/test-categ_Lt.c: Likewise.
59551         * tests/unictype/test-categ_Lu.c: Likewise.
59552         * tests/unictype/test-categ_M.c: Likewise.
59553         * tests/unictype/test-categ_Mc.c: Likewise.
59554         * tests/unictype/test-categ_Me.c: Likewise.
59555         * tests/unictype/test-categ_Mn.c: Likewise.
59556         * tests/unictype/test-categ_N.c: Likewise.
59557         * tests/unictype/test-categ_Nd.c: Likewise.
59558         * tests/unictype/test-categ_Nl.c: Likewise.
59559         * tests/unictype/test-categ_No.c: Likewise.
59560         * tests/unictype/test-categ_P.c: Likewise.
59561         * tests/unictype/test-categ_Pc.c: Likewise.
59562         * tests/unictype/test-categ_Pd.c: Likewise.
59563         * tests/unictype/test-categ_Pe.c: Likewise.
59564         * tests/unictype/test-categ_Pf.c: Likewise.
59565         * tests/unictype/test-categ_Pi.c: Likewise.
59566         * tests/unictype/test-categ_Po.c: Likewise.
59567         * tests/unictype/test-categ_Ps.c: Likewise.
59568         * tests/unictype/test-categ_S.c: Likewise.
59569         * tests/unictype/test-categ_Sc.c: Likewise.
59570         * tests/unictype/test-categ_Sk.c: Likewise.
59571         * tests/unictype/test-categ_Sm.c: Likewise.
59572         * tests/unictype/test-categ_So.c: Likewise.
59573         * tests/unictype/test-categ_Z.c: Likewise.
59574         * tests/unictype/test-categ_Zl.c: Likewise.
59575         * tests/unictype/test-categ_Zp.c: Likewise.
59576         * tests/unictype/test-categ_Zs.c: Likewise.
59577         * tests/unictype/test-ctype_alnum.c: Likewise.
59578         * tests/unictype/test-ctype_alpha.c: Likewise.
59579         * tests/unictype/test-ctype_blank.c: Likewise.
59580         * tests/unictype/test-ctype_cntrl.c: Likewise.
59581         * tests/unictype/test-ctype_digit.c: Likewise.
59582         * tests/unictype/test-ctype_graph.c: Likewise.
59583         * tests/unictype/test-ctype_lower.c: Likewise.
59584         * tests/unictype/test-ctype_print.c: Likewise.
59585         * tests/unictype/test-ctype_punct.c: Likewise.
59586         * tests/unictype/test-ctype_space.c: Likewise.
59587         * tests/unictype/test-ctype_upper.c: Likewise.
59588         * tests/unictype/test-ctype_xdigit.c: Likewise.
59589         * tests/unictype/test-decdigit.h: Likewise.
59590         * tests/unictype/test-digit.h: Likewise.
59591         * tests/unictype/test-numeric.h: Likewise.
59592         * tests/unictype/test-pr_alphabetic.c: Likewise.
59593         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59594         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59595         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59596         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59597         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59598         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59599         * tests/unictype/test-pr_bidi_control.c: Likewise.
59600         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59601         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59602         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59603         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59604         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59605         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59606         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59607         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59608         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59609         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59610         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59611         * tests/unictype/test-pr_combining.c: Likewise.
59612         * tests/unictype/test-pr_composite.c: Likewise.
59613         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59614         * tests/unictype/test-pr_dash.c: Likewise.
59615         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59616         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59617         * tests/unictype/test-pr_deprecated.c: Likewise.
59618         * tests/unictype/test-pr_diacritic.c: Likewise.
59619         * tests/unictype/test-pr_extender.c: Likewise.
59620         * tests/unictype/test-pr_format_control.c: Likewise.
59621         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59622         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59623         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59624         * tests/unictype/test-pr_hex_digit.c: Likewise.
59625         * tests/unictype/test-pr_hyphen.c: Likewise.
59626         * tests/unictype/test-pr_id_continue.c: Likewise.
59627         * tests/unictype/test-pr_id_start.c: Likewise.
59628         * tests/unictype/test-pr_ideographic.c: Likewise.
59629         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59630         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59631         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59632         * tests/unictype/test-pr_iso_control.c: Likewise.
59633         * tests/unictype/test-pr_join_control.c: Likewise.
59634         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59635         * tests/unictype/test-pr_line_separator.c: Likewise.
59636         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59637         * tests/unictype/test-pr_lowercase.c: Likewise.
59638         * tests/unictype/test-pr_math.c: Likewise.
59639         * tests/unictype/test-pr_non_break.c: Likewise.
59640         * tests/unictype/test-pr_not_a_character.c: Likewise.
59641         * tests/unictype/test-pr_numeric.c: Likewise.
59642         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59643         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59644         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59645         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59646         * tests/unictype/test-pr_other_id_start.c: Likewise.
59647         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59648         * tests/unictype/test-pr_other_math.c: Likewise.
59649         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59650         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59651         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59652         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59653         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59654         * tests/unictype/test-pr_private_use.c: Likewise.
59655         * tests/unictype/test-pr_punctuation.c: Likewise.
59656         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59657         * tests/unictype/test-pr_radical.c: Likewise.
59658         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59659         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59660         * tests/unictype/test-pr_space.c: Likewise.
59661         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59662         * tests/unictype/test-pr_titlecase.c: Likewise.
59663         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59664         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59665         * tests/unictype/test-pr_uppercase.c: Likewise.
59666         * tests/unictype/test-pr_variation_selector.c: Likewise.
59667         * tests/unictype/test-pr_white_space.c: Likewise.
59668         * tests/unictype/test-pr_xid_continue.c: Likewise.
59669         * tests/unictype/test-pr_xid_start.c: Likewise.
59670         * tests/unictype/test-pr_zero_width.c: Likewise.
59671         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59672         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59673
59674 2007-11-12  Bruno Haible  <bruno@clisp.org>
59675
59676         Unicode character classification functions.
59677         * lib/unictype.h: New file.
59678         * modules/unictype/base: New file.
59679         * modules/unictype/category-L: New file.
59680         * modules/unictype/category-Lu: New file.
59681         * modules/unictype/category-Ll: New file.
59682         * modules/unictype/category-Lt: New file.
59683         * modules/unictype/category-Lm: New file.
59684         * modules/unictype/category-Lo: New file.
59685         * modules/unictype/category-M: New file.
59686         * modules/unictype/category-Mn: New file.
59687         * modules/unictype/category-Mc: New file.
59688         * modules/unictype/category-Me: New file.
59689         * modules/unictype/category-N: New file.
59690         * modules/unictype/category-Nd: New file.
59691         * modules/unictype/category-Nl: New file.
59692         * modules/unictype/category-No: New file.
59693         * modules/unictype/category-P: New file.
59694         * modules/unictype/category-Pc: New file.
59695         * modules/unictype/category-Pd: New file.
59696         * modules/unictype/category-Ps: New file.
59697         * modules/unictype/category-Pe: New file.
59698         * modules/unictype/category-Pi: New file.
59699         * modules/unictype/category-Pf: New file.
59700         * modules/unictype/category-Po: New file.
59701         * modules/unictype/category-S: New file.
59702         * modules/unictype/category-Sm: New file.
59703         * modules/unictype/category-Sc: New file.
59704         * modules/unictype/category-Sk: New file.
59705         * modules/unictype/category-So: New file.
59706         * modules/unictype/category-Z: New file.
59707         * modules/unictype/category-Zs: New file.
59708         * modules/unictype/category-Zl: New file.
59709         * modules/unictype/category-Zp: New file.
59710         * modules/unictype/category-C: New file.
59711         * modules/unictype/category-Cc: New file.
59712         * modules/unictype/category-Cf: New file.
59713         * modules/unictype/category-Cs: New file.
59714         * modules/unictype/category-Co: New file.
59715         * modules/unictype/category-Cn: New file.
59716         * modules/unictype/category-or: New file.
59717         * modules/unictype/category-of: New file.
59718         * modules/unictype/category-test: New file.
59719         * modules/unictype/category-test-withtable: New file.
59720         * modules/unictype/category-byname: New file.
59721         * modules/unictype/category-none: New file.
59722         * modules/unictype/category-and: New file.
59723         * modules/unictype/category-and-not: New file.
59724         * modules/unictype/category-name: New file.
59725         * modules/unictype/combining-class: New file.
59726         * modules/unictype/category-all: New file.
59727         * modules/unictype/bidicategory-all: New file.
59728         * modules/unictype/bidicategory-byname: New file.
59729         * modules/unictype/bidicategory-name: New file.
59730         * modules/unictype/bidicategory-of: New file.
59731         * modules/unictype/bidicategory-test: New file.
59732         * modules/unictype/decimal-digit: New file.
59733         * modules/unictype/digit: New file.
59734         * modules/unictype/numeric: New file.
59735         * modules/unictype/mirror: New file.
59736         * modules/unictype/property-white-space: New file.
59737         * modules/unictype/property-alphabetic: New file.
59738         * modules/unictype/property-other-alphabetic: New file.
59739         * modules/unictype/property-not-a-character: New file.
59740         * modules/unictype/property-default-ignorable-code-point: New file.
59741         * modules/unictype/property-other-default-ignorable-code-point: New
59742         file.
59743         * modules/unictype/property-deprecated: New file.
59744         * modules/unictype/property-logical-order-exception: New file.
59745         * modules/unictype/property-variation-selector: New file.
59746         * modules/unictype/property-private-use: New file.
59747         * modules/unictype/property-unassigned-code-value: New file.
59748         * modules/unictype/property-uppercase: New file.
59749         * modules/unictype/property-other-uppercase: New file.
59750         * modules/unictype/property-lowercase: New file.
59751         * modules/unictype/property-other-lowercase: New file.
59752         * modules/unictype/property-titlecase: New file.
59753         * modules/unictype/property-soft-dotted: New file.
59754         * modules/unictype/property-id-start: New file.
59755         * modules/unictype/property-other-id-start: New file.
59756         * modules/unictype/property-id-continue: New file.
59757         * modules/unictype/property-other-id-continue: New file.
59758         * modules/unictype/property-xid-start: New file.
59759         * modules/unictype/property-xid-continue: New file.
59760         * modules/unictype/property-pattern-white-space: New file.
59761         * modules/unictype/property-pattern-syntax: New file.
59762         * modules/unictype/property-join-control: New file.
59763         * modules/unictype/property-grapheme-base: New file.
59764         * modules/unictype/property-grapheme-extend: New file.
59765         * modules/unictype/property-other-grapheme-extend: New file.
59766         * modules/unictype/property-grapheme-link: New file.
59767         * modules/unictype/property-bidi-control: New file.
59768         * modules/unictype/property-bidi-left-to-right: New file.
59769         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59770         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59771         * modules/unictype/property-bidi-european-digit: New file.
59772         * modules/unictype/property-bidi-eur-num-separator: New file.
59773         * modules/unictype/property-bidi-eur-num-terminator: New file.
59774         * modules/unictype/property-bidi-arabic-digit: New file.
59775         * modules/unictype/property-bidi-common-separator: New file.
59776         * modules/unictype/property-bidi-block-separator: New file.
59777         * modules/unictype/property-bidi-segment-separator: New file.
59778         * modules/unictype/property-bidi-whitespace: New file.
59779         * modules/unictype/property-bidi-non-spacing-mark: New file.
59780         * modules/unictype/property-bidi-boundary-neutral: New file.
59781         * modules/unictype/property-bidi-pdf: New file.
59782         * modules/unictype/property-bidi-embedding-or-override: New file.
59783         * modules/unictype/property-bidi-other-neutral: New file.
59784         * modules/unictype/property-hex-digit: New file.
59785         * modules/unictype/property-ascii-hex-digit: New file.
59786         * modules/unictype/property-ideographic: New file.
59787         * modules/unictype/property-unified-ideograph: New file.
59788         * modules/unictype/property-radical: New file.
59789         * modules/unictype/property-ids-binary-operator: New file.
59790         * modules/unictype/property-ids-trinary-operator: New file.
59791         * modules/unictype/property-zero-width: New file.
59792         * modules/unictype/property-space: New file.
59793         * modules/unictype/property-non-break: New file.
59794         * modules/unictype/property-iso-control: New file.
59795         * modules/unictype/property-format-control: New file.
59796         * modules/unictype/property-dash: New file.
59797         * modules/unictype/property-hyphen: New file.
59798         * modules/unictype/property-punctuation: New file.
59799         * modules/unictype/property-line-separator: New file.
59800         * modules/unictype/property-paragraph-separator: New file.
59801         * modules/unictype/property-quotation-mark: New file.
59802         * modules/unictype/property-sentence-terminal: New file.
59803         * modules/unictype/property-terminal-punctuation: New file.
59804         * modules/unictype/property-currency-symbol: New file.
59805         * modules/unictype/property-math: New file.
59806         * modules/unictype/property-other-math: New file.
59807         * modules/unictype/property-paired-punctuation: New file.
59808         * modules/unictype/property-left-of-pair: New file.
59809         * modules/unictype/property-combining: New file.
59810         * modules/unictype/property-composite: New file.
59811         * modules/unictype/property-decimal-digit: New file.
59812         * modules/unictype/property-numeric: New file.
59813         * modules/unictype/property-diacritic: New file.
59814         * modules/unictype/property-extender: New file.
59815         * modules/unictype/property-ignorable-control: New file.
59816         * modules/unictype/property-test: New file.
59817         * modules/unictype/property-byname: New file.
59818         * modules/unictype/property-all: New file.
59819         * modules/unictype/scripts: New file.
59820         * modules/unictype/scripts-all: New file.
59821         * modules/unictype/block-of: New file.
59822         * modules/unictype/block-test: New file.
59823         * modules/unictype/block-list: New file.
59824         * modules/unictype/block-all: New file.
59825         * modules/unictype/syntax-c-whitespace: New file.
59826         * modules/unictype/syntax-java-whitespace: New file.
59827         * modules/unictype/syntax-c-ident: New file.
59828         * modules/unictype/syntax-java-ident: New file.
59829         * modules/unictype/ctype-alnum: New file.
59830         * modules/unictype/ctype-alpha: New file.
59831         * modules/unictype/ctype-cntrl: New file.
59832         * modules/unictype/ctype-digit: New file.
59833         * modules/unictype/ctype-graph: New file.
59834         * modules/unictype/ctype-lower: New file.
59835         * modules/unictype/ctype-print: New file.
59836         * modules/unictype/ctype-punct: New file.
59837         * modules/unictype/ctype-space: New file.
59838         * modules/unictype/ctype-upper: New file.
59839         * modules/unictype/ctype-xdigit: New file.
59840         * modules/unictype/ctype-blank: New file.
59841         * lib/unictype/bidi_byname.c: New file.
59842         * lib/unictype/bidi_name.c: New file.
59843         * lib/unictype/bidi_of.c: New file.
59844         * lib/unictype/bidi_test.c: New file.
59845         * lib/unictype/bitmap.h: New file.
59846         * lib/unictype/block_test.c: New file.
59847         * lib/unictype/blocks.c: New file.
59848         * lib/unictype/categ_C.c: New file.
59849         * lib/unictype/categ_Cc.c: New file.
59850         * lib/unictype/categ_Cf.c: New file.
59851         * lib/unictype/categ_Cn.c: New file.
59852         * lib/unictype/categ_Co.c: New file.
59853         * lib/unictype/categ_Cs.c: New file.
59854         * lib/unictype/categ_L.c: New file.
59855         * lib/unictype/categ_Ll.c: New file.
59856         * lib/unictype/categ_Lm.c: New file.
59857         * lib/unictype/categ_Lo.c: New file.
59858         * lib/unictype/categ_Lt.c: New file.
59859         * lib/unictype/categ_Lu.c: New file.
59860         * lib/unictype/categ_M.c: New file.
59861         * lib/unictype/categ_Mc.c: New file.
59862         * lib/unictype/categ_Me.c: New file.
59863         * lib/unictype/categ_Mn.c: New file.
59864         * lib/unictype/categ_N.c: New file.
59865         * lib/unictype/categ_Nd.c: New file.
59866         * lib/unictype/categ_Nl.c: New file.
59867         * lib/unictype/categ_No.c: New file.
59868         * lib/unictype/categ_P.c: New file.
59869         * lib/unictype/categ_Pc.c: New file.
59870         * lib/unictype/categ_Pd.c: New file.
59871         * lib/unictype/categ_Pe.c: New file.
59872         * lib/unictype/categ_Pf.c: New file.
59873         * lib/unictype/categ_Pi.c: New file.
59874         * lib/unictype/categ_Po.c: New file.
59875         * lib/unictype/categ_Ps.c: New file.
59876         * lib/unictype/categ_S.c: New file.
59877         * lib/unictype/categ_Sc.c: New file.
59878         * lib/unictype/categ_Sk.c: New file.
59879         * lib/unictype/categ_Sm.c: New file.
59880         * lib/unictype/categ_So.c: New file.
59881         * lib/unictype/categ_Z.c: New file.
59882         * lib/unictype/categ_Zl.c: New file.
59883         * lib/unictype/categ_Zp.c: New file.
59884         * lib/unictype/categ_Zs.c: New file.
59885         * lib/unictype/categ_and.c: New file.
59886         * lib/unictype/categ_and_not.c: New file.
59887         * lib/unictype/categ_byname.c: New file.
59888         * lib/unictype/categ_name.c: New file.
59889         * lib/unictype/categ_none.c: New file.
59890         * lib/unictype/categ_of.c: New file.
59891         * lib/unictype/categ_or.c: New file.
59892         * lib/unictype/categ_test.c: New file.
59893         * lib/unictype/combining.c: New file.
59894         * lib/unictype/ctype_alnum.c: New file.
59895         * lib/unictype/ctype_alpha.c: New file.
59896         * lib/unictype/ctype_blank.c: New file.
59897         * lib/unictype/ctype_cntrl.c: New file.
59898         * lib/unictype/ctype_digit.c: New file.
59899         * lib/unictype/ctype_graph.c: New file.
59900         * lib/unictype/ctype_lower.c: New file.
59901         * lib/unictype/ctype_print.c: New file.
59902         * lib/unictype/ctype_punct.c: New file.
59903         * lib/unictype/ctype_space.c: New file.
59904         * lib/unictype/ctype_upper.c: New file.
59905         * lib/unictype/ctype_xdigit.c: New file.
59906         * lib/unictype/decdigit.c: New file.
59907         * lib/unictype/digit.c: New file.
59908         * lib/unictype/identsyntaxmap.h: New file.
59909         * lib/unictype/mirror.c: New file.
59910         * lib/unictype/numeric.c: New file.
59911         * lib/unictype/pr_alphabetic.c: New file.
59912         * lib/unictype/pr_ascii_hex_digit.c: New file.
59913         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59914         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59915         * lib/unictype/pr_bidi_block_separator.c: New file.
59916         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59917         * lib/unictype/pr_bidi_common_separator.c: New file.
59918         * lib/unictype/pr_bidi_control.c: New file.
59919         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59920         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59921         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59922         * lib/unictype/pr_bidi_european_digit.c: New file.
59923         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59924         * lib/unictype/pr_bidi_left_to_right.c: New file.
59925         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59926         * lib/unictype/pr_bidi_other_neutral.c: New file.
59927         * lib/unictype/pr_bidi_pdf.c: New file.
59928         * lib/unictype/pr_bidi_segment_separator.c: New file.
59929         * lib/unictype/pr_bidi_whitespace.c: New file.
59930         * lib/unictype/pr_byname.c: New file.
59931         * lib/unictype/pr_byname.gperf: New file.
59932         * lib/unictype/pr_combining.c: New file.
59933         * lib/unictype/pr_composite.c: New file.
59934         * lib/unictype/pr_currency_symbol.c: New file.
59935         * lib/unictype/pr_dash.c: New file.
59936         * lib/unictype/pr_decimal_digit.c: New file.
59937         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59938         * lib/unictype/pr_deprecated.c: New file.
59939         * lib/unictype/pr_diacritic.c: New file.
59940         * lib/unictype/pr_extender.c: New file.
59941         * lib/unictype/pr_format_control.c: New file.
59942         * lib/unictype/pr_grapheme_base.c: New file.
59943         * lib/unictype/pr_grapheme_extend.c: New file.
59944         * lib/unictype/pr_grapheme_link.c: New file.
59945         * lib/unictype/pr_hex_digit.c: New file.
59946         * lib/unictype/pr_hyphen.c: New file.
59947         * lib/unictype/pr_id_continue.c: New file.
59948         * lib/unictype/pr_id_start.c: New file.
59949         * lib/unictype/pr_ideographic.c: New file.
59950         * lib/unictype/pr_ids_binary_operator.c: New file.
59951         * lib/unictype/pr_ids_trinary_operator.c: New file.
59952         * lib/unictype/pr_ignorable_control.c: New file.
59953         * lib/unictype/pr_iso_control.c: New file.
59954         * lib/unictype/pr_join_control.c: New file.
59955         * lib/unictype/pr_left_of_pair.c: New file.
59956         * lib/unictype/pr_line_separator.c: New file.
59957         * lib/unictype/pr_logical_order_exception.c: New file.
59958         * lib/unictype/pr_lowercase.c: New file.
59959         * lib/unictype/pr_math.c: New file.
59960         * lib/unictype/pr_non_break.c: New file.
59961         * lib/unictype/pr_not_a_character.c: New file.
59962         * lib/unictype/pr_numeric.c: New file.
59963         * lib/unictype/pr_other_alphabetic.c: New file.
59964         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59965         * lib/unictype/pr_other_grapheme_extend.c: New file.
59966         * lib/unictype/pr_other_id_continue.c: New file.
59967         * lib/unictype/pr_other_id_start.c: New file.
59968         * lib/unictype/pr_other_lowercase.c: New file.
59969         * lib/unictype/pr_other_math.c: New file.
59970         * lib/unictype/pr_other_uppercase.c: New file.
59971         * lib/unictype/pr_paired_punctuation.c: New file.
59972         * lib/unictype/pr_paragraph_separator.c: New file.
59973         * lib/unictype/pr_pattern_syntax.c: New file.
59974         * lib/unictype/pr_pattern_white_space.c: New file.
59975         * lib/unictype/pr_private_use.c: New file.
59976         * lib/unictype/pr_punctuation.c: New file.
59977         * lib/unictype/pr_quotation_mark.c: New file.
59978         * lib/unictype/pr_radical.c: New file.
59979         * lib/unictype/pr_sentence_terminal.c: New file.
59980         * lib/unictype/pr_soft_dotted.c: New file.
59981         * lib/unictype/pr_space.c: New file.
59982         * lib/unictype/pr_terminal_punctuation.c: New file.
59983         * lib/unictype/pr_test.c: New file.
59984         * lib/unictype/pr_titlecase.c: New file.
59985         * lib/unictype/pr_unassigned_code_value.c: New file.
59986         * lib/unictype/pr_unified_ideograph.c: New file.
59987         * lib/unictype/pr_uppercase.c: New file.
59988         * lib/unictype/pr_variation_selector.c: New file.
59989         * lib/unictype/pr_white_space.c: New file.
59990         * lib/unictype/pr_xid_continue.c: New file.
59991         * lib/unictype/pr_xid_start.c: New file.
59992         * lib/unictype/pr_zero_width.c: New file.
59993         * lib/unictype/scripts.c: New file.
59994         * lib/unictype/sy_c_ident.c: New file.
59995         * lib/unictype/sy_c_whitespace.c: New file.
59996         * lib/unictype/sy_java_ident.c: New file.
59997         * lib/unictype/sy_java_whitespace.c: New file.
59998
59999         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60000         Unicode 5.0.0.
60001         * lib/unictype/blocks.h: Likewise.
60002         * lib/unictype/categ_C.h: Likewise.
60003         * lib/unictype/categ_Cc.h: Likewise.
60004         * lib/unictype/categ_Cf.h: Likewise.
60005         * lib/unictype/categ_Cn.h: Likewise.
60006         * lib/unictype/categ_Co.h: Likewise.
60007         * lib/unictype/categ_Cs.h: Likewise.
60008         * lib/unictype/categ_L.h: Likewise.
60009         * lib/unictype/categ_Ll.h: Likewise.
60010         * lib/unictype/categ_Lm.h: Likewise.
60011         * lib/unictype/categ_Lo.h: Likewise.
60012         * lib/unictype/categ_Lt.h: Likewise.
60013         * lib/unictype/categ_Lu.h: Likewise.
60014         * lib/unictype/categ_M.h: Likewise.
60015         * lib/unictype/categ_Mc.h: Likewise.
60016         * lib/unictype/categ_Me.h: Likewise.
60017         * lib/unictype/categ_Mn.h: Likewise.
60018         * lib/unictype/categ_N.h: Likewise.
60019         * lib/unictype/categ_Nd.h: Likewise.
60020         * lib/unictype/categ_Nl.h: Likewise.
60021         * lib/unictype/categ_No.h: Likewise.
60022         * lib/unictype/categ_P.h: Likewise.
60023         * lib/unictype/categ_Pc.h: Likewise.
60024         * lib/unictype/categ_Pd.h: Likewise.
60025         * lib/unictype/categ_Pe.h: Likewise.
60026         * lib/unictype/categ_Pf.h: Likewise.
60027         * lib/unictype/categ_Pi.h: Likewise.
60028         * lib/unictype/categ_Po.h: Likewise.
60029         * lib/unictype/categ_Ps.h: Likewise.
60030         * lib/unictype/categ_S.h: Likewise.
60031         * lib/unictype/categ_Sc.h: Likewise.
60032         * lib/unictype/categ_Sk.h: Likewise.
60033         * lib/unictype/categ_Sm.h: Likewise.
60034         * lib/unictype/categ_So.h: Likewise.
60035         * lib/unictype/categ_Z.h: Likewise.
60036         * lib/unictype/categ_Zl.h: Likewise.
60037         * lib/unictype/categ_Zp.h: Likewise.
60038         * lib/unictype/categ_Zs.h: Likewise.
60039         * lib/unictype/categ_of.h: Likewise.
60040         * lib/unictype/combining.h: Likewise.
60041         * lib/unictype/ctype_alnum.h: Likewise.
60042         * lib/unictype/ctype_alpha.h: Likewise.
60043         * lib/unictype/ctype_blank.h: Likewise.
60044         * lib/unictype/ctype_cntrl.h: Likewise.
60045         * lib/unictype/ctype_digit.h: Likewise.
60046         * lib/unictype/ctype_graph.h: Likewise.
60047         * lib/unictype/ctype_lower.h: Likewise.
60048         * lib/unictype/ctype_print.h: Likewise.
60049         * lib/unictype/ctype_punct.h: Likewise.
60050         * lib/unictype/ctype_space.h: Likewise.
60051         * lib/unictype/ctype_upper.h: Likewise.
60052         * lib/unictype/ctype_xdigit.h: Likewise.
60053         * lib/unictype/decdigit.h: Likewise.
60054         * lib/unictype/digit.h: Likewise.
60055         * lib/unictype/mirror.h: Likewise.
60056         * lib/unictype/numeric.h: Likewise.
60057         * lib/unictype/pr_alphabetic.h: Likewise.
60058         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60059         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60060         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60061         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60062         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60063         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60064         * lib/unictype/pr_bidi_control.h: Likewise.
60065         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60066         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60067         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60068         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60069         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60070         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60071         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60072         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60073         * lib/unictype/pr_bidi_pdf.h: Likewise.
60074         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60075         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60076         * lib/unictype/pr_combining.h: Likewise.
60077         * lib/unictype/pr_composite.h: Likewise.
60078         * lib/unictype/pr_currency_symbol.h: Likewise.
60079         * lib/unictype/pr_dash.h: Likewise.
60080         * lib/unictype/pr_decimal_digit.h: Likewise.
60081         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60082         * lib/unictype/pr_deprecated.h: Likewise.
60083         * lib/unictype/pr_diacritic.h: Likewise.
60084         * lib/unictype/pr_extender.h: Likewise.
60085         * lib/unictype/pr_format_control.h: Likewise.
60086         * lib/unictype/pr_grapheme_base.h: Likewise.
60087         * lib/unictype/pr_grapheme_extend.h: Likewise.
60088         * lib/unictype/pr_grapheme_link.h: Likewise.
60089         * lib/unictype/pr_hex_digit.h: Likewise.
60090         * lib/unictype/pr_hyphen.h: Likewise.
60091         * lib/unictype/pr_id_continue.h: Likewise.
60092         * lib/unictype/pr_id_start.h: Likewise.
60093         * lib/unictype/pr_ideographic.h: Likewise.
60094         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60095         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60096         * lib/unictype/pr_ignorable_control.h: Likewise.
60097         * lib/unictype/pr_iso_control.h: Likewise.
60098         * lib/unictype/pr_join_control.h: Likewise.
60099         * lib/unictype/pr_left_of_pair.h: Likewise.
60100         * lib/unictype/pr_line_separator.h: Likewise.
60101         * lib/unictype/pr_logical_order_exception.h: Likewise.
60102         * lib/unictype/pr_lowercase.h: Likewise.
60103         * lib/unictype/pr_math.h: Likewise.
60104         * lib/unictype/pr_non_break.h: Likewise.
60105         * lib/unictype/pr_not_a_character.h: Likewise.
60106         * lib/unictype/pr_numeric.h: Likewise.
60107         * lib/unictype/pr_other_alphabetic.h: Likewise.
60108         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60109         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60110         * lib/unictype/pr_other_id_continue.h: Likewise.
60111         * lib/unictype/pr_other_id_start.h: Likewise.
60112         * lib/unictype/pr_other_lowercase.h: Likewise.
60113         * lib/unictype/pr_other_math.h: Likewise.
60114         * lib/unictype/pr_other_uppercase.h: Likewise.
60115         * lib/unictype/pr_paired_punctuation.h: Likewise.
60116         * lib/unictype/pr_paragraph_separator.h: Likewise.
60117         * lib/unictype/pr_pattern_syntax.h: Likewise.
60118         * lib/unictype/pr_pattern_white_space.h: Likewise.
60119         * lib/unictype/pr_private_use.h: Likewise.
60120         * lib/unictype/pr_punctuation.h: Likewise.
60121         * lib/unictype/pr_quotation_mark.h: Likewise.
60122         * lib/unictype/pr_radical.h: Likewise.
60123         * lib/unictype/pr_sentence_terminal.h: Likewise.
60124         * lib/unictype/pr_soft_dotted.h: Likewise.
60125         * lib/unictype/pr_space.h: Likewise.
60126         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60127         * lib/unictype/pr_titlecase.h: Likewise.
60128         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60129         * lib/unictype/pr_unified_ideograph.h: Likewise.
60130         * lib/unictype/pr_uppercase.h: Likewise.
60131         * lib/unictype/pr_variation_selector.h: Likewise.
60132         * lib/unictype/pr_white_space.h: Likewise.
60133         * lib/unictype/pr_xid_continue.h: Likewise.
60134         * lib/unictype/pr_xid_start.h: Likewise.
60135         * lib/unictype/pr_zero_width.h: Likewise.
60136         * lib/unictype/scripts.h: Likewise.
60137         * lib/unictype/scripts_byname.gperf: Likewise.
60138         * lib/unictype/sy_c_ident.h: Likewise.
60139         * lib/unictype/sy_c_whitespace.h: Likewise.
60140         * lib/unictype/sy_java_ident.h: Likewise.
60141         * lib/unictype/sy_java_whitespace.h: Likewise.
60142
60143         * lib/unictype/Makefile: New file.
60144         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60145         glibc.
60146         * lib/unictype/3level.h: New file, copied from glibc.
60147         * lib/unictype/3levelbit.h: New file.
60148
60149 2007-11-11  Bruno Haible  <bruno@clisp.org>
60150
60151         * modules/gperf: New file.
60152         * modules/iconv_open (Depends-on): Add it.
60153         (Makefile.am): Remove the GPERF definition.
60154
60155 2007-11-11  Bruno Haible  <bruno@clisp.org>
60156
60157         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60158         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60159
60160 2007-11-11  Bruno Haible  <bruno@clisp.org>
60161
60162         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60163         (usage): Remove function.
60164
60165 2007-11-11  Bruno Haible  <bruno@clisp.org>
60166
60167         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60168         gl_FUNC_CEILF_LIBS.
60169         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60170         gl_FUNC_CEIL_LIBS.
60171         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60172         gl_FUNC_CEILL_LIBS.
60173         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60174         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60175         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60176
60177 2007-11-11  Bruno Haible  <bruno@clisp.org>
60178
60179         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60180         roundf were declared but do not exist on functions.
60181         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60182         roundl were declared but do not exist on functions.
60183         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60184         HAVE_FLOORL_AND_CEILL, respectively.
60185         Needed for Sun C on Solaris 10.
60186
60187 2007-11-11  Bruno Haible  <bruno@clisp.org>
60188
60189         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60190         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60191         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60192         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60193         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60194         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60195         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60196         HAVE_DECL_ROUNDF.
60197         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60198         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60200         of HAVE_DECL_ROUND*.
60201         * modules/math (Makefile.am): Update.
60202
60203 2007-11-10  Bruno Haible  <bruno@clisp.org>
60204
60205         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60206         ptrdiff_t as m4/intl.m4.
60207
60208 2007-11-10  Jim Meyering  <meyering@redhat.com>
60209
60210         Avoid link failure for the argmatch test.
60211         * tests/test-argmatch.c (usage): Define function to avoid a link
60212         failure: argmatch_die requires a usage function.
60213
60214 2007-11-09  Bruno Haible  <bruno@clisp.org>
60215
60216         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60217         * doc/functions/vsnprintf.texi: Likewise.
60218         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60219         with a size argument < 2.
60220
60221 2007-11-09  Bruno Haible  <bruno@clisp.org>
60222
60223         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60224         buffer. Fixes an inefficiency introduced on 2007-11-03.
60225
60226 2007-11-09  Bruno Haible  <bruno@clisp.org>
60227
60228         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60229         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60230
60231 2007-11-08  Jim Meyering  <meyering@redhat.com>
60232
60233         Change cache variable name prefix "jm_" to "gl_" everywhere.
60234         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60235         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60236         * m4/uptime.m4: s/gl_/jm_/
60237
60238 2007-11-07  Bruno Haible  <bruno@clisp.org>
60239
60240         Update to GNU gettext 0.17.
60241         * m4/intl.m4: Update to GNU gettext 0.17.
60242         * m4/po.m4: Likewise.
60243         * modules/gettext (Files): Remove m4/ulonglong.m4.
60244         (configure.ac): Require gettext infrastructure from version 0.17.
60245
60246 2007-11-06  Bruno Haible  <bruno@clisp.org>
60247
60248         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60249         symbolic values are not defined in a public header.
60250         * lib/freadable.c (freadable) [QNX]: Likewise.
60251         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60252         * lib/freading.c (freading) [QNX]: Likewise.
60253         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60254         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60255         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60256         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60257         Reported by Alain Magloire.
60258
60259         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60260
60261 2007-11-05  Bruno Haible  <bruno@clisp.org>
60262
60263         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60264         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60265         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60266         Reported by Eric Blake.
60267
60268 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60269             Bruno Haible  <bruno@clisp.org>
60270
60271         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60272         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60273         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60274         (malloc): Undefine also before including <stdlib.h>.
60275         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60276         Needed on OSF/1 4.0.
60277
60278 2007-11-05  Jim Meyering  <meyering@redhat.com>
60279
60280         git-version-gen: sync from coreutils.
60281         * build-aux/git-version-gen: Add comments.
60282         Change the first '-' to '.' in the snapshot version string,
60283         e.g., 6.9-377-08144 -> 6.9.377-08144
60284         Remove first parameter.
60285         Don't declare a version "-dirty" merely because a time
60286         stamp has changed.
60287
60288 2007-11-04  Bruno Haible  <bruno@clisp.org>
60289
60290         * lib/lock.h: Protect all macro definitions containing an 'if'
60291         statement through a "do { ... } while (0)".
60292         * lib/tls.h: Likewise.
60293
60294 2007-11-04  Bruno Haible  <bruno@clisp.org>
60295
60296         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60297
60298 2007-11-04  Bruno Haible  <bruno@clisp.org>
60299
60300         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60301         * modules/fprintf-posix (Depends-on): Add nocrash.
60302         * modules/snprintf-posix (Depends-on): Likewise.
60303         * modules/sprintf-posix (Depends-on): Likewise.
60304         * modules/vasnprintf-posix (Depends-on): Likewise.
60305         * modules/vasprintf-posix (Depends-on): Likewise.
60306         * modules/vfprintf-posix (Depends-on): Likewise.
60307         * modules/vsnprintf-posix (Depends-on): Likewise.
60308         * modules/vsprintf-posix (Depends-on): Likewise.
60309         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60310         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60311         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60312         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60313         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60314         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60315         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60316
60317 2007-11-04  Bruno Haible  <bruno@clisp.org>
60318
60319         * modules/nocrash: New file.
60320         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60321         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60322
60323 2007-11-04  Bruno Haible  <bruno@clisp.org>
60324
60325         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60326         precision handling.
60327         * tests/test-vasprintf-posix.c (test_function): Likewise.
60328         * tests/test-snprintf-posix.h (test_function): Likewise.
60329         * tests/test-sprintf-posix.h (test_function): Likewise.
60330
60331         Fix *printf behaviour for large precisions on mingw and BeOS.
60332         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60333         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60335         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60336         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60337         gl_PRINTF_PRECISION and test its result. Invoke
60338         gl_PREREQ_VASNPRINTF_PRECISION.
60339         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60340         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60343         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60344         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60346         * doc/functions/fprintf.texi: Update.
60347         * doc/functions/printf.texi: Update.
60348         * doc/functions/snprintf.texi: Update.
60349         * doc/functions/sprintf.texi: Update.
60350         * doc/functions/vfprintf.texi: Update.
60351         * doc/functions/vprintf.texi: Update.
60352         * doc/functions/vsnprintf.texi: Update.
60353         * doc/functions/vsprintf.texi: Update.
60354
60355 2007-11-04  Bruno Haible  <bruno@clisp.org>
60356
60357         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60358
60359 2007-11-04  Bruno Haible  <bruno@clisp.org>
60360
60361         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60362         Reported by Sylvain Beucler <beuc@gnu.org>.
60363
60364 2007-11-03  Bruno Haible  <bruno@clisp.org>
60365
60366         * tests/test-fprintf-posix2.sh: New file.
60367         * tests/test-fprintf-posix2.c: New file.
60368         * modules/fprintf-posix-tests (Files): Add them.
60369         (TESTS): Add test-fprintf-posix2.sh.
60370         (configure.ac): Check for getrlimit and setrlimit.
60371         (check_PROGRAMS): Add test-fprintf-posix2.
60372
60373         * tests/test-printf-posix2.sh: New file.
60374         * tests/test-printf-posix2.c: New file.
60375         * modules/printf-posix-tests (Files): Add them.
60376         (TESTS): Add test-printf-posix2.sh.
60377         (configure.ac): Check for getrlimit and setrlimit.
60378         (check_PROGRAMS): Add test-printf-posix2.
60379
60380         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60381         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60382         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60383         (decode_double): New function, copied from decode_long_double.
60384         (scale10_round_decimal_decoded): New function, extracted from
60385         scale10_round_decimal_long_double.
60386         (scale10_round_decimal_long_double): Use it.
60387         (scale10_round_decimal_double): New function.
60388         (floorlog10): New function.
60389         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60391         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60392         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60393         gl_PRINTF_ENOMEM and test its result. Invoke
60394         gl_PREREQ_VASNPRINTF_ENOMEM.
60395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60396         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60398         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60402         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60403         * modules/snprintf-posix (Depends-on): Likewise.
60404         * modules/sprintf-posix (Depends-on): Likewise.
60405         * modules/vasnprintf-posix (Depends-on): Likewise.
60406         * modules/vasprintf-posix (Depends-on): Likewise.
60407         * modules/vfprintf-posix (Depends-on): Likewise.
60408         * modules/vsnprintf-posix (Depends-on): Likewise.
60409         * modules/vsprintf-posix (Depends-on): Likewise.
60410         * doc/functions/fprintf.texi: Update.
60411         * doc/functions/printf.texi: Update.
60412         * doc/functions/snprintf.texi: Update.
60413         * doc/functions/sprintf.texi: Update.
60414         * doc/functions/vfprintf.texi: Update.
60415         * doc/functions/vprintf.texi: Update.
60416         * doc/functions/vsnprintf.texi: Update.
60417         * doc/functions/vsprintf.texi: Update.
60418
60419 2007-11-03  Bruno Haible  <bruno@clisp.org>
60420
60421         * modules/frexp-nolibm-tests: New file.
60422
60423         * modules/frexp-nolibm: New file.
60424         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60425
60426 2007-11-03  Bruno Haible  <bruno@clisp.org>
60427
60428         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60429         value is C99 compliant.
60430         Needed for OSF/1 5.1.
60431
60432 2007-11-03  Bruno Haible  <bruno@clisp.org>
60433
60434         Fix out-of-memory handling of vasnprintf.
60435         * lib/printf-parse.c: Include <errno.h>.
60436         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60437         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60438         is already set.
60439
60440 2007-11-02  Eric Blake  <ebb9@byu.net>
60441
60442         Fix tests on cygwin.
60443         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60444
60445 2007-11-01  Bruno Haible  <bruno@clisp.org>
60446
60447         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60448         warning.
60449         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60450         needed for POSIX compatibility.
60451
60452 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60455         for compatibility with GNU.
60456
60457 2007-11-01  Bruno Haible  <bruno@clisp.org>
60458
60459         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60460         (putenv): Renamed from rpl_putenv. Change argument type from
60461         'const char *' to 'char *'.
60462         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60463         of defining putenv in config.h, just set REPLACE_PUTENV.
60464         * modules/putenv (Depends-on): Add stdlib.
60465         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60466         (Include): Use <stdlib.h>.
60467         * lib/stdlib.in.h (putenv): New declaration.
60468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60469         REPLACE_PUTENV.
60470         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60471         REPLACE_PUTENV.
60472         Needed for MacOS X 10.5.0.
60473         Reported by Peter O'Gorman <peter@pogma.com>.
60474
60475 2007-11-01  Jim Meyering  <meyering@redhat.com>
60476
60477         Treat an empty date string exactly like "0".
60478         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60479         if the remaining date string (to be parsed) is empty, use "0".
60480         Reported by Mischa Molhoek and discussed in this thread:
60481         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60482
60483 2007-10-31  Bruno Haible  <bruno@clisp.org>
60484
60485         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60486         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60487         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60488         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60489         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60490         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60491
60492 2007-10-31  Bruno Haible  <bruno@clisp.org>
60493
60494         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60495         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60496         (AC_TYPE_LONG_LONG_INT): Use it.
60497         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60498         it as well.
60499         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60500         to m4/longlong.m4.
60501         * modules/stdint (Files): Remove m4/ulonglong.m4.
60502         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60503         m4/ulonglong.m4.
60504         * modules/strtoumax (Files): Likewise.
60505
60506 2007-10-30  Bruno Haible  <bruno@clisp.org>
60507
60508         * modules/xvasprintf-posix: New file.
60509         Suggested by Eric Blake.
60510
60511 2007-10-30  Bruno Haible  <bruno@clisp.org>
60512
60513         * modules/xprintf-posix-tests: New file.
60514         * tests/test-xprintf-posix.sh: New file.
60515         * tests/test-xprintf-posix.c: New file.
60516         * tests/test-xfprintf-posix.c: New file.
60517
60518         * modules/xprintf-posix: New file.
60519
60520 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60521
60522         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60523         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60524         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60525
60526 2007-10-29  Bruno Haible  <bruno@clisp.org>
60527
60528         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60529         contain the special marker '_cv_'.
60530         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60531         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60532         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60533         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60534         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60535         Reported by Ralf Wildenhues.
60536
60537 2007-10-29  Bruno Haible  <bruno@clisp.org>
60538
60539         * gnulib-tool (func_import): When --lgpl is not specified, set
60540         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60541         GPLv3.
60542         Reported by Simon Josefsson.
60543
60544 2007-10-28  Bruno Haible  <bruno@clisp.org>
60545
60546         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60547         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60548         HAVE_DECL_ISFINITE.
60549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60550         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60551         HAVE_DECL_ISFINITE.
60552
60553 2007-10-28  Bruno Haible  <bruno@clisp.org>
60554
60555         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60556         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60557
60558 2007-10-28  Bruno Haible  <bruno@clisp.org>
60559
60560         Fix link errors with Sun C 5.0 on Solaris 10.
60561         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60562         function is declared but not present in the compiler's libm.
60563         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60564         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60565         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60566         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60567         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60568         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60569         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60571         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60572         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60573         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60574         HAVE_DECL_FLOORL.
60575
60576 2007-10-28  Bruno Haible  <bruno@clisp.org>
60577
60578         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60579         gl_FUNC_FLOORL. Cache the result.
60580         (gl_FUNC_FLOORL): Use it.
60581         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60582         gl_FUNC_CEILL. Cache the result.
60583         (gl_FUNC_CEILL): Use it.
60584
60585         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60586         gl_FUNC_FLOOR. Cache the result.
60587         (gl_FUNC_FLOOR): Use it.
60588         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60589         gl_FUNC_CEIL. Cache the result.
60590         (gl_FUNC_CEIL): Use it.
60591
60592         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60593         gl_FUNC_FLOORF. Cache the result.
60594         (gl_FUNC_FLOORF): Use it.
60595         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60596         gl_FUNC_CEILF. Cache the result.
60597         (gl_FUNC_CEILF): Use it.
60598
60599 2007-10-28  Bruno Haible  <bruno@clisp.org>
60600
60601         * gnulib-tool: Allow specifying the LGPL version number through
60602         --lgpl=2 or --lgpl=3.
60603         (func_usage): Document --lgpl with argument.
60604         Handle --lgpl=... arguments.
60605         (func_import): Recognize also gl_LGPL calls with an argument. When
60606         --lgpl=2 is used and the module's license is just LGPL, report an
60607         error. Set sed_transform_lib_file according to the lgpl variable. In
60608         the generated files, use --lgpl or gl_LGPL invocations with argument,
60609         if necessary.
60610         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60611         an LGPv2+ license.
60612         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60613         gl_LGPL macro.
60614
60615 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60616             Bruno Haible  <bruno@clisp.org>
60617
60618         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60619         (u16_uctomb_aux): Likewise.
60620         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60621         !HAVE_INLINE.
60622         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60623
60624 2007-10-28  Bruno Haible  <bruno@clisp.org>
60625
60626         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60627         Invoke AM_GETTEXT_OPTION if it exists.
60628         * modules/vasprintf: Likewise.
60629         * modules/verror: Likewise.
60630         * modules/xprintf: Likewise.
60631         * modules/xvasprintf: Likewise.
60632
60633 2007-10-27  Ben Pfaff  <blp@gnu.org>
60634
60635         * lib/math.in.h: Define isfinite macro and prototypes for
60636         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60637         implementations.
60638         * m4/math_h.m4: New substitutions for isfinite module.
60639         * lib/isfinite.c: New file.
60640         * m4/isfinite.m4: New file.
60641         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60642         * modules/isfinite: New file.
60643         * modules/isfinite-tests: New file.
60644         * tests/tests-isfinite.c: New file.
60645         * doc/functions/isfinite.texi: Mention isfinite module.
60646         * MODULES.html.sh: Mention new module.
60647
60648 2007-10-27  Ben Pfaff  <blp@gnu.org>
60649
60650         Ralf Wildenhues reported that Tru64 4.0D declares the round
60651         functions but does not have definitions.
60652         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60653         cannot be found in any library, set the output variable to
60654         "missing" instead of "".
60655         * m4/round.m4: Also use our substitute if we cannot find round in
60656         any library, even if it is declared.
60657         * m4/roundf.m4: Likewise for roundf.
60658         * m4/roundl.m4: Likewise for roundl.
60659         * lib/math.in.h: Undefine roundf, round, roundl before defining
60660         their replacements, to allow for hypothetical systems where these
60661         may be defined as macros but not available in libraries.
60662
60663 2007-10-27  Bruno Haible  <bruno@clisp.org>
60664
60665         * doc/gnulib.texi: Invoke @firstparagraphindent.
60666         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60667         changes in gnulib.
60668         (Source changes): New section.
60669
60670 2007-10-26  Bruno Haible  <bruno@clisp.org>
60671
60672         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60673         borrowed from autoconf.
60674
60675 2007-10-26  Bruno Haible  <bruno@clisp.org>
60676
60677         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60678         strerror returned the empty string. Needed on HP-UX 11.00.
60679
60680 2007-10-24  Micah Cowan  <micah@cowan.name>
60681
60682         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60683         * build-aux/bootstrap: Remove support for now-unnecessary option,
60684         --cvs-user, and envvars CVS_USER, CVS_RSH.
60685
60686 2007-10-24  Jim Meyering  <meyering@redhat.com>
60687
60688         Avoid diagnostics from sha1sum when there is no cached checksum.
60689         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60690         if the po.s1 file hasn't been created yet.
60691
60692         * build-aux/bootstrap: Sync from coreutils:
60693         2007-10-24  Jim Meyering  <meyering@redhat.com>
60694         Get gnulib from the git repository, not from an obsolete cvs one.
60695         * build-aux/bootstrap: Suggestion from Micah Cowan.
60696         2007-10-04  Jim Meyering  <jim@meyering.net>
60697         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60698         (update_po_files): Work also when there are no .po files in po/.
60699
60700 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60701
60702         * README: Append ".git" to git and cg examples.
60703         Problem reported by Benoit Sigoure.
60704
60705 2007-10-23  Micah Cowan  <micah@cowan.name>
60706
60707         * users.txt: Add wget.
60708
60709 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60710
60711         Fix linking of some unistdio tests on FreeBSD.
60712         * modules/unistdio/u16-vsnprintf-tests
60713         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60714         * modules/unistdio/u16-vsprintf-tests
60715         (test_u16_vsnprintf1_LDADD): Likewise.
60716         * modules/unistdio/u32-vsnprintf-tests
60717         (test_u32_vsnprintf1_LDADD): Likewise.
60718         * modules/unistdio/u32-vsprintf-tests
60719         (test_u32_vsprintf1_LDADD): Likewise.
60720         * modules/unistdio/u8-vsnprintf-tests
60721         (test_u8_vsnprintf1_LDADD): Likewise.
60722         * modules/unistdio/u8-vsprintf-tests
60723         (test_u8_vsprintf1_LDADD): Likewise.
60724         * modules/unistdio/ulc-vsnprintf-tests
60725         (test_ulc_vsnprintf1_LDADD): Likewise.
60726         * modules/unistdio/ulc-vsprintf-tests
60727         (test_ulc_vsprintf1_LDADD): Likewise.
60728
60729         Fix linking of some uniconv tests on FreeBSD.
60730         * modules/uniconv/u16-conv-from-enc-tests
60731         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60732         * modules/uniconv/u16-conv-to-enc-tests
60733         (test_u16_conv_to_enc_LDADD): Likewise.
60734         * modules/uniconv/u16-strconv-from-enc-tests
60735         (test_u16_strconv_from_enc_LDADD): Likewise.
60736         * modules/uniconv/u16-strconv-to-enc-tests
60737         (test_u16_strconv_to_enc_LDADD): Likewise.
60738         * modules/uniconv/u32-conv-from-enc-tests
60739         (test_u32_conv_from_enc_LDADD): Likewise.
60740         * modules/uniconv/u32-conv-to-enc-tests
60741         (test_u32_conv_to_enc_LDADD): Likewise.
60742         * modules/uniconv/u32-strconv-from-enc-tests
60743         (test_u32_strconv_from_enc_LDADD): Likewise.
60744         * modules/uniconv/u32-strconv-to-enc-tests
60745         (test_u32_strconv_to_enc_LDADD): Likewise.
60746         * modules/uniconv/u8-conv-from-enc-tests
60747         (test_u8_conv_from_enc_LDADD): Likewise.
60748         * modules/uniconv/u8-conv-to-enc-tests
60749         (test_u8_conv_to_enc_LDADD): Likewise.
60750         * modules/uniconv/u8-strconv-from-enc-tests
60751         (test_u8_strconv_from_enc_LDADD): Likewise.
60752         * modules/uniconv/u8-strconv-to-enc-tests
60753         (test_u8_strconv_to_enc_LDADD): Likewise.
60754
60755 2007-10-22  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60758         size.
60759
60760 2007-10-22  Eric Blake  <ebb9@byu.net>
60761
60762         Tweak x*printf documentation.
60763         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60764         variable name and comments.
60765         Suggested by Bruno Haible.
60766
60767 2007-10-22  Bruno Haible  <bruno@clisp.org>
60768
60769         * lib/acl.c (copy_acl): Fix file name in comment.
60770
60771 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60772
60773         Fix Tru64 problem with stdbool.h.
60774         * lib/stdbool.in.h (false, true):
60775         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60776         Don't declare as an enum in this situation; it runs afoul of Tru64.
60777         Problem reported by Steven M. Schweda in
60778         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60779
60780 2007-10-22  Eric Blake  <ebb9@byu.net>
60781
60782         Also wrap vf?printf.
60783         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60784         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60785         (xvprintf, xvfprintf): New functions.
60786
60787 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60788
60789         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60790         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60791
60792         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60793         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60794
60795 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60796
60797         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60798         by Bruno Haible.
60799
60800 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60801
60802         * lib/getloadavg.c
60803         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60804         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60805
60806         * tests/test-i-ring.c: Work for C89.
60807
60808 2007-10-22  Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60811         -1u, in preprocessor expression, so that we don't test for the bug
60812         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60813         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60814
60815 2007-10-22  Eric Blake  <ebb9@byu.net>
60816
60817         * tests/test-yesno.sh: Silence stderr during test.
60818
60819 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60820
60821         * modules/crypto/gc-camellia: New file.
60822
60823         * m4/gc-camellia.m4: New file.
60824
60825         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60826
60827         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60828
60829 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60830
60831         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60832         --help to stdout.  Reported by sms@antinode.org (Steven
60833         M. Schweda).
60834
60835 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60836
60837         * users.txt: Fix link to libksba.
60838
60839 2007-10-21  Ben Pfaff  <blp@gnu.org>
60840
60841         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60842         round.c roundf implementation that depends on floorf and ceilf to
60843         be tested unconditionally.
60844
60845 2007-10-21  Ben Pfaff  <blp@gnu.org>
60846
60847         * m4/check-libm-func.m4: Removed.
60848         * m4/check-math-lib.m4: New file.
60849         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60850         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60851         definition and lack of AC_LIBOBJ([roundf]).
60852         * m4/roundl.m4: Ditto, and similarly for roundl.
60853         * modules/round: Reference new m4 file.
60854         * modules/roundf: Ditto.
60855         * modules/roundl: Ditto.
60856         * tests/test-round2.c (main): Use ROUND instead of round.
60857         Bug report from Bruno Haible.
60858
60859 2007-10-21  Bruno Haible  <bruno@clisp.org>
60860
60861         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60862         context.
60863
60864 2007-10-21  Bruno Haible  <bruno@clisp.org>
60865
60866         * tests/test-wcwidth.c (main): Allow negative result for some control
60867         characters.
60868
60869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60870         Needed on OSF/1 5.1.
60871
60872 2007-10-21  Bruno Haible  <bruno@clisp.org>
60873
60874         * tests/test-floorf1.c: Include isnanf.h.
60875         (main): Use isnanf() instead of isnan().
60876         * tests/test-ceilf1.c: Include isnanf.h.
60877         (main): Use isnanf() instead of isnan().
60878         * tests/test-truncf1.c: Include isnanf.h.
60879         (main): Use isnanf() instead of isnan().
60880         * tests/test-roundf1.c: Include isnanf.h.
60881         (main): Use isnanf() instead of isnan().
60882
60883 2007-10-21  Eric Blake  <ebb9@byu.net>
60884
60885         * users.txt: Update URL for m4.
60886
60887 2007-10-21  Bruno Haible  <bruno@clisp.org>
60888
60889         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60890
60891 2007-10-21  Bruno Haible  <bruno@clisp.org>
60892
60893         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60894         Git's management files if the CVS files are not present.
60895
60896 2007-10-20  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60899         gcc-3.4.x.
60900
60901 2007-10-20  Ben Pfaff  <blp@gnu.org>
60902
60903         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60904         implementations.
60905         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60906         * lib/round.c: New file.
60907         * lib/roundf.c: New file.
60908         * lib/roundl.c: New file.
60909         * m4/round.m4: New file.
60910         * m4/roundf.m4: New file.
60911         * m4/roundl.m4: New file.
60912         * m4/check-libm-func-m4: New file.
60913         * modules/math: Replace round, roundf, roundl related @VARS@ in
60914         math.in.h.
60915         * modules/round: New file.
60916         * modules/round-tests: New file.
60917         * modules/roundf: New file.
60918         * modules/roundf-tests: New file.
60919         * modules/roundl: New file.
60920         * modules/roundl-tests: New file.
60921         * tests/test-round1.c: New file.
60922         * tests/test-round2.c: New file.
60923         * tests/test-roundf1.c: New file.
60924         * tests/test-roundf2.c: New file.
60925         * tests/test-roundl.c: New file.
60926         * doc/functions/round.texi: Mention round module.
60927         * doc/functions/roundf.texi: Mention roundf module.
60928         * doc/functions/roundl.texi: Mention roundl module.
60929         * MODULES.html.sh: Mention new modules.
60930         Thanks to Bruno Haible for suggestions.
60931
60932 2007-10-20  Jim Meyering  <meyering@redhat.com>
60933
60934         * lib/xprintf.c: Include <config.h> unconditionally.
60935
60936         Change xprintf's license to GPL.
60937         * modules/xprintf (License): s/LGPL/GPL/, since this module
60938         depends on modules (exit and exitfail) which are GPL.
60939         Suggestion from Bruno Haible.
60940
60941         xprintf fixes.
60942         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60943         Use a clearer diagnostic.
60944         Patch from Bruno Haible.
60945
60946 2007-10-20  Bruno Haible  <bruno@clisp.org>
60947
60948         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60949         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60951
60952 2007-10-20  Bruno Haible  <bruno@clisp.org>
60953
60954         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60955         precision in the comparison result > x - 1 or similar.
60956         * tests/test-ceilf2.c (correct_result_p): Likewise.
60957         * tests/test-truncf2.c (correct_result_p): Likewise.
60958         * tests/test-trunc2.c (correct_result_p): Likewise.
60959         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60960
60961 2007-10-20  Bruno Haible  <bruno@clisp.org>
60962
60963         * modules/ceil: New file.
60964         * m4/ceil.m4: New file.
60965         * doc/functions/ceil.texi: Mention the 'ceil' module.
60966
60967 2007-10-20  Bruno Haible  <bruno@clisp.org>
60968
60969         * modules/floor: New file.
60970         * m4/floor.m4: New file.
60971         * doc/functions/floor.texi: Mention the 'floor' module.
60972
60973 2007-10-20  Bruno Haible  <bruno@clisp.org>
60974
60975         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60976         of %a.
60977         * modules/floorf-tests (Depends-on): Likewise.
60978         * modules/truncf-tests (Depends-on): Likewise.
60979         * modules/trunc-tests (Depends-on): Likewise.
60980         Reported by Ben Pfaff.
60981
60982 2007-10-19  Jim Meyering  <meyering@redhat.com>
60983
60984         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60985         Don't bother testing specific errno values.  Just test ferror.
60986
60987         New module: xprintf
60988         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60989
60990 2007-10-19  Bruno Haible  <bruno@clisp.org>
60991
60992         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60993         syntax.
60994         * modules/javaexec (Makefile.am): Likewise.
60995         * modules/relocatable-prog (Makefile.am): Likewise.
60996         Suggested by Jim Meyering.
60997
60998 2007-10-18  Bruno Haible  <bruno@clisp.org>
60999
61000         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61001         Reported by Jim Meyering.
61002
61003 2007-10-18  Eric Blake  <ebb9@byu.net>
61004
61005         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61006
61007 2007-10-18  Bruno Haible  <bruno@clisp.org>
61008
61009         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61010         the format string into writable memory. Needed in Fortify conditions.
61011
61012 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61013             Bruno Haible  <bruno@clisp.org>
61014
61015         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61016         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61017         * modules/trim (Depends-on): Add mbchar.
61018         (configure.ac): Add gl_FUNC_MBRTOWC.
61019         (Makefile.am): Augment lib_SOURCES.
61020
61021 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61022
61023         Modify glob.c to use fstatat and dirfd, to simplify it.
61024         Suggested by Eric Blake.
61025         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61026         Don't include <stdbool.h>; not used.
61027         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61028         (link_exists_p): Simplify implementation, since we can now assume
61029         dirfd and fstatat.
61030         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61031
61032 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61033
61034         * gnulib-tool (func_get_dependencies): Fix sed script to
61035         match only tests.
61036
61037 2007-10-17  Bruno Haible  <bruno@clisp.org>
61038
61039         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61040         allow locale names without encoding suffix.
61041         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61042         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61043
61044 2007-10-16  Bruno Haible  <bruno@clisp.org>
61045
61046         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61047         * lib/getgroups.c (getgroups): Likewise.
61048         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61049
61050 2007-10-16  Bruno Haible  <bruno@clisp.org>
61051
61052         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61053         * modules/malloc-posix (License): Likewise.
61054         * modules/realloc-posix (License): Likewise.
61055         * modules/calloc-posix (License): Likewise.
61056         * modules/intprops (License): Change from GPL to LGPL, with
61057         Paul Eggert's approval.
61058
61059 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61060
61061         Merge glibc changes into lib/glob.c.
61062
61063         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61064         2007-10-15 04:59:03 UTC.  Here are the changes:
61065
61066         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61067
61068         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61069
61070         * lib/glob.c: Add some branch prediction throughout.
61071
61072         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61073
61074         [BZ #5103]
61075         * lib/glob.c (glob): Recognize patterns starting \/.
61076
61077         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61078
61079         [BZ #3996]
61080         * lib/glob.c (attribute_hidden): Define if not defined.
61081         (glob): Unescape dirname, filename or username when needed and not
61082         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61083         is NULL.  Handle unescaped [ in pattern without closing ].
61084         Don't pass GLOB_CHECK down to recursive glob for directories.
61085         (__glob_pattern_type): New function.
61086         (__glob_pattern_p): Implement using __glob_pattern_type.
61087         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61088         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61089         Remove unreachable code.
61090
61091         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61092
61093         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61094         explain why there are no leaks.
61095
61096         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61097
61098         [BZ #3253]
61099         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61100         time, rather allocate increasingly bigger arrays of pointers, if
61101         possible with alloca, if too large with malloc.
61102
61103 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61104
61105         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61106         Problem reported by H.Merijn Brand in
61107         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61108         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61109         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61110
61111 2007-10-15  Bruno Haible  <bruno@clisp.org>
61112
61113         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61114         with explicit rpl_ prefix.
61115         * lib/fopen.c (fopen): Likewise.
61116         * lib/freopen.c (freopen): Likewise.
61117         * lib/iconv.c (iconv): Likewise.
61118         * lib/iconv_close.c (iconv_close): Likewise.
61119
61120 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61121
61122         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61123
61124 2007-10-15  Bruno Haible  <bruno@clisp.org>
61125
61126         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61127         <stddef.h> instead of <stdlib.h> since we only need NULL.
61128         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61129
61130 2007-10-15  Bruno Haible  <bruno@clisp.org>
61131
61132         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61133         Replace paragraph talking about LIBOBJS.
61134         Reported by Colin Watson <cjwatson@debian.org>.
61135
61136 2007-10-15  Bruno Haible  <bruno@clisp.org>
61137
61138         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61139         <stdlib.h> before using NULL.
61140
61141 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61142
61143         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61144         Reported by Albert Chin <china@thewrittenword.com>.
61145
61146 2007-10-14  Bruno Haible  <bruno@clisp.org>
61147
61148         * modules/iconv_open-utf-tests: New file.
61149         * tests/test-iconv-utf.c: New file.
61150
61151         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61152         * modules/iconv_open-utf: New file.
61153         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61154         (iconv, iconv_close): New declarations.
61155         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61156         be defined.
61157         (iconv_open): Add special handling of conversion between UTF-8 and
61158         UTF-{16,32}{BE,LE}.
61159         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61160         * lib/iconv_close.c: New file.
61161         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61162         gl_FUNC_ICONV_OPEN.
61163         (gl_FUNC_ICONV_OPEN): Use it.
61164         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61165         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61166         and REPLACE_ICONV_UTF.
61167         * modules/iconv_open (Depends-on): Add c-strcase.
61168         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61169         ICONV_CONST.
61170         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61171
61172 2007-10-13  Albert Chin  <china@thewrittenword.com>
61173             Bruno Haible  <bruno@clisp.org>
61174
61175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61176         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61177
61178 2007-10-13  Bruno Haible  <bruno@clisp.org>
61179
61180         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61181         defined, use the ISO C99 inline semantics.
61182         * lib/argp.h (ARGP_EI): Likewise.
61183
61184 2007-10-13  Bruno Haible  <bruno@clisp.org>
61185
61186         Handle 'inline' change in gcc 4.3.0.
61187         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61188         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61189         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61190         argp_fmtstream_point): Disable 'extern' declaration if the function
61191         definition is going to be provided inline.
61192         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61193         semantics, not the ISO C99 inline semantics.
61194         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61195         'extern' declaration if the function definition is going to be provided
61196         inline.
61197         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61198         the GNU C inline semantics, not the ISO C99 inline semantics. With
61199         GCC 4.2, avoid a warning.
61200
61201 2007-10-13  Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/freading.h (freading): Enable the use of __freading for
61204         glibc >= 2.7.
61205         * lib/freading.c (freading): Likewise.
61206
61207 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61208
61209         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61210         "warning: C99 inline functions are not supported; using GNU89".
61211
61212 2007-10-12  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61215         of 2.
61216         * tests/test-ceilf2.c: New file.
61217         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61218
61219         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61220         * modules/ceilf-tests: Update.
61221
61222 2007-10-12  Bruno Haible  <bruno@clisp.org>
61223
61224         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61225         of 2.
61226         * tests/test-floorf2.c: New file.
61227         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61228
61229         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61230         * modules/floorf-tests: Update.
61231
61232 2007-10-12  Bruno Haible  <bruno@clisp.org>
61233
61234         * tests/test-trunc2.c: New file.
61235         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61236
61237         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61238         * modules/trunc-tests: Update.
61239
61240 2007-10-12  Bruno Haible  <bruno@clisp.org>
61241
61242         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61243         of 2.
61244         * tests/test-truncf2.c: New file.
61245         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61246
61247         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61248         * modules/truncf-tests: Update.
61249
61250 2007-10-11  Eric Blake  <ebb9@byu.net>
61251
61252         Don't claim strerror is broken on Interix.
61253         * doc/functions/strerror.texi (strerror): Known broken systems are
61254         now Solaris 8, and not Interix.
61255         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61256         Interix on cross-compile.
61257         Reported by Martin Koeppe in
61258         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61259
61260 2007-10-11  Bruno Haible  <bruno@clisp.org>
61261
61262         * modules/i-ring-tests: New file.
61263         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61264         instead of assert.
61265
61266 2007-10-11  Bruno Haible  <bruno@clisp.org>
61267
61268         * modules/filenamecat-tests: New file.
61269         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61270         * lib/filenamecat.c: Remove test code.
61271
61272 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61273
61274         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61275
61276         * lib/strerror.c: Include <string.h> always, to test interface,
61277         and to remove the need for the dummy.
61278         Include intprops.h to compute width instead of doing it ourselves
61279         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61280         (strerror): Define it to return NULL if there's no system strerror.
61281         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61282         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61283         ancient pre-strerror Unix systems well any more.  Saying "unknown
61284         system error" is enough.
61285         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61286         simpler strerror.c implementation.
61287         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61288         Simplify the tests to reflect the simpler strerror implementation.
61289         * modules/strerror (Depends-on): Add intprops.
61290
61291 2007-10-09  Eric Blake  <ebb9@byu.net>
61292
61293         Silence test-fpending.
61294         * modules/fpending-tests (Files): Add wrapper script.
61295         * tests/test-fpending.sh: New file.
61296
61297 2007-10-09  Bruno Haible  <bruno@clisp.org>
61298
61299         * MODULES.html.sh (func_module): Don't create a hyperlink for
61300         function names like 'printf_frexp'.
61301         (Misc): Add crc, memxor.
61302         (Characteristics of floating types): New section.
61303         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61304         isnanf-nolibm, signbit, trunc, truncf, truncl.
61305         (Enhancements for ISO C 99 functions): New subsection Input/output.
61306         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61307         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61308         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61309         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61310         (Enhancements for POSIX:2001 functions): Add chdir-long.
61311         (File system functions): Add areadlink, chdir-safer, read-file.
61312         Remove cycle-check.
61313         (File system as inode set): New section.
61314         (Date and time): Add gethrxtime.
61315         (Multithreading): Add openmp.
61316         (Internationalization functions): Add localename.
61317         (Unicode string functions): Add unistr/u*-mbsnlen.
61318         (Support for maintaining and releasing projects): Add git-version-gen.
61319         (Lone files): Remove directories.
61320
61321 2007-10-08  Ben Pfaff  <blp@gnu.org>
61322
61323         * lib/xmalloca.h: Fix typo in comment.
61324
61325 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61326
61327         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61328         when avoiding problems with integer overflow.  Use a portable test
61329         instead.
61330
61331 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61332
61333         * modules/dummy (License): Change to LGPLv2+.
61334         * modules/float (License): Likewise
61335         * modules/realloc (License): Likewise
61336         * modules/stdlib (License): Likewise
61337
61338 2007-10-07  Bruno Haible  <bruno@clisp.org>
61339
61340         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61341         * floor.c (TWO_MANT_DIG): Likewise.
61342         * ceil.c (TWO_MANT_DIG): Likewise.
61343         Reported by Ben Pfaff.
61344
61345 2007-10-07  Bruno Haible  <bruno@clisp.org>
61346
61347         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61348         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61349         * lib/frexp.c (FUNC): Likewise.
61350         * lib/printf-frexp.h (printf_frexp): Likewise.
61351         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61352         * lib/printf-frexp.c (FUNC): Likewise.
61353         Suggested by Jim Meyering.
61354
61355 2007-10-07  Jim Meyering  <meyering@redhat.com>
61356
61357         Make xnanosleep's integer overflow test more robust.
61358         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61359         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61360
61361 2007-10-07  Bruno Haible  <bruno@clisp.org>
61362
61363         * NEWS: Mention the license change.
61364
61365         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61366         abbreviations in the modules files.
61367
61368         Change copyright notice from GPLv2+ to GPLv3+.
61369         * README: Change copyright notice.
61370         * MODULES.html.sh: Likewise.
61371         * build-aux/bootstrap.conf: Likewise.
61372         * build-aux/config.libpath: Likewise.
61373         * build-aux/csharpcomp.sh.in: Likewise.
61374         * build-aux/csharpexec.sh.in: Likewise.
61375         * build-aux/install-reloc: Likewise.
61376         * build-aux/javacomp.sh.in: Likewise.
61377         * build-aux/javaexec.sh.in: Likewise.
61378         * build-aux/ldd.sh.in: Likewise.
61379         * build-aux/reloc-ldflags: Likewise.
61380         * build-aux/relocatable.sh.in: Likewise.
61381         * build-aux/x-to-1.in: Likewise.
61382         * check-module: Likewise.
61383         * config/srclistvars.sh: Likewise.
61384         * gnulib-tool: Likewise.
61385         * lib/acl-internal.h: Likewise.
61386         * lib/acl.c: Likewise.
61387         * lib/acl.h: Likewise.
61388         * lib/acl_entries.c: Likewise.
61389         * lib/areadlink-with-size.c: Likewise.
61390         * lib/areadlink.c: Likewise.
61391         * lib/areadlink.h: Likewise.
61392         * lib/argmatch.c: Likewise.
61393         * lib/argmatch.h: Likewise.
61394         * lib/argp-ba.c: Likewise.
61395         * lib/argp-eexst.c: Likewise.
61396         * lib/argp-fmtstream.c: Likewise.
61397         * lib/argp-fmtstream.h: Likewise.
61398         * lib/argp-fs-xinl.c: Likewise.
61399         * lib/argp-help.c: Likewise.
61400         * lib/argp-namefrob.h: Likewise.
61401         * lib/argp-parse.c: Likewise.
61402         * lib/argp-pin.c: Likewise.
61403         * lib/argp-pv.c: Likewise.
61404         * lib/argp-pvh.c: Likewise.
61405         * lib/argp-xinl.c: Likewise.
61406         * lib/argp.h: Likewise.
61407         * lib/at-func.c: Likewise.
61408         * lib/atanl.c: Likewise.
61409         * lib/backupfile.c: Likewise.
61410         * lib/backupfile.h: Likewise.
61411         * lib/basename.c: Likewise.
61412         * lib/binary-io.h: Likewise.
61413         * lib/byteswap.in.h: Likewise.
61414         * lib/c-stack.c: Likewise.
61415         * lib/c-stack.h: Likewise.
61416         * lib/c-strcasestr.c: Likewise.
61417         * lib/c-strcasestr.h: Likewise.
61418         * lib/c-strstr.c: Likewise.
61419         * lib/c-strstr.h: Likewise.
61420         * lib/c-strtod.c: Likewise.
61421         * lib/calloc.c: Likewise.
61422         * lib/canon-host.c: Likewise.
61423         * lib/canon-host.h: Likewise.
61424         * lib/canonicalize-lgpl.c: Likewise.
61425         * lib/canonicalize.c: Likewise.
61426         * lib/canonicalize.h: Likewise.
61427         * lib/ceil.c: Likewise.
61428         * lib/ceilf.c: Likewise.
61429         * lib/ceill.c: Likewise.
61430         * lib/chdir-long.c: Likewise.
61431         * lib/chdir-long.h: Likewise.
61432         * lib/chdir-safer.c: Likewise.
61433         * lib/chdir-safer.h: Likewise.
61434         * lib/chown.c: Likewise.
61435         * lib/classpath.c: Likewise.
61436         * lib/classpath.h: Likewise.
61437         * lib/clean-temp.c: Likewise.
61438         * lib/clean-temp.h: Likewise.
61439         * lib/cloexec.c: Likewise.
61440         * lib/close-stream.c: Likewise.
61441         * lib/closein.c: Likewise.
61442         * lib/closein.h: Likewise.
61443         * lib/closeout.c: Likewise.
61444         * lib/closeout.h: Likewise.
61445         * lib/concat-filename.c: Likewise.
61446         * lib/copy-file.c: Likewise.
61447         * lib/copy-file.h: Likewise.
61448         * lib/count-one-bits.h: Likewise.
61449         * lib/crc.c: Likewise.
61450         * lib/crc.h: Likewise.
61451         * lib/creat-safer.c: Likewise.
61452         * lib/csharpcomp.c: Likewise.
61453         * lib/csharpcomp.h: Likewise.
61454         * lib/csharpexec.c: Likewise.
61455         * lib/csharpexec.h: Likewise.
61456         * lib/cycle-check.c: Likewise.
61457         * lib/cycle-check.h: Likewise.
61458         * lib/diacrit.c: Likewise.
61459         * lib/diacrit.h: Likewise.
61460         * lib/diffseq.h: Likewise.
61461         * lib/dirchownmod.c: Likewise.
61462         * lib/dirent.in.h: Likewise.
61463         * lib/dirfd.c: Likewise.
61464         * lib/dirfd.h: Likewise.
61465         * lib/dirname.c: Likewise.
61466         * lib/dirname.h: Likewise.
61467         * lib/dummy.c: Likewise.
61468         * lib/dup-safer.c: Likewise.
61469         * lib/dup2.c: Likewise.
61470         * lib/eealloc.h: Likewise.
61471         * lib/error.c: Likewise.
61472         * lib/error.h: Likewise.
61473         * lib/euidaccess.c: Likewise.
61474         * lib/exclude.c: Likewise.
61475         * lib/exclude.h: Likewise.
61476         * lib/execute.c: Likewise.
61477         * lib/execute.h: Likewise.
61478         * lib/exitfail.c: Likewise.
61479         * lib/exitfail.h: Likewise.
61480         * lib/expl.c: Likewise.
61481         * lib/fatal-signal.c: Likewise.
61482         * lib/fatal-signal.h: Likewise.
61483         * lib/fbufmode.c: Likewise.
61484         * lib/fbufmode.h: Likewise.
61485         * lib/fchdir.c: Likewise.
61486         * lib/fchmodat.c: Likewise.
61487         * lib/fchownat.c: Likewise.
61488         * lib/fcntl--.h: Likewise.
61489         * lib/fcntl-safer.h: Likewise.
61490         * lib/fcntl.in.h: Likewise.
61491         * lib/fd-safer.c: Likewise.
61492         * lib/fflush.c: Likewise.
61493         * lib/file-has-acl.c: Likewise.
61494         * lib/file-set.c: Likewise.
61495         * lib/file-type.c: Likewise.
61496         * lib/file-type.h: Likewise.
61497         * lib/fileblocks.c: Likewise.
61498         * lib/filemode.c: Likewise.
61499         * lib/filemode.h: Likewise.
61500         * lib/filename.h: Likewise.
61501         * lib/filenamecat.c: Likewise.
61502         * lib/filenamecat.h: Likewise.
61503         * lib/findprog.c: Likewise.
61504         * lib/findprog.h: Likewise.
61505         * lib/float.in.h: Likewise.
61506         * lib/floor.c: Likewise.
61507         * lib/floorf.c: Likewise.
61508         * lib/floorl.c: Likewise.
61509         * lib/fopen-safer.c: Likewise.
61510         * lib/fopen.c: Likewise.
61511         * lib/fpending.c: Likewise.
61512         * lib/fpending.h: Likewise.
61513         * lib/fprintf.c: Likewise.
61514         * lib/fprintftime.h: Likewise.
61515         * lib/fpucw.h: Likewise.
61516         * lib/fpurge.c: Likewise.
61517         * lib/fpurge.h: Likewise.
61518         * lib/freadable.c: Likewise.
61519         * lib/freadable.h: Likewise.
61520         * lib/freadahead.c: Likewise.
61521         * lib/freadahead.h: Likewise.
61522         * lib/freading.c: Likewise.
61523         * lib/freading.h: Likewise.
61524         * lib/free.c: Likewise.
61525         * lib/freopen.c: Likewise.
61526         * lib/frexp.c: Likewise.
61527         * lib/frexpl.c: Likewise.
61528         * lib/fseek.c: Likewise.
61529         * lib/fseterr.c: Likewise.
61530         * lib/fseterr.h: Likewise.
61531         * lib/fstatat.c: Likewise.
61532         * lib/fstrcmp.c: Likewise.
61533         * lib/fstrcmp.h: Likewise.
61534         * lib/fsusage.c: Likewise.
61535         * lib/fsusage.h: Likewise.
61536         * lib/ftell.c: Likewise.
61537         * lib/ftello.c: Likewise.
61538         * lib/fts-cycle.c: Likewise.
61539         * lib/fts.c: Likewise.
61540         * lib/fts_.h: Likewise.
61541         * lib/full-read.c: Likewise.
61542         * lib/full-read.h: Likewise.
61543         * lib/full-write.c: Likewise.
61544         * lib/full-write.h: Likewise.
61545         * lib/fwritable.c: Likewise.
61546         * lib/fwritable.h: Likewise.
61547         * lib/fwriteerror.c: Likewise.
61548         * lib/fwriteerror.h: Likewise.
61549         * lib/fwriting.c: Likewise.
61550         * lib/fwriting.h: Likewise.
61551         * lib/gcd.c: Likewise.
61552         * lib/gcd.h: Likewise.
61553         * lib/getcwd.c: Likewise.
61554         * lib/getdate.h: Likewise.
61555         * lib/getdate.y: Likewise.
61556         * lib/getdomainname.c: Likewise.
61557         * lib/getdomainname.h: Likewise.
61558         * lib/getgroups.c: Likewise.
61559         * lib/gethostname.c: Likewise.
61560         * lib/gethrxtime.c: Likewise.
61561         * lib/gethrxtime.h: Likewise.
61562         * lib/getloadavg.c: Likewise.
61563         * lib/getndelim2.c: Likewise.
61564         * lib/getndelim2.h: Likewise.
61565         * lib/getnline.c: Likewise.
61566         * lib/getnline.h: Likewise.
61567         * lib/getopt.c: Likewise.
61568         * lib/getopt.in.h: Likewise.
61569         * lib/getopt1.c: Likewise.
61570         * lib/getopt_int.h: Likewise.
61571         * lib/getpagesize.h: Likewise.
61572         * lib/getsubopt.c: Likewise.
61573         * lib/gettime.c: Likewise.
61574         * lib/getugroups.c: Likewise.
61575         * lib/getugroups.h: Likewise.
61576         * lib/getusershell.c: Likewise.
61577         * lib/gl_anyavltree_list1.h: Likewise.
61578         * lib/gl_anyavltree_list2.h: Likewise.
61579         * lib/gl_anyhash_list1.h: Likewise.
61580         * lib/gl_anyhash_list2.h: Likewise.
61581         * lib/gl_anylinked_list1.h: Likewise.
61582         * lib/gl_anylinked_list2.h: Likewise.
61583         * lib/gl_anyrbtree_list1.h: Likewise.
61584         * lib/gl_anyrbtree_list2.h: Likewise.
61585         * lib/gl_anytree_list1.h: Likewise.
61586         * lib/gl_anytree_list2.h: Likewise.
61587         * lib/gl_anytree_oset.h: Likewise.
61588         * lib/gl_anytreehash_list1.h: Likewise.
61589         * lib/gl_anytreehash_list2.h: Likewise.
61590         * lib/gl_array_list.c: Likewise.
61591         * lib/gl_array_list.h: Likewise.
61592         * lib/gl_array_oset.c: Likewise.
61593         * lib/gl_array_oset.h: Likewise.
61594         * lib/gl_avltree_list.c: Likewise.
61595         * lib/gl_avltree_list.h: Likewise.
61596         * lib/gl_avltree_oset.c: Likewise.
61597         * lib/gl_avltree_oset.h: Likewise.
61598         * lib/gl_avltreehash_list.c: Likewise.
61599         * lib/gl_avltreehash_list.h: Likewise.
61600         * lib/gl_carray_list.c: Likewise.
61601         * lib/gl_carray_list.h: Likewise.
61602         * lib/gl_linked_list.c: Likewise.
61603         * lib/gl_linked_list.h: Likewise.
61604         * lib/gl_linkedhash_list.c: Likewise.
61605         * lib/gl_linkedhash_list.h: Likewise.
61606         * lib/gl_list.c: Likewise.
61607         * lib/gl_list.h: Likewise.
61608         * lib/gl_oset.c: Likewise.
61609         * lib/gl_oset.h: Likewise.
61610         * lib/gl_rbtree_list.c: Likewise.
61611         * lib/gl_rbtree_list.h: Likewise.
61612         * lib/gl_rbtree_oset.c: Likewise.
61613         * lib/gl_rbtree_oset.h: Likewise.
61614         * lib/gl_rbtreehash_list.c: Likewise.
61615         * lib/gl_rbtreehash_list.h: Likewise.
61616         * lib/gl_sublist.c: Likewise.
61617         * lib/gl_sublist.h: Likewise.
61618         * lib/group-member.c: Likewise.
61619         * lib/group-member.h: Likewise.
61620         * lib/hard-locale.c: Likewise.
61621         * lib/hard-locale.h: Likewise.
61622         * lib/hash-pjw.c: Likewise.
61623         * lib/hash-pjw.h: Likewise.
61624         * lib/hash-triple.c: Likewise.
61625         * lib/hash.c: Likewise.
61626         * lib/hash.h: Likewise.
61627         * lib/human.c: Likewise.
61628         * lib/human.h: Likewise.
61629         * lib/i-ring.c: Likewise.
61630         * lib/i-ring.h: Likewise.
61631         * lib/idcache.c: Likewise.
61632         * lib/imaxabs.c: Likewise.
61633         * lib/imaxdiv.c: Likewise.
61634         * lib/inet_pton.c: Likewise.
61635         * lib/inet_pton.h: Likewise.
61636         * lib/intprops.h: Likewise.
61637         * lib/inttostr.c: Likewise.
61638         * lib/inttostr.h: Likewise.
61639         * lib/inttypes.in.h: Likewise.
61640         * lib/isapipe.c: Likewise.
61641         * lib/isdir.c: Likewise.
61642         * lib/isnan.c: Likewise.
61643         * lib/isnan.h: Likewise.
61644         * lib/isnanf.c: Likewise.
61645         * lib/isnanf.h: Likewise.
61646         * lib/isnanl-nolibm.h: Likewise.
61647         * lib/isnanl.c: Likewise.
61648         * lib/isnanl.h: Likewise.
61649         * lib/javacomp.c: Likewise.
61650         * lib/javacomp.h: Likewise.
61651         * lib/javaexec.c: Likewise.
61652         * lib/javaexec.h: Likewise.
61653         * lib/javaversion.c: Likewise.
61654         * lib/javaversion.h: Likewise.
61655         * lib/javaversion.java: Likewise.
61656         * lib/lbrkprop.h: Likewise.
61657         * lib/lchmod.h: Likewise.
61658         * lib/lchown.c: Likewise.
61659         * lib/ldexpl.c: Likewise.
61660         * lib/linebreak.c: Likewise.
61661         * lib/linebreak.h: Likewise.
61662         * lib/linebuffer.c: Likewise.
61663         * lib/linebuffer.h: Likewise.
61664         * lib/locale.in.h: Likewise.
61665         * lib/logl.c: Likewise.
61666         * lib/long-options.c: Likewise.
61667         * lib/long-options.h: Likewise.
61668         * lib/lstat.c: Likewise.
61669         * lib/lstat.h: Likewise.
61670         * lib/math.in.h: Likewise.
61671         * lib/mbchar.c: Likewise.
61672         * lib/mbchar.h: Likewise.
61673         * lib/mbfile.h: Likewise.
61674         * lib/mbiter.h: Likewise.
61675         * lib/mbscasecmp.c: Likewise.
61676         * lib/mbscasestr.c: Likewise.
61677         * lib/mbschr.c: Likewise.
61678         * lib/mbscspn.c: Likewise.
61679         * lib/mbslen.c: Likewise.
61680         * lib/mbsncasecmp.c: Likewise.
61681         * lib/mbsnlen.c: Likewise.
61682         * lib/mbspbrk.c: Likewise.
61683         * lib/mbspcasecmp.c: Likewise.
61684         * lib/mbsrchr.c: Likewise.
61685         * lib/mbssep.c: Likewise.
61686         * lib/mbsspn.c: Likewise.
61687         * lib/mbsstr.c: Likewise.
61688         * lib/mbstok_r.c: Likewise.
61689         * lib/mbswidth.c: Likewise.
61690         * lib/mbswidth.h: Likewise.
61691         * lib/mbuiter.h: Likewise.
61692         * lib/memcasecmp.c: Likewise.
61693         * lib/memcasecmp.h: Likewise.
61694         * lib/memchr.c: Likewise.
61695         * lib/memcmp.c: Likewise.
61696         * lib/memcoll.c: Likewise.
61697         * lib/memcoll.h: Likewise.
61698         * lib/memcpy.c: Likewise.
61699         * lib/memrchr.c: Likewise.
61700         * lib/mkancesdirs.c: Likewise.
61701         * lib/mkdir-p.c: Likewise.
61702         * lib/mkdir-p.h: Likewise.
61703         * lib/mkdir.c: Likewise.
61704         * lib/mkdirat.c: Likewise.
61705         * lib/mkdtemp.c: Likewise.
61706         * lib/mkstemp-safer.c: Likewise.
61707         * lib/mkstemp.c: Likewise.
61708         * lib/modechange.c: Likewise.
61709         * lib/modechange.h: Likewise.
61710         * lib/mountlist.c: Likewise.
61711         * lib/mountlist.h: Likewise.
61712         * lib/mpsort.c: Likewise.
61713         * lib/nanosleep.c: Likewise.
61714         * lib/obstack.c: Likewise.
61715         * lib/obstack.h: Likewise.
61716         * lib/open-safer.c: Likewise.
61717         * lib/open.c: Likewise.
61718         * lib/openat-die.c: Likewise.
61719         * lib/openat-priv.h: Likewise.
61720         * lib/openat-proc.c: Likewise.
61721         * lib/openat.c: Likewise.
61722         * lib/openat.h: Likewise.
61723         * lib/pagealign_alloc.c: Likewise.
61724         * lib/pagealign_alloc.h: Likewise.
61725         * lib/physmem.c: Likewise.
61726         * lib/physmem.h: Likewise.
61727         * lib/pipe-safer.c: Likewise.
61728         * lib/pipe.c: Likewise.
61729         * lib/pipe.h: Likewise.
61730         * lib/posixtm.c: Likewise.
61731         * lib/posixtm.h: Likewise.
61732         * lib/posixver.c: Likewise.
61733         * lib/printf-frexp.c: Likewise.
61734         * lib/printf-frexp.h: Likewise.
61735         * lib/printf-frexpl.c: Likewise.
61736         * lib/printf-frexpl.h: Likewise.
61737         * lib/printf.c: Likewise.
61738         * lib/progname.c: Likewise.
61739         * lib/progname.h: Likewise.
61740         * lib/progreloc.c: Likewise.
61741         * lib/putenv.c: Likewise.
61742         * lib/quote.c: Likewise.
61743         * lib/quote.h: Likewise.
61744         * lib/quotearg.c: Likewise.
61745         * lib/quotearg.h: Likewise.
61746         * lib/raise.c: Likewise.
61747         * lib/readline.c: Likewise.
61748         * lib/readline.h: Likewise.
61749         * lib/readlink.c: Likewise.
61750         * lib/readtokens.c: Likewise.
61751         * lib/readtokens.h: Likewise.
61752         * lib/readtokens0.c: Likewise.
61753         * lib/readtokens0.h: Likewise.
61754         * lib/readutmp.c: Likewise.
61755         * lib/readutmp.h: Likewise.
61756         * lib/realloc.c: Likewise.
61757         * lib/relocwrapper.c: Likewise.
61758         * lib/rename-dest-slash.c: Likewise.
61759         * lib/rename.c: Likewise.
61760         * lib/rmdir.c: Likewise.
61761         * lib/rpmatch.c: Likewise.
61762         * lib/safe-read.c: Likewise.
61763         * lib/safe-read.h: Likewise.
61764         * lib/safe-write.c: Likewise.
61765         * lib/safe-write.h: Likewise.
61766         * lib/same-inode.h: Likewise.
61767         * lib/same.c: Likewise.
61768         * lib/same.h: Likewise.
61769         * lib/save-cwd.c: Likewise.
61770         * lib/save-cwd.h: Likewise.
61771         * lib/savedir.c: Likewise.
61772         * lib/savedir.h: Likewise.
61773         * lib/savewd.c: Likewise.
61774         * lib/savewd.h: Likewise.
61775         * lib/search.in.h: Likewise.
61776         * lib/setenv.c: Likewise.
61777         * lib/setenv.h: Likewise.
61778         * lib/settime.c: Likewise.
61779         * lib/sh-quote.c: Likewise.
61780         * lib/sh-quote.h: Likewise.
61781         * lib/sig2str.c: Likewise.
61782         * lib/sig2str.h: Likewise.
61783         * lib/signal.in.h: Likewise.
61784         * lib/signbitd.c: Likewise.
61785         * lib/signbitf.c: Likewise.
61786         * lib/signbitl.c: Likewise.
61787         * lib/sigprocmask.c: Likewise.
61788         * lib/sincosl.c: Likewise.
61789         * lib/sleep.c: Likewise.
61790         * lib/sprintf.c: Likewise.
61791         * lib/sqrtl.c: Likewise.
61792         * lib/stat-time.h: Likewise.
61793         * lib/stdio--.h: Likewise.
61794         * lib/stdio-safer.h: Likewise.
61795         * lib/stdlib--.h: Likewise.
61796         * lib/stdlib-safer.h: Likewise.
61797         * lib/stdlib.in.h: Likewise.
61798         * lib/stpcpy.c: Likewise.
61799         * lib/stpncpy.c: Likewise.
61800         * lib/strchrnul.c: Likewise.
61801         * lib/strcspn.c: Likewise.
61802         * lib/strerror.c: Likewise.
61803         * lib/strftime.c: Likewise.
61804         * lib/strftime.h: Likewise.
61805         * lib/striconveh.c: Likewise.
61806         * lib/striconveh.h: Likewise.
61807         * lib/striconveha.c: Likewise.
61808         * lib/striconveha.h: Likewise.
61809         * lib/stripslash.c: Likewise.
61810         * lib/strnlen1.c: Likewise.
61811         * lib/strnlen1.h: Likewise.
61812         * lib/strtod.c: Likewise.
61813         * lib/strtoimax.c: Likewise.
61814         * lib/strtok_r.c: Likewise.
61815         * lib/strtol.c: Likewise.
61816         * lib/strtoll.c: Likewise.
61817         * lib/strtoul.c: Likewise.
61818         * lib/strtoull.c: Likewise.
61819         * lib/sysexits.in.h: Likewise.
61820         * lib/tempname.c: Likewise.
61821         * lib/tempname.h: Likewise.
61822         * lib/timespec.h: Likewise.
61823         * lib/tls.c: Likewise.
61824         * lib/tls.h: Likewise.
61825         * lib/tmpdir.c: Likewise.
61826         * lib/tmpdir.h: Likewise.
61827         * lib/tmpfile-safer.c: Likewise.
61828         * lib/tmpfile.c: Likewise.
61829         * lib/trigl.c: Likewise.
61830         * lib/trigl.h: Likewise.
61831         * lib/trim.c: Likewise.
61832         * lib/trim.h: Likewise.
61833         * lib/trunc.c: Likewise.
61834         * lib/truncf.c: Likewise.
61835         * lib/truncl.c: Likewise.
61836         * lib/tsearch.c: Likewise.
61837         * lib/unicodeio.c: Likewise.
61838         * lib/unicodeio.h: Likewise.
61839         * lib/unistd--.h: Likewise.
61840         * lib/unistd-safer.h: Likewise.
61841         * lib/unistdio/ulc-fprintf.c: Likewise.
61842         * lib/unistdio/ulc-vfprintf.c: Likewise.
61843         * lib/unlinkdir.c: Likewise.
61844         * lib/unlinkdir.h: Likewise.
61845         * lib/unlocked-io.h: Likewise.
61846         * lib/unsetenv.c: Likewise.
61847         * lib/userspec.c: Likewise.
61848         * lib/utime.c: Likewise.
61849         * lib/utimecmp.c: Likewise.
61850         * lib/utimecmp.h: Likewise.
61851         * lib/utimens.c: Likewise.
61852         * lib/verify.h: Likewise.
61853         * lib/verror.c: Likewise.
61854         * lib/verror.h: Likewise.
61855         * lib/version-etc-fsf.c: Likewise.
61856         * lib/version-etc.c: Likewise.
61857         * lib/version-etc.h: Likewise.
61858         * lib/vfprintf.c: Likewise.
61859         * lib/vprintf.c: Likewise.
61860         * lib/vsprintf.c: Likewise.
61861         * lib/w32spawn.h: Likewise.
61862         * lib/wait-process.c: Likewise.
61863         * lib/wait-process.h: Likewise.
61864         * lib/wcwidth.c: Likewise.
61865         * lib/write-any-file.c: Likewise.
61866         * lib/xalloc-die.c: Likewise.
61867         * lib/xalloc.h: Likewise.
61868         * lib/xasprintf.c: Likewise.
61869         * lib/xgetcwd.c: Likewise.
61870         * lib/xgetcwd.h: Likewise.
61871         * lib/xgetdomainname.c: Likewise.
61872         * lib/xgetdomainname.h: Likewise.
61873         * lib/xgethostname.c: Likewise.
61874         * lib/xmalloc.c: Likewise.
61875         * lib/xmalloca.c: Likewise.
61876         * lib/xmalloca.h: Likewise.
61877         * lib/xmemcoll.c: Likewise.
61878         * lib/xnanosleep.c: Likewise.
61879         * lib/xreadlink.c: Likewise.
61880         * lib/xreadlink.h: Likewise.
61881         * lib/xsetenv.c: Likewise.
61882         * lib/xsetenv.h: Likewise.
61883         * lib/xstriconv.c: Likewise.
61884         * lib/xstriconv.h: Likewise.
61885         * lib/xstrndup.c: Likewise.
61886         * lib/xstrndup.h: Likewise.
61887         * lib/xstrtod.c: Likewise.
61888         * lib/xstrtod.h: Likewise.
61889         * lib/xstrtol-error.c: Likewise.
61890         * lib/xstrtol.c: Likewise.
61891         * lib/xstrtol.h: Likewise.
61892         * lib/xtime.h: Likewise.
61893         * lib/xvasprintf.c: Likewise.
61894         * lib/xvasprintf.h: Likewise.
61895         * lib/yesno.c: Likewise.
61896         * lib/yesno.h: Likewise.
61897         * posix-modules: Likewise.
61898         * tests/test-alloca-opt.c: Likewise.
61899         * tests/test-arcfour.c: Likewise.
61900         * tests/test-arctwo.c: Likewise.
61901         * tests/test-argmatch.c: Likewise.
61902         * tests/test-argp-2.sh: Likewise.
61903         * tests/test-argp.c: Likewise.
61904         * tests/test-arpa_inet.c: Likewise.
61905         * tests/test-array_list.c: Likewise.
61906         * tests/test-array_oset.c: Likewise.
61907         * tests/test-atexit.c: Likewise.
61908         * tests/test-avltree_list.c: Likewise.
61909         * tests/test-avltree_oset.c: Likewise.
61910         * tests/test-avltreehash_list.c: Likewise.
61911         * tests/test-base64.c: Likewise.
61912         * tests/test-binary-io.c: Likewise.
61913         * tests/test-byteswap.c: Likewise.
61914         * tests/test-c-ctype.c: Likewise.
61915         * tests/test-c-strcasecmp.c: Likewise.
61916         * tests/test-c-strcasestr.c: Likewise.
61917         * tests/test-c-strncasecmp.c: Likewise.
61918         * tests/test-c-strstr.c: Likewise.
61919         * tests/test-canonicalize-lgpl.c: Likewise.
61920         * tests/test-canonicalize.c: Likewise.
61921         * tests/test-carray_list.c: Likewise.
61922         * tests/test-ceilf.c: Likewise.
61923         * tests/test-ceill.c: Likewise.
61924         * tests/test-count-one-bits.c: Likewise.
61925         * tests/test-crc.c: Likewise.
61926         * tests/test-dirname.c: Likewise.
61927         * tests/test-fbufmode.c: Likewise.
61928         * tests/test-fcntl.c: Likewise.
61929         * tests/test-fflush.c: Likewise.
61930         * tests/test-floorf.c: Likewise.
61931         * tests/test-floorl.c: Likewise.
61932         * tests/test-fopen.c: Likewise.
61933         * tests/test-fprintf-posix.c: Likewise.
61934         * tests/test-fprintf-posix.h: Likewise.
61935         * tests/test-fpurge.c: Likewise.
61936         * tests/test-freadable.c: Likewise.
61937         * tests/test-freadahead.c: Likewise.
61938         * tests/test-freading.c: Likewise.
61939         * tests/test-freopen.c: Likewise.
61940         * tests/test-frexp.c: Likewise.
61941         * tests/test-frexpl.c: Likewise.
61942         * tests/test-fseek.c: Likewise.
61943         * tests/test-fseeko.c: Likewise.
61944         * tests/test-fseterr.c: Likewise.
61945         * tests/test-fstrcmp.c: Likewise.
61946         * tests/test-ftell.c: Likewise.
61947         * tests/test-ftello.c: Likewise.
61948         * tests/test-fwritable.c: Likewise.
61949         * tests/test-fwriting.c: Likewise.
61950         * tests/test-getaddrinfo.c: Likewise.
61951         * tests/test-getpass.c: Likewise.
61952         * tests/test-gettimeofday.c: Likewise.
61953         * tests/test-hmac-md5.c: Likewise.
61954         * tests/test-hmac-sha1.c: Likewise.
61955         * tests/test-iconv.c: Likewise.
61956         * tests/test-iconvme.c: Likewise.
61957         * tests/test-inttypes.c: Likewise.
61958         * tests/test-isnan.c: Likewise.
61959         * tests/test-isnanf.c: Likewise.
61960         * tests/test-isnanl-nolibm.c: Likewise.
61961         * tests/test-isnanl.c: Likewise.
61962         * tests/test-isnanl.h: Likewise.
61963         * tests/test-ldexpl.c: Likewise.
61964         * tests/test-linked_list.c: Likewise.
61965         * tests/test-linkedhash_list.c: Likewise.
61966         * tests/test-locale.c: Likewise.
61967         * tests/test-localename.c: Likewise.
61968         * tests/test-lock.c: Likewise.
61969         * tests/test-lseek.c: Likewise.
61970         * tests/test-malloca.c: Likewise.
61971         * tests/test-math.c: Likewise.
61972         * tests/test-mbscasecmp.c: Likewise.
61973         * tests/test-mbscasestr1.c: Likewise.
61974         * tests/test-mbscasestr2.c: Likewise.
61975         * tests/test-mbscasestr3.c: Likewise.
61976         * tests/test-mbscasestr4.c: Likewise.
61977         * tests/test-mbschr.c: Likewise.
61978         * tests/test-mbscspn.c: Likewise.
61979         * tests/test-mbsncasecmp.c: Likewise.
61980         * tests/test-mbspbrk.c: Likewise.
61981         * tests/test-mbspcasecmp.c: Likewise.
61982         * tests/test-mbsrchr.c: Likewise.
61983         * tests/test-mbsspn.c: Likewise.
61984         * tests/test-mbsstr1.c: Likewise.
61985         * tests/test-mbsstr2.c: Likewise.
61986         * tests/test-mbsstr3.c: Likewise.
61987         * tests/test-md5.c: Likewise.
61988         * tests/test-memmem.c: Likewise.
61989         * tests/test-netinet_in.c: Likewise.
61990         * tests/test-open.c: Likewise.
61991         * tests/test-printf-frexp.c: Likewise.
61992         * tests/test-printf-frexpl.c: Likewise.
61993         * tests/test-printf-posix.c: Likewise.
61994         * tests/test-printf-posix.h: Likewise.
61995         * tests/test-rbtree_list.c: Likewise.
61996         * tests/test-rbtree_oset.c: Likewise.
61997         * tests/test-rbtreehash_list.c: Likewise.
61998         * tests/test-read-file.c: Likewise.
61999         * tests/test-rijndael.c: Likewise.
62000         * tests/test-search.c: Likewise.
62001         * tests/test-signbit.c: Likewise.
62002         * tests/test-sleep.c: Likewise.
62003         * tests/test-snprintf-posix.c: Likewise.
62004         * tests/test-snprintf-posix.h: Likewise.
62005         * tests/test-snprintf.c: Likewise.
62006         * tests/test-sprintf-posix.c: Likewise.
62007         * tests/test-sprintf-posix.h: Likewise.
62008         * tests/test-stat-time.c: Likewise.
62009         * tests/test-stdbool.c: Likewise.
62010         * tests/test-stdint.c: Likewise.
62011         * tests/test-stdio.c: Likewise.
62012         * tests/test-stdlib.c: Likewise.
62013         * tests/test-stpncpy.c: Likewise.
62014         * tests/test-strcasestr.c: Likewise.
62015         * tests/test-striconv.c: Likewise.
62016         * tests/test-striconveh.c: Likewise.
62017         * tests/test-striconveha.c: Likewise.
62018         * tests/test-string.c: Likewise.
62019         * tests/test-sys_select.c: Likewise.
62020         * tests/test-sys_socket.c: Likewise.
62021         * tests/test-sys_stat.c: Likewise.
62022         * tests/test-sys_time.c: Likewise.
62023         * tests/test-sysexits.c: Likewise.
62024         * tests/test-time.c: Likewise.
62025         * tests/test-tls.c: Likewise.
62026         * tests/test-trunc.c: Likewise.
62027         * tests/test-truncf.c: Likewise.
62028         * tests/test-truncl.c: Likewise.
62029         * tests/test-unistd.c: Likewise.
62030         * tests/test-vasnprintf-posix.c: Likewise.
62031         * tests/test-vasnprintf-posix2.c: Likewise.
62032         * tests/test-vasnprintf.c: Likewise.
62033         * tests/test-vasprintf-posix.c: Likewise.
62034         * tests/test-vasprintf.c: Likewise.
62035         * tests/test-verify.c: Likewise.
62036         * tests/test-vfprintf-posix.c: Likewise.
62037         * tests/test-vprintf-posix.c: Likewise.
62038         * tests/test-vsnprintf-posix.c: Likewise.
62039         * tests/test-vsnprintf.c: Likewise.
62040         * tests/test-vsprintf-posix.c: Likewise.
62041         * tests/test-wchar.c: Likewise.
62042         * tests/test-wctype.c: Likewise.
62043         * tests/test-wcwidth.c: Likewise.
62044         * tests/test-xstrtol.c: Likewise.
62045         * tests/test-xvasprintf.c: Likewise.
62046         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62047         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62048         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62049         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62050         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62051         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62052         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62053         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62054         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62055         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62056         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62057         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62058         * tests/uniname/test-uninames.c: Likewise.
62059         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62060         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62061         * tests/unistdio/test-u16-printf1.h: Likewise.
62062         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62063         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62064         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62065         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62066         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62067         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62068         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62069         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62070         * tests/unistdio/test-u32-printf1.h: Likewise.
62071         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62072         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62073         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62074         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62075         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62076         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62077         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62078         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62079         * tests/unistdio/test-u8-printf1.h: Likewise.
62080         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62081         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62082         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62083         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62084         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62085         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62086         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62087         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62088         * tests/unistdio/test-ulc-printf1.h: Likewise.
62089         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62090         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62091         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62092         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62093         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62094         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62095         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62096         * tests/uniwidth/test-u16-width.c: Likewise.
62097         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62098         * tests/uniwidth/test-u32-width.c: Likewise.
62099         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62100         * tests/uniwidth/test-u8-width.c: Likewise.
62101         * tests/uniwidth/test-uc_width.c: Likewise.
62102         * config/srclist-update: Likewise.
62103         (fixlicense): Update to GPLv3+.
62104
62105         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62106         * tests/test-tsearch.c: Change copyright notice.
62107
62108         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62109         * lib/c-strcaseeq.h: Change copyright notice.
62110         * lib/streq.h: Likewise.
62111         * lib/uniconv.h: Likewise.
62112         * lib/uniconv/u-conv-from-enc.h: Likewise.
62113         * lib/uniconv/u-conv-to-enc.h: Likewise.
62114         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62115         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62116         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62117         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62118         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62119         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62120         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62121         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62122         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62123         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62124         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62125         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62126         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62127         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62128         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62129         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62130         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62131         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62132         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62133         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62134         * lib/uniname.h: Likewise.
62135         * lib/uniname/uniname.c: Likewise.
62136         * lib/unistdio.h: Likewise.
62137         * lib/unistdio/u-asnprintf.h: Likewise.
62138         * lib/unistdio/u-asprintf.h: Likewise.
62139         * lib/unistdio/u-printf-args.c: Likewise.
62140         * lib/unistdio/u-printf-args.h: Likewise.
62141         * lib/unistdio/u-printf-parse.h: Likewise.
62142         * lib/unistdio/u-snprintf.h: Likewise.
62143         * lib/unistdio/u-sprintf.h: Likewise.
62144         * lib/unistdio/u-vasprintf.h: Likewise.
62145         * lib/unistdio/u-vsnprintf.h: Likewise.
62146         * lib/unistdio/u-vsprintf.h: Likewise.
62147         * lib/unistdio/u16-asnprintf.c: Likewise.
62148         * lib/unistdio/u16-asprintf.c: Likewise.
62149         * lib/unistdio/u16-printf-parse.c: Likewise.
62150         * lib/unistdio/u16-snprintf.c: Likewise.
62151         * lib/unistdio/u16-sprintf.c: Likewise.
62152         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62153         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62154         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62155         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62156         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62157         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62158         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62159         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62160         * lib/unistdio/u16-vasnprintf.c: Likewise.
62161         * lib/unistdio/u16-vasprintf.c: Likewise.
62162         * lib/unistdio/u16-vsnprintf.c: Likewise.
62163         * lib/unistdio/u16-vsprintf.c: Likewise.
62164         * lib/unistdio/u32-asnprintf.c: Likewise.
62165         * lib/unistdio/u32-asprintf.c: Likewise.
62166         * lib/unistdio/u32-printf-parse.c: Likewise.
62167         * lib/unistdio/u32-snprintf.c: Likewise.
62168         * lib/unistdio/u32-sprintf.c: Likewise.
62169         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62170         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62171         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62172         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62173         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62174         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62175         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62176         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62177         * lib/unistdio/u32-vasnprintf.c: Likewise.
62178         * lib/unistdio/u32-vasprintf.c: Likewise.
62179         * lib/unistdio/u32-vsnprintf.c: Likewise.
62180         * lib/unistdio/u32-vsprintf.c: Likewise.
62181         * lib/unistdio/u8-asnprintf.c: Likewise.
62182         * lib/unistdio/u8-asprintf.c: Likewise.
62183         * lib/unistdio/u8-printf-parse.c: Likewise.
62184         * lib/unistdio/u8-snprintf.c: Likewise.
62185         * lib/unistdio/u8-sprintf.c: Likewise.
62186         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62187         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62188         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62189         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62190         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62191         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62192         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62193         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62194         * lib/unistdio/u8-vasnprintf.c: Likewise.
62195         * lib/unistdio/u8-vasprintf.c: Likewise.
62196         * lib/unistdio/u8-vsnprintf.c: Likewise.
62197         * lib/unistdio/u8-vsprintf.c: Likewise.
62198         * lib/unistdio/ulc-asnprintf.c: Likewise.
62199         * lib/unistdio/ulc-asprintf.c: Likewise.
62200         * lib/unistdio/ulc-printf-parse.c: Likewise.
62201         * lib/unistdio/ulc-snprintf.c: Likewise.
62202         * lib/unistdio/ulc-sprintf.c: Likewise.
62203         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62204         * lib/unistdio/ulc-vasprintf.c: Likewise.
62205         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62206         * lib/unistdio/ulc-vsprintf.c: Likewise.
62207         * lib/unistr.h: Likewise.
62208         * lib/unistr/u-cpy-alloc.h: Likewise.
62209         * lib/unistr/u-cpy.h: Likewise.
62210         * lib/unistr/u-endswith.h: Likewise.
62211         * lib/unistr/u-move.h: Likewise.
62212         * lib/unistr/u-set.h: Likewise.
62213         * lib/unistr/u-startswith.h: Likewise.
62214         * lib/unistr/u-stpcpy.h: Likewise.
62215         * lib/unistr/u-stpncpy.h: Likewise.
62216         * lib/unistr/u-strcat.h: Likewise.
62217         * lib/unistr/u-strcpy.h: Likewise.
62218         * lib/unistr/u-strcspn.h: Likewise.
62219         * lib/unistr/u-strdup.h: Likewise.
62220         * lib/unistr/u-strlen.h: Likewise.
62221         * lib/unistr/u-strncat.h: Likewise.
62222         * lib/unistr/u-strncpy.h: Likewise.
62223         * lib/unistr/u-strnlen.h: Likewise.
62224         * lib/unistr/u-strpbrk.h: Likewise.
62225         * lib/unistr/u-strspn.h: Likewise.
62226         * lib/unistr/u-strstr.h: Likewise.
62227         * lib/unistr/u-strtok.h: Likewise.
62228         * lib/unistr/u16-check.c: Likewise.
62229         * lib/unistr/u16-chr.c: Likewise.
62230         * lib/unistr/u16-cmp.c: Likewise.
62231         * lib/unistr/u16-cpy-alloc.c: Likewise.
62232         * lib/unistr/u16-cpy.c: Likewise.
62233         * lib/unistr/u16-endswith.c: Likewise.
62234         * lib/unistr/u16-mblen.c: Likewise.
62235         * lib/unistr/u16-mbsnlen.c: Likewise.
62236         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62237         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62238         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62239         * lib/unistr/u16-mbtouc.c: Likewise.
62240         * lib/unistr/u16-mbtoucr.c: Likewise.
62241         * lib/unistr/u16-move.c: Likewise.
62242         * lib/unistr/u16-next.c: Likewise.
62243         * lib/unistr/u16-prev.c: Likewise.
62244         * lib/unistr/u16-set.c: Likewise.
62245         * lib/unistr/u16-startswith.c: Likewise.
62246         * lib/unistr/u16-stpcpy.c: Likewise.
62247         * lib/unistr/u16-stpncpy.c: Likewise.
62248         * lib/unistr/u16-strcat.c: Likewise.
62249         * lib/unistr/u16-strchr.c: Likewise.
62250         * lib/unistr/u16-strcmp.c: Likewise.
62251         * lib/unistr/u16-strcpy.c: Likewise.
62252         * lib/unistr/u16-strcspn.c: Likewise.
62253         * lib/unistr/u16-strdup.c: Likewise.
62254         * lib/unistr/u16-strlen.c: Likewise.
62255         * lib/unistr/u16-strmblen.c: Likewise.
62256         * lib/unistr/u16-strmbtouc.c: Likewise.
62257         * lib/unistr/u16-strncat.c: Likewise.
62258         * lib/unistr/u16-strncmp.c: Likewise.
62259         * lib/unistr/u16-strncpy.c: Likewise.
62260         * lib/unistr/u16-strnlen.c: Likewise.
62261         * lib/unistr/u16-strpbrk.c: Likewise.
62262         * lib/unistr/u16-strrchr.c: Likewise.
62263         * lib/unistr/u16-strspn.c: Likewise.
62264         * lib/unistr/u16-strstr.c: Likewise.
62265         * lib/unistr/u16-strtok.c: Likewise.
62266         * lib/unistr/u16-to-u32.c: Likewise.
62267         * lib/unistr/u16-to-u8.c: Likewise.
62268         * lib/unistr/u16-uctomb-aux.c: Likewise.
62269         * lib/unistr/u16-uctomb.c: Likewise.
62270         * lib/unistr/u32-check.c: Likewise.
62271         * lib/unistr/u32-chr.c: Likewise.
62272         * lib/unistr/u32-cmp.c: Likewise.
62273         * lib/unistr/u32-cpy-alloc.c: Likewise.
62274         * lib/unistr/u32-cpy.c: Likewise.
62275         * lib/unistr/u32-endswith.c: Likewise.
62276         * lib/unistr/u32-mblen.c: Likewise.
62277         * lib/unistr/u32-mbsnlen.c: Likewise.
62278         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62279         * lib/unistr/u32-mbtouc.c: Likewise.
62280         * lib/unistr/u32-mbtoucr.c: Likewise.
62281         * lib/unistr/u32-move.c: Likewise.
62282         * lib/unistr/u32-next.c: Likewise.
62283         * lib/unistr/u32-prev.c: Likewise.
62284         * lib/unistr/u32-set.c: Likewise.
62285         * lib/unistr/u32-startswith.c: Likewise.
62286         * lib/unistr/u32-stpcpy.c: Likewise.
62287         * lib/unistr/u32-stpncpy.c: Likewise.
62288         * lib/unistr/u32-strcat.c: Likewise.
62289         * lib/unistr/u32-strchr.c: Likewise.
62290         * lib/unistr/u32-strcmp.c: Likewise.
62291         * lib/unistr/u32-strcpy.c: Likewise.
62292         * lib/unistr/u32-strcspn.c: Likewise.
62293         * lib/unistr/u32-strdup.c: Likewise.
62294         * lib/unistr/u32-strlen.c: Likewise.
62295         * lib/unistr/u32-strmblen.c: Likewise.
62296         * lib/unistr/u32-strmbtouc.c: Likewise.
62297         * lib/unistr/u32-strncat.c: Likewise.
62298         * lib/unistr/u32-strncmp.c: Likewise.
62299         * lib/unistr/u32-strncpy.c: Likewise.
62300         * lib/unistr/u32-strnlen.c: Likewise.
62301         * lib/unistr/u32-strpbrk.c: Likewise.
62302         * lib/unistr/u32-strrchr.c: Likewise.
62303         * lib/unistr/u32-strspn.c: Likewise.
62304         * lib/unistr/u32-strstr.c: Likewise.
62305         * lib/unistr/u32-strtok.c: Likewise.
62306         * lib/unistr/u32-to-u16.c: Likewise.
62307         * lib/unistr/u32-to-u8.c: Likewise.
62308         * lib/unistr/u32-uctomb.c: Likewise.
62309         * lib/unistr/u8-check.c: Likewise.
62310         * lib/unistr/u8-chr.c: Likewise.
62311         * lib/unistr/u8-cmp.c: Likewise.
62312         * lib/unistr/u8-cpy-alloc.c: Likewise.
62313         * lib/unistr/u8-cpy.c: Likewise.
62314         * lib/unistr/u8-endswith.c: Likewise.
62315         * lib/unistr/u8-mblen.c: Likewise.
62316         * lib/unistr/u8-mbsnlen.c: Likewise.
62317         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62318         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62319         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62320         * lib/unistr/u8-mbtouc.c: Likewise.
62321         * lib/unistr/u8-mbtoucr.c: Likewise.
62322         * lib/unistr/u8-move.c: Likewise.
62323         * lib/unistr/u8-next.c: Likewise.
62324         * lib/unistr/u8-prev.c: Likewise.
62325         * lib/unistr/u8-set.c: Likewise.
62326         * lib/unistr/u8-startswith.c: Likewise.
62327         * lib/unistr/u8-stpcpy.c: Likewise.
62328         * lib/unistr/u8-stpncpy.c: Likewise.
62329         * lib/unistr/u8-strcat.c: Likewise.
62330         * lib/unistr/u8-strchr.c: Likewise.
62331         * lib/unistr/u8-strcmp.c: Likewise.
62332         * lib/unistr/u8-strcpy.c: Likewise.
62333         * lib/unistr/u8-strcspn.c: Likewise.
62334         * lib/unistr/u8-strdup.c: Likewise.
62335         * lib/unistr/u8-strlen.c: Likewise.
62336         * lib/unistr/u8-strmblen.c: Likewise.
62337         * lib/unistr/u8-strmbtouc.c: Likewise.
62338         * lib/unistr/u8-strncat.c: Likewise.
62339         * lib/unistr/u8-strncmp.c: Likewise.
62340         * lib/unistr/u8-strncpy.c: Likewise.
62341         * lib/unistr/u8-strnlen.c: Likewise.
62342         * lib/unistr/u8-strpbrk.c: Likewise.
62343         * lib/unistr/u8-strrchr.c: Likewise.
62344         * lib/unistr/u8-strspn.c: Likewise.
62345         * lib/unistr/u8-strstr.c: Likewise.
62346         * lib/unistr/u8-strtok.c: Likewise.
62347         * lib/unistr/u8-to-u16.c: Likewise.
62348         * lib/unistr/u8-to-u32.c: Likewise.
62349         * lib/unistr/u8-uctomb-aux.c: Likewise.
62350         * lib/unistr/u8-uctomb.c: Likewise.
62351         * lib/unitypes.h: Likewise.
62352         * lib/uniwidth.h: Likewise.
62353         * lib/uniwidth/cjk.h: Likewise.
62354         * lib/uniwidth/u16-strwidth.c: Likewise.
62355         * lib/uniwidth/u16-width.c: Likewise.
62356         * lib/uniwidth/u32-strwidth.c: Likewise.
62357         * lib/uniwidth/u32-width.c: Likewise.
62358         * lib/uniwidth/u8-strwidth.c: Likewise.
62359         * lib/uniwidth/u8-width.c: Likewise.
62360         * lib/uniwidth/width.c: Likewise.
62361
62362 2007-10-07  Bruno Haible  <bruno@clisp.org>
62363
62364         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62365         The file is still under LGPL (see modules/inttypes).
62366
62367 2007-10-06  Bruno Haible  <bruno@clisp.org>
62368
62369         * modules/trunc (Dependencies): Add 'extensions'.
62370         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62371         Reported by Ben Pfaff <blp@gnu.org>.
62372
62373 2007-10-06  Bruno Haible  <bruno@clisp.org>
62374
62375         * modules/freopen-tests: New file.
62376         * tests/test-freopen.c: New file.
62377
62378         * modules/fopen-tests: New file.
62379         * tests/test-fopen.c: New file.
62380
62381         * modules/fopen: New file.
62382         * lib/fopen.c: New file.
62383         * m4/fopen.m4: New file.
62384         * modules/freopen: New file.
62385         * lib/freopen.c: New file.
62386         * m4/freopen.m4: New file.
62387         * lib/stdio.in.h (fopen, freopen): New declarations.
62388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62389         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62390         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62391         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62392         * doc/functions/fopen.texi: Mention the 'fopen' module.
62393         * doc/functions/freopen.texi: Mention the 'freopen' module.
62394
62395 2007-10-06  Bruno Haible  <bruno@clisp.org>
62396
62397         * modules/open-tests: New file.
62398         * tests/test-open.c: New file.
62399
62400         * modules/open: New file.
62401         * lib/open.c: New file.
62402         * m4/open.m4: New file.
62403         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62404         lib/open.c does.
62405         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62406         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62407         macros.
62408         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62409         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62410         REPLACE_OPEN.
62411         * doc/functions/open.texi: Mention the 'open' module.
62412
62413 2007-10-04  Bruno Haible  <bruno@clisp.org>
62414
62415         * modules/ceill-tests: New file.
62416         * tests/test-ceill.c: New file.
62417
62418         * modules/ceill: New file.
62419         * lib/ceill.c: Replace entire file.
62420         * m4/ceill.m4: New file.
62421         * lib/math.in.h (ceill): Replace declaration.
62422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62423         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62424         * doc/functions/ceill.texi: Mention the 'ceill' module.
62425         * modules/mathl (Files): Remove lib/ceill.c.
62426         (Depends-on): Add ceill.
62427
62428 2007-10-04  Bruno Haible  <bruno@clisp.org>
62429
62430         * modules/ceilf-tests: New file.
62431         * tests/test-ceilf.c: New file.
62432
62433         * modules/ceilf: New file.
62434         * lib/ceil.c: New file.
62435         * lib/ceilf.c: New file.
62436         * m4/ceilf.m4: New file.
62437         * lib/math.in.h (ceilf): New declaration.
62438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62439         HAVE_DECL_CEILF.
62440         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62441         HAVE_DECL_CEILF.
62442         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62443
62444 2007-10-04  Bruno Haible  <bruno@clisp.org>
62445
62446         * modules/floorl-tests: New file.
62447         * tests/test-floorl.c: New file.
62448
62449         * modules/floorl: New file.
62450         * lib/floorl.c: Replace entire file.
62451         * m4/floorl.m4: New file.
62452         * lib/math.in.h (floorl): Replace declaration.
62453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62454         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62455         * doc/functions/floorl.texi: Mention the 'floorl' module.
62456         * modules/mathl (Files): Remove lib/floorl.c.
62457         (Depends-on): Add floorl.
62458
62459 2007-10-04  Bruno Haible  <bruno@clisp.org>
62460
62461         * modules/floorf-tests: New file.
62462         * tests/test-floorf.c: New file.
62463
62464         * modules/floorf: New file.
62465         * lib/floor.c: New file.
62466         * lib/floorf.c: New file.
62467         * m4/floorf.m4: New file.
62468         * lib/math.in.h (floorf): New declaration.
62469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62470         HAVE_DECL_FLOORF.
62471         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62472         HAVE_DECL_FLOORF.
62473         * doc/functions/floorf.texi: Mention the 'floorf' module.
62474
62475 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62476             Bruno Haible  <bruno@clisp.org>
62477
62478         Advertise for the Git server instead of the CVS server.
62479         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62480         repository instead of the CVS one.
62481         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62482         about all VCS systems generically.
62483         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62484
62485 2007-10-04  Bruno Haible  <bruno@clisp.org>
62486
62487         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62488         means.
62489         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62490
62491 2007-10-04  Bruno Haible  <bruno@clisp.org>
62492
62493         * modules/truncl-tests: New file.
62494         * tests/test-truncl.c: New file.
62495
62496         * modules/truncl: New file.
62497         * lib/truncl.c: New file.
62498         * m4/truncl.m4: New file.
62499         * lib/math.in.h (truncl): New declaration.
62500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62501         HAVE_DECL_TRUNCL.
62502         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62503         HAVE_DECL_TRUNCL.
62504         * doc/functions/truncl.texi: Mention the 'truncl' module.
62505
62506 2007-10-04  Bruno Haible  <bruno@clisp.org>
62507
62508         * modules/truncf-tests: New file.
62509         * tests/test-truncf.c: New file.
62510
62511         * modules/truncf: New file.
62512         * lib/trunc.c: Make paramerizable through USE_* macros.
62513         * lib/truncf.c: New file.
62514         * m4/truncf.m4: New file.
62515         * lib/math.in.h (truncf): New declaration.
62516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62517         HAVE_DECL_TRUNCF.
62518         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62519         HAVE_DECL_TRUNCF.
62520         * doc/functions/truncf.texi: Mention the 'truncf' module.
62521
62522 2007-10-03  Bruno Haible  <bruno@clisp.org>
62523
62524         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62525         augmentation also for tests modules.
62526         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62527         * modules/atexit-tests (Makefile.am): Likewise.
62528         * modules/binary-io-tests (Makefile.am): Likewise.
62529         * modules/c-strcase-tests (Makefile.am): Likewise.
62530         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62531         * modules/canonicalize-tests (Makefile.am): Likewise.
62532         * modules/closein-tests (Makefile.am): Likewise.
62533         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62534         * modules/freadahead-tests (Makefile.am): Likewise.
62535         * modules/fseek-tests (Makefile.am): Likewise.
62536         * modules/fseeko-tests (Makefile.am): Likewise.
62537         * modules/ftell-tests (Makefile.am): Likewise.
62538         * modules/ftello-tests (Makefile.am): Likewise.
62539         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62540         * modules/isnanl-tests (Makefile.am): Likewise.
62541         * modules/lseek-tests (Makefile.am): Likewise.
62542         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62543         * modules/mbscasestr-tests (Makefile.am): Likewise.
62544         * modules/mbschr-tests (Makefile.am): Likewise.
62545         * modules/mbscspn-tests (Makefile.am): Likewise.
62546         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62547         * modules/mbspbrk-tests (Makefile.am): Likewise.
62548         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62549         * modules/mbsrchr-tests (Makefile.am): Likewise.
62550         * modules/mbsspn-tests (Makefile.am): Likewise.
62551         * modules/mbsstr-tests (Makefile.am): Likewise.
62552         * modules/printf-posix-tests (Makefile.am): Likewise.
62553         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62554         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62555         * modules/tsearch-tests (Makefile.am): Likewise.
62556         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62557         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62558         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62559         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62560         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62561         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62562         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62563         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62564         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62565         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62566         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62567         * modules/xstrtol-tests (Makefile.am): Likewise.
62568         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62569         * modules/yesno-tests (Makefile.am): Likewise.
62570
62571 2007-10-03  Bruno Haible  <bruno@clisp.org>
62572
62573         * modules/trunc-tests: New file.
62574         * tests/test-trunc.c: New file.
62575
62576         * modules/trunc: New file.
62577         * lib/trunc.c: New file.
62578         * m4/trunc.m4: New file.
62579         * lib/math.in.h (trunc): New declaration.
62580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62581         HAVE_DECL_TRUNC.
62582         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62583         HAVE_DECL_TRUNC.
62584         * doc/functions/trunc.texi: Mention the 'trunc' module.
62585
62586 2007-10-03  Bruno Haible  <bruno@clisp.org>
62587
62588         * tests/test-fpending.c: New file, mostly copied
62589         from coreutils/lib/t-fpending.c.
62590         * modules/fpending-tests: New file.
62591
62592 2007-10-03  Bruno Haible  <bruno@clisp.org>
62593
62594         Port the stdio extensions to QNX (untested).
62595         * lib/fseterr.c (fseterr): Add support for QNX.
62596         * lib/fbufmode.c (fbufmode): Likewise.
62597         * lib/freadable.c (freadable): Likewise.
62598         * lib/fwritable.c (fwritable): Likewise.
62599         * lib/freading.c (freading): Likewise.
62600         * lib/fwriting.c (fwriting): Likewise.
62601         * lib/freadahead.c (freadahed): Likewise.
62602         * lib/fpurge.c (fpurge): Likewise.
62603         * lib/fseeko.c (rpl_fseeko): Likewise.
62604
62605 2007-10-03  Bruno Haible  <bruno@clisp.org>
62606             Jim Meyering  <jim@meyering.net>
62607             Eric Blake  <ebb9@byu.net>
62608
62609         * doc/relocatable.texi: Use @command instead of @program.
62610
62611 2007-10-02  Jim Meyering  <jim@meyering.net>
62612
62613         Perform one more "_.h" -> ".in.h" substitution.
62614         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62615         instead of unistd_.h here, too.
62616
62617 2007-10-01  Bruno Haible  <bruno@clisp.org>
62618
62619         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62620         Needed for the alloca-opt module.
62621
62622 2007-09-30  Bruno Haible  <bruno@clisp.org>
62623
62624         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62625         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62626         alloca_.h.
62627         * lib/argz.in.h: Renamed from lib/argz_.h.
62628         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62629         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62630         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62631         byteswap_.h.
62632         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62633         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62634         dirent_.h.
62635         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62636         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62637         fcntl_.h.
62638         * lib/float.in.h: Renamed from lib/float_.h.
62639         * modules/float (Files, Makefile.am): Use float.in.h instead of
62640         float_.h.
62641         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62642         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62643         fnmatch_.h.
62644         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62645         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62646         getopt_.h.
62647         * lib/glob.in.h: Renamed from lib/glob_.h.
62648         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62649         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62650         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62651         iconv_.h.
62652         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62653         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62654         inttypes_.h.
62655         * lib/locale.in.h: Renamed from lib/locale_.h.
62656         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62657         locale_.h.
62658         * lib/math.in.h: Renamed from lib/math_.h.
62659         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62660         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62661         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62662         of netinet_in_.h. Add dependency.
62663         * lib/poll.in.h: Renamed from lib/poll_.h.
62664         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62665         * lib/search.in.h: Renamed from lib/search_.h.
62666         * modules/search (Files, Makefile.am): Use search.in.h instead of
62667         search_.h.
62668         * lib/signal.in.h: Renamed from lib/signal_.h.
62669         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62670         _signal.h.
62671         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62672         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62673         stdbool_.h.
62674         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62675         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62676         stdint_.h.
62677         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62678         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62679         stdio_.h.
62680         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62681         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62682         stdlib_.h.
62683         * lib/string.in.h: Renamed from lib/string_.h.
62684         * modules/string (Files, Makefile.am): Use string.in.h instead of
62685         string_.h.
62686         * doc/gnulib-tool.texi (Initial import): Update.
62687         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62688         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62689         of sys_select_.h. Add dependency.
62690         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62691         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62692         of sys_socket_.h.
62693         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62694         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62695         sys_stat_.h.
62696         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62697         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62698         sys_time_.h.
62699         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62700         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62701         sysexits_.h.
62702         * lib/time.in.h: Renamed from lib/time_.h.
62703         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62704         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62705         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62706         unistd_.h.
62707         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62708         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62709         wchar_.h.
62710         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62711         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62712         wctype_.h.
62713         * build-aux/bootstrap (slurp): Update.
62714         * lib/.cppi-disable: Update.
62715
62716 2007-09-30  Bruno Haible  <bruno@clisp.org>
62717
62718         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62719         Needed on BeOS.
62720
62721 2007-09-30  Bruno Haible  <bruno@clisp.org>
62722
62723         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62724
62725 2007-09-29  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62728
62729 2007-09-29  Bruno Haible  <bruno@clisp.org>
62730
62731         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62732         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62733         * build-aux/install-reloc: Compile also areadlink.c.
62734         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62735
62736 2007-09-29  Bruno Haible  <bruno@clisp.org>
62737
62738         * gnulib-tool (func_emit_initmacro_done): Indentation.
62739
62740 2007-09-29  Bruno Haible  <bruno@clisp.org>
62741
62742         * README: Add CVS checkout update instructions.
62743         Info from Bob Proulx <bob@proulx.com>.
62744
62745 2007-09-28  Eric Blake  <ebb9@byu.net>
62746
62747         Provide move-if-change.
62748         * build-aux/move-if-change: New file, based on best practice
62749         rather than any canonical upstream location.
62750
62751 2007-09-28  Jim Meyering  <jim@meyering.net>
62752
62753         Fix canonicalize loop-detection corner case.
62754         Do not attempt to stat the symlink values stored via seen_triple.
62755         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62756         on linux-2.6.18, (but not 2.6.22).
62757         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62758         triple_compare.  The former compares dev,ino,filename, while the latter
62759         would actually stat dirname(filename) when dev and ino were equal.
62760         * lib/hash-triple.c: Install <string.h>.
62761         (STREQ): Define.
62762         (triple_compare_ino_str): New function.
62763         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62764
62765 2007-09-28  Eric Blake  <ebb9@byu.net>
62766
62767         Enforce that AC_REPLACE_FUNCS files exist.
62768         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62769         override check for typos.
62770
62771         Fix test-closein on Solaris 10.
62772         * tests/test-closein.c (main): Don't assume stdin can be inherited
62773         closed on all systems.
62774         * tests/test-closein.sh: Likewise.
62775         Reported by Piotr Tarnowski.
62776
62777 2007-09-28  Jim Meyering  <jim@meyering.net>
62778
62779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62780
62781 2007-09-27  Jim Meyering  <jim@meyering.net>
62782
62783         canonicalize: Avoid a false-positive cycle failure.
62784         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62785         Sort.  Remove cycle-check.
62786         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62787         not cycle-check.h.
62788         (seen_triple): New function.
62789         (canonicalize_filename_mode): Use it instead of cycle-check.
62790         * tests/test-canonicalize.c: Add a test for this bug.
62791         * tests/test-canonicalize.sh: Set up and run the test.
62792
62793         New module, file-set, from coreutils.
62794         * modules/file-set: Define it.
62795         * lib/file-set.c, lib/file-set.h: Implement.
62796
62797         New module, hash-triple, from coreutils.
62798         * modules/hash-triple: Define it.
62799         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62800
62801 2007-09-25  Eric Blake  <ebb9@byu.net>
62802
62803         Fix strerror on Interix.
62804         * lib/string_.h (strerror): Declare replacement.
62805         * doc/functions/strerror.texi (strerror): Document the Interix
62806         shortcoming.
62807         * modules/string (Makefile.am): Support new hooks.
62808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62809         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62810         gl_FUNC_STRERROR_SEPARATE.
62811         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62812         * lib/strerror.c (rpl_strerror): Provide replacement.
62813         * modules/strerror (Depends-on): Add string.
62814         (configure.ac): Detect use of module.
62815         * tests/test-strerror.c: New file.
62816         * modules/strerror-tests: New test module.
62817         * modules/argp (Depends-on): Add strerror.
62818         * modules/error (Depends-on): Likewise.
62819         Reported by Martin Koeppe.
62820
62821 2007-09-24  Bruno Haible  <bruno@clisp.org>
62822
62823         * README: Update git instructions.
62824
62825 2007-09-24  Eric Blake  <ebb9@byu.net>
62826
62827         Revert fpending breakage from 2007-09-08.
62828         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62829         __fpending.c.
62830
62831 2007-09-24  Jim Meyering  <jim@meyering.net>
62832
62833         filenamecat.c: Add a test.
62834         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62835         showing how the function works when DIR is the empty string.
62836
62837 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62838
62839         * tests/test-canonicalize.sh: Turn on executable bit.
62840
62841 2007-09-19  Eric Blake  <ebb9@byu.net>
62842
62843         * README: Update CVS instructions.
62844
62845 2007-09-18  Bruno Haible  <bruno@clisp.org>
62846
62847         * modules/areadlink: New file.
62848         * lib/areadlink.h (areadlink): New declaration.
62849         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62850
62851 2007-09-17  Jim Meyering  <jim@meyering.net>
62852
62853         * lib/savewd.c (ESTALE) [!defined]: Define.
62854         Reported to be required on Interix by Martin Koeppe.
62855
62856 2007-09-17  Bruno Haible  <bruno@clisp.org>
62857
62858         * gnulib-tool (func_version): Use $version.
62859
62860 2007-09-16  Bruno Haible  <bruno@clisp.org>
62861
62862         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62863         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62864         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62865         Reported by Greg Schafer <gschafer@zip.com.au>.
62866
62867 2007-09-15  Bruno Haible  <bruno@clisp.org>
62868
62869         * gnulib-tool (sed): Try a little harder to make bash understand the
62870         alias.
62871         Reported by Bruce Korb <bruce.korb@gmail.com>.
62872
62873 2007-09-13  Eric Blake  <ebb9@byu.net>
62874
62875         * ChangeLog: Remove conflict markers.
62876
62877 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62878
62879         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62880         Reported by Bruno Haible <bruno@clisp.org>.
62881
62882 2007-09-12  Bruno Haible  <bruno@clisp.org>
62883
62884         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62885         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62886         is not defined.
62887
62888 2007-09-12  Eric Blake  <ebb9@byu.net>
62889
62890         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62891         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62892         Autoconf definition.
62893         * modules/euidaccess (Depends-on): Add extensions, for
62894         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62895         * modules/fnmatch (Depends-on): Likewise.
62896         * modules/getaddrinfo (Depends-on): Likewise.
62897         * modules/getdelim (Depends-on): Likewise.
62898         * modules/getline (Depends-on): Likewise.
62899         * modules/getsubopt (Depends-on): Likewise.
62900         * modules/gettext (Depends-on): Likewise.
62901         * modules/group-member (Depends-on): Likewise.
62902         * modules/mbchar (Depends-on): Likewise.
62903         * modules/memmem (Depends-on): Likewise.
62904         * modules/mempcpy (Depends-on): Likewise.
62905         * modules/memrchr (Depends-on): Likewise.
62906         * modules/pagealign_alloc (Depends-on): Likewise.
62907         * modules/readutmp (Depends-on): Likewise.
62908         * modules/stpcpy (Depends-on): Likewise.
62909         * modules/stpncpy (Depends-on): Likewise.
62910         * modules/strchrnul (Depends-on): Likewise.
62911         * modules/strndup (Depends-on): Likewise.
62912         * modules/strsep (Depends-on): Likewise.
62913         * modules/strverscmp (Depends-on): Likewise.
62914         * modules/vasprintf (Depends-on): Likewise.
62915         * modules/wcwidth (Depends-on): Likewise.
62916         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62917         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62918         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62919         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62920         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62921         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62922         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62923         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62924         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62925         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62927         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62928         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62929         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62930         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62931         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62932         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62933         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62934         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62935         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62936         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62937         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62938         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62939         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62940         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62942         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62943         so that lock.m4 can be used in gettext without extensions module.
62944
62945 2007-09-11  Bruno Haible  <bruno@clisp.org>
62946
62947         * m4/isc-posix.m4: Remove file.
62948         Suggested by Eric Blake.
62949
62950 2007-09-11  Eric Blake  <ebb9@byu.net>
62951
62952         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62953
62954 2007-09-10  Bruno Haible  <bruno@clisp.org>
62955
62956         * posix-modules: Fix typo in error message.
62957         Reported by Matt <mkraai@beckman.com>.
62958
62959 2007-09-09  Bruno Haible  <bruno@clisp.org>
62960
62961         * doc/functions/getdelim.texi: Update list of platforms lacking the
62962         function.
62963         * doc/functions/getline.texi: Likewise.
62964
62965 2007-09-09  Jim Meyering  <jim@meyering.net>
62966
62967         * lib/hash.c (hash_initialize): Detect calloc failure.
62968         Reported by Bruno Haible.
62969
62970 2007-09-09  Bruno Haible  <bruno@clisp.org>
62971
62972         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62973         malloc or realloc fails.
62974
62975 2007-09-09  Bruno Haible  <bruno@clisp.org>
62976
62977         * modules/getcwd (Depends-on): Add malloc-posix.
62978         * modules/glob (Depends-on): Likewise.
62979         * modules/putenv (Depends-on): Likewise.
62980         * modules/strdup (Depends-on): Likewise.
62981         * modules/getdelim (Depends-on): Add realloc-posix.
62982         * modules/read-file (Depends-on): Likewise.
62983
62984 2007-09-09  Bruno Haible  <bruno@clisp.org>
62985
62986         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62987         (gl_FUNC_MALLOC_POSIX): Require it.
62988         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62989         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62990         * modules/realloc (Files): Add m4/malloc.m4.
62991         * modules/calloc (Files): Likewise.
62992
62993 2007-09-09  Bruno Haible  <bruno@clisp.org>
62994
62995         * modules/malloc-posix: New file.
62996         * modules/malloc (Depends-on): Add malloc-posix.
62997         * lib/malloc.c: Include errno.h.
62998         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62999         and a POSIX-compatible malloc into a single function. Set ENOMEM
63000         when returning NULL.
63001         * m4/malloc.m4: New file.
63002         * doc/functions/malloc.texi: Mention the malloc-posix module.
63003         * lib/stdlib_.h (malloc): New declaration.
63004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63005         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63006         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63007         and HAVE_MALLOC_POSIX.
63008
63009 2007-09-09  Bruno Haible  <bruno@clisp.org>
63010
63011         * modules/realloc-posix: New file.
63012         * modules/realloc (Depends-on): Add realloc-posix.
63013         * lib/realloc.c: Include errno.h.
63014         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63015         and a POSIX-compatible realloc into a single function. Set ENOMEM
63016         when returning NULL.
63017         * m4/realloc.m4: New file.
63018         * doc/functions/realloc.texi: Mention the realloc-posix module.
63019         * lib/stdlib_.h (realloc): New declaration.
63020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63021         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63022         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63023         and HAVE_REALLOC_POSIX.
63024
63025 2007-09-09  Bruno Haible  <bruno@clisp.org>
63026
63027         * modules/calloc-posix: New file.
63028         * modules/calloc (Depends-on): Add calloc-posix.
63029         * lib/calloc.c: Include errno.h.
63030         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63031         and a POSIX-compatible calloc into a single function. Set ENOMEM
63032         when returning NULL.
63033         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63034         * doc/functions/calloc.texi: Mention the calloc-posix module.
63035         * lib/stdlib_.h (calloc): New declaration.
63036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63037         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63038         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63039         and HAVE_CALLOC_POSIX.
63040
63041 2007-09-09  Bruno Haible  <bruno@clisp.org>
63042
63043         Allow for modules to show an arbitrary notice.
63044         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63045         * gnulib-tool: New option --extract-notice.
63046         (func_usage): Document it.
63047         (sed_extract_prog): Update.
63048         (func_get_notice): New function.
63049         (func_modules_notice): New function.
63050         (func_import, func_create_testdir): Invoke it.
63051         Suggested by Jim Meyering.
63052
63053 2007-09-09  Bruno Haible  <bruno@clisp.org>
63054
63055         * gnulib-tool: New options --verbose, --quiet.
63056         (func_usage): Document them.
63057         (verbose): New variable.
63058         (func_execute_command): New function.
63059         (func_import): Don't show the module list and the file list if
63060         $verbose < 0.
63061         (func_create_testdir): Likewise. Use func_execute_command.
63062         (func_create_megatestdir): Use func_execute_command.
63063
63064 2007-09-08  Bruno Haible  <bruno@clisp.org>
63065
63066         * gnulib-tool (func_import): Prefer rsync over wget when available,
63067         for fetching the PO files.
63068
63069 2007-09-08  Bruno Haible  <bruno@clisp.org>
63070
63071         * posix-modules: New file. Portions copied from gnulib-tool.
63072         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63073
63074 2007-09-08  Jim Meyering  <jim@meyering.net>
63075
63076         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63077         * lib/fpending.h: Rename from __fpending.h.
63078         * lib/fpending.c: Rename from __fpending.c.
63079         Include "fpending.h", not "__fpending.h".
63080         * lib/__fpending.h, lib/__fpending.c: Remove files.
63081         * modules/fpending (Files): Reflect new file names.
63082         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63083
63084 2007-09-08  Bruno Haible  <bruno@clisp.org>
63085
63086         * m4/inttypes-h.m4: Remove stub file.
63087
63088 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63089
63090         * doc/headers/stdint.texi: Discuss #include_next issue.
63091
63092 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63093
63094         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63095
63096 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63097
63098         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63099         in variable name.
63100
63101 2007-09-03  Jim Meyering  <jim@meyering.net>
63102
63103         New module: git-version-gen.
63104         * modules/git-version-gen: New file.
63105
63106         Import changes from coreutils for bootstrap script.
63107
63108         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63109
63110         bootstrap: uses rsync to download the .po files
63111         * build-aux/bootstrap (po_download_command_format): New global.
63112         (download_po_files): Use rsync.
63113         (update_po_files): Don't remove .po files after download,
63114         so future rsync runs can take advantage of the copies.
63115
63116         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63117
63118         Solve the unnecessary-.po-file-regeneration problem once and for all.
63119         * build-aux/bootstrap (download_po_files): New function, renamed from
63120         get_translations.  Now, downloads, but doesn't update LINGUAS.
63121         (update_po_files): New function.
63122
63123         bootstrap: Ignore more.
63124         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63125         uniwidth to e.g., lib/.gitignore.
63126         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63127
63128         * build-aux/bootstrap: New setting: vc_ignore.
63129         (insert_sorted_if_absent): Create $file if absent.
63130         Adapt to new, possibly empty, list: $vc_ignore.
63131
63132         bootstrap: generate more ignorable names
63133         * build-aux/bootstrap (slurp): When generating ignorable names,
63134         also map .sin to .sed, .gperf to .c, and .y to .c.
63135
63136 2007-09-03  Jim Meyering  <jim@meyering.net>
63137
63138         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63139         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63140
63141 2007-09-02  Bruno Haible  <bruno@clisp.org>
63142
63143         Fix mis-recognition of 'mcs' on QNX 6.
63144         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63145         output contains the string "Mono".
63146         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63147         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63148
63149 2007-09-01  Bruno Haible  <bruno@clisp.org>
63150
63151         Fix collision between uniwidth/* and linebreak modules.
63152         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63153         u32_width): Remove declarations.
63154         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63155         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63156         streq3, streq2, streq1, streq0): Remove functions.
63157         (STREQ): Remove macro.
63158         (is_cjk_encoding): Remove function.
63159         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63160         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63161         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63162         * NEWS: Document the change.
63163
63164 2007-09-01  Bruno Haible  <bruno@clisp.org>
63165
63166         * lib/streq.h: Add double-inclusion guard.
63167
63168 2007-09-01  Karl Berry  <karl@gnu.org>
63169
63170         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63171
63172 2007-08-28  Jim Meyering  <jim@meyering.net>
63173
63174         Rename mreadlink_with_size to areadlink_with_size.
63175         * NEWS: Document the change.
63176         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63177         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63178         * lib/mreadlink.h: Rename this to...
63179         * lib/areadlink.h: ...this.
63180         * modules/mreadlink-with-size: Rename this to...
63181         * modules/areadlink-with-size: ...this.
63182         * lib/canonicalize.c: Reflect the renaming.
63183         * modules/canonicalize: Likewise.
63184
63185 2007-08-26  Bruno Haible  <bruno@clisp.org>
63186
63187         * gnulib-tool (func_import): When deciding which files to remove,
63188         consider also dangling symbolic links.
63189         Reported by Eric Blake.
63190
63191 2007-08-26  Bruno Haible  <bruno@clisp.org>
63192
63193         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63194
63195 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63196
63197         * lib/readline.c: Don't include getline.h, the prototype is now
63198         found in stdio.h.
63199
63200 2007-08-23  Jim Meyering  <jim@meyering.net>
63201
63202         Getdelim touchup.
63203         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63204         around the funlockfile call, since funlockfile never sets errno.
63205         Don't set errno upon failed realloc.
63206
63207 2007-08-22  Eric Blake  <ebb9@byu.net>
63208
63209         Getline touchups.
63210         * lib/getdelim.c (getdelim): Revert regression that required *n to
63211         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63212         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63213         getdelim, rather than whether implementation is missing.
63214         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63215         * lib/stdio_.h (getline): Also declare if replacement is
63216         required.
63217         * doc/functions/getdelim.texi: New file.
63218         * doc/functions/getline.texi: Likewise.
63219         * doc/gnulib.texi (Function Substitutes): Add new files.
63220         Reported by Bruno Haible.
63221
63222 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63223
63224         * users.txt: Add Guile.
63225
63226 2007-08-22  Eric Blake  <ebb9@byu.net>
63227
63228         * tests/test-getdelim.c (main): Use remove, not unlink.
63229         * tests/test-getline.c (main): Likewise.
63230
63231         Move getline and getdelim into stdio.h, per POSIX 200x.
63232         * modules/getline (Files): Remove getline.h.
63233         (Depends-on): Add stdio.
63234         (configure.ac): Add module indicator.
63235         * modules/getdelim (Files): Remove getdelim.h.
63236         (Depends-on): Add stdio.
63237         (configure.ac): Add module indicator.
63238         * modules/stdio (Makefile.am): Work with new indicators.
63239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63240         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63241         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63242         * lib/getdelim.h: Delete.
63243         * lib/getline.h: Delete.
63244         * lib/stdio_.h (getdelim, getline): Declare.
63245         * modules/getdelim-tests: New module.
63246         * modules/getline-tests: Likewise.
63247         * tests/test-getdelim.c: New file.
63248         * tests/test-getline.c: Likewise.
63249         * NEWS: Document the change.
63250         * lib/getline.c: Update choice of header.
63251         * lib/csharpcomp.c: Likewise.
63252         * lib/getpass.c: Likewise.
63253         * lib/javacomp.c: Likewise.
63254         * lib/javaversion.c: Likewise.
63255         * lib/yesno.c: Likewise.
63256         * lib/getdelim.c: Likewise.
63257         (getdelim): Set errno on failure, and avoid memory leak.
63258
63259 2007-08-19  Bruno Haible  <bruno@clisp.org>
63260
63261         * modules/closein (Depends-on): Add freadahead.
63262         * lib/closein.c: Include freadahead.h.
63263         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63264         is zero.
63265
63266 2007-08-19  Bruno Haible  <bruno@clisp.org>
63267
63268         * modules/freadahead-tests: New file.
63269         * tests/test-freadahead.sh: New file.
63270         * tests/test-freadahead.c: New file.
63271
63272         * modules/freadahead: New file.
63273         * lib/freadahead.h: New file.
63274         * lib/freadahead.c: New file.
63275         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63276         fbufmode, fpurge, freadable, fwritable.
63277
63278 2007-08-19  Eric Blake  <ebb9@byu.net>
63279
63280         Test yesno in combination with closein.
63281         * lib/yesno.c (yesno): Document use of stdin.
63282         * modules/yesno-tests (Files): New module.
63283         * tests/test-yesno.c (main): New file.
63284         * tests/test-yesno.sh: Likewise.
63285
63286 2007-08-19  Bruno Haible  <bruno@clisp.org>
63287
63288         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63289         * lib/fseeko.c (rpl_fseeko): Likewise.
63290         * lib/fseterr.c (fseterr): Likewise.
63291
63292 2007-08-19  Bruno Haible  <bruno@clisp.org>
63293
63294         * tests/test-lseek.c (main): Disable a test for BeOS.
63295         * doc/functions/lseek.texi: Document the BeOS bug.
63296
63297 2007-08-19  Bruno Haible  <bruno@clisp.org>
63298             Eric Blake  <ebb9@byu.net>
63299
63300         * lib/lseek.c: Include <sys/stat.h>.
63301         (rpl_lseek): Add workaround code also for Unix platforms.
63302         Needed for BeOS.
63303         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63304         * doc/functions/lseek.texi: Document BeOS definiency.
63305
63306 2007-08-18  Bruno Haible  <bruno@clisp.org>
63307
63308         * modules/fstrcmp-tests: New file.
63309         * tests/test-fstrcmp.c: New file.
63310
63311 2007-08-18  Bruno Haible  <bruno@clisp.org>
63312
63313         * modules/fstrcmp: New file, from GNU gettext with modifications.
63314         * lib/fstrcmp.h: New file, from GNU gettext.
63315         * lib/fstrcmp.c: New file, from GNU gettext.
63316         * MODULES.html.sh (String handling): Add fstrcmp.
63317
63318 2007-08-18  Bruno Haible  <bruno@clisp.org>
63319
63320         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63321         'bool'.
63322         (diag, compareseq): Remove const from the ctxt argument.
63323         (USE_HEURISTIC): Undefine at the end.
63324
63325 2007-08-18  Jim Meyering  <jim@meyering.net>
63326
63327         New file: lib/idcache.h
63328         * NEWS: Mention the addition.
63329         * modules/idcache (Files): Add lib/idcache.h
63330         * lib/idcache.c: Include "idcache.h".
63331         Don't include <sys/types.h>.
63332         Add a FIXME comment.
63333         Move file-scoped "static" declarations to the top.
63334         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63335
63336 2007-08-17  Bruno Haible  <bruno@clisp.org>
63337         and Paul Eggert  <eggert@cs.ucla.edu>
63338
63339         * MODULES.html.sh: Add diffseq.
63340         * modules/diffseq: New file.
63341         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63342         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63343
63344 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63345
63346         Import changes from coreutils for bootstrap script.
63347
63348         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63349
63350         * build-aux/bootstrap (slurp): Work even in environments where
63351         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63352         current code does not slurp files whose names start with ".", and
63353         this looks like it might be a troublesome area.
63354
63355         2007-07-11  Jim Meyering  <jim@meyering.net>
63356
63357         If there's a GPL vN copyright comment, require that N == 3.
63358
63359         2007-07-08  Jim Meyering  <jim@meyering.net>
63360
63361         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63362         * build-aux/bootstrap (mam_template): Move definition out of loop.
63363
63364         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63365
63366         * build-aux/bootstrap (symlink_to_dir): Rename function from
63367         symlink_to_gnulib.  Add a directory parameter.  Update all
63368         callers.
63369         (cp_mark_as_generated): Also check for -- and link to -- files in
63370         gl/.
63371
63372         2007-07-08  Jim Meyering  <jim@meyering.net>
63373
63374         Adapt to deeper hierarchy in gnulib.
63375         * build-aux/bootstrap (symlink_to_dir): If the destination
63376         directory doesn't exist, create it. This is required at least for
63377         "lib/uniwidth/cjk.h".
63378
63379         2007-05-15  Jim Meyering  <jim@meyering.net>
63380
63381         * build-aux/bootstrap: Now that generated Makefile.am files
63382         are no longer under version control, they must be created at
63383         bootstrap time.
63384
63385 2007-08-14  Ben Pfaff  <blp@gnu.org>
63386
63387         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63388
63389 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63392         given the changes below.
63393         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63394         even on hosts that have padding bits beyond the supported 64.
63395
63396 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63397
63398         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63399         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63400         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63401         depends on it.
63402         (xstrtol_error): Remove.
63403         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63404         but with a different signature.
63405         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63406         * lib/xstrtol-error.c: Include exitfail.h.
63407         (xstrtol_fatal): New function, with a different signature from the
63408         old xstrtol_error, so that the caller need not worry about passing
63409         in an exit status, or about storage management of the option argument.
63410         (xstrtol_error): Now a static function.  Redo signature to
63411         implement xstrtol_fatal.  Output the correct number of hyphens in
63412         front of the option so that the caller need not worry about
63413         storage management.
63414         (N_): New macro.
63415         (_): Remove; not used now.
63416         * modules/xstrtol: Depend on getopt.
63417         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63418         of old STRTOL_FATAL_ERROR macro.
63419         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63420         of test program.
63421         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63422         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63423
63424 2007-08-08  Eric Blake  <ebb9@byu.net>
63425
63426         * lib/xstrtol-error.c: Add missing include.
63427
63428         Move xstrtol messages into gnulib domain, when --pobase is used.
63429         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63430         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63431         * modules/xstrtol (Files): Distribute new file.
63432         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63433         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63434         * tests/test-xstrtol.c: ...into new file.
63435         * tests/test-xstrtoul.c: Also test xstrtoul.
63436         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63437         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63438         * tests/test-xstrtol.sh: Drive the tests.
63439         * tests/test-xstrtoimax.sh: Likewise.
63440         * tests/test-xstrtoumax.sh: Likewise.
63441         * modules/xstrtol-tests: New module.
63442         * modules/xstrtoimax-tests: Likewise.
63443         * modules/xstrtoumax-tests: Likewise.
63444
63445 2007-08-08  Jim Meyering  <jim@meyering.net>
63446
63447         New function: mfile_name_concat.
63448         * lib/filenamecat.c (mfile_name_concat): New function, just like
63449         file_name_concat, but return NULL upon failure rather than exiting
63450         with a diagnostic.
63451         * lib/filenamecat.h: Declare it.
63452
63453 2007-08-07  Bruno Haible  <bruno@clisp.org>
63454
63455         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63456         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63457         warning from gcc.
63458         Reported by Eric Blake.
63459
63460 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63461
63462         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63463         * modules/crypto/arcfour (License): Likewise.
63464         * modules/crypto/des-tests (License): Likewise.
63465         * modules/crypto/gc-arctwo-tests (License): Likewise.
63466         * modules/crypto/gc-des-tests (License): Likewise.
63467         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63468         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63469         * modules/crypto/gc-md2-tests (License): Likewise.
63470         * modules/crypto/gc-md4-tests (License): Likewise.
63471         * modules/crypto/gc-md5-tests (License): Likewise.
63472         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63473         * modules/crypto/gc-rijndael-tests (License): Likewise.
63474         * modules/crypto/gc-sha1-tests (License): Likewise.
63475         * modules/crypto/gc-tests (License): Likewise.
63476         * modules/crypto/hmac-md5 (License): Likewise.
63477         * modules/crypto/hmac-sha1 (License): Likewise.
63478         * modules/crypto/md2-tests (License): Likewise.
63479         * modules/crypto/md4-tests (License): Likewise.
63480         * modules/crypto/md5 (License): Likewise.
63481         * modules/crypto/rijndael (License): Likewise.
63482         * modules/crypto/sha1 (License): Likewise.
63483         * modules/memxor (License): Likewise.
63484
63485 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63486         and Bruno Haible  <bruno@clisp.org>
63487
63488         * NEWS: Describe interface changes to human, xstrtol.
63489         * lib/human.h: Include <xstrtol.h>.
63490         (human_options): Return enum strtol_error, not int.  Remove
63491         bool arg; take int * instead.
63492         * lib/human.c: Don't include "gettext.h".
63493         (_): Remove; no longer used.
63494         Don't include <xstrtol.h>, since human.h does it.
63495         (human_options): Adjust to abovementioned interface changes.
63496         Do not report error to stderr; that's now the caller's
63497         responsibility.
63498         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63499         interface change.
63500         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63501         Str, Argument_type_string.  All uses changed.  Put " argument"
63502         in diagnostics to make them clearer.  Change wording of suffix
63503         message for clarity.
63504         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63505         Argument_type_string.
63506         (STRTOL_FATAL_WARN): Remove; no longer used.
63507         * modules/human (Depends-on): Remove gettext-h.
63508
63509 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63510
63511         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63512
63513 2007-07-31  Bruno Haible  <bruno@clisp.org>
63514
63515         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63516         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63517         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63518
63519 2007-07-31  Bruno Haible  <bruno@clisp.org>
63520
63521         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63522         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63523
63524 2007-07-30  Bruno Haible  <bruno@clisp.org>
63525
63526         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63527         * modules/c-ctype (License): Likewise.
63528         * modules/c-strcase (License): Likewise.
63529         * modules/check-version (License): Likewise.
63530         * modules/iconv (License): Likewise.
63531         * modules/iconv_open (License): Likewise.
63532         * modules/read-file (License): Likewise.
63533         * modules/striconv (License): Likewise.
63534         * modules/strverscmp (License): Likewise.
63535         * modules/vasprintf (License): Likewise.
63536         * modules/crypto/des (License): Likewise.
63537         * modules/crypto/gc (License): Likewise.
63538         * modules/crypto/gc-arcfour (License): Likewise.
63539         * modules/crypto/gc-arctwo (License): Likewise.
63540         * modules/crypto/gc-des (License): Likewise.
63541         * modules/crypto/gc-hmac-md5 (License): Likewise.
63542         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63543         * modules/crypto/gc-md2 (License): Likewise.
63544         * modules/crypto/gc-md4 (License): Likewise.
63545         * modules/crypto/gc-md5 (License): Likewise.
63546         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63547         * modules/crypto/gc-random (License): Likewise.
63548         * modules/crypto/gc-rijndael (License): Likewise.
63549         * modules/crypto/gc-sha1 (License): Likewise.
63550         * modules/crypto/md2 (License): Likewise.
63551         * modules/crypto/md4 (License): Likewise.
63552
63553 2007-07-30  Jim Meyering  <jim@meyering.net>
63554
63555         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63556         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63557         it has valid stat data.  This bug would cause du not to count the
63558         sizes of inaccessible directories.
63559         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63560         in <http://bugzilla.redhat.com/250077>.
63561
63562 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63563             Bruno Haible  <bruno@clisp.org>
63564
63565         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63566         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63567         #include_next, gives a diagnostic about it, but reports no error in
63568         the exit code.
63569         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63570
63571 2007-07-24  Ben Pfaff  <blp@gnu.org>
63572
63573         Improve name: "count-one-bits" is better than "popcount".
63574         * MODULES.html.sh: Update name.
63575         * lib/popcount.h: Renamed lib/count-one-bits.h.
63576         (popcount): Renamed count_one_bits.
63577         (popcountl): Renamed count_one_bits_l.
63578         (popcountll): Renamed count_one_bits_ll.
63579         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63580         * modules/popcount: Renamed module/count-one-bits.
63581         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63582         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63583
63584 2007-07-23  Ben Pfaff  <blp@gnu.org>
63585
63586         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63587         better code generation, and add U to large constants to avoid
63588         warnings, in non-GCC case.
63589         Suggested by Bruno Haible.
63590
63591 2007-07-23  Ben Pfaff  <blp@gnu.org>
63592
63593         * lib/popcount.h: Use verify_true instead of if...abort.
63594         * modules/popcount: Depend on verify module.
63595         Suggested by Jim Meyering.
63596
63597 2007-07-23  Bruno Haible  <bruno@clisp.org>
63598
63599         * gnulib-tool (func_import): Create a .cvsignore file also when the
63600         directory is not yet in CVS but the toplevel directory is. When
63601         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63602         Reported by Karl Berry.
63603
63604 2007-07-22  Ben Pfaff  <blp@gnu.org>
63605
63606         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63607         case.
63608         Suggested by Eric Blake.
63609
63610 2007-07-22  Ben Pfaff  <blp@gnu.org>
63611
63612         New module: popcount.
63613         * MODULES.html.sh: Add popcount.
63614         * modules/popcount: New file.
63615         * modules/popcount-tests: New file.
63616         * tests/test-popcount.c: New file.
63617         * lib/popcount.h: New file.
63618         * m4/popcount.m4: New file.
63619
63620 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         * build-aux/announce-gen: Update to GPLv3.
63623
63624         * build-aux/config.guess: Update from config.
63625
63626 2007-07-21  Bruno Haible  <bruno@clisp.org>
63627
63628         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63629         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63630
63631 2007-07-20  Jim Meyering  <jim@meyering.net>
63632
63633         * check-module: Diagnose a self-dependency.
63634
63635 2007-07-19  Bruno Haible  <bruno@clisp.org>
63636
63637         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63638         empty.
63639         Reported by Eric Blake.
63640
63641 2007-07-18  Bruno Haible  <bruno@clisp.org>
63642
63643         * gnulib-tool: New options --po-base, --po-domain.
63644         (func_usage): Document them.
63645         (pobase, po_domain): New variables.
63646         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63647         DEFAULT_TEXT_DOMAIN.
63648         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63649         (func_import): Consider pobase and po_domain. Create a po/ directory.
63650         (func_create_testdir): Set pobase and po_domain to empty.
63651         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63652         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63653
63654 2007-07-18  Bruno Haible  <bruno@clisp.org>
63655
63656         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63657         EXTRA_DIST augmentation for files in build-aux/.
63658
63659 2007-07-16  Bruno Haible  <bruno@clisp.org>
63660
63661         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63662         * modules/getdelim (License): Likewise.
63663
63664 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63665
63666         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63667         * modules/d-type (License): Likewise.
63668         * modules/extensions (License): Likewise.
63669         * modules/fnmatch (License): Likewise.
63670         * modules/fseeko (License): Likewise.
63671         * modules/getaddrinfo (License): Likewise.
63672         * modules/getline (License): Likewise.
63673         * modules/getlogin_r (License): Likewise.
63674         * modules/getpass (License): Likewise.
63675         * modules/gettimeofday (License): Likewise.
63676         * modules/glob (License): Likewise.
63677         * modules/inet_ntop (License): Likewise.
63678         * modules/malloc (License): Likewise.
63679         * modules/malloca (License): Likewise.
63680         * modules/memmem (License): Likewise.
63681         * modules/mempcpy (License): Likewise.
63682         * modules/memset (License): Likewise.
63683         * modules/minmax (License): Likewise.
63684         * modules/mktime (License): Likewise.
63685         * modules/netinet_in (License): Likewise.
63686         * modules/pathmax (License): Likewise.
63687         * modules/poll (License): Likewise.
63688         * modules/regex (License): Likewise.
63689         * modules/snprintf (License): Likewise.
63690         * modules/stdbool (License): Likewise.
63691         * modules/stdint (License): Likewise.
63692         * modules/stdio (License): Likewise.
63693         * modules/strcase (License): Likewise.
63694         * modules/strcasestr (License): Likewise.
63695         * modules/strdup (License): Likewise.
63696         * modules/string (License): Likewise.
63697         * modules/strndup (License): Likewise.
63698         * modules/strnlen (License): Likewise.
63699         * modules/strpbrk (License): Likewise.
63700         * modules/strptime (License): Likewise.
63701         * modules/strsep (License): Likewise.
63702         * modules/sys_select (License): Likewise.
63703         * modules/sys_socket (License): Likewise.
63704         * modules/sys_stat (License): Likewise.
63705         * modules/sys_time (License): Likewise.
63706         * modules/time (License): Likewise.
63707         * modules/time_r (License): Likewise.
63708         * modules/timegm (License): Likewise.
63709         * modules/unistd (License): Likewise.
63710         * modules/vsnprintf (License): Likewise.
63711         * modules/wctype (License): Likewise.
63712
63713 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63714
63715         * modules/argz (License): LGPLv2+.
63716
63717 2007-07-15  Karl Berry  <karl@gnu.org>
63718
63719         * doc/gnulib.texi: revise node structure per new fdl.texi.
63720
63721 2007-07-14  Bruno Haible  <bruno@clisp.org>
63722
63723         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63724         the output file.
63725         * lib/uniname/uninames.h: Regenerated.
63726
63727 2007-07-14  Karl Berry  <karl@gnu.org>
63728
63729         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63730         omitting sectioning and index commands.
63731
63732 2007-07-13  Bruno Haible  <bruno@clisp.org>
63733
63734         New gnulib-tool option --more-symlinks.
63735         * gnulib-tool (func_usage): Document --more-symlinks.
63736         (do_copyrights): New variable.
63737         Recognize option --more-symlinks.
63738         (func_import): Don't add a copyright notice transform to
63739         sed_transform_lib_file if do_copyrights is empty.
63740
63741 2007-07-13  Bruno Haible  <bruno@clisp.org>
63742
63743         * lib/vasnprintf.c (decimal_point_char): Define also if
63744         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63745         && !NEED_PRINTF_DIRECTIVE_A.
63746         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63747         Gary V. Vaughan <gary@gnu.org>.
63748
63749 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63750
63751         * lib/inttypes_.h: Undo previous change, since it was fixed
63752         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63753
63754 2007-07-13  Bruno Haible  <bruno@clisp.org>
63755
63756         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63757         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63758
63759 2007-07-13  Jim Meyering  <jim@meyering.net>
63760
63761         df: Don't fail for Tru64's "file-on-file mount".
63762         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63763         so we fall through and use statfs instead.  Details here:
63764         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63765         Reported by Albert Chin.
63766
63767 2007-07-13  Bruno Haible  <bruno@clisp.org>
63768
63769         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63770         * modules/configmake (License): Likewise.
63771         * modules/gettext (License): Likewise.
63772         * modules/gettext-h (License): Likewise.
63773         * modules/include_next (License): Likewise.
63774         * modules/link-warning (License): Likewise.
63775         * modules/localcharset (License): Likewise.
63776         * modules/localename (License): Likewise.
63777         * modules/lock (License): Likewise.
63778         * modules/relocatable-lib-lgpl (License): Likewise.
63779         * modules/size_max (License): Likewise.
63780         * modules/vasnprintf (License): Likewise.
63781         * modules/wchar (License): Likewise.
63782         * modules/xsize (License): Likewise.
63783
63784 2007-07-13  Bruno Haible  <bruno@clisp.org>
63785
63786         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63787         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63788
63789 2007-07-12  Bruno Haible  <bruno@clisp.org>
63790
63791         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63792         in the modules files.
63793
63794 2007-07-11  Karl Berry  <karl@gnu.org>
63795
63796         * MODULES.html.sh (func_module): use
63797          sed -e '\|^'"${includefile}"'$|d'
63798          instead of /.../d, to avoid errors on $includefile's containing /.
63799
63800 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63801
63802         * gnulib-tool (func_import): Avoid duplication of --avoid
63803         statements
63804         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63805         names to `_' in variable names.
63806
63807 2007-07-10  Eric Blake  <ebb9@byu.net>
63808
63809         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63810         * NEWS: Document this change.
63811
63812 2007-07-08  Bruno Haible  <bruno@clisp.org>
63813
63814         Update to Unicode 5.0.
63815         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63816         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63817         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63818         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63819         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63820         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63821         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63822         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63823         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63824         U+10A3F, U+1D242..U+1D244.
63825         (nonspacing_table_ind): Update.
63826         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63827         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63828
63829 2007-07-08  Bruno Haible  <bruno@clisp.org>
63830
63831         Update to Unicode 5.0.
63832         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63833         code transform. Extend the name index field of unicode_name_to_code and
63834         unicode_code_to_name from 16 to 24 bits.
63835         * lib/uniname/uniname.c (unicode_character_name,
63836         unicode_name_character): Add the range 0x12xxx to the code transform.
63837         * lib/uniname/uninames.h: Regenerated.
63838         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63839
63840 2007-07-07  Bruno Haible  <bruno@clisp.org>
63841
63842         * modules/wcwidth-tests: New file.
63843         * tests/test-wcwidth.c: New file.
63844
63845         Work around MacOS X wcwidth() bug.
63846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63847         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63848         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63849         original wcwidth in non-UTF-8 locales.
63850         * modules/wcwidth (Depends-on): Add localcharset, streq,
63851         uniwidth/width.
63852         * doc/functions/wcwidth.texi: Update.
63853
63854 2007-07-07  Bruno Haible  <bruno@clisp.org>
63855
63856         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63857         (wcwidth): New declaration.
63858         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63859         macros.
63860         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63861         here. Prepare for creating <wchar.h> unconditionally.
63862         * modules/wchar (Depends-on): Add link-warning.
63863         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63864         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63865         * lib/wcwidth.h: Remove file.
63866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63867         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63868         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63869         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63870         (Include): Replace wcwidth.h with <wchar.h>.
63871         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63872         * lib/mbchar.h: Don't include wcwidth.h.
63873         * lib/mbswidth.c: Likewise.
63874         * NEWS: Mention the change.
63875
63876 2007-07-07  Bruno Haible  <bruno@clisp.org>
63877
63878         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63879         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63880         definition with an external declaration.
63881         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63882         defined as a function. Remove AC_C_INLINE requirement.
63883         * modules/wcwidth (Files): Add lib/wcwidth.c.
63884         (Makefile.am): Remove redundant statement.
63885
63886 2007-07-07  Bruno Haible  <bruno@clisp.org>
63887
63888         * MODULES.html.sh (Unicode string functions): Add the new modules.
63889
63890         * tests/uniwidth/test-u32-strwidth.c: New file.
63891         * modules/uniwidth/u32-strwidth-tests: New file.
63892
63893         * lib/uniwidth/u32-strwidth.c: New file.
63894         * modules/uniwidth/u32-strwidth: New file.
63895
63896         * tests/uniwidth/test-u16-strwidth.c: New file.
63897         * modules/uniwidth/u16-strwidth-tests: New file.
63898
63899         * lib/uniwidth/u16-strwidth.c: New file.
63900         * modules/uniwidth/u16-strwidth: New file.
63901
63902         * tests/uniwidth/test-u8-strwidth.c: New file.
63903         * modules/uniwidth/u8-strwidth-tests: New file.
63904
63905         * lib/uniwidth/u8-strwidth.c: New file.
63906         * modules/uniwidth/u8-strwidth: New file.
63907
63908         * tests/uniwidth/test-u32-width.c: New file.
63909         * modules/uniwidth/u32-width-tests: New file.
63910
63911         * lib/uniwidth/u32-width.c: New file.
63912         * modules/uniwidth/u32-width: New file.
63913
63914         * tests/uniwidth/test-u16-width.c: New file.
63915         * modules/uniwidth/u16-width-tests: New file.
63916
63917         * lib/uniwidth/u16-width.c: New file.
63918         * modules/uniwidth/u16-width: New file.
63919
63920         * tests/uniwidth/test-u8-width.c: New file.
63921         * modules/uniwidth/u8-width-tests: New file.
63922
63923         * lib/uniwidth/u8-width.c: New file.
63924         * modules/uniwidth/u8-width: New file.
63925
63926         * tests/uniwidth/test-uc_width.c: New file.
63927         * modules/uniwidth/width-tests: New file.
63928
63929         * lib/uniwidth/width.c: New file, from GNU libiconv.
63930         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63931         * modules/uniwidth/width: New file.
63932
63933         * lib/uniwidth.h: New file, from GNU libiconv.
63934         * modules/uniwidth/base: New file.
63935
63936 2007-07-07  Bruno Haible  <bruno@clisp.org>
63937
63938         * lib/uniname.h: New file, from GNU gettext.
63939         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63940         * lib/uniname/uninames.h: New file, from GNU gettext.
63941         * lib/uniname/uniname.c: New file, from GNU gettext.
63942         * tests/uniname/test-uninames.sh: New file.
63943         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63944         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63945         * modules/uniname/base: New file.
63946         * modules/uniname/uniname: New file.
63947         * modules/uniname/uniname-tests: New file.
63948         * MODULES.html.sh (Unicode string functions): Add the new modules.
63949
63950 2007-07-06  Bruno Haible  <bruno@clisp.org>
63951
63952         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63953
63954 2007-07-06  Bruno Haible  <bruno@clisp.org>
63955
63956         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63957         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63958         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63959         include <sys/time.h>.
63960         Reported by Eric Blake.
63961
63962 2007-07-06  Eric Blake  <ebb9@byu.net>
63963
63964         Fix testing canonicalize on cygwin.
63965         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63966         Revert patch from 2007-06-19.
63967         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63968         canonicalize module is also in use.
63969         * tests/test-canonicalize.c: New file.
63970         * tests/test-canonicalize.sh: Likewise.
63971         * modules/canonicalize-tests: Likewise.
63972
63973 2007-07-06  Jim Meyering  <jim@meyering.net>
63974
63975         * lib/getugroups.c (getugroups): Detect getgrent failure.
63976         Adjust comment to reflect reality: this function may return -1.
63977
63978 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63979
63980         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63981         the new TP address.
63982         (usage): Fix typo
63983         (gnulib_mk): New variable.
63984
63985 2007-07-05  Jim Meyering  <jim@meyering.net>
63986
63987         Don't let endgrent clobber errno, no matter how improbable.
63988         * lib/getugroups.c (getugroups): Save and restore errno around
63989         endgrent call.
63990
63991         Close the group DB even when failing with 2^31 or more members.
63992         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63993
63994 2007-07-04  Jim Meyering  <jim@meyering.net>
63995
63996         * lib/getugroups.h: New file.
63997         * lib/getugroups.c: Include "getugroups.h".
63998         Remove uses of "register" keyword.
63999         Move local variable, "cp", down into scope where used.
64000         Give "username" parameter the "const" attribute.
64001         * modules/getugroups (Files): Add lib/getugroups.h
64002
64003 2007-07-04  Karl Berry  <karl@gnu.org>
64004
64005         * MODULES.html.sh (func_all_modules): Complete rename of
64006         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64007
64008 2007-07-02  Bruno Haible  <bruno@clisp.org>
64009
64010         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64011         mode, when inttypes.h comes from gnulib.
64012         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64013
64014 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64015
64016         * NEWS: Mention lgpl module name change.
64017
64018         * modules/lgpl-2.1: Renamed from lgpl.
64019
64020         * NEWS: Mention gpl module name change.
64021
64022         * modules/gpl-3.0: New file, based on gpl-2.0.
64023
64024         * modules/gpl-2.0: Renamed from gpl.
64025
64026         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64027         doc/gpl-2.0.texi.
64028
64029 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64030
64031         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64032         #define __STDC_LIMIT_MACROS temporarily while including
64033         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64034         Problem reported by Joel E. Denny in
64035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64036
64037 2007-07-01  Bruno Haible  <bruno@clisp.org>
64038
64039         * lib/unistdio.h: New file.
64040         * lib/unistdio/u-asnprintf.h: New file.
64041         * lib/unistdio/u-asprintf.h: New file.
64042         * lib/unistdio/u-printf-args.c: New file.
64043         * lib/unistdio/u-printf-args.h: New file.
64044         * lib/unistdio/u-printf-parse.h: New file.
64045         * lib/unistdio/u-snprintf.h: New file.
64046         * lib/unistdio/u-sprintf.h: New file.
64047         * lib/unistdio/u-vasprintf.h: New file.
64048         * lib/unistdio/u-vsnprintf.h: New file.
64049         * lib/unistdio/u-vsprintf.h: New file.
64050         * lib/unistdio/ulc-asnprintf.c: New file.
64051         * lib/unistdio/ulc-asprintf.c: New file.
64052         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64053         * lib/unistdio/ulc-printf-parse.c: New file.
64054         * lib/unistdio/ulc-snprintf.c: New file.
64055         * lib/unistdio/ulc-sprintf.c: New file.
64056         * lib/unistdio/ulc-vasnprintf.c: New file.
64057         * lib/unistdio/ulc-vasprintf.c: New file.
64058         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64059         * lib/unistdio/ulc-vsnprintf.c: New file.
64060         * lib/unistdio/ulc-vsprintf.c: New file.
64061         * lib/unistdio/u8-asnprintf.c: New file.
64062         * lib/unistdio/u8-asprintf.c: New file.
64063         * lib/unistdio/u8-printf-parse.c: New file.
64064         * lib/unistdio/u8-snprintf.c: New file.
64065         * lib/unistdio/u8-sprintf.c: New file.
64066         * lib/unistdio/u8-vasnprintf.c: New file.
64067         * lib/unistdio/u8-vasprintf.c: New file.
64068         * lib/unistdio/u8-vsnprintf.c: New file.
64069         * lib/unistdio/u8-vsprintf.c: New file.
64070         * lib/unistdio/u8-u8-asnprintf.c: New file.
64071         * lib/unistdio/u8-u8-asprintf.c: New file.
64072         * lib/unistdio/u8-u8-snprintf.c: New file.
64073         * lib/unistdio/u8-u8-sprintf.c: New file.
64074         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64075         * lib/unistdio/u8-u8-vasprintf.c: New file.
64076         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64077         * lib/unistdio/u8-u8-vsprintf.c: New file.
64078         * lib/unistdio/u16-asnprintf.c: New file.
64079         * lib/unistdio/u16-asprintf.c: New file.
64080         * lib/unistdio/u16-printf-parse.c: New file.
64081         * lib/unistdio/u16-snprintf.c: New file.
64082         * lib/unistdio/u16-sprintf.c: New file.
64083         * lib/unistdio/u16-vasnprintf.c: New file.
64084         * lib/unistdio/u16-vasprintf.c: New file.
64085         * lib/unistdio/u16-vsnprintf.c: New file.
64086         * lib/unistdio/u16-vsprintf.c: New file.
64087         * lib/unistdio/u16-u16-asnprintf.c: New file.
64088         * lib/unistdio/u16-u16-asprintf.c: New file.
64089         * lib/unistdio/u16-u16-snprintf.c: New file.
64090         * lib/unistdio/u16-u16-sprintf.c: New file.
64091         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64092         * lib/unistdio/u16-u16-vasprintf.c: New file.
64093         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64094         * lib/unistdio/u16-u16-vsprintf.c: New file.
64095         * lib/unistdio/u32-asnprintf.c: New file.
64096         * lib/unistdio/u32-asprintf.c: New file.
64097         * lib/unistdio/u32-printf-parse.c: New file.
64098         * lib/unistdio/u32-snprintf.c: New file.
64099         * lib/unistdio/u32-sprintf.c: New file.
64100         * lib/unistdio/u32-vasnprintf.c: New file.
64101         * lib/unistdio/u32-vasprintf.c: New file.
64102         * lib/unistdio/u32-vsnprintf.c: New file.
64103         * lib/unistdio/u32-vsprintf.c: New file.
64104         * lib/unistdio/u32-u32-asnprintf.c: New file.
64105         * lib/unistdio/u32-u32-asprintf.c: New file.
64106         * lib/unistdio/u32-u32-snprintf.c: New file.
64107         * lib/unistdio/u32-u32-sprintf.c: New file.
64108         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64109         * lib/unistdio/u32-u32-vasprintf.c: New file.
64110         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64111         * lib/unistdio/u32-u32-vsprintf.c: New file.
64112         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64113         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64114         * tests/unistdio/test-ulc-printf1.h: New file.
64115         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64116         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64117         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64118         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64119         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64120         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64121         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64122         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64123         * tests/unistdio/test-u8-asnprintf1.c: New file.
64124         * tests/unistdio/test-u8-asnprintf1.h: New file.
64125         * tests/unistdio/test-u8-printf1.h: New file.
64126         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64127         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64128         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64129         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64130         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64131         * tests/unistdio/test-u8-vasprintf1.c: New file.
64132         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64133         * tests/unistdio/test-u8-vsprintf1.c: New file.
64134         * tests/unistdio/test-u16-asnprintf1.c: New file.
64135         * tests/unistdio/test-u16-asnprintf1.h: New file.
64136         * tests/unistdio/test-u16-printf1.h: New file.
64137         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64138         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64139         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64140         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64141         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64142         * tests/unistdio/test-u16-vasprintf1.c: New file.
64143         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64144         * tests/unistdio/test-u16-vsprintf1.c: New file.
64145         * tests/unistdio/test-u32-asnprintf1.c: New file.
64146         * tests/unistdio/test-u32-asnprintf1.h: New file.
64147         * tests/unistdio/test-u32-printf1.h: New file.
64148         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64149         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64150         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64151         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64152         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64153         * tests/unistdio/test-u32-vasprintf1.c: New file.
64154         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64155         * tests/unistdio/test-u32-vsprintf1.c: New file.
64156         * modules/unistdio/base: New file.
64157         * modules/unistdio/u-printf-args: New file.
64158         * modules/unistdio/ulc-asnprintf: New file.
64159         * modules/unistdio/ulc-asprintf: New file.
64160         * modules/unistdio/ulc-fprintf: New file.
64161         * modules/unistdio/ulc-printf-parse: New file.
64162         * modules/unistdio/ulc-snprintf: New file.
64163         * modules/unistdio/ulc-sprintf: New file.
64164         * modules/unistdio/ulc-vasnprintf: New file.
64165         * modules/unistdio/ulc-vasprintf: New file.
64166         * modules/unistdio/ulc-vfprintf: New file.
64167         * modules/unistdio/ulc-vsnprintf: New file.
64168         * modules/unistdio/ulc-vsprintf: New file.
64169         * modules/unistdio/u8-asnprintf: New file.
64170         * modules/unistdio/u8-asprintf: New file.
64171         * modules/unistdio/u8-printf-parse: New file.
64172         * modules/unistdio/u8-snprintf: New file.
64173         * modules/unistdio/u8-sprintf: New file.
64174         * modules/unistdio/u8-vasnprintf: New file.
64175         * modules/unistdio/u8-vasprintf: New file.
64176         * modules/unistdio/u8-vsnprintf: New file.
64177         * modules/unistdio/u8-vsprintf: New file.
64178         * modules/unistdio/u8-u8-asnprintf: New file.
64179         * modules/unistdio/u8-u8-asprintf: New file.
64180         * modules/unistdio/u8-u8-snprintf: New file.
64181         * modules/unistdio/u8-u8-sprintf: New file.
64182         * modules/unistdio/u8-u8-vasnprintf: New file.
64183         * modules/unistdio/u8-u8-vasprintf: New file.
64184         * modules/unistdio/u8-u8-vsnprintf: New file.
64185         * modules/unistdio/u8-u8-vsprintf: New file.
64186         * modules/unistdio/u16-asnprintf: New file.
64187         * modules/unistdio/u16-asprintf: New file.
64188         * modules/unistdio/u16-printf-parse: New file.
64189         * modules/unistdio/u16-snprintf: New file.
64190         * modules/unistdio/u16-sprintf: New file.
64191         * modules/unistdio/u16-vasnprintf: New file.
64192         * modules/unistdio/u16-vasprintf: New file.
64193         * modules/unistdio/u16-vsnprintf: New file.
64194         * modules/unistdio/u16-vsprintf: New file.
64195         * modules/unistdio/u16-u16-asnprintf: New file.
64196         * modules/unistdio/u16-u16-asprintf: New file.
64197         * modules/unistdio/u16-u16-snprintf: New file.
64198         * modules/unistdio/u16-u16-sprintf: New file.
64199         * modules/unistdio/u16-u16-vasnprintf: New file.
64200         * modules/unistdio/u16-u16-vasprintf: New file.
64201         * modules/unistdio/u16-u16-vsnprintf: New file.
64202         * modules/unistdio/u16-u16-vsprintf: New file.
64203         * modules/unistdio/u32-asnprintf: New file.
64204         * modules/unistdio/u32-asprintf: New file.
64205         * modules/unistdio/u32-printf-parse: New file.
64206         * modules/unistdio/u32-snprintf: New file.
64207         * modules/unistdio/u32-sprintf: New file.
64208         * modules/unistdio/u32-vasnprintf: New file.
64209         * modules/unistdio/u32-vasprintf: New file.
64210         * modules/unistdio/u32-vsnprintf: New file.
64211         * modules/unistdio/u32-vsprintf: New file.
64212         * modules/unistdio/u32-u32-asnprintf: New file.
64213         * modules/unistdio/u32-u32-asprintf: New file.
64214         * modules/unistdio/u32-u32-snprintf: New file.
64215         * modules/unistdio/u32-u32-sprintf: New file.
64216         * modules/unistdio/u32-u32-vasnprintf: New file.
64217         * modules/unistdio/u32-u32-vasprintf: New file.
64218         * modules/unistdio/u32-u32-vsnprintf: New file.
64219         * modules/unistdio/u32-u32-vsprintf: New file.
64220         * modules/unistdio/ulc-asnprintf-tests: New file.
64221         * modules/unistdio/ulc-vasnprintf-tests: New file.
64222         * modules/unistdio/ulc-vasprintf-tests: New file.
64223         * modules/unistdio/ulc-vsnprintf-tests: New file.
64224         * modules/unistdio/ulc-vsprintf-tests: New file.
64225         * modules/unistdio/u8-asnprintf-tests: New file.
64226         * modules/unistdio/u8-vasnprintf-tests: New file.
64227         * modules/unistdio/u8-vasprintf-tests: New file.
64228         * modules/unistdio/u8-vsnprintf-tests: New file.
64229         * modules/unistdio/u8-vsprintf-tests: New file.
64230         * modules/unistdio/u16-asnprintf-tests: New file.
64231         * modules/unistdio/u16-vasnprintf-tests: New file.
64232         * modules/unistdio/u16-vasprintf-tests: New file.
64233         * modules/unistdio/u16-vsnprintf-tests: New file.
64234         * modules/unistdio/u16-vsprintf-tests: New file.
64235         * modules/unistdio/u32-asnprintf-tests: New file.
64236         * modules/unistdio/u32-vasnprintf-tests: New file.
64237         * modules/unistdio/u32-vasprintf-tests: New file.
64238         * modules/unistdio/u32-vsnprintf-tests: New file.
64239         * modules/unistdio/u32-vsprintf-tests: New file.
64240         * MODULES.html.sh (Unicode string functions): Add the new modules.
64241
64242 2007-07-01  Bruno Haible  <bruno@clisp.org>
64243
64244         * lib/sprintf.c (sprintf): Limit the available length estimation,
64245         to avoid address wraparound.
64246         * lib/vsprintf.c (vsprintf): Likewise.
64247         * modules/sprintf-posix (Dependencies): Add stdint.
64248         * modules/vsprintf-posix (Dependencies): Likewise.
64249
64250 2007-07-01  Bruno Haible  <bruno@clisp.org>
64251
64252         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64253         Windows PATH as well. Conservative double-quoting. Comments.
64254
64255 2007-07-01  Bruno Haible  <bruno@clisp.org>
64256             Eric Blake  <ebb9@byu.net>
64257             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64258
64259         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64260         empty components in $PATH, denoting '.'.
64261
64262 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64263
64264         * gnulib-tool: Fix indentation.
64265         (func_create_megatestdir): Likewise.
64266         Report by Bruno Haible.
64267
64268 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64269
64270         Sync from Automake.
64271         * build-aux/gnupload: Fix shell portability issues with for loops.
64272         Report by Karl Berry.
64273
64274 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64275
64276         * build-aux/maint.mk (POURL): Use translationproject.org.
64277
64278 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64279             Bruno Haible  <bruno@clisp.org>
64280
64281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64282         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64283         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64284         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64285         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64286
64287 2007-06-27  Bruno Haible  <bruno@clisp.org>
64288
64289         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64290         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64291
64292 2007-06-26  Karl Berry  <karl@gnu.org>
64293
64294         * MODULES.html.sh: remove xreadlink-with-size.
64295
64296 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64297
64298         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64299         method that I hope also handles the double-include problem noted
64300         by Bruno Haible in
64301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64302
64303 2007-06-23  Bruno Haible  <bruno@clisp.org>
64304
64305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64306         Don't let the 'mostlyclean' target fail if the last subdirectory could
64307         not be removed.
64308         Reported by Karl Berry.
64309
64310 2007-06-23  Bruno Haible  <bruno@clisp.org>
64311
64312         * gnulib-tool (echo): Add a speedier workaround for ksh.
64313         * tests/test-echo.sh: Likewise.
64314
64315 2007-06-23  Bruno Haible  <bruno@clisp.org>
64316
64317         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64318         * tests/test-echo.sh: Likewise.
64319
64320 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64321
64322         * gnulib-tool (IFS): Initialize early, so we don't set it to
64323         empty later.
64324         (self_abspathname): Rewrite algorithm to set it, reindent.
64325         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64326         (func_create_megatestdir): Merge some sed scripts.
64327
64328 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64329
64330         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64331         exposed by Sun Studio 11 cc on Solaris 8.
64332
64333 2007-06-22  Bruno Haible  <bruno@clisp.org>
64334
64335         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64336         backslashes.
64337         * tests/test-echo.sh: New file.
64338
64339 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64340
64341         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64342         simplify `sed_replace_build_aux' scripts, they are portable but
64343         echoing them with `echo' is not.
64344         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64345
64346 2007-06-21  Karl Berry  <karl@gnu.org>
64347
64348         * config/srclist.txt: guess we can't handle the licenses via
64349         srclist at the moment.
64350
64351 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64352
64353         * MODULES.html.sh: Add include_next.
64354         * modules/include_next: New file.
64355
64356 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64357
64358         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64359         INCLUDE_NEXT.
64360         (gl_CHECK_NEXT_HEADERS): New macro.
64361         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64362         the obsolescent gl_ABSOLUTE_HEADER.
64363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64364         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64365         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64366         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64367         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64368         * m4/math_h.m4 (gl_MATH_H): Likewise.
64369         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64370         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64371         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64372         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64373         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64374         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64375         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64376         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64378         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64379         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64380         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64381         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64382         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64383         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64384         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64385         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64386         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64387         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64388         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64389         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64390         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64391         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64392         * lib/float_.h: Likewise.
64393         * lib/inttypes_.h: Likewise.
64394         * lib/math_.h: Likewise.
64395         * lib/search_.h: Likewise.
64396         * lib/signal_.h: Likewise.
64397         * lib/stdint_.h: Likewise.
64398         * lib/stdio_.h: Likewise.
64399         * lib/stdlib_.h: Likewise.
64400         * lib/string_.h: Likewise.
64401         * lib/sys_stat_.h: Likewise.
64402         * lib/sys_time_.h: Likewise.
64403         * lib/time_.h: Likewise.
64404         * lib/unistd_.h: Likewise.
64405         * lib/wchar_.h: Likewise.
64406         * lib/wctype_.h: Likewise.
64407         * lib/dirent_.h: Likewise.
64408         * lib/iconv_.h: Likewise.
64409         * lib/locale_.h: Likewise.
64410         * lib/netinet_in_.h: Likewise.
64411         * lib/sys_select_.h: Likewise.
64412         * lib/sys_socket_.h: Likewise.
64413         * lib/sysexits_.h: Likewise.
64414         * modules/fcntl (Depends-on): Depend on include_next, not
64415         absolute_header.
64416         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64417         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64418         * modules/fchdir: Likewise.
64419         * modules/float: Likewise.
64420         * modules/iconv_open: Likewise.
64421         * modules/inttypes: Likewise.
64422         * modules/locale: Likewise.
64423         * modules/math: Likewise.
64424         * modules/netinet_in: Likewise.
64425         * modules/search: Likewise.
64426         * modules/signal: Likewise.
64427         * modules/stdint: Likewise.
64428         * modules/stdio: Likewise.
64429         * modules/stdlib: Likewise.
64430         * modules/string: Likewise.
64431         * modules/sys_select: Likewise.
64432         * modules/sys_socket: Likewise.
64433         * modules/sys_stat: Likewise.
64434         * modules/sys_time: Likewise.
64435         * modules/sysexits: Likewise.
64436         * modules/time: Likewise.
64437         * modules/unistd: Likewise.
64438         * modules/wchar: Likewise.
64439         * modules/wctype: Likewise.
64440         * modules/sys_stat: Change maintainer to "all".
64441         * modules/unistd: Likewise.
64442
64443 2007-06-20  Karl Berry  <karl@gnu.org>
64444
64445         * config/srclist.txt: track www changes in license files.
64446
64447 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64448
64449         * build-aux/bootstrap: Remove stray dot.
64450         Make sure build_aux settings are honored when linking
64451         gnulib_extra_files.
64452
64453 2007-06-19  Eric Blake  <ebb9@byu.net>
64454
64455         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64456         Allow compilation on cygwin.
64457
64458 2007-06-19  Jim Meyering  <jim@meyering.net>
64459
64460         xreadlink-with-size: Remove module.  No longer used.
64461         Ex-callers now use xreadlink or mreadlink-with-size.
64462         * modules/xreadlink-with-size: Remove module.
64463         * lib/xreadlink-with-size.c: Remove file.
64464         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64465         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64466         just before the function definition *is* accurate.
64467
64468         Eliminate one way canonicalize_filename_mode could exit.
64469         * lib/canonicalize.c (canonicalize_filename_mode):
64470         Use mreadlink_with_size, not xreadlink_with_size.
64471
64472 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64473
64474         Detect porting problems to FreeBSD/arm, which has time_t wider than
64475         long int.  Original problem reported for GNU diff by Xin Li in
64476         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64477         * modules/getdate (Depends-on): Add intprops, verify.
64478         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64479         is an integer type no wider than long int.
64480
64481 2007-06-18  Jim Meyering  <jim@meyering.net>
64482
64483         New module: mreadlink-with-size.
64484         * MODULES.html.sh: Add mreadlink-with-size.
64485         * modules/mreadlink-with-size: New module
64486         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64487         not xreadlink-with-size.
64488         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64489
64490 2007-06-16  Bruno Haible  <bruno@clisp.org>
64491
64492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64493         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64494         Reported by Gary V. Vaughan <gary@gnu.org>.
64495
64496 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64497
64498         Revamp lchown so that it lives in unistd.h where it belongs.
64499         * lib/lchown.h: Remove.
64500         * lib/dirchownmod.c: Don't include lib/lchown.h.
64501         * lib/fchownat.c: Likewise.
64502         * lib/openat.c: Likewise.
64503         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64504         does not follow symlinks.
64505         (EOPNOTSUPP): Define if not defined.
64506         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64507         is defined to 0.
64508         (lchown): New decl.
64509         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64510         Do not check for lchown decl.
64511         Set REPLACE_LCHOWN.
64512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64513         REPLACE_LCHOWN.
64514         * modules/chown: Make it clear it follows symlinks.
64515         * modules/lchown: Make it clear it doesn't follow symlinks.
64516         (Files): Remove lib/lchown.h
64517         (Depends-on): Add unistd.
64518         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64519         (Include): Include <unistd.h>, not "lchown.h".
64520         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64521         REPLACE_LCHOWN.
64522
64523 2007-06-15  Jim Meyering  <jim@meyering.net>
64524
64525         Change license (GPL to LGPL) of fsusage and dependents.
64526         * modules/fsusage (License): Change to LGPL.
64527         * modules/full-read (License): Likewise.
64528         * modules/full-write (License): Likewise.
64529         * modules/safe-read (License): Likewise.
64530         * modules/safe-write (License): Likewise.
64531
64532 2007-06-14  Ben Pfaff  <blp@gnu.org>
64533
64534         Missing part of allocsa -> malloca transition.
64535         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64536         gl_MALLOCA.
64537
64538 2007-06-12  Bruno Haible  <bruno@clisp.org>
64539
64540         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64541         to ia64, x86_64, i386.
64542         Reported by Eric Blake.
64543
64544 2007-06-12  Bruno Haible  <bruno@clisp.org>
64545
64546         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64547         cross-compiling to x86_64.
64548
64549 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64550
64551         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64552         glitch reported by Ralf Wildenhues in
64553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64554
64555         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64556         Vin Shelton.
64557
64558 2007-06-11  Bruno Haible  <bruno@clisp.org>
64559
64560         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64561         replacement string.
64562         Reported by Eric Blake.
64563
64564 2007-06-10  Bruno Haible  <bruno@clisp.org>
64565
64566         Prepare vasnprintf code for use with Unicode strings.
64567         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64568         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64569         TYPE_U32_STRING.
64570         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64571         a_u32_string variants.
64572         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64573         * lib/printf-args.c: Don't include config.h and the specification
64574         header if PRINTF_FETCHARGS is already defined.
64575         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64576         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64577         TYPE_U16_STRING, TYPE_U32_STRING.
64578         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64579         u16_directive, u16_directives, u32_directive, u32_directives): New
64580         types.
64581         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64582         New declarations.
64583         * lib/printf-parse.c: Don't include config.h and the specification
64584         header if PRINTF_PARSE is already defined. Eliminate the set of
64585         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64586         them now. Include c-ctype.h.
64587         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64588         directive and CHAR_T_ONLY_ASCII.
64589         * lib/vasnprintf.c: Don't include config.h and the specification header
64590         if VASNPRINTF is already defined.
64591         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64592         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64593         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64594         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64595         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64596         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64597         code accordingly.
64598         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64599         pad_ourselves also in this case, with the 'c' and 's' directives, and
64600         with a different notion of "width".
64601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64602
64603 2007-06-10  Bruno Haible  <bruno@clisp.org>
64604
64605         * modules/unistr/u32-mbsnlen: New file.
64606         * lib/unistr/u32-mbsnlen.c: New file.
64607
64608         * modules/unistr/u16-mbsnlen: New file.
64609         * lib/unistr/u16-mbsnlen.c: New file.
64610
64611         * modules/unistr/u8-mbsnlen: New file.
64612         * lib/unistr/u8-mbsnlen.c: New file.
64613
64614         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64615         declarations.
64616
64617 2007-06-10  Bruno Haible  <bruno@clisp.org>
64618
64619         * lib/string_.h (mbsnlen): New declaration.
64620         * lib/mbsnlen.c: New file.
64621         * m4/mbsnlen.m4: New file.
64622         * modules/mbsnlen: New file.
64623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64624         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64625         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64626
64627 2007-06-10  Bruno Haible  <bruno@clisp.org>
64628
64629         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64630
64631 2007-06-10  Bruno Haible  <bruno@clisp.org>
64632
64633         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64634         * lib/mbuiter.h: Likewise.
64635
64636 2007-06-10  Bruno Haible  <bruno@clisp.org>
64637
64638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64639         declaration.
64640
64641 2007-06-10  Karl Berry  <karl@gnu.org>
64642
64643         * config/srclist.txt: remove gettext entries, Bruno prefers
64644         to update individually.
64645
64646 2007-06-10  Bruno Haible  <bruno@clisp.org>
64647
64648         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64649         'maxlen'. Ensure only length + width bytes are allocated, not
64650         length + 1 + width.
64651
64652 2007-06-09  Bruno Haible  <bruno@clisp.org>
64653
64654         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64655         (CHAR_T): Remove macro.
64656         (VASNPRINTF): Update.
64657
64658 2007-06-09  Bruno Haible  <bruno@clisp.org>
64659
64660         * MODULES.html.sh (Unicode string functions): Add the new modules.
64661
64662         * modules/uniconv/u32-conv-to-enc: New file.
64663         * lib/uniconv/u32-conv-to-enc.c: New file.
64664         * modules/uniconv/u32-conv-to-enc-tests: New file.
64665         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64666
64667         * modules/uniconv/u16-conv-to-enc: New file.
64668         * lib/uniconv/u16-conv-to-enc.c: New file.
64669         * lib/uniconv/u-conv-to-enc.h: New file.
64670         * modules/uniconv/u16-conv-to-enc-tests: New file.
64671         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64672
64673         * modules/uniconv/u8-conv-to-enc: New file.
64674         * lib/uniconv/u8-conv-to-enc.c: New file.
64675         * modules/uniconv/u8-conv-to-enc-tests: New file.
64676         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64677
64678         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64679         u32_conv_to_encoding): New declarations.
64680
64681 2007-06-09  Bruno Haible  <bruno@clisp.org>
64682
64683         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64684
64685 2007-06-09  Bruno Haible  <bruno@clisp.org>
64686
64687         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64688         * modules/malloca: Renamed from modules/allocsa, updated.
64689         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64690         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64691         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64692         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64693         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64694         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64695         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64696         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64697         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64698         * modules/c-strcasestr (Depends-on): Update.
64699         * lib/c-strcasestr.c: Update.
64700         * modules/c-strstr (Depends-on): Update.
64701         * lib/c-strstr.c: Update.
64702         * modules/canonicalize-lgpl (Depends-on): Update.
64703         * lib/canonicalize-lgpl.c: Update.
64704         * modules/clean-temp (Depends-on): Update.
64705         * lib/clean-temp.c: Update.
64706         * modules/csharpcomp (Depends-on): Update.
64707         * lib/csharpcomp.c: Update.
64708         * modules/csharpexec (Depends-on): Update.
64709         * lib/csharpexec.c: Update.
64710         * modules/javacomp (Depends-on): Update.
64711         * lib/javacomp.c: Update.
64712         * modules/javaexec (Depends-on): Update.
64713         * lib/javaexec.c: Update.
64714         * modules/mbscasestr (Depends-on): Update.
64715         * lib/mbscasestr.c: Update.
64716         * modules/mbsstr (Depends-on): Update.
64717         * lib/mbsstr.c: Update.
64718         * modules/setenv (Depends-on): Update.
64719         * lib/setenv.c: Update.
64720         * modules/strcasestr (Depends-on): Update.
64721         * lib/strcasestr.c: Update.
64722         * modules/striconveha (Depends-on): Update.
64723         * lib/striconveha.c: Update.
64724         * modules/relocatable-prog-wrapper (Files): Update.
64725         * lib/relocwrapper.c: Update.
64726         * build-aux/install-reloc: Update.
64727         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64728
64729 2007-06-08  Bruno Haible  <bruno@clisp.org>
64730
64731         Port to uClibc.
64732         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64733         * lib/fpurge.c (fpurge): Likewise.
64734         * lib/freading.c (freading): Likewise.
64735         * lib/fseeko.c (rpl_fseeko): Likewise.
64736         * lib/fseterr.c (fseterr): Likewise.
64737         * lib/fwriting.c (fwriting): Likewise.
64738         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64739
64740 2007-06-08  Bruno Haible  <bruno@clisp.org>
64741
64742         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64743         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64744         * modules/gettext (Files): Add m4/intlmacosx.m4.
64745
64746 2007-06-07  Bruno Haible  <bruno@clisp.org>
64747
64748         * modules/localename-tests: New file.
64749         * tests/test-localename.c: New file.
64750
64751         New module 'localename'.
64752         * lib/localename.h: New file.
64753         * lib/localename.c: New file, from GNU gettext.
64754         * m4/localename.m4: New file.
64755         * modules/localename: New file.
64756
64757 2007-06-07  Bruno Haible  <bruno@clisp.org>
64758
64759         Work around the lack of <wchar.h> on some builds of uClibc.
64760         * doc/headers/wchar.texi: Update.
64761         * lib/wchar_.h: Include <wchar.h> only if it exists.
64762         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64763         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64764         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64765         doesn't exist.
64766         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64767         * modules/mbfile (Depends-on): Add wchar.
64768         * modules/mbiter (Depends-on): Likewise.
64769         * modules/mbuiter (Depends-on): Likewise.
64770         Reported by Simon Josefsson.
64771
64772 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64773
64774         Work around problem reported by Steven M. Schweda in
64775         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64776         Tru64 5.1B with the Compaq compiler environment installed declares
64777         an 'isblank' function but does not define it in the C library.
64778         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64779         * lib/regex_internal.h (isblank): Likewise.
64780         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64781         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64782
64783 2007-06-05  Bruno Haible  <bruno@clisp.org>
64784
64785         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64786         ia64.
64787         * modules/printf-safe: New file.
64788         * modules/fprintf-posix (Depends-on): Add printf-safe.
64789         * modules/printf-posix (Depends-on): Likewise.
64790         * modules/snprintf-posix (Depends-on): Likewise.
64791         * modules/sprintf-posix (Depends-on): Likewise.
64792         * modules/vasnprintf-posix (Depends-on): Likewise.
64793         * modules/vasprintf-posix (Depends-on): Likewise.
64794         * modules/vfprintf-posix (Depends-on): Likewise.
64795         * modules/vprintf-posix (Depends-on): Likewise.
64796         * modules/vsnprintf-posix (Depends-on): Likewise.
64797         * modules/vsprintf-posix (Depends-on): Likewise.
64798         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64799         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64800         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64801         "no" on i386, x86_64, ia64.
64802         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64803         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64804         on i386, x86_64, ia64.
64805         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64806         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64807         on i386, x86_64, ia64.
64808         * tests/test-vasnprintf-posix.c: Include float.h.
64809         (LDBL80_WORDS): New macro.
64810         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64811         on i386, x86_64, ia64.
64812         * tests/test-vasprintf-posix.c: Include float.h.
64813         (LDBL80_WORDS): New macro.
64814         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64815         on i386, x86_64, ia64.
64816         * tests/test-snprintf-posix.c: Include float.h.
64817         * tests/test-sprintf-posix.c: Likewise.
64818         * tests/test-vsnprintf-posix.c: Likewise.
64819         * tests/test-vsprintf-posix.c: Likewise.
64820
64821 2007-06-05  Bruno Haible  <bruno@clisp.org>
64822
64823         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64824         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64825         non-IEEE numbers on i386, x86_64, ia64.
64826         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64827         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64828         * tests/test-isnanl.h: Include float.h.
64829         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64830
64831 2007-06-05  Bruno Haible  <bruno@clisp.org>
64832
64833         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64834         also the %a / %A. Handle the %a / %A code before this extra handling.
64835
64836 2007-06-05  Bruno Haible  <bruno@clisp.org>
64837
64838         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64839         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64840
64841 2007-06-05  Bruno Haible  <bruno@clisp.org>
64842
64843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64844         typo in variable name.
64845
64846 2007-06-05  Eric Blake  <ebb9@byu.net>
64847
64848         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64849         Reported by Simon Josefsson.
64850
64851 2007-06-04  Bruno Haible  <bruno@clisp.org>
64852
64853         Avoid test failures on some PowerPC platforms.
64854         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64855         Define differently for PowerPC.
64856         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64857         Reported by Gary V. Vaughan <gary@gnu.org>.
64858
64859 2007-06-02  Bruno Haible  <bruno@clisp.org>
64860
64861         Fix test-stdint failure on FreeBSD/ia64.
64862         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64863         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64864         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64865         * doc/headers/stdint.texi: Update.
64866
64867 2007-06-01  Bruno Haible  <bruno@clisp.org>
64868
64869         * tests/test-binary-io.c (main): Pass a third argument to open().
64870         Reported by Gary V. Vaughan <gary@gnu.org>.
64871
64872 2007-06-01  Bruno Haible  <bruno@clisp.org>
64873
64874         * doc/functions/frexpl.texi: Update for mingw.
64875
64876 2007-06-01  Bruno Haible  <bruno@clisp.org>
64877
64878         * tests/test-lseek.c (main): Disable test of errno for invalid third
64879         argument.
64880         * doc/functions/lseek.texi: Update.
64881         Reported by Gary V. Vaughan <gary@gnu.org>.
64882
64883 2007-05-28  Bruno Haible  <bruno@clisp.org>
64884
64885         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64886
64887 2007-05-31  Eric Blake  <ebb9@byu.net>
64888
64889         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64890         cross compiling.
64891
64892 2007-05-30  Eric Blake  <ebb9@byu.net>
64893         and Bruno Haible  <bruno@clisp.org>
64894
64895         Work around mingw test failures exposed by m4-1.4.9b.
64896         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64897         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64898         moment.
64899
64900 2007-05-30  Bruno Haible  <bruno@clisp.org>
64901
64902         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64903         assuming that they are closed. Needed on HP-UX 11.
64904
64905 2007-05-29  Bruno Haible  <bruno@clisp.org>
64906
64907         Fix a problem with #include_next.
64908         * lib/dirent_.h: Split the double-inclusion guard.
64909         * lib/fcntl_.h: Likewise.
64910         * lib/float_.h: Likewise.
64911         * lib/iconv_.h: Likewise.
64912         * lib/inttypes_.h: Likewise.
64913         * lib/locale_.h: Likewise.
64914         * lib/math_.h: Likewise.
64915         * lib/netinet_in_.h: Likewise.
64916         * lib/search_.h: Likewise.
64917         * lib/signal_.h: Likewise.
64918         * lib/stdint_.h: Likewise.
64919         * lib/stdio_.h: Likewise.
64920         * lib/stdlib_.h: Likewise.
64921         * lib/string_.h: Likewise.
64922         * lib/sys_select_.h: Likewise.
64923         * lib/sys_socket_.h: Likewise.
64924         * lib/sys_stat_.h: Likewise.
64925         * lib/sys_time_.h: Likewise.
64926         * lib/sysexits_.h: Likewise.
64927         * lib/time_.h: Likewise.
64928         * lib/unistd_.h: Likewise.
64929         * lib/wchar_.h: Likewise.
64930         * lib/wctype_.h: Likewise.
64931
64932 2007-05-29  Bruno Haible  <bruno@clisp.org>
64933
64934         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64935         for the moment.
64936
64937 2007-05-29  Bruno Haible  <bruno@clisp.org>
64938
64939         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64940         invocation.
64941         Reported by Eric Blake.
64942
64943 2007-05-29  Bruno Haible  <bruno@clisp.org>
64944
64945         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64946         compiling case.
64947
64948 2007-05-29  Eric Blake  <ebb9@byu.net>
64949             Bruno Haible  <bruno@clisp.org>
64950
64951         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64952         cross compiles.
64953
64954 2007-05-28  Eric Blake  <ebb9@byu.net>
64955
64956         * modules/closein-tests (test_closein_LDADD): Support test on
64957         cygwin with libtool.
64958
64959 2007-05-28  Bruno Haible  <bruno@clisp.org>
64960
64961         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64962         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64963         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64964         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64965         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64966         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64967         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64968         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64969         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64970
64971 2007-05-28  Eric Blake  <ebb9@byu.net>
64972
64973         Unconditionally include <config.h> in unit tests.
64974         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64975         * tests/test-allocsa.c, tests/test-arcfour.c,
64976         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64977         tests/test-array_list.c, tests/test-array_oset.c,
64978         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64979         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64980         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64981         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64982         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64983         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64984         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64985         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64986         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64987         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64988         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64989         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64990         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64991         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64992         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64993         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64994         test-md5.c, test-memmem.c, test-printf-posix.c,
64995         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64996         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64997         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64998         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64999         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65000         test-vasnprintf-posix2.c, test-vasnprintf.c,
65001         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65002         test-vfprintf-posix.c, test-vprintf-posix.c,
65003         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65004         test-xvasprintf.c: Likewise.
65005
65006 2007-05-28  Bruno Haible  <bruno@clisp.org>
65007
65008         * gnulib-tool (func_import): Remember the --with-tests command-line
65009         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65010         Reported by Eric Blake.
65011
65012 2007-05-28  Bruno Haible  <bruno@clisp.org>
65013
65014         * modules/ftell-tests: New file.
65015         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65016         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65017
65018         * lib/ftell.c: New file.
65019         * modules/ftell: New file.
65020         * m4/ftell.m4: New file.
65021         * doc/functions/ftell.texi: Update.
65022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65023         REPLACE_FTELL.
65024         * lib/stdio_.h (rpl_ftell): New declaration.
65025         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65026         REPLACE_FTELL.
65027
65028 2007-05-28  Eric Blake  <ebb9@byu.net>
65029
65030         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65031
65032 2007-05-28  Bruno Haible  <bruno@clisp.org>
65033
65034         * modules/fseek-tests: New file.
65035         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65036         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65037
65038         * lib/fseek.c: New file.
65039         * modules/fseek: New file.
65040         * m4/fseek.m4: New file.
65041         * doc/functions/fseek.texi: Update.
65042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65043         REPLACE_FSEEK.
65044         * lib/stdio_.h (rpl_fseek): New declaration.
65045         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65046         REPLACE_FSEEK.
65047
65048 2007-05-28  Bruno Haible  <bruno@clisp.org>
65049
65050         * lib/stdio_.h (fflush): More comments.
65051
65052 2007-05-28  Bruno Haible  <bruno@clisp.org>
65053
65054         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65055         runtime test.
65056
65057 2007-05-28  Eric Blake  <ebb9@byu.net>
65058
65059         Improve lseek module.
65060         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65061         * lib/unistd_.h (lseek): Scale back link warning message.
65062         * tests/test-lseek.c: Beef up test.
65063         * tests/test-lseek.sh: Exercise more facets of lseek.
65064         Reported by Bruno Haible.
65065
65066 2007-05-28  Bruno Haible  <bruno@clisp.org>
65067
65068         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65069         to define.
65070
65071 2007-05-27  Bruno Haible  <bruno@clisp.org>
65072
65073         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65074
65075 2007-05-27  Bruno Haible  <bruno@clisp.org>
65076
65077         * modules/openmp: New file.
65078         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65079         Noah Misch.
65080
65081 2007-05-26  Bruno Haible  <bruno@clisp.org>
65082
65083         * modules/chdir-long (Depends-on): Add fchdir.
65084         * modules/chdir-safer (Depends-on): Likewise.
65085         * modules/fts (Depends-on): Likewise.
65086         * modules/fts-lgpl (Depends-on): Likewise.
65087         * modules/openat (Depends-on): Likewise.
65088         * modules/savewd (Depends-on): Likewise.
65089
65090 2007-05-24  Eric Blake  <ebb9@byu.net>
65091
65092         Fix lseek on mingw.
65093         * modules/lseek: New module.
65094         * m4/lseek.m4: New file.
65095         * lib/lseek.c: New file.
65096         * modules/lseek-tests: New file.
65097         * tests/test-lseek.c: New file.
65098         * tests/test-lseek.sh: New file.
65099         * MODULES.html.sh: Document lseek module.
65100         * modules/fflush (Depends-on): Add lseek, fseeko.
65101         * modules/fseeko (Depends-on): Likewise.
65102         * modules/ftello (Depends-on): Likewise.
65103         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65104         broken.
65105         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65106         broken.
65107         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65108         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65109         * lib/ftello.c (rpl_ftello): Likewise.
65110         * tests/test-fseeko.c (main): Test this.
65111         * tests/test-fseeko.sh: Likewise.
65112         * tests/test-ftello.c (main): Likewise.
65113         * tests/test-ftello.sh: Likewise.
65114         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65115         implies replacing fseek.
65116         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65117         HAVE_FTELLO.
65118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65119         * modules/unistd (Makefile.am): Likewise.
65120         * lib/unistd_.h (lseek): Declare a replacement.
65121         * doc/functions/lseek.texi (lseek): Document this fix.
65122         * doc/functions/fseek.texi (fseek): Likewise.
65123         * doc/functions/ftell.texi (ftell): Likewise.
65124
65125 2007-05-24  Bruno Haible  <bruno@clisp.org>
65126
65127         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65128         in the printed representation of a NaN.
65129         * tests/test-vasprintf-posix.c (test_function): Likewise.
65130         * tests/test-snprintf-posix.h (test_function): Likewise.
65131         * tests/test-sprintf-posix.h (test_function): Likewise.
65132         Reported by Eric Blake.
65133
65134 2007-05-23  Eric Blake  <ebb9@byu.net>
65135
65136         Fix fseeko/ftello on cygwin 1.5.24.
65137         * doc/functions/fseeko.texi (fseeko): Document the fix.
65138         * doc/functions/ftello.texi (ftello): Document the fix.
65139         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65140         * doc/functions/stdout.text (stdout): New file.
65141         * doc/functions/stderr.text (stderr): New file.
65142         * doc/gnulib.texi (Function Substitutes): Use new files.
65143         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65144         prior to 1.7.0.
65145         * tests/test-ftello.c (main): Likewise for ftello.
65146         * tests/test-fseeko.sh: New file.
65147         * tests/test-ftello.sh: New file.
65148         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65149         with seekable stdin.
65150         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65151         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65152         (gl_REPLACE_FSEEKO): New macro.
65153         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65154         * modules/fseeko (Files): Distribute fseeko.c.
65155         * modules/ftello (Files): Distribute ftello.c.
65156         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65157         mode.
65158         * lib/ftello.c (rpl_ftello): New file.
65159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65160         fseeko, ftello.
65161         (gl_STDIN_LARGE_OFFSET): New macro.
65162         * modules/stdio (Makefile.am): Perform the replacement.
65163         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65164
65165 2007-05-23  Bruno Haible  <bruno@clisp.org>
65166
65167         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65168         GNULIB_POSIXCHECK is defined.
65169
65170 2007-05-21  Bruno Haible  <bruno@clisp.org>
65171
65172         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65173         Check also the output for NaN arguments. When cross-compiling, guess
65174         no on IRIX.
65175         * lib/vasnprintf.c: Update comments.
65176         * tests/test-vasnprintf-posix.c (strisnan): New function.
65177         (test_function): Use it.
65178         * tests/test-vasprintf-posix.c (strisnan): New function.
65179         (test_function): Use it.
65180         * tests/test-snprintf-posix.h (strisnan): New function.
65181         (test_function): Use it.
65182         * tests/test-sprintf-posix.h (strisnan): New function.
65183         (test_function): Use it.
65184         Reported by Eric Blake.
65185
65186 2007-05-20  Bruno Haible  <bruno@clisp.org>
65187
65188         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65189         numbers that fails on BeOS.
65190         * doc/functions/frexpl.texi: Update.
65191
65192 2007-05-20  Jim Meyering  <jim@meyering.net>
65193
65194         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65195         forced upon us by glibc-2.6.
65196
65197 2007-05-20  Bruno Haible  <bruno@clisp.org>
65198
65199         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65200         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65201         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65202         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65203         NEED_PRINTF_INFINITE.
65204         (is_infinitel): New function.
65205         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65207         gl_PREREQ_VASNPRINTF_INFINITE.
65208         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65210         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65211         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65212         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65213         gl_PREREQ_VASNPRINTF_INFINITE.
65214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65217         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65218         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65221         * doc/functions/fprintf.texi: Update.
65222         * doc/functions/printf.texi: Update.
65223         * doc/functions/snprintf.texi: Update.
65224         * doc/functions/sprintf.texi: Update.
65225         * doc/functions/vfprintf.texi: Update.
65226         * doc/functions/vprintf.texi: Update.
65227         * doc/functions/vsnprintf.texi: Update.
65228         * doc/functions/vsprintf.texi: Update.
65229
65230 2007-05-20  Bruno Haible  <bruno@clisp.org>
65231
65232         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65233         was not found in libc.
65234         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65235
65236 2007-05-20  Bruno Haible  <bruno@clisp.org>
65237
65238         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65239         printed as "-nan" instead of "nan".
65240         * tests/test-vasprintf-posix.c (test_function): Likewise.
65241         * tests/test-snprintf-posix.h (test_function): Likewise.
65242         * tests/test-sprintf-posix.h (test_function): Likewise.
65243         Needed for HP-UX 11.
65244
65245 2007-05-20  Jim Meyering  <jim@meyering.net>
65246
65247         Fix buggy test for the fchownat-deref bug.
65248         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65249         symlink required for the run-test.  Without it, this test would
65250         always declare that fchownat doesn't work, and client code would
65251         unnecessarily use the replacement function with fixed libc.
65252         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65253         Reported by Greg Schafer.
65254
65255 2007-05-19  Bruno Haible  <bruno@clisp.org>
65256
65257         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65258         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65259         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65260         Needed for IRIX 6.5 and Solaris 2.5.1.
65261
65262 2007-05-19  Bruno Haible  <bruno@clisp.org>
65263
65264         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65265         (test_function): Skip tests involving -0.0 on platforms where
65266         -0.0 = 0.0.
65267         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65268         (test_function): Skip tests involving -0.0 on platforms where
65269         -0.0 = 0.0.
65270         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65271         (test_function): Skip tests involving -0.0 on platforms where
65272         -0.0 = 0.0.
65273         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65274         (test_function): Skip tests involving -0.0 on platforms where
65275         -0.0 = 0.0.
65276         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65277         tests.
65278         * tests/test-printf-posix.h (test_function): Likewise.
65279         * tests/test-printf-posix.output: Remove all -0.0 related results.
65280         Needed for IRIX 6.5.
65281
65282 2007-05-19  Bruno Haible  <bruno@clisp.org>
65283
65284         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65285         printed as "nan0x7fffffff" instead of "nan".
65286         * tests/test-vasprintf-posix.c (test_function): Likewise.
65287         * tests/test-snprintf-posix.h (test_function): Likewise.
65288         * tests/test-sprintf-posix.h (test_function): Likewise.
65289         * tests/test-fprintf-posix.h (NaN): Remove macro.
65290         (test_function): Remove all NaN related tests.
65291         * tests/test-printf-posix.h (NaN): Remove macro.
65292         (test_function): Remove all NaN related tests.
65293         * tests/test-printf-posix.output: Remove all NaN related results.
65294         Needed for IRIX 6.5.
65295
65296 2007-05-19  Bruno Haible  <bruno@clisp.org>
65297
65298         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65300
65301 2007-05-19  Bruno Haible  <bruno@clisp.org>
65302
65303         * lib/float_.h: New file.
65304         * m4/float_h.m4: New file.
65305         * modules/float: New file.
65306         * modules/isnanl (Dependencies): Add float.
65307         * modules/isnanl-nolibm (Dependencies): Likewise.
65308         * modules/mathl (Dependencies): Likewise.
65309         * modules/printf-frexpl (Dependencies): Likewise.
65310         * modules/signbit (Dependencies): Likewise.
65311         * modules/vasnprintf (Dependencies): Likewise.
65312         * doc/headers/float.texi: Update.
65313
65314 2007-05-19  Jim Meyering  <jim@meyering.net>
65315
65316         * lib/utimens.c (gl_futimens): Rename from futimens,
65317         now that glibc-2.6 declares futimens.
65318         * lib/utimens.h: Likewise.
65319
65320 2007-05-19  Bruno Haible  <bruno@clisp.org>
65321
65322         Avoid test failures on mingw.
65323         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65324         * tests/test-printf-posix.sh: Likewise.
65325         * tests/test-vfprintf-posix.sh: Likewise.
65326         * tests/test-vprintf-posix.sh: Likewise.
65327
65328 2007-05-19  Bruno Haible  <bruno@clisp.org>
65329
65330         Fix *printf result for NaN, Inf, -0.0 on mingw.
65331         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65332         * lib/vasnprintf.c: Include math.h and isnan.h.
65333         (is_infinite_or_zero): New function.
65334         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65335         values in the %f, %F, %e, %E, %g, %G directives.
65336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65338         gl_PRINTF_INFINITE and test its result. Invoke
65339         gl_PREREQ_VASNPRINTF_INFINITE.
65340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65341         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65342         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65343         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65344         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65345         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65346         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65347         * doc/functions/fprintf.texi: Update.
65348         * doc/functions/printf.texi: Update.
65349         * doc/functions/snprintf.texi: Update.
65350         * doc/functions/sprintf.texi: Update.
65351         * doc/functions/vfprintf.texi: Update.
65352         * doc/functions/vprintf.texi: Update.
65353         * doc/functions/vsnprintf.texi: Update.
65354         * doc/functions/vsprintf.texi: Update.
65355
65356 2007-05-19  Bruno Haible  <bruno@clisp.org>
65357
65358         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65359         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65360         Instead of multiplying with 10^k, set extra_zeroes to k.
65361         (scale10_round_long_double): Remove function.
65362
65363 2007-05-18  Bruno Haible  <bruno@clisp.org>
65364
65365         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65366         introduced on 2007-05-06.
65367
65368 2007-05-18  Bruno Haible  <bruno@clisp.org>
65369
65370         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65371         %g directives.
65372         * tests/test-vasprintf-posix.c (test_function): Likewise.
65373         * tests/test-snprintf-posix.h (test_function): Likewise.
65374         * tests/test-sprintf-posix.h (test_function): Likewise.
65375
65376 2007-05-18  Bruno Haible  <bruno@clisp.org>
65377
65378         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65379         (strmatch): New function.
65380         (test_function): Test the %f directive on numbers of various exponents.
65381         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65382         (strmatch): New function.
65383         (test_function): Test the %f directive on numbers of various exponents.
65384         * tests/test-snprintf-posix.h (strmatch): New function.
65385         (test_function): Test the %f directive on numbers of various exponents.
65386         * tests/test-sprintf-posix.h (strmatch): New function.
65387         (test_function): Test the %f directive on numbers of various exponents.
65388         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65389         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65390         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65391         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65392
65393 2007-05-18  Bruno Haible  <bruno@clisp.org>
65394
65395         Add support for 'long double' number output.
65396         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65397         * lib/vasnprintf.c: Include math.h and float+.h.
65398         (mp_limb_t): New type.
65399         (GMP_LIMB_BITS): New macro.
65400         (mp_twolimb_t): New type.
65401         (GMP_TWOLIMB_BITS): New macro.
65402         (mpn_t): New type.
65403         (multiply, divide, convert_to_decimal, decode_long_double,
65404         scale10_round_long_double, scale10_round_decimal_long_double,
65405         floorlog10l): New functions.
65406         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65407         for the %f, %F, %e, %E, %g, %G directives.
65408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65409         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65410         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65411         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65413         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65419         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65420         * modules/snprintf-posix (Depends-on): Likewise.
65421         * modules/sprintf-posix (Depends-on): Likewise.
65422         * modules/vasnprintf-posix (Depends-on): Likewise.
65423         * modules/vasprintf-posix (Depends-on): Likewise.
65424         * modules/vfprintf-posix (Depends-on): Likewise.
65425         * modules/vsnprintf-posix (Depends-on): Likewise.
65426         * modules/vsprintf-posix (Depends-on): Likewise.
65427         * modules/vasnprintf (Files): Add lib/float+.h.
65428         * doc/functions/fprintf.texi: Update.
65429         * doc/functions/printf.texi: Update.
65430         * doc/functions/snprintf.texi: Update.
65431         * doc/functions/sprintf.texi: Update.
65432         * doc/functions/vfprintf.texi: Update.
65433         * doc/functions/vprintf.texi: Update.
65434         * doc/functions/vsnprintf.texi: Update.
65435         * doc/functions/vsprintf.texi: Update.
65436
65437 2007-05-18  Bruno Haible  <bruno@clisp.org>
65438
65439         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65440
65441 2007-05-18  Bruno Haible  <bruno@clisp.org>
65442
65443         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65444         for printing 64-bit integers. Needed for mingw.
65445
65446 2007-05-18  Bruno Haible  <bruno@clisp.org>
65447
65448         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65449         gl_FUNC_FREXPL_WORKS.
65450         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65451
65452 2007-05-18  Bruno Haible  <bruno@clisp.org>
65453
65454         * modules/frexpl-nolibm-tests: New file.
65455
65456         * modules/frexpl-nolibm: New file.
65457         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65458
65459 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65460
65461         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65462         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65463         GCC 4.2, which otherwise issues a lot of warnings.
65464         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65465         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65466         Likewise.
65467         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65468         * modules/iconv_open (iconv.h): Likewise.
65469         * modules/locale (locale.h): Likewise.
65470         * modules/netinet_in (netinet/in.h): Likewise.
65471         * modules/sys_select (sys_select.h): Likewise.
65472         * modules/sys_socket (sys/socket.h): Likewise.
65473         * modules/sys_stat (sys/stat.h): Likewise.
65474         * modules/sysexits (sysexits.h): Likewise.
65475         * modules/unistd (unistd.h): Likewise.
65476
65477 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65478
65479         * modules/closein-tests (Makefile.am): Distribute
65480         `test-closein.sh'.
65481
65482 2007-05-17  Bruno Haible  <bruno@clisp.org>
65483
65484         * tests/test-printf-posix.output: Renamed from
65485         tests/test-fprintf-posix.out.
65486         * modules/fprintf-posix-tests: Update.
65487         * modules/printf-posix-tests: Update.
65488         * modules/vfprintf-posix-tests: Update.
65489         * modules/vprintf-posix-tests: Update.
65490         * tests/test-fprintf-posix.sh: Update.
65491         * tests/test-printf-posix.sh: Update.
65492         * tests/test-vfprintf-posix.sh: Update.
65493         * tests/test-vprintf-posix.sh: Update.
65494         Reported by Ralf Wildenhues.
65495
65496 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65499         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65500         GCC 4.2, which otherwise issues a lot of warnings.
65501         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65502         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65503         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65504         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65505         it should no longer be needed.
65506         * lib/string_.h: Likewise.
65507         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65508         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65509         * modules/inttypes (inttypes.h): Likewise.
65510         * modules/math (math.h): Likewise.
65511         * modules/search (search.h): Likewise.
65512         * modules/signal (signal.h): Likewise.
65513         * modules/stdint (stdint.h): Likewise.
65514         * modules/stdio (stdio.h): Likewise.
65515         * modules/stdlib (stdlib.h): Likewise.
65516         * modules/string (string.h): Likewise.
65517         * modules/sys_time (sys/time.h): Likewise.
65518         * modules/time (time.h): Likewise.
65519         * modules/wchar (wchar.h): Likewise.
65520         * modules/wctype (wtype.h): Likewise.
65521
65522 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65523
65524         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65525
65526 2007-05-13  Bruno Haible  <bruno@clisp.org>
65527
65528         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65529         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65530         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65531         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65532         (gl_PREREQ_STRTOK_R): Don't require it here.
65533
65534 2007-05-13  Bruno Haible  <bruno@clisp.org>
65535
65536         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65537         when used in C++ mode.
65538
65539 2007-05-12  Bruno Haible  <bruno@clisp.org>
65540
65541         * lib/linebuffer.h: Tweak doc.
65542         * lib/linebuffer.c: Likewise.
65543
65544 2007-05-12  James Youngman  <jay@gnu.org>
65545
65546         * lib/linebuffer.c (readlinebuffer_delim): New function,
65547         like readlinebuffer, but use a caller-specified delimiter.
65548         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65549         as the delimiter.
65550         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65551
65552 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65553
65554         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65555         * modules/openat (Files): Remove openat-die.c.
65556         (Depends-on): Add openat-die.
65557         * modules/openat-die: New module.
65558
65559 2007-05-06  Bruno Haible  <bruno@clisp.org>
65560
65561         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65562         Update with info about Cygwin.
65563         * doc/functions/fprintf.texi: Update.
65564         * doc/functions/printf.texi: Update.
65565         * doc/functions/snprintf.texi: Update.
65566         * doc/functions/sprintf.texi: Update.
65567         * doc/functions/vfprintf.texi: Update.
65568         * doc/functions/vprintf.texi: Update.
65569         * doc/functions/vsnprintf.texi: Update.
65570         * doc/functions/vsprintf.texi: Update.
65571         Reported by Eric Blake.
65572
65573 2007-05-06  Bruno Haible  <bruno@clisp.org>
65574
65575         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65576         padding ourselves for the floating-point directives.
65577         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65580         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65581         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65582         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65583         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65584         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65585         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65586         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65587         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65588         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65589         * tests/test-snprintf-posix.h (test_function): Also check the width
65590         and some flags in the %f directive.
65591         * tests/test-sprintf-posix.h (test_function): Likewise.
65592         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65593         * tests/test-vasprintf-posix.c (test_function): Likewise.
65594         * doc/functions/fprintf.texi: Update.
65595         * doc/functions/printf.texi: Update.
65596         * doc/functions/snprintf.texi: Update.
65597         * doc/functions/sprintf.texi: Update.
65598         * doc/functions/vfprintf.texi: Update.
65599         * doc/functions/vprintf.texi: Update.
65600         * doc/functions/vsnprintf.texi: Update.
65601         * doc/functions/vsprintf.texi: Update.
65602
65603 2007-05-06  Bruno Haible  <bruno@clisp.org>
65604
65605         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65606         pass the ' flag character to sprintf or snprintf.
65607         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65610         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65611         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65612         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65614         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65615         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65616         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65618         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65619         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65620         flag.
65621         * tests/test-sprintf-posix.h (test_function): Likewise.
65622         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65623         * tests/test-vasprintf-posix.c (test_function): Likewise.
65624         * doc/functions/fprintf.texi: Update.
65625         * doc/functions/printf.texi: Update.
65626         * doc/functions/snprintf.texi: Update.
65627         * doc/functions/sprintf.texi: Update.
65628         * doc/functions/vfprintf.texi: Update.
65629         * doc/functions/vprintf.texi: Update.
65630         * doc/functions/vsnprintf.texi: Update.
65631         * doc/functions/vsprintf.texi: Update.
65632
65633 2007-05-01  Bruno Haible  <bruno@clisp.org>
65634
65635         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65636
65637 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65638
65639         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65640         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65641
65642 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65643
65644         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65645         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65646         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65647
65648 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65649
65650         * lib/argp-help.c (struct hol_entry): New member `ord'.
65651         (HOL_ENTRY_PTRCMP): Use ord for comparison
65652         (hol_sort): Initialize ord.
65653
65654 2007-05-01  Bruno Haible  <bruno@clisp.org>
65655
65656         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65657         Reported by Eric Blake.
65658         * doc/gnulib.texi (Function Substitutes): Update.
65659
65660 2007-05-01  Bruno Haible  <bruno@clisp.org>
65661
65662         * doc/functions.texi: Remove file, now redundant through
65663         doc/functions/*.texi.
65664
65665 2007-05-01  Bruno Haible  <bruno@clisp.org>
65666
65667         * modules/argp (Depends-on): Add sleep.
65668
65669 2007-05-01  Bruno Haible  <bruno@clisp.org>
65670
65671         * modules/sleep-tests: New file.
65672         * tests/test-sleep.c: New file.
65673
65674         * modules/sleep: New file.
65675         * lib/sleep.c: New file.
65676         * m4/sleep.m4: New file.
65677         * lib/unistd_.h (sleep): New declaration.
65678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65679         HAVE_SLEEP.
65680         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65681         * doc/functions/sleep.texi: Document the sleep module.
65682
65683 2007-05-01  Bruno Haible  <bruno@clisp.org>
65684
65685         * lib/sigprocmask.h: Remove file.
65686         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65687         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65688         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65689         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65690         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65691         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65692         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65693         HAVE_SIGSET_T as a shell variable.
65694         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65695         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65696         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65697         (Depends-on): Add signal. Remove verify.
65698         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65699         (Include): Mention <signal.h> instead of sigprocmask.h.
65700         * NEWS: Mention the change.
65701         * lib/fatal-signal.c: Don't include sigprocmask.h.
65702
65703 2007-05-01  Bruno Haible  <bruno@clisp.org>
65704
65705         * modules/signal: New file.
65706         * lib/signal_.h: New file.
65707         * m4/signal_h.m4: New file.
65708
65709 2007-05-01  Bruno Haible  <bruno@clisp.org>
65710
65711         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65712         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65713         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65714         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65715
65716 2007-05-01  Bruno Haible  <bruno@clisp.org>
65717
65718         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65719         configure time.
65720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65721         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65722         * modules/sys_stat (Makefile.am): Substitute their values into
65723         sys/stat.h.
65724
65725 2007-05-01  Bruno Haible  <bruno@clisp.org>
65726
65727         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65728         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65729         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65730
65731 2007-05-01  Bruno Haible  <bruno@clisp.org>
65732
65733         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65734         'assert' module here.
65735
65736 2007-05-01  Bruno Haible  <bruno@clisp.org>
65737
65738         * doc/functions/*.texi: New files.
65739         * doc/functions/google-ranking.txt: New file.
65740         * doc/gnulib.texi (Function Substitutes): New chapter.
65741         (ctime, inet_ntoa): Remove sections.
65742         * doc/ctime.texi: Remove file.
65743         * doc/inet_ntoa.texi: Remove file.
65744         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65745         dependencies.
65746         (%.info): New rule, specifying a --reference-limit.
65747
65748 2007-05-01  Bruno Haible  <bruno@clisp.org>
65749
65750         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65751
65752 2007-05-01  Bruno Haible  <bruno@clisp.org>
65753
65754         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65755         the portability of 'mkdir' to mingw systems.
65756
65757 2007-05-01  Bruno Haible  <bruno@clisp.org>
65758
65759         * doc/headers/google-ranking.txt: New file.
65760
65761 2007-04-30  Eric Blake  <ebb9@byu.net>
65762
65763         Prefer fseeko to fseek.
65764         * modules/getpass (Depends-on): Add fseeko.
65765         * lib/getpass.c (getpass): Use fseeko, not fseek.
65766
65767 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65768
65769         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65770         assumes the sorting is stable, while most qsort implementations
65771         are not.  Use argument addresses to ensure they never compare as
65772         equal.
65773
65774         * tests/test-argp-2.sh (usage-indent test): Fix output
65775         (func_compare): Restore diff options
65776         * tests/test-argp.c: Restore #include "progname.h"
65777
65778 2007-04-29  Bruno Haible  <bruno@clisp.org>
65779
65780         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65781         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65782         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65784         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65785         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65786         (TESTS, check_PROGRAMS): Add test-snprintf.
65787         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65788         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65789         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65790         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65791         assertions that fail on HP-UX, OSF/1, or IRIX.
65792         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65793
65794 2007-04-29  Bruno Haible  <bruno@clisp.org>
65795
65796         * MODULES.html.sh (posix_functions): Remove 'contents'.
65797
65798 2007-04-29  Karl Berry  <karl@gnu.org>
65799
65800         * config/srclist.txt (gendocs_template_min): new entry.
65801
65802 2007-04-29  Bruno Haible  <bruno@clisp.org>
65803
65804         Work around fpurge bug on BSD systems.
65805         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65806         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65807         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65808         fpurge to rpl_fpurge if the system already has this function.
65809         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65810         the case where the system already has this function. Correct invariants
65811         on BSD systems.
65812         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65813         BSD systems.
65814
65815 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65816
65817         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65818         proposed by Sven Verdoolaege.
65819
65820         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65821         options.
65822         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65823         (usage and help tests): Update
65824
65825 2007-04-29  Bruno Haible  <bruno@clisp.org>
65826
65827         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65828         Print more information in case of failure. Disable a test on BeOS.
65829
65830 2007-04-29  Bruno Haible  <bruno@clisp.org>
65831
65832         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65833         This helps debugging on systems on which no gdb is available.
65834
65835 2007-04-29  Bruno Haible  <bruno@clisp.org>
65836
65837         * lib/freading.h: Improve comments.
65838         * lib/fwriting.h: Likewise.
65839         * tests/test-freading.c (main): Don't check freading immediately after
65840         repositioning. Needed for glibc.
65841
65842 2007-04-29  Bruno Haible  <bruno@clisp.org>
65843
65844         * lib/freading.c (freading): Trivial simplification.
65845
65846 2007-04-28  Bruno Haible  <bruno@clisp.org>
65847
65848         * tests/test-fwriting.c (main): Also test the interaction between
65849         fflush and fwriting.
65850         * modules/fwriting-tests (Depends-on): Add fflush.
65851
65852         * tests/test-freading.c (main): Also test the interaction between
65853         fflush and freading.
65854         * modules/freading-tests (Depends-on): Add fflush.
65855
65856 2007-04-28  Bruno Haible  <bruno@clisp.org>
65857
65858         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65859         fseeko and ftello.
65860         Suggested by Eric Blake.
65861
65862 2007-04-28  Jim Meyering  <jim@meyering.net>
65863
65864         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65865         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65866         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65867
65868 2007-04-27  Eric Blake  <ebb9@byu.net>
65869
65870         * doc/headers/assert.texi (assert.h): Document assert module use.
65871
65872 2007-04-27  Bruno Haible  <bruno@clisp.org>
65873
65874         * doc/headers/*.texi: New files.
65875         * doc/gnulib.texi (Header File Substitutes): New chapter.
65876         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65877         dependencies.
65878         (standards.info ,standards.html, standards.dvi): Update dependencies.
65879         (mostlyclean, clean): New targets.
65880
65881 2007-04-27  Bruno Haible  <bruno@clisp.org>
65882
65883         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65884         * modules/sysexits (Files, Makefile.am): Update.
65885
65886         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65887         * modules/sys_socket (Files, Makefile.am): Update.
65888
65889         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65890         * modules/sys_stat (Files, Makefile.am): Update.
65891
65892 2007-04-27  Eric Blake  <ebb9@byu.net>
65893
65894         * lib/freading.h: Improve comments.
65895         * lib/fwriting.h: Likewise.
65896         * lib/fflush.c: Likewise.
65897
65898         Fix closein for mingw.
65899         * modules/closein-tests: Add tests for closein.
65900         * tests/test-closein.c: New file.
65901         * tests/test-closein.sh: Likewise.
65902         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65903         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65904
65905 2007-04-27  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65908         version is < 6.
65909         * lib/math_.h [__DECC]: Likewise.
65910         * lib/stdio_.h [__DECC]: Likewise.
65911         * lib/stdlib_.h [__DECC]: Likewise.
65912         * lib/string_.h [__DECC]: Likewise.
65913         * lib/time_.h [__DECC]: Likewise.
65914         * lib/wchar_.h [__DECC]: Likewise.
65915         * lib/wctype_.h [__DECC]: Likewise.
65916
65917 2007-04-27  Bruno Haible  <bruno@clisp.org>
65918
65919         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65920
65921 2007-04-27  Bruno Haible  <bruno@clisp.org>
65922
65923         * lib/fflush.c: Add comments.
65924         * modules/fpurge-tests (Depends-on): Add fflush.
65925         * modules/freadable-tests (Depends-on): Likewise.
65926         * modules/fwritable-tests (Depends-on): Likewise.
65927
65928 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65929
65930         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65931         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65932         Report by Bruno Haible <bruno@clisp.org>.
65933
65934 2007-04-26  Eric Blake  <ebb9@byu.net>
65935
65936         Fix fflush on mingw.
65937         * modules/fflush (Depends-on): Add freading.
65938         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65939         but unread data.
65940
65941 2007-04-26  Eric Blake  <ebb9@byu.net>
65942         and Bruno Haible  <bruno@clisp.org>
65943
65944         Implement freading and fwriting.
65945         * lib/freading.c: New file.
65946         * lib/freading.h: Likewise.
65947         * m4/freading.m4: Likewise.
65948         * modules/freading: Likewise.
65949         * modules/freading-tests: Likewise.
65950         * tests/test-freading.c: Likewise.
65951         * lib/fwriting.c: New file.
65952         * lib/fwriting.h: Likewise.
65953         * m4/fwriting.m4: Likewise.
65954         * modules/fwriting: Likewise.
65955         * modules/fwriting-tests: Likewise.
65956         * tests/test-fwriting.c: Likewise.
65957         * MODULES.html.sh (File stream based Input/Output): Mention them.
65958
65959 2007-04-26  Bruno Haible  <bruno@clisp.org>
65960
65961         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65962         'long' when we assume it.
65963         Suggested by Eric Blake.
65964
65965 2007-04-26  Bruno Haible  <bruno@clisp.org>
65966
65967         Ensure fseeko, ftello are declared on glibc systems.
65968         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65969         * modules/fseeko (configure.ac-early): Likewise.
65970         * modules/ftello (configure.ac-early): Likewise.
65971         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65972         AC_FUNC_FSEEKO for this.
65973         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65974         (gl_CHECK_FSEEKO): Remove macro.
65975
65976 2007-04-26  Bruno Haible  <bruno@clisp.org>
65977
65978         * tests/test-fflush.c (main): Also check the ftell result after
65979         fflush and fseek/fseeko.
65980         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65981         file descriptor position cache in the stream.
65982         * lib/fseeko.c (rpl_fseeko): Likewise.
65983
65984 2007-04-26  Bruno Haible  <bruno@clisp.org>
65985
65986         * modules/fflush-tests (Depends-on): Add fseeko.
65987
65988 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65989             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65990
65991         * lib/argz_.h: ensure error_t definition is obtained in same
65992         mechanism system argz.h would have.
65993         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65994         argz facilities are known bad.  Err on the side of caution if
65995         cross-compiling.
65996
65997 2007-04-25  Eric Blake  <ebb9@byu.net>
65998
65999         * lib/fpurge.c (includes): Use stdlib.h for free.
66000         * tests/test-fflush.c (main): Also test fflush-fseeko.
66001
66002 2007-04-25  Bruno Haible  <bruno@clisp.org>
66003
66004         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66005         * lib/fseeko.c: New file.
66006         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66007         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66008         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66009         gl_FUNC_FSEEKO.
66010         (gl_FUNC_FSEEKO): Invoke it.
66011         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66012         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66013         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66014
66015 2007-04-25  Bruno Haible  <bruno@clisp.org>
66016
66017         * modules/fflush (Depends-on): Add ftello.
66018
66019 2007-04-25  Bruno Haible  <bruno@clisp.org>
66020
66021         * modules/ftello-tests: New file.
66022         * tests/test-ftello.c: New file.
66023
66024         * modules/ftello: New file.
66025         * m4/ftello.m4: New file.
66026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66027         HAVE_FTELLO.
66028         * lib/stdio_.h (ftello): New declaration.
66029         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66030         HAVE_FTELLO.
66031
66032 2007-04-25  Bruno Haible  <bruno@clisp.org>
66033
66034         * modules/fseeko-tests: New file.
66035         * tests/test-fseeko.c: New file.
66036
66037         * modules/fseeko: New file.
66038         * m4/fseeko.m4: New file.
66039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66040         HAVE_FSEEKO.
66041         * lib/stdio_.h (fseeko): New declaration.
66042         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66043         HAVE_FSEEKO.
66044
66045 2007-04-25  Bruno Haible  <bruno@clisp.org>
66046
66047         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66048
66049 2007-04-25  Bruno Haible  <bruno@clisp.org>
66050
66051         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66052         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66053         * tests/test-unistd.c: Likewise.
66054         * tests/test-fcntl.c: Likewise.
66055
66056 2007-04-23  Eric Blake  <ebb9@byu.net>
66057
66058         * lib/fflush.c: Fix missing include.
66059         Reported by Bruno Haible.
66060
66061 2007-04-23  Bruno Haible  <bruno@clisp.org>
66062
66063         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66064         Reported by Eric Blake.
66065
66066 2007-04-23  Bruno Haible  <bruno@clisp.org>
66067
66068         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66069
66070 2007-04-23  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66073
66074 2007-04-23  Bruno Haible  <bruno@clisp.org>
66075
66076         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66077         Needed on HP-UX 11.
66078
66079 2007-04-16  Eric Blake  <ebb9@byu.net>
66080
66081         Make fflush rely on fpurge.
66082         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66083         open coding all variants.
66084         * modules/fflush (Depends-on): Add fpurge and unistd.
66085         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66086         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66087
66088         Fix --with-tests compilation on cygwin.
66089         * modules/argmatch-tests (Makefile.am): List gnulib library first
66090         in LDADD.
66091         * modules/argp-tests (Makefile.am): Likewise.
66092         * modules/array-list-tests (Makefile.am): Likewise.
66093         * modules/array-oset-tests (Makefile.am): Likewise.
66094         * modules/avltree-list-tests (Makefile.am): Likewise.
66095         * modules/avltree-oset-tests (Makefile.am): Likewise.
66096         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66097         * modules/carray-list-tests (Makefile.am): Likewise.
66098         * modules/dirname-tests (Makefile.am): Likewise.
66099         * modules/frexp-tests (Makefile.am): Likewise.
66100         * modules/isnanl-tests (Makefile.am): Likewise.
66101         * modules/linked-list-tests (Makefile.am): Likewise.
66102         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66103         * modules/lock-tests (Makefile.am): Likewise.
66104         * modules/rbtree-list-tests (Makefile.am): Likewise.
66105         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66106         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66107         * modules/tls-tests (Makefile.am): Likewise.
66108         * modules/tsearch-tests (Makefile.am): Likewise.
66109         * modules/xvasprintf-tests (Makefile.am): Likewise.
66110
66111         Fix fpurge for cygwin.
66112         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66113         value.
66114         * modules/fpurge-tests (Depends-on): Clean up trash.
66115
66116 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66117
66118         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66119
66120         * m4/autobuild.m4: Re-indent.
66121
66122 2007-04-13  Bruno Haible  <bruno@clisp.org>
66123
66124         * modules/fpurge-tests: New file.
66125         * tests/test-fpurge.c: New file.
66126
66127         * modules/fpurge: New file.
66128         * lib/fpurge.h: New file.
66129         * lib/fpurge.c: New file.
66130         * m4/fpurge.m4: New file.
66131
66132 2007-04-13  Bruno Haible  <bruno@clisp.org>
66133
66134         * modules/fbufmode-tests: New file.
66135         * tests/test-fbufmode.c: New file.
66136
66137         * modules/fbufmode: New file.
66138         * lib/fbufmode.h: New file.
66139         * lib/fbufmode.c: New file.
66140         * m4/fbufmode.m4: New file.
66141
66142 2007-04-13  Bruno Haible  <bruno@clisp.org>
66143
66144         * modules/fwritable-tests: New file.
66145         * tests/test-fwritable.c: New file.
66146
66147         * modules/fwritable: New file.
66148         * lib/fwritable.h: New file.
66149         * lib/fwritable.c: New file.
66150         * m4/fwritable.m4: New file.
66151
66152 2007-04-13  Bruno Haible  <bruno@clisp.org>
66153
66154         * modules/freadable-tests: New file.
66155         * tests/test-freadable.c: New file.
66156
66157         * modules/freadable: New file.
66158         * lib/freadable.h: New file.
66159         * lib/freadable.c: New file.
66160         * m4/freadable.m4: New file.
66161
66162 2007-04-13  Bruno Haible  <bruno@clisp.org>
66163
66164         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66165         MOSTLYCLEANFILES.
66166
66167 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66168
66169         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66170         gzip bootstrap.conf to avoid dragging in i18n machinery.
66171         (gnulib_tool_option): Use it.
66172
66173 2007-04-13  Bruno Haible  <bruno@clisp.org>
66174
66175         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66176         %F directives.
66177         * tests/test-vasprintf-posix.c (test_function): Likewise.
66178         * tests/test-snprintf-posix.h (test_function): Likewise.
66179         * tests/test-sprintf-posix.h (test_function): Likewise.
66180         * tests/test-fprintf-posix.h (test_function): Likewise.
66181         * tests/test-printf-posix.h (test_function): Likewise.
66182         * tests/test-fprintf-posix.out: Likewise.
66183
66184 2007-04-13  Bruno Haible  <bruno@clisp.org>
66185
66186         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66187         * modules/tls-tests (configure.ac): Likewise.
66188         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66189
66190 2007-04-13  Bruno Haible  <bruno@clisp.org>
66191
66192         * lib/tls.c (glthread_tls_get): Fix return type.
66193         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66194
66195 2007-04-12  Eric Blake  <ebb9@byu.net>
66196
66197         * modules/gettime (Depends-on): Remove gettime.
66198         Reported by Dmitry V. Levin.
66199
66200 2007-04-12  Bruno Haible  <bruno@clisp.org>
66201
66202         * modules/fflush (Include): Mention <stdio.h>.
66203         * modules/strtoimax (Include): Mention <inttypes.h>.
66204         * modules/strtoumax (Include): Likewise.
66205
66206 2007-04-12  Eric Blake  <ebb9@byu.net>
66207
66208         * .cvsignore: New file.
66209         * .gitignore: Likewise.
66210
66211 2007-04-12  Bruno Haible  <bruno@clisp.org>
66212
66213         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66214         not before, since $(LDADD) often contains libgnu.a.
66215         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66216         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66217         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66218         Needed on Cygwin.
66219
66220 2007-04-12  Eric Blake  <ebb9@byu.net>
66221
66222         Work around glibc's failure to flush stdin on fclose.
66223         * lib/closein.c (close_stdin): Flush stdin before closing.
66224
66225         Work around glibc's failure to reset seekable stdin on exit.
66226         * modules/closein: New module.
66227         * lib/closein.c: New file.
66228         * lib/closein.h: Likewise.
66229         * m4/closein.m4: Likewise.
66230         * MODULES.html.sh (File stream based Input/Output): Document it.
66231
66232 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66233
66234         * gnulib-tool: Rename generated 'autobuild' script to
66235         'do-autobuild' in --create-megatestdir output.
66236
66237         * doc/gnulib.texi (Build robot for gnulib): Fix.
66238
66239 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66240
66241         * modules/sysexits (Depends-on): Add absolute-header.
66242
66243 2007-04-12  Eric Blake  <ebb9@byu.net>
66244
66245         No need to preserve errno on success.
66246         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66247         Reported by Bruno Haible.
66248
66249 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66250
66251         * MODULES.html.sh (Support for maintaining and releasing
66252         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66253
66254 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66255
66256         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66257
66258 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66259
66260         * modules/autobuild: New module.
66261
66262         * m4/autobuild.m4: New file.
66263
66264 2007-04-11  Bruno Haible  <bruno@clisp.org>
66265
66266         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66267         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66268         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66271         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66272         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66274         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66275         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66276         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66277         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66278         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66279         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66280         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66281         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66283         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66284         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66285         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66286         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66287         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66288         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66289         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66290         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66292         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66293         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66294         Reported by Eric Blake.
66295
66296 2007-04-11  Bruno Haible  <bruno@clisp.org>
66297
66298         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66299
66300 2007-04-10  Bruno Haible  <bruno@clisp.org>
66301
66302         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66303         for NaN and Infinity. Needed on FreeBSD 6.1.
66304         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66305         regarding results for "%010a" of Infinity and NaN.
66306         * tests/test-vasprintf-posix.c (test_function): Likewise.
66307         * tests/test-snprintf-posix.h (test_function): Likewise.
66308         * tests/test-sprintf-posix.h (test_function): Likewise.
66309         * tests/test-fprintf-posix.h (test_function): Likewise.
66310         * tests/test-printf-posix.h (test_function): Likewise.
66311         * tests/test-fprintf-posix.out: Likewise.
66312
66313 2007-04-10  Bruno Haible  <bruno@clisp.org>
66314
66315         * modules/locale-tests: New file.
66316         * tests/test-locale.c: New file.
66317
66318         * modules/locale: New file.
66319         * lib/locale_.h: New file.
66320         * m4/locale_h.m4: New file.
66321
66322 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66323             Bruno Haible  <bruno@clisp.org>
66324
66325         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66326         be determined, test for availability of the copysignf, copysign,
66327         copysignl functions.
66328         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66329         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66330         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66331
66332 2007-04-09  Eric Blake  <ebb9@byu.net>
66333
66334         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66335         * modules/stdio (Makefile.am): Support fflush.
66336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66337         * modules/fflush: New file.
66338         * lib/fflush.c: Likewise.
66339         * m4/fflush.m4: Likewise.
66340         * modules/fflush-tests: New test.
66341         * tests/test-fflush.c: Likewise.
66342         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66343
66344 2007-04-06  Bruno Haible  <bruno@clisp.org>
66345
66346         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66347         (VASNPRINTF): Use signbit for faster determination whether to print a
66348         minus sign.
66349         * modules/vasnprintf (Files): Remove lib/float+.h.
66350         * modules/fprintf-posix (Depends-on): Add signbit.
66351         * modules/snprintf-posix (Depends-on): Likewise.
66352         * modules/sprintf-posix (Depends-on): Likewise.
66353         * modules/vasnprintf-posix (Depends-on): Likewise.
66354         * modules/vasprintf-posix (Depends-on): Likewise.
66355         * modules/vfprintf-posix (Depends-on): Likewise.
66356         * modules/vsnprintf-posix (Depends-on): Likewise.
66357         * modules/vsprintf-posix (Depends-on): Likewise.
66358
66359 2007-04-06  Bruno Haible  <bruno@clisp.org>
66360
66361         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66362         * tests/test-frexpl.c (main): Likewise.
66363         * tests/test-ldexpl.c (main): Likewise.
66364         * modules/frexp-tests (Depends-on): Add signbit.
66365         * modules/frexpl-tests (Depdends-on): Likewise.
66366         * modules/ldexpl-tests (Depdends-on): Likewise.
66367
66368 2007-04-06  Bruno Haible  <bruno@clisp.org>
66369
66370         * modules/signbit-tests: New file.
66371         * tests/test-signbit.c: New file.
66372
66373         * modules/signbit: New file.
66374         * lib/signbitf.c: New file.
66375         * lib/signbitd.c: New file.
66376         * lib/signbitl.c: New file.
66377         * m4/signbit.m4: New file.
66378         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66379         (signbit): New macro.
66380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66381         REPLACE_SIGNBIT.
66382         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66383         REPLACE_FREXPL into math.h.
66384
66385 2007-04-06  Bruno Haible  <bruno@clisp.org>
66386
66387         * modules/isnanf-nolibm-tests: New file.
66388         * tests/test-isnanf.c: New file.
66389
66390         * modules/isnanf-nolibm: New file.
66391         * lib/isnanf.h: New file.
66392         * lib/isnanf.c: New file.
66393         * lib/isnan.c: Consider the USE_FLOAT macro.
66394         * m4/isnanf.m4: New file.
66395
66396 2007-04-06  Bruno Haible  <bruno@clisp.org>
66397
66398         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66399         (Link): New section.
66400
66401         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66402
66403 2007-04-06  Bruno Haible  <bruno@clisp.org>
66404
66405         Assume the 'long double' type.
66406         * m4/longdouble.m4: Remove file.
66407         * config/srclist.txt: Don't mention longdouble.m4.
66408         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66409         * lib/float+.h: Likewise.
66410         * lib/frexp.c: Likewise.
66411         * lib/printf-args.h: Likewise.
66412         * lib/printf-args.c: Likewise.
66413         * lib/printf-frexp.c: Likewise.
66414         * lib/printf-parse.c: Likewise.
66415         * lib/vasnprintf.c: Likewise.
66416         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66417         * m4/intl.m4: Likewise.
66418         * m4/isnanl.m4: Likewise.
66419         * m4/printf.m4: Likewise.
66420         * m4/printf-frexpl.m4: Likewise.
66421         * m4/vasnprintf.m4: Likewise.
66422         * modules/allocsa (Files): Remove m4/longdouble.m4.
66423         * modules/gettext (Files): Likewise.
66424         * modules/relocatable-prog-wrapper (Files): Likewise.
66425         * modules/vasnprintf (Files): Likewise.
66426         * modules/isnanl (Files): Likewise.
66427         (Include): Simplify.
66428         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66429         (Include): Simplify.
66430         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66431         (Include): Simplify.
66432         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66433         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66434         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66435         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66436         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66437         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66438         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66439         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66440         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66441         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66442         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66443         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66444         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66445         * tests/test-isnanl.c: Likewise.
66446         * tests/test-snprintf-posix.h: Likewise.
66447         * tests/test-sprintf-posix.h: Likewise.
66448         * tests/test-vasnprintf-posix.c: Likewise.
66449         * tests/test-vasnprintf-posix2.c: Likewise.
66450         * tests/test-vasprintf-posix.c: Likewise.
66451
66452 2007-04-06  Bruno Haible  <bruno@clisp.org>
66453
66454         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66455         * lib/math_.h [__DECC]: Include the overridden include file through
66456         #include_next, outside the double-inclusion guard.
66457         * lib/stdio_.h [__DECC]: Likewise.
66458         * lib/stdlib_.h [__DECC]: Likewise.
66459         * lib/string_.h [__DECC]: Likewise.
66460         * lib/time_.h [__DECC]: Likewise.
66461         * lib/wchar_.h [__DECC]: Likewise.
66462         * lib/wctype_.h [__DECC]: Likewise.
66463         * lib/inttypes_.h [__DECC]: Likewise.
66464         Reported by Albert Chin <china@thewrittenword.com> in
66465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66466
66467 2007-04-04  Eric Blake  <ebb9@byu.net>
66468
66469         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66470         1.5.x.
66471
66472 2007-04-04  Bruno Haible  <bruno@clisp.org>
66473
66474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66475         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66476
66477 2007-04-04  Bruno Haible  <bruno@clisp.org>
66478
66479         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66480         results for "%010a" of Infinity and NaN.
66481         * tests/test-vasprintf-posix.c (test_function): Likewise.
66482         * tests/test-snprintf-posix.h (test_function): Likewise.
66483         * tests/test-sprintf-posix.h (test_function): Likewise.
66484         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66485         * tests/test-printf-posix.h (test_function): Likewise.
66486         * tests/test-fprintf-posix.out: Update.
66487         Needed for FreeBSD 6.1.
66488
66489 2007-04-04  Bruno Haible  <bruno@clisp.org>
66490
66491         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66492         directly used by the gnulib modules nor by gnulib-tool.
66493
66494 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * DEPENDENCIES: Give overall description of version dependency
66497         desirability.  Use more-typical names for apps.
66498         Add shell, coreutils, diffutils, grep, tar, gzip.
66499
66500 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66501
66502         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66503
66504 2007-04-04  Karl Berry  <karl@gnu.org>
66505
66506         * MODULES.html.sh (func_module): missing '.
66507
66508 2007-04-03  Bruno Haible  <bruno@clisp.org>
66509
66510         * modules/argmatch-tests (Makefile.am): New variable
66511         test_argmatch_LDADD.
66512         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66513         * modules/array-list-tests (Makefile.am): New variable
66514         test_array_list_LDADD.
66515         * modules/array-oset-tests (Makefile.am): New variable
66516         test_array_oset_LDADD.
66517         * modules/avltree-list-tests (Makefile.am): New variable
66518         test_avltree_list_LDADD.
66519         * modules/avltree-oset-tests (Makefile.am): New variable
66520         test_avltree_oset_LDADD.
66521         * modules/avltreehash-list-tests (Makefile.am): New variable
66522         test_avltreehash_list_LDADD.
66523         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66524         test_canonicalize_lgpl_LDADD.
66525         * modules/carray-list-tests (Makefile.am): New variable
66526         test_carray_list_LDADD.
66527         * modules/dirname-tests (Makefile.am): New variable
66528         test_dirname_LDADD.
66529         * modules/linked-list-tests (Makefile.am): New variable
66530         test_linked_list_LDADD.
66531         * modules/linkedhash-list-tests (Makefile.am): New variable
66532         test_linkedhash_list_LDADD.
66533         * modules/rbtree-list-tests (Makefile.am): New variable
66534         test_rbtree_list_LDADD.
66535         * modules/rbtree-oset-tests (Makefile.am): New variable
66536         test_rbtree_oset_LDADD.
66537         * modules/rbtreehash-list-tests (Makefile.am): New variable
66538         test_rbtreehash_list_LDADD.
66539         * modules/xvasprintf-tests (Makefile.am): New variable
66540         test_xvasprintf_LDADD.
66541         Reported by Eric Blake.
66542
66543 2007-04-03  Eric Blake  <ebb9@byu.net>
66544
66545         * DEPENDENCIES: Weaken m4 requirements.
66546
66547 2007-04-03  Bruno Haible  <bruno@clisp.org>
66548
66549         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66550         * modules/isnanl-tests (configure.ac): Likewise.
66551
66552 2007-04-03  Ben Pfaff  <blp@gnu.org>
66553
66554         * modules/iconv_open: Add $(srcdir)/ to source directory
66555         references in Makefile fragments that call gperf, to fix VPATH
66556         builds.
66557
66558 2007-04-03  Bruno Haible  <bruno@clisp.org>
66559
66560         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66561         * lib/ldexpl.c: Undo last change.
66562
66563 2007-04-03  Bruno Haible  <bruno@clisp.org>
66564
66565         * modules/printf-frexpl (Depends-on): Undo last change.
66566         (Files): Add m4/ldexpl.m4.
66567
66568 2007-04-03  Bruno Haible  <bruno@clisp.org>
66569
66570         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66571         * modules/isnanl (Link): New section.
66572
66573         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66574         * modules/frexp (Link): New section.
66575
66576         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66577         * modules/frexpl (Link): New section.
66578
66579         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66580         * modules/ldexpl (Link): New section.
66581
66582 2007-04-03  Bruno Haible  <bruno@clisp.org>
66583
66584         * modules/TEMPLATE-EXTENDED: New file.
66585         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66586
66587 2007-04-03  Bruno Haible  <bruno@clisp.org>
66588
66589         * DEPENDENCIES: New file.
66590         Suggested by Simon Josefsson.
66591
66592 2007-04-03  Bruno Haible  <bruno@clisp.org>
66593
66594         * doc/gnulib.texi: Escape @.
66595
66596 2007-04-03  James Youngman  <jay@gnu.org>
66597         and Paul Eggert  <eggert@cs.ucla.edu>
66598
66599         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66600         birthtime on all systems that have birthtime, not just those which
66601         use st_birthtimensec rather than st_birthtim.  Putting zero in
66602         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66603         that the birth time is not available for files on an NFS mount.
66604
66605 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66606
66607         * modules/memxor: Move back from crypto/, suggested by Bruno.
66608         * modules/crypto/hmac-sha1: Fix memxor dependency.
66609
66610         * modules/crypto/gc: Moved from ../.
66611
66612 2007-04-02  Eric Blake  <ebb9@byu.net>
66613
66614         * lib/ldexpl.c (includes): Avoid libm.
66615
66616         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66617
66618 2007-04-02  Bruno Haible  <bruno@clisp.org>
66619
66620         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66621         on IRIX.
66622
66623 2007-04-02  Bruno Haible  <bruno@clisp.org>
66624
66625         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66626         x86 or x86_64 platforms running MacOS X.
66627         Reported by Ryan Schmidt <@ryandesign.com>.
66628
66629 2007-04-02  Bruno Haible  <bruno@clisp.org>
66630
66631         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66632         i386.
66633
66634 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66635
66636         * modules/crypto/arcfour: Moved from ../.
66637         * modules/crypto/arcfour-tests: Moved from ../.
66638         * modules/crypto/arctwo: Moved from ../.
66639         * modules/crypto/arctwo-tests: Moved from ../.
66640         * modules/crypto/des: Moved from ../.
66641         * modules/crypto/des-tests: Moved from ../.
66642         * modules/crypto/gc-arcfour: Moved from ../.
66643         * modules/crypto/gc-arcfour-tests: Moved from ../.
66644         * modules/crypto/gc-arctwo: Moved from ../.
66645         * modules/crypto/gc-arctwo-tests: Moved from ../.
66646         * modules/crypto/gc-des: Moved from ../.
66647         * modules/crypto/gc-des-tests: Moved from ../.
66648         * modules/crypto/gc-hmac-md5: Moved from ../.
66649         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66650         * modules/crypto/gc-hmac-sha1: Moved from ../.
66651         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66652         * modules/crypto/gc-md2: Moved from ../.
66653         * modules/crypto/gc-md2-tests: Moved from ../.
66654         * modules/crypto/gc-md4: Moved from ../.
66655         * modules/crypto/gc-md4-tests: Moved from ../.
66656         * modules/crypto/gc-md5: Moved from ../.
66657         * modules/crypto/gc-md5-tests: Moved from ../.
66658         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66659         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66660         * modules/crypto/gc-random: Moved from ../.
66661         * modules/crypto/gc-rijndael: Moved from ../.
66662         * modules/crypto/gc-rijndael-tests: Moved from ../.
66663         * modules/crypto/gc-sha1: Moved from ../.
66664         * modules/crypto/gc-sha1-tests: Moved from ../.
66665         * modules/crypto/gc-tests: Moved from ../.
66666         * modules/crypto/hmac-md5: Moved from ../.
66667         * modules/crypto/hmac-md5-tests: Moved from ../.
66668         * modules/crypto/hmac-sha1: Moved from ../.
66669         * modules/crypto/hmac-sha1-tests: Moved from ../.
66670         * modules/crypto/md2: Moved from ../.
66671         * modules/crypto/md2-tests: Moved from ../.
66672         * modules/crypto/md4: Moved from ../.
66673         * modules/crypto/md4-tests: Moved from ../.
66674         * modules/crypto/md5: Moved from ../.
66675         * modules/crypto/md5-tests: Moved from ../.
66676         * modules/crypto/memxor: Moved from ../.
66677         * modules/crypto/rijndael: Moved from ../.
66678         * modules/crypto/rijndael-tests: Moved from ../.
66679         * modules/crypto/sha1: Moved from ../.
66680
66681 2007-03-30  James Youngman  <jay@gnu.org>
66682
66683         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66684         rename() to change the ctime of a file (because ctime is unaffected
66685         by rename on jfs2 on AIX 5.1).
66686         (main): Start by doing cleanup, in case a previous run failed leaving
66687         test files behind.
66688
66689 2007-03-31  Bruno Haible  <bruno@clisp.org>
66690
66691         Support old proprietary implementations of iconv.
66692         * modules/iconv_open: New file.
66693         * lib/iconv_.h: New file.
66694         * m4/iconv_h.m4: New file.
66695         * lib/iconv_open.c: New file.
66696         * lib/iconv_open-aix.gperf: New file.
66697         * lib/iconv_open-hpux.gperf: New file.
66698         * lib/iconv_open-irix.gperf: New file.
66699         * lib/iconv_open-osf.gperf: New file.
66700         * m4/iconv_open.m4: New file.
66701         * modules/linebreak (Depends-on): Add iconv_open.
66702         * modules/striconv (Depends-on): Likewise.
66703         * modules/striconveh (Depends-on): Likewise.
66704         * modules/unicodeio (Depends-on): Likewise.
66705         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66706         (iconv_t)(-1).
66707         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66708         conversion if cd is (iconv_t)(-1).
66709         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66710         is not possible.
66711
66712 2007-03-31  Bruno Haible  <bruno@clisp.org>
66713
66714         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66715         work on Solaris either. Protect also second use of "autodetect_jp".
66716
66717 2007-03-31  Bruno Haible  <bruno@clisp.org>
66718
66719         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66720         the function is not present.
66721
66722 2007-03-31  Bruno Haible  <bruno@clisp.org>
66723
66724         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66725         the function is not present.
66726
66727 2007-03-31  Bruno Haible  <bruno@clisp.org>
66728
66729         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66730         a bug in HP-UX iconv_open().
66731
66732 2007-03-31  Bruno Haible  <bruno@clisp.org>
66733
66734         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66735         (Mathematics <math.h>): New section, add fpieee.
66736         (Input/output <stdio.h>): Add fseterr.
66737         (Mathematics <math.h>): New section, add printf-frexp.
66738         (Container data structures): Add sublist.
66739         (Core language properties): Add fpucw, inline.
66740         (Functions for greatest-width integer types <inttypes.h>): Add
66741         imaxabs, imaxdiv, inttypes.
66742         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66743         isnanl-nolibm, ldexp.
66744         (Mathematics <math.h>): New section, add printf-frexpl.
66745         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66746         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66747         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66748         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66749         (Unicode string functions): Add unistr/u*-mbtoucr.
66750         (Java): Add javacomp-script, javaexec-script.
66751         (C#): Add csharpcomp-script, csharpexec-script.
66752         (Support for building libraries and executables): Add havelib,
66753         relocatable-*.
66754         (Support for maintaining and releasing projects): Renamed from
66755         'Support for maintaining and release projects'. Add announce-gen.
66756
66757 2007-03-31  Bruno Haible  <bruno@clisp.org>
66758
66759         * README: Talk primarily about git.
66760         (git and CVS): Renamed from CVS.
66761         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66762         gnulib is available through git.
66763         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66764
66765 2007-03-30  Bruno Haible  <bruno@clisp.org>
66766
66767         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66768         * lib/poll_.h: Likewise.
66769         * lib/stat_.h: Likewise.
66770         * lib/sys_time_.h: Likewise.
66771         * lib/sysexit_.h: Likewise.
66772         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66773         * lib/stdbool_.h: Likewise.
66774         * lib/byteswap_.h: Add double-inclusion guard.
66775
66776 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66777
66778         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66779
66780 2007-03-30  Karl Berry  <karl@gnu.org>
66781
66782         * config/srclist-update: double space after USA in the license
66783         substitution, since that's how it's usually (?) written.
66784
66785 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66786
66787         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66788         reported by Bruno Haible.
66789
66790 2007-03-29  Bruno Haible  <bruno@clisp.org>
66791
66792         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66793         a bug in AIX iconv().
66794
66795 2007-03-29  Bruno Haible  <bruno@clisp.org>
66796
66797         * modules/ldexpl-tests: New file.
66798         * tests/test-ldexpl.c: New file.
66799
66800 2007-03-29  Bruno Haible  <bruno@clisp.org>
66801
66802         * lib/ldexpl.c: Include fpucw.h.
66803         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66804         multiplication.
66805         * modules/ldexpl (Depends-on): Add fpucw.
66806
66807 2007-03-29  Bruno Haible  <bruno@clisp.org>
66808
66809         * modules/ldexpl: New file.
66810         * m4/ldexpl.m4: New file.
66811         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66812         set.
66813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66814         REPLACE_LDEXPL.
66815         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66816         REPLACE_LDEXPL.
66817         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66818         gl_FUNC_LDEXPL_WORKS.
66819         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66820         * modules/mathl (Files): Remove lib/ldexpl.c.
66821         (Depends-on): Add ldexpl.
66822
66823 2007-03-29  Bruno Haible  <bruno@clisp.org>
66824
66825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66826
66827 2007-03-29  Bruno Haible  <bruno@clisp.org>
66828
66829         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66830         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66831         and possibly also HP-UX.
66832         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66833         work on AIX, IRIX, HP-UX, OSF/1.
66834         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66835         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66836         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66837         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66838         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66839         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66840
66841 2007-03-29  Bruno Haible  <bruno@clisp.org>
66842
66843         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66844
66845 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66846
66847         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66848         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66849
66850 2007-03-29  Eric Blake  <ebb9@byu.net>
66851
66852         * lib/acl-internal.h: Remove redundant include.
66853         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66854         Cygwin when a file is locked.
66855
66856 2007-03-29  Bruno Haible  <bruno@clisp.org>
66857
66858         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66859         file.
66860         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66861
66862 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66865         try to remove a parent directory if the child couldn't be removed
66866         (except for the first rmdir, which could fail because the child
66867         doesn't exist).  Problem reported by Jeff Blaine in
66868         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66869
66870 2007-03-28  Bruno Haible  <bruno@clisp.org>
66871
66872         * lib/striconveh.c (utf8conv_carefully): New function.
66873         (mem_cd_iconveh_internal): Invoke it.
66874
66875 2007-03-28  Bruno Haible  <bruno@clisp.org>
66876
66877         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66878         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66879         input.
66880         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66881         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66882         unistr/u8-uctomb.
66883
66884 2007-03-28  Bruno Haible  <bruno@clisp.org>
66885
66886         * modules/unistr/u8-mbtoucr: New file.
66887         * lib/unistr/u8-mbtoucr.c: New file.
66888         * modules/unistr/u16-mbtoucr: New file.
66889         * lib/unistr/u16-mbtoucr.c: New file.
66890         * modules/unistr/u16-mbtoucr: New file.
66891         * lib/unistr/u16-mbtoucr.c: New file.
66892         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66893
66894 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66895             Bruno Haible  <bruno@clisp.org>
66896
66897         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66898         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66899         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66900
66901         * m4/stdio_h.m4: Add stubs for vasprintf too.
66902
66903         * modules/stdio: Support vasprintf in sed command.
66904
66905         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66906         vasprintf.h.  Add stdio module indicator.
66907
66908         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66909         vasprintf.h.
66910
66911         * lib/vasprintf.h: File removed.
66912
66913         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66914         * lib/vasprintf.c: Ditto.
66915         * lib/xvasprintf.c: Ditto.
66916         * tests/test-vasprintf-posix.c: Ditto.
66917         * tests/test-vasprintf.c: Ditto.
66918
66919 2007-03-27  Bruno Haible  <bruno@clisp.org>
66920
66921         Make vasnprintf multithread-safe.
66922         * lib/vasnprintf.c (decimal_point_char): New function.
66923         (VASNPRINTF): Use it.
66924         Suggested by Simon Josefsson.
66925
66926 2007-03-27  Eric Blake  <ebb9@byu.net>
66927
66928         Support sub-second birthtime on cygwin.
66929         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66930         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66931         (get_stat_birthtime): Also work with st_birthtim.
66932
66933 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66934
66935         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66936         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66937         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66938         (get_stat_birthtime_ns): Simplify compile-time tests.
66939         (get_stat_birthtime): Change the API to look like
66940         get_stat_mtime etc., except return a negative tv_nsec on error.
66941         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66942         Don't check for "spare" fields.
66943         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66944         or for struct stat.st_birthtime, as these tests aren't used.
66945         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66946
66947 2007-03-27  Bruno Haible  <bruno@clisp.org>
66948
66949         * lib/stat-time.h: Include <sys/stat.h>.
66950
66951 2007-03-27  James Youngman  <jay@gnu.org>
66952
66953         * lib/stat-time.h (get_stat_birthtime): New function for
66954           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66955         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66956           and its variants.
66957         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66958         * modules/stat-time-test: New file.
66959         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66960
66961 2007-03-26  Bruno Haible  <bruno@clisp.org>
66962
66963         Better support of signalling NaNs.
66964         * lib/atanl.c: Include isnanl.h.
66965         (atanl): Perform test for NaN at the beginning of the function and
66966         through a call to isnanl.
66967         * lib/cosl.c: Include isnanl.h.
66968         (cosl): Perform test for NaN at the beginning of the function and
66969         through a call to isnanl.
66970         * lib/ldexpl.c: Include isnanl.h.
66971         (ldexpl): Perform test for NaN through a call to isnanl.
66972         * lib/logl.c: Include isnanl.h.
66973         (logl): Perform test for NaN at the beginning of the function and
66974         through a call to isnanl.
66975         * lib/sinl.c: Include isnanl.h.
66976         (sinl): Perform test for NaN at the beginning of the function and
66977         through a call to isnanl.
66978         * lib/sqrtl.c: Include isnanl.h.
66979         (sqrtl): Perform test for NaN at the beginning of the function and
66980         through a call to isnanl.
66981         * lib/tanl.c: Include isnanl.h.
66982         (tanl): Perform test for NaN at the beginning of the function and
66983         through a call to isnanl.
66984         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66985         * modules/mathl (Depends-on): Add isnanl.
66986
66987 2007-03-26  Eric Blake  <ebb9@byu.net>
66988
66989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66990         regression in logic sense of previous patch.
66991
66992 2007-03-26  Bruno Haible  <bruno@clisp.org>
66993
66994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66995         unportable shell command "if ! ...".
66996         Reported by Ralf Wildenhues.
66997
66998 2007-03-25  Bruno Haible  <bruno@clisp.org>
66999
67000         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67001         <sysexits.h> file, and only add EX_CONFIG.
67002         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67003         absolute file name and whether it is sufficient. Substitute also
67004         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67005         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67006         ABSOLUTE_SYSEXITS_H into sysexits.h.
67007
67008 2007-03-25  Bruno Haible  <bruno@clisp.org>
67009
67010         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67011         hints is NULL.
67012
67013 2007-03-25  Bruno Haible  <bruno@clisp.org>
67014
67015         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67016         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67017
67018 2007-03-25  Bruno Haible  <bruno@clisp.org>
67019
67020         * lib/vasnprintf.c: Include langinfo.h.
67021         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67022         multithread-safe.
67023         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67024         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67032         Reported by Simon Josefsson.
67033
67034 2007-03-25  Bruno Haible  <bruno@clisp.org>
67035
67036         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67037         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67038         * modules/vasnprintf (Depends-on): Add stdint.
67039
67040 2007-03-25  Bruno Haible  <bruno@clisp.org>
67041
67042         * modules/fpieee: New file.
67043         * m4/fpieee.m4: New file.
67044         * modules/isnan-nolibm (Depends-on): Add fpieee.
67045         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67046         * modules/isnanl (Depends-on): Add fpieee.
67047
67048 2007-03-25  Bruno Haible  <bruno@clisp.org>
67049
67050         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67051
67052 2007-03-25  Bruno Haible  <bruno@clisp.org>
67053
67054         Avoid test failures on IRIX 6.5.
67055         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67056         (main): Use it.
67057         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67058         macros.
67059         (main): Use them.
67060
67061 2007-03-25  Bruno Haible  <bruno@clisp.org>
67062
67063         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67064         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67065         exists but doesn't work.
67066         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67067         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67069         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67070         math.h.
67071
67072 2007-03-25  Bruno Haible  <bruno@clisp.org>
67073
67074         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67075         returns inf. Needed on IRIX 6.5.
67076
67077 2007-03-25  Bruno Haible  <bruno@clisp.org>
67078
67079         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67080         (main): Use isnanl instead of x != x idiom.
67081         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67082
67083         * tests/test-frexp.c: Include isnan.h.
67084         (main): Use isnan instead of x != x idiom.
67085         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67086
67087 2007-03-25  Bruno Haible  <bruno@clisp.org>
67088
67089         * tests/test-frexp.c (NaN): New function/macro.
67090         (main): Use it instead of 0.0 / 0.0.
67091         * tests/test-isnan.c (NaN): New function/macro.
67092         (main): Use it instead of 0.0 / 0.0.
67093         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67094         (test_function): Use it instead of 0.0 / 0.0.
67095         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67096         (test_function): Use it instead of 0.0 / 0.0.
67097         * tests/test-snprintf-posix.h (NaN): New function/macro.
67098         (test_function): Use it instead of 0.0 / 0.0.
67099         * tests/test-sprintf-posix.h (NaN): New function/macro.
67100         (test_function): Use it instead of 0.0 / 0.0.
67101         * tests/test-fprintf-posix.h (NaN): New function/macro.
67102         (test_function): Use it instead of 0.0 / 0.0.
67103         * tests/test-printf-posix.h (NaN): New function/macro.
67104         (test_function): Use it instead of 0.0 / 0.0.
67105
67106         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67107
67108 2007-03-25  Bruno Haible  <bruno@clisp.org>
67109
67110         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67111
67112 2007-03-25  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/regexec.c (merge_state_with_log): Make static.
67115
67116 2007-03-25  Bruno Haible  <bruno@clisp.org>
67117
67118         * lib/trigl.c (kernel_rem_pio2): Make static.
67119
67120 2007-03-25  Bruno Haible  <bruno@clisp.org>
67121
67122         * lib/sincosl.c (sincosl_table): Make static.
67123
67124 2007-03-25  Bruno Haible  <bruno@clisp.org>
67125
67126         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67127         if the compiler does not support C99.
67128
67129 2007-03-25  Bruno Haible  <bruno@clisp.org>
67130
67131         * modules/time (Makefile.am): Ensure all rule action lines start with a
67132         tab.
67133
67134 2007-03-24  Bruno Haible  <bruno@clisp.org>
67135
67136         * modules/tsearch-tests: New file.
67137         * tests/test-tsearch.sh: New file.
67138         * tests/test-tsearch.c: New file, mostly copied from glibc.
67139
67140         * modules/search-tests: New file.
67141         * tests/test-search.c: New file.
67142
67143         * modules/search: New file.
67144         * lib/search_.h: New file, incorporating lib/tsearch.h.
67145         * m4/search_h.m4: New file.
67146         * lib/tsearch.h: Remove file.
67147         * lib/tsearch.c: Include search.h instead of tsearch.h.
67148         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67149         HAVE_TSEARCH.
67150         * modules/tsearch (Files): Remove lib/tsearch.h.
67151         (Depends-on): Add search.
67152         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67153         (Include): Change tsearch.h into search.h.
67154
67155 2007-03-24  Bruno Haible  <bruno@clisp.org>
67156
67157         * modules/fpucw: New file.
67158         * lib/fpucw.h: New file.
67159         * lib/frexp.c: Include fpucw.h.
67160         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67161         (FUNC): Use them.
67162         * lib/printf-frexp.c: Include fpucw.h.
67163         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67164         (FUNC): Use them.
67165         * lib/vasnprintf.c: Include fpucw.h.
67166         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67167         'long double' calculations.
67168         * tests/test-frexpl.c: Include fpucw.h.
67169         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67170         * tests/test-printf-frexpl.c: Include fpucw.h.
67171         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67172         * modules/frexpl (Depends-on): Add fpucw.
67173         * modules/printf-frexpl (Depends-on): Likewise.
67174         * modules/fprintf-posix (Depends-on): Likewise.
67175         * modules/snprintf-posix (Depends-on): Likewise.
67176         * modules/sprintf-posix (Depends-on): Likewise.
67177         * modules/vasnprintf-posix (Depends-on): Likewise.
67178         * modules/vasprintf-posix (Depends-on): Likewise.
67179         * modules/vfprintf-posix (Depends-on): Likewise.
67180         * modules/vsnprintf-posix (Depends-on): Likewise.
67181         * modules/vsprintf-posix (Depends-on): Likewise.
67182         * modules/frexpl-tests (Depends-on): Likewise.
67183         * modules/printf-frexpl-tests (Depends-on): Likewise.
67184
67185 2007-03-24  Bruno Haible  <bruno@clisp.org>
67186
67187         * lib/float+.h: New file.
67188         * lib/isnan.c: Include float+.h.
67189         (SIZE): New macro.
67190         (FUNC): Compare only SIZE bytes of the value.
67191         * lib/vasnprintf.c: Include float+.h.
67192         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67193         SIZEOF_LDBL or SIZEOF_DBL bytes.
67194         * modules/isnan-nolibm (Files): Add lib/float+.h.
67195         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67196         * modules/isnanl (Files): Add lib/float+.h.
67197         * modules/vasnprintf (Files): Add lib/float+.h.
67198
67199 2007-03-24  Bruno Haible  <bruno@clisp.org>
67200
67201         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67202         include isnanl-nolibm.h.
67203
67204 2007-03-24  Bruno Haible  <bruno@clisp.org>
67205
67206         * tests/test-read-file.c (main): Don't produce spurious output for
67207         expected situations. Make the test fail if it encountered unexpected
67208         results.
67209
67210 2007-03-24  Bruno Haible  <bruno@clisp.org>
67211
67212         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67213         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67214
67215 2007-03-24  Bruno Haible  <bruno@clisp.org>
67216
67217         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67218
67219 2007-03-24  Bruno Haible  <bruno@clisp.org>
67220
67221         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67222         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67223
67224         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67225         * modules/utf8-ucs4: Turn into a symbolic link to module
67226         unistr/u8-mbtouc.
67227
67228         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67229         utf8-ucs4-unsafe.
67230         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67231         unistr/u8-mbtouc-unsafe.
67232
67233         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67234         * modules/utf16-ucs4: Turn into a symbolic link to module
67235         unistr/u16-mbtouc.
67236
67237         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67238         utf16-ucs4-unsafe.
67239         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67240         unistr/u16-mbtouc-unsafe.
67241
67242         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67243         * modules/ucs4-utf8: Turn into a symbolic link to module
67244         unistr/u8-ubtomb.
67245
67246         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67247         * modules/ucs4-utf16: Turn into a symbolic link to module
67248         unistr/u16-ubtomb.
67249
67250 2007-03-24  Bruno Haible  <bruno@clisp.org>
67251
67252         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67253         Enable the function only if HAVE_INLINE.
67254         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67255         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67256         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67257         Enable the function only if HAVE_INLINE.
67258         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67259         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67260         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67261         Enable the function only if HAVE_INLINE.
67262         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67263         Enable the function only if HAVE_INLINE.
67264         * modules/utf8-ucs4: Update.
67265         * modules/utf8-ucs4-unsafe: Update.
67266         * modules/utf16-ucs4: Update.
67267         * modules/utf16-ucs4-unsafe: Update.
67268         * modules/ucs4-utf8: Update.
67269         * modules/ucs4-utf16: Update.
67270
67271 2007-03-24  Bruno Haible  <bruno@clisp.org>
67272
67273         * lib/utf8-ucs4.h: Remove file.
67274         * lib/utf8-ucs4-unsafe.h: Remove file.
67275         * lib/utf16-ucs4.h: Remove file.
67276         * lib/utf16-ucs4-unsafe.h: Remove file.
67277         * lib/ucs4-utf8.h: Remove file.
67278         * lib/ucs4-utf16.h: Remove file.
67279         * lib/unistr.h: Include their previous contents.
67280         * m4/utf-ucs4.m4: Remove file.
67281         * m4/ucs4-utf.m4: Remove file.
67282         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67283         (Depends-on): Add unistr/base.
67284         (configure.ac): Remove gl_UTF_UCS4.
67285         (Makefile.am): Update.
67286         (Include): Change to unistr.h.
67287         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67288         (Depends-on): Add unistr/base.
67289         (configure.ac): Remove gl_UTF_UCS4.
67290         (Makefile.am): Update.
67291         (Include): Change to unistr.h.
67292         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67293         (Depends-on): Add unistr/base.
67294         (configure.ac): Remove gl_UTF_UCS4.
67295         (Makefile.am): Update.
67296         (Include): Change to unistr.h.
67297         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67298         (Depends-on): Add unistr/base.
67299         (configure.ac): Remove gl_UTF_UCS4.
67300         (Makefile.am): Update.
67301         (Include): Change to unistr.h.
67302         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67303         (Depends-on): Add unistr/base.
67304         (configure.ac): Remove gl_UCS4_UTF.
67305         (Makefile.am): Update.
67306         (Include): Change to unistr.h.
67307         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67308         (Depends-on): Add unistr/base.
67309         (configure.ac): Remove gl_UCS4_UTF.
67310         (Makefile.am): Update.
67311         (Include): Change to unistr.h.
67312         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67313         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67314         utf8-ucs4-unsafe.h.
67315         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67316         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67317         utf16-ucs4-unsafe.h.
67318         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67319         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67320         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67321         * lib/unistr/u8-strchr.c: Likewise.
67322         * lib/unistr/u8-strrchr.c: Likewise.
67323         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67324         * lib/unistr/u16-strchr.c: Likewise.
67325         * lib/unistr/u16-strrchr.c: Likewise.
67326         * lib/striconveh.c: Update.
67327         * lib/linebreak.c: Update.
67328
67329 2007-03-24  Bruno Haible  <bruno@clisp.org>
67330
67331         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67332         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67333
67334 2007-03-22  Bruno Haible  <bruno@clisp.org>
67335
67336         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67337
67338 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67339
67340         * MODULES.html.sh (File system functions): New module write-any-file.
67341         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67342         * m4/write-any-file.m4: New files.
67343
67344 2007-03-23  Eric Blake  <ebb9@byu.net>
67345
67346         * gnulib-tool: Rearrange space-tab sequences, since some editors
67347         like to eat them.
67348
67349 2007-03-23  Eric Blake  <ebb9@byu.net>
67350
67351         * lib/version-etc.c (version_etc_va): Update license wording to
67352         be more concise.  Recommended by Richard Stallman.
67353
67354 2007-03-22  Bruno Haible  <bruno@clisp.org>
67355
67356         * lib/poll.c (MSG_PEEK): New fallback definition.
67357
67358 2007-03-22  Bruno Haible  <bruno@clisp.org>
67359
67360         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67361         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67362         (main): Update.
67363         Fixes a compilation error on BeOS.
67364
67365 2007-03-22  Bruno Haible  <bruno@clisp.org>
67366
67367         * modules/frexpl-tests: New file.
67368         * tests/test-frexpl.c: New file.
67369
67370         * modules/frexpl: New file.
67371         * m4/frexpl.m4: New file.
67372         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67373         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67375         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67376         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67377         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67378
67379 2007-03-22  Bruno Haible  <bruno@clisp.org>
67380
67381         * lib/frexpl.c: Share code with lib/frexp.c.
67382         * modules/mathl (Files): Add lib/frexp.c.
67383         (Depends-on): Add isnanl-nolibm.
67384
67385 2007-03-22  Bruno Haible  <bruno@clisp.org>
67386
67387         * modules/printf-frexp (Files): Add m4/frexp.m4.
67388         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67389         only if the found frexp function actually works.
67390
67391 2007-03-22  Bruno Haible  <bruno@clisp.org>
67392
67393         * lib/frexp.c: Remove older implementation that uses divisions.
67394
67395 2007-03-21  Bruno Haible  <bruno@clisp.org>
67396
67397         * modules/frexp-tests: New file.
67398         * tests/test-frexp.c: New file.
67399
67400         * modules/frexp: New file.
67401         * lib/frexp.c: New file.
67402         * m4/frexp.m4: New file.
67403         * lib/math_.h (frexp): New declaration.
67404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67405         REPLACE_FREXP.
67406         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67407
67408 2007-03-21  Bruno Haible  <bruno@clisp.org>
67409
67410         * modules/isnanl-tests: New file.
67411         * tests/test-isnanl.c: New file.
67412
67413         * modules/isnanl: New file.
67414         * lib/isnanl.h: New file.
67415         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67416         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67417         gl_FUNC_ISNANL_WORKS.
67418         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67419         New macros.
67420
67421 2007-03-21  Bruno Haible  <bruno@clisp.org>
67422
67423         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67424         lib/isnanl.h.
67425         (Include): Update.
67426         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67427         * lib/vasnprintf.c: Update.
67428         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67429         tests/test-isnanl.h, remove tests/test-isnanl.c.
67430         (Makefile.am): Update.
67431         * tests/test-isnanl-nolibm.c: New file.
67432         * tests/test-isnanl.h: New file.
67433         * tests/test-isnanl.c: Remove file.
67434
67435 2007-03-21  Jim Meyering  <jim@meyering.net>
67436
67437         When trying to open ".", treat ESTALE like EACCES.
67438         * lib/savewd.c (savewd_save): Resort to forking not just upon
67439         failure with EACCES, but also when errno is ESTALE.
67440
67441 2007-03-20  Bruno Haible  <bruno@clisp.org>
67442
67443         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67444         Needed on AIX 5.1. Reported by Matthew Woehlke.
67445
67446 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67447
67448         Suggestions by Bruno Haible:
67449         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67450         our own.
67451         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67452         * modules/acl (Depends-on): Add gettext.
67453
67454 2007-03-19  Bruno Haible  <bruno@clisp.org>
67455
67456         * modules/iconvme: Remove file.
67457         * lib/iconvme.h: Remove file.
67458         * lib/iconvme.c: Remove file.
67459         * m4/iconvme.m4: Remove file.
67460
67461 2007-03-19  Bruno Haible  <bruno@clisp.org>
67462
67463         * doc/relocatable-maint.texi: Break long shell script line.
67464         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67465
67466 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67467
67468         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67469         handle file_has_acl.
67470         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67471         * lib/acl.c: Move header inclusions and related macro defns into
67472         lib/acl-internal.h.
67473         (S_ISLNK): Remove defn, since that's now done for us.
67474         (file_has_acl): Move to lib/file-has-acl.c.
67475         Call acl_trivial if available.  This is the crucial part of the fix.
67476         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67477         shared within the library.  Rewrite a bit, partly to make it compatible
67478         with the GNU coding style.
67479         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67480         Remove unnecessary double-quotes.
67481         Don't test for acl_to_text; the build will catch that.
67482         Replace acl_entries if it doesn't exist and it is needed.
67483         Check for -lsec and acl_trivial (as used on Solaris 10).
67484         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67485         lib/file-has-acl.c.
67486         (Depends-on): Add sys_stat, for S_ISLNK.
67487
67488 2007-03-19  Ben Pfaff  <blp@gnu.org>
67489
67490         * doc/gnulib.texi: Fix typos.
67491         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67492
67493 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67494
67495         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67496         If size is zero here, buf must be zero.
67497
67498 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67499
67500         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67501         <bruno@clisp.org>.
67502
67503 2007-03-18  Bruno Haible  <bruno@clisp.org>
67504
67505         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67506         Suggested by Eric Blake.
67507
67508 2007-03-18  Ben Pfaff  <blp@gnu.org>
67509
67510         * doc/relocatable.texi: Recommend using as prefix a directory
67511         that does not exist and will never be created.  Based on
67512         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67513         and others.
67514
67515 2007-03-17  Bruno Haible  <bruno@clisp.org>
67516
67517         * lib/fchownat.c: Include lchown.h.
67518
67519 2007-03-17  Bruno Haible  <bruno@clisp.org>
67520
67521         Fix endless loop when the given allocated size was > INT_MAX.
67522         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67523         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67524         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67525         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67526         * lib/sprintf.c (sprintf): Likewise.
67527
67528 2007-03-17  Bruno Haible  <bruno@clisp.org>
67529
67530         * tests/test-argp-2.sh (func_compare): Output a context diff.
67531
67532 2007-03-17  Bruno Haible  <bruno@clisp.org>
67533
67534         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67535         locale's decimal-point character.
67536
67537 2007-03-17  Bruno Haible  <bruno@clisp.org>
67538
67539         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67540         before comparing it. Needed because on some platforms (e.g. x86) a
67541         'long double' occupies less bytes than sizeof (long double).
67542
67543 2007-03-17  Bruno Haible  <bruno@clisp.org>
67544
67545         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67546         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67547         * tests/test-getaddrinfo.c (simple): Likewise.
67548         * tests/test-read-file.c (main): Likewise.
67549
67550 2007-03-17  Bruno Haible  <bruno@clisp.org>
67551
67552         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67553
67554 2007-03-17  Bruno Haible  <bruno@clisp.org>
67555
67556         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67557         unused variable.
67558
67559 2007-03-17  Bruno Haible  <bruno@clisp.org>
67560
67561         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67562         * tests/test-c-strncasecmp.c: Likewise.
67563
67564 2007-03-17  Bruno Haible  <bruno@clisp.org>
67565
67566         * modules/stdlib (Depends-on): Add unistd.
67567         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67568         Needed for MacOS X 10.3.
67569
67570 2007-03-17  Bruno Haible  <bruno@clisp.org>
67571
67572         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67573
67574 2007-03-17  Bruno Haible  <bruno@clisp.org>
67575
67576         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67577
67578 2007-03-17  Bruno Haible  <bruno@clisp.org>
67579
67580         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67581         to reflect files copied from gnulib (with or without modifications).
67582         Suggested by Jim Meyering.
67583
67584 2007-03-17  Eric Blake  <ebb9@byu.net>
67585
67586         * NEWS: Document stdlib change from 2007-02-18.
67587
67588 2007-03-17  Jim Meyering  <jim@meyering.net>
67589
67590         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67591         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67592         someone uses a name containing shell meta-characters.
67593         Reported by Alfred M. Szmidt.
67594
67595         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67596
67597 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67598
67599         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67600         and copy gettext configuration files only if configure.ac contains
67601         a use of AM_GNU_GETTEXT_VERSION.
67602
67603 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67604
67605         * build-aux/bootstrap (gnulib_name): New variable.
67606         (gnulib_tool_options): Use it.
67607
67608 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67609
67610         * tests/test-des.c: Use new namespace.
67611
67612 2007-03-15  Bruno Haible  <bruno@clisp.org>
67613
67614         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67615         Reported by James Youngman <jay@gnu.org>.
67616
67617 2007-03-15  Bruno Haible  <bruno@clisp.org>
67618
67619         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67620         declared prototype. Needed with cc on OSF/1 5.1.
67621
67622 2007-03-15  Bruno Haible  <bruno@clisp.org>
67623
67624         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67625         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67626         (struct gl_list_implementation): Add dispose_fn argument to the
67627         'create_empty', 'create' methods.
67628         (struct gl_list_impl_base): Add field 'dispose_fn'.
67629         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67630         argument.
67631         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67632         dispose_fn argument.
67633         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67634         dispose_fn on the dropped values.
67635         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67636         dispose_fn argument.
67637         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67638         dropped values.
67639         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67640         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67641         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67642         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67643         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67644         argument.
67645         (gl_tree_list_free): Call dispose_fn on the dropped values.
67646         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67647         the dropped values.
67648         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67649         Add dispose_fn argument.
67650         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67651         Call dispose_fn on the dropped values.
67652         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67653         Add dispose_fn argument.
67654         (gl_sublist_create): Initialize the 'dispose_fn' field.
67655         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67656         * tests/test-array_list.c (main): Update.
67657         * tests/test-carray_list.c (main): Update.
67658         * tests/test-avltree_list.c (main): Update.
67659         * tests/test-rbtree_list.c (main): Update.
67660         * tests/test-avltreehash_list.c (main): Update.
67661         * tests/test-rbtreehash_list.c (main): Update.
67662         * tests/test-linked_list.c (main): Update.
67663         * tests/test-linkedhash_list.c (main): Update.
67664         * tests/test-array_oset.c (main): Update.
67665
67666 2007-03-15  Bruno Haible  <bruno@clisp.org>
67667
67668         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67669         (gl_oset_create_empty): Add dispose_fn argument.
67670         (struct gl_oset_implementation): Add dispose_fn argument to
67671         'create_empty' method.
67672         (struct gl_oset_impl_base): Add dispose_fn field.
67673         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67674         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67675         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67676         values.
67677         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67678         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67679         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67680         dropped value.
67681         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67682         dropped value.
67683         * tests/test-array_oset.c (main): Update.
67684         * tests/test-avltree_oset.c (main): Update.
67685         * tests/test-rbtree_oset.c (main): Update.
67686         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67687
67688 2007-03-13  Bruno Haible  <bruno@clisp.org>
67689
67690         * tests/test-stdbool.c (i): Update after last patch.
67691
67692 2007-03-12  Bruno Haible  <bruno@clisp.org>
67693
67694         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67695         the iswprint macro. Needed on Solaris 2.5.1.
67696
67697 2007-03-12  Bruno Haible  <bruno@clisp.org>
67698
67699         * tests/test-printf-frexp.c (main): Declare x as volatile.
67700
67701 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67702
67703         * doc/gnulib.texi (Build robot for gnulib): New section.
67704
67705 2007-03-12  Jim Meyering  <jim@meyering.net>
67706
67707         * build-aux/bootstrap: New file.
67708         * build-aux/bootstrap.conf: New file, from coreutils.
67709
67710 2007-03-11  Bruno Haible  <bruno@clisp.org>
67711
67712         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67713
67714 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67715
67716         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67717         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67718         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67719
67720 2007-03-11  Bruno Haible  <bruno@clisp.org>
67721
67722         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67723         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67724
67725 2007-03-11  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67728         formula. Needed for SunPRO C 5.0.
67729
67730 2007-03-11  Bruno Haible  <bruno@clisp.org>
67731
67732         * modules/long-options (Depends-on): Add getopt.
67733
67734 2007-03-11  Bruno Haible  <bruno@clisp.org>
67735
67736         * modules/modechange (Depends-on): Add stdbool.
67737
67738 2007-03-11  Bruno Haible  <bruno@clisp.org>
67739
67740         * modules/i-ring (Depends-on): Add stdbool.
67741
67742 2007-03-11  Bruno Haible  <bruno@clisp.org>
67743
67744         * modules/gc-des (Depends-on): Add stdbool.
67745
67746 2007-03-11  Bruno Haible  <bruno@clisp.org>
67747
67748         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67749
67750 2007-03-11  Bruno Haible  <bruno@clisp.org>
67751
67752         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67753
67754 2007-03-11  Bruno Haible  <bruno@clisp.org>
67755
67756         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67757
67758 2007-03-11  Bruno Haible  <bruno@clisp.org>
67759
67760         * lib/vasnprintf.c (sprintf): Undefine.
67761
67762 2007-03-11  Bruno Haible  <bruno@clisp.org>
67763
67764         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67765         initializers in SunPRO C and Compaq C compilers.
67766
67767 2007-03-11  Bruno Haible  <bruno@clisp.org>
67768
67769         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67770         decrementing code ANSI C compliant.
67771
67772 2007-03-11  Bruno Haible  <bruno@clisp.org>
67773
67774         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67775         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67776
67777 2007-03-11  Bruno Haible  <bruno@clisp.org>
67778
67779         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67780         <stdbool.h> substitute doesn't pass.
67781
67782 2007-03-11  Bruno Haible  <bruno@clisp.org>
67783
67784         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67785
67786 2007-03-11  Bruno Haible  <bruno@clisp.org>
67787
67788         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67789         script, for submission to autobuild.josefsson.org.
67790
67791 2007-03-10  Bruno Haible  <bruno@clisp.org>
67792
67793         * modules/canonicalize-lgpl-tests: New file.
67794         * tests/test-canonicalize-lgpl.sh: New file.
67795         * tests/test-canonicalize-lgpl.c: New file.
67796
67797         * modules/c-strcase-tests: New file.
67798         * tests/test-c-strcase.sh: New file.
67799         * tests/test-c-strcasecmp.c: New file.
67800         * tests/test-c-strncasecmp.c: New file.
67801
67802         * modules/atexit-tests: New file.
67803         * tests/test-atexit.sh: New file.
67804         * tests/test-atexit.c: New file.
67805
67806 2007-03-10  Bruno Haible  <bruno@clisp.org>
67807
67808         * tests/test-binary-io.sh: Use temporary filenames that are not so
67809         likely to clash with those of other tests (in a parallel make).
67810         * tests/test-binary-io.c: Likewise.
67811
67812 2007-03-10  Bruno Haible  <bruno@clisp.org>
67813
67814         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67815         fallback; use #error instead.
67816         Suggested by Simon Josefsson.
67817
67818 2007-03-10  Bruno Haible  <bruno@clisp.org>
67819
67820         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67821         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67822         first and the last.
67823
67824 2007-03-10  Bruno Haible  <bruno@clisp.org>
67825
67826         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67827
67828 2007-03-10  Bruno Haible  <bruno@clisp.org>
67829
67830         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67831         "make distcheck".
67832         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67833         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67834         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67835
67836 2007-03-10  Bruno Haible  <bruno@clisp.org>
67837
67838         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67839         variable.
67840         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67841         variable.
67842
67843 2007-03-09  Eric Blake  <ebb9@byu.net>
67844         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67845
67846         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67847         types are not being provided by gnulib.
67848         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67849         types are supported.
67850
67851 2007-03-10  Bruno Haible  <bruno@clisp.org>
67852
67853         * lib/stdio_.h (__attribute__): New macro.
67854         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67855         vsprintf): Specify __attribute__ __format__ for GCC.
67856         Suggested by Eric Blake.
67857
67858 2007-03-09  Bruno Haible  <bruno@clisp.org>
67859
67860         * modules/printf-posix-tests: New file.
67861         * tests/test-printf-posix.sh: New file.
67862         * tests/test-printf-posix.c: New file.
67863
67864         * modules/printf-posix: New file.
67865         * lib/printf.c: New file.
67866         * m4/printf-posix-rpl.m4: New file.
67867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67868         REPLACE_PRINTF.
67869         * lib/stdio_.h (printf): New declaration.
67870         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67871         ____strfmon____): New macros.
67872         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67873         REPLACE_PRINTF.
67874
67875 2007-03-09  Bruno Haible  <bruno@clisp.org>
67876
67877         * tests/test-vasnprintf-posix2.sh: New file.
67878         * tests/test-vasnprintf-posix2.c: New file.
67879         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67880         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67881         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67882
67883         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67884         a locale dependent decimal point, rather than always '.'.
67885
67886 2007-03-09  Eric Blake  <ebb9@byu.net>
67887
67888         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67889         spite of platforms like Tandem/NSK that define it to -1.
67890
67891 2007-03-08  Bruno Haible  <bruno@clisp.org>
67892
67893         * modules/vprintf-posix-tests: New file.
67894         * tests/test-vprintf-posix.sh: New file.
67895         * tests/test-vprintf-posix.c: New file.
67896         * tests/test-printf-posix.h: New file.
67897
67898         * modules/vprintf-posix: New file.
67899         * lib/vprintf.c: New file.
67900         * m4/vprintf-posix.m4: New file.
67901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67902         REPLACE_VPRINTF.
67903         * lib/stdio_.h (vprintf): New declaration.
67904         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67905         REPLACE_VPRINTF.
67906
67907 2007-03-08  Bruno Haible  <bruno@clisp.org>
67908
67909         * modules/fprintf-posix-tests: New file.
67910         * tests/test-fprintf-posix.sh: New file.
67911         * tests/test-fprintf-posix.c: New file.
67912
67913         * modules/fprintf-posix: New file.
67914         * lib/fprintf.c: New file.
67915         * m4/fprintf-posix.m4: New file.
67916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67917         REPLACE_FPRINTF.
67918         * lib/stdio_.h (fprintf): New declaration.
67919         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67920         REPLACE_FPRINTF.
67921
67922 2007-03-08  Bruno Haible  <bruno@clisp.org>
67923
67924         * modules/vfprintf-posix-tests: New file.
67925         * tests/test-vfprintf-posix.sh: New file.
67926         * tests/test-vfprintf-posix.c: New file.
67927         * tests/test-fprintf-posix.h: New file.
67928         * tests/test-fprintf-posix.out: New file.
67929
67930         * modules/vfprintf-posix: New file.
67931         * lib/vfprintf.c: New file.
67932         * m4/vfprintf-posix.m4: New file.
67933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67934         REPLACE_VFPRINTF.
67935         * lib/stdio_.h (vfprintf): New declaration.
67936         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67937         REPLACE_VFPRINTF.
67938
67939 2007-03-08  Bruno Haible  <bruno@clisp.org>
67940
67941         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67942
67943 2007-03-08  Bruno Haible  <bruno@clisp.org>
67944
67945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67946         instead of 'expr' invocations.
67947         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67948         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67949         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67951         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67952         Suggested by Paul Eggert.
67953
67954 2007-03-08  Bruno Haible  <bruno@clisp.org>
67955
67956         * modules/fseterr-tests: New file.
67957         * tests/test-fseterr.c: New file.
67958
67959         * modules/fseterr: New file.
67960         * lib/fseterr.h: New file.
67961         * lib/fseterr.c: New file.
67962
67963 2007-03-08  Bruno Haible  <bruno@clisp.org>
67964
67965         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67966         * lib/getopt_.h: Likewise.
67967         * lib/mbswidth.h: Likewise.
67968         * lib/setenv.h: Likewise.
67969         * lib/vasnprintf.h: Likewise.
67970         * lib/vasprintf.h: Likewise.
67971         * lib/verror.h: Likewise.
67972         * lib/xsetenv.h: Likewise.
67973         * lib/xvasprintf.h: Likewise.
67974
67975 2007-03-08  Jim Meyering  <jim@meyering.net>
67976
67977         * users.txt: Add parted.
67978
67979         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67980
67981 2007-03-07  Bruno Haible  <bruno@clisp.org>
67982
67983         * m4/printf.m4: Make the shell script snippets copy&pastable.
67984
67985 2007-03-02  Bruno Haible  <bruno@clisp.org>
67986
67987         * lib/netinet_in_.h: New file.
67988         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67989         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67990         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67991         (Depends-on): Add absolute-header.
67992         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67993         into netinet/in.h.
67994
67995 2007-03-03  Bruno Haible  <bruno@clisp.org>
67996
67997         * lib/sys_select_.h: New file.
67998         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67999         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68000         * modules/sys_select (Files): Add lib/sys_select_.h.
68001         (Depends-on): Add absolute-header.
68002         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68003         into sys/select.h.
68004
68005 2007-03-02  Bruno Haible  <bruno@clisp.org>
68006
68007         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68008         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68009         values.
68010         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68011         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68012         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68013         * modules/sys_socket (Depends-on): Add absolute-header.
68014         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68015         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68016         (Include): Remove requirement of inclusion of <sys/types.h>.
68017
68018 2007-03-02  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/byteswap_.h (bswap_32): Fix formula.
68021
68022 2007-03-06  Bruno Haible  <bruno@clisp.org>
68023
68024         * modules/sprintf-posix-tests: New file.
68025         * tests/test-sprintf-posix.c: New file.
68026
68027         * modules/sprintf-posix: New file.
68028         * lib/sprintf.c: New file.
68029         * m4/sprintf-posix.m4: New file.
68030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68031         REPLACE_SPRINTF.
68032         * lib/stdio_.h (sprintf): New declaration.
68033         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68034         REPLACE_SPRINTF.
68035
68036 2007-03-06  Bruno Haible  <bruno@clisp.org>
68037
68038         * modules/vsprintf-posix-tests: New file.
68039         * tests/test-vsprintf-posix.c: New file.
68040         * tests/test-sprintf-posix.h: New file.
68041
68042         * modules/vsprintf-posix: New file.
68043         * lib/vsprintf.c: New file.
68044         * m4/vsprintf-posix.m4: New file.
68045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68046         REPLACE_VSPRINTF.
68047         * lib/stdio_.h (vsprintf): New declaration.
68048         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68049         REPLACE_VSPRINTF.
68050
68051 2007-03-06  Bruno Haible  <bruno@clisp.org>
68052
68053         * modules/vsnprintf (Depend-on): Remove minmax.
68054
68055 2007-03-06  Bruno Haible  <bruno@clisp.org>
68056
68057         * modules/snprintf-posix-tests: New file.
68058         * tests/test-snprintf-posix.c: New file.
68059
68060         * modules/snprintf-posix: New file.
68061         * m4/snprintf-posix.m4: New file.
68062         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68063         gl_FUNC_SNPRINTF.
68064         (gl_FUNC_SNPRINTF): Invoke it.
68065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68066         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68067         is set.
68068         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68069
68070 2007-03-06  Bruno Haible  <bruno@clisp.org>
68071
68072         * modules/vsnprintf-posix-tests: New file.
68073         * tests/test-vsnprintf-posix.c: New file.
68074         * tests/test-snprintf-posix.h: New file.
68075
68076         * modules/vsnprintf-posix: New file.
68077         * m4/vsnprintf-posix.m4: New file.
68078         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68079         gl_FUNC_VSNPRINTF.
68080         (gl_FUNC_VSNPRINTF): Invoke it.
68081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68082         * lib/stdio_.h (vsnprintf): Define as a replacement if
68083         REPLACE_VSNPRINTF is set.
68084         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68085
68086 2007-03-06  Bruno Haible  <bruno@clisp.org>
68087
68088         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68089         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68090
68091 2007-03-06  Bruno Haible  <bruno@clisp.org>
68092
68093         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68094         (asinl): Declare also if HAVE_DECL_ASINL is set.
68095         (atanl): Declare also if HAVE_DECL_ATANL is set.
68096         (ceill): Declare also if HAVE_DECL_CEILL is set.
68097         (cosl): Declare also if HAVE_DECL_COSL is set.
68098         (expl): Declare also if HAVE_DECL_EXPL is set.
68099         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68100         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68101         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68102         (logl): Declare also if HAVE_DECL_LOGL is set.
68103         (sinl): Declare also if HAVE_DECL_SINL is set.
68104         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68105         (tanl): Declare also if HAVE_DECL_TANL is set.
68106         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68108         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68109         declaration of frexpl, ldexpl.
68110         * modules/printf-frexpl (Depends-on): Add math.
68111         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68112
68113 2007-03-05  Bruno Haible  <bruno@clisp.org>
68114
68115         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68116         frexpl and ldexpl are declared.
68117         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68118
68119 2007-03-05  Bruno Haible  <bruno@clisp.org>
68120
68121         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68122         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68123
68124 2007-03-05  Bruno Haible  <bruno@clisp.org>
68125
68126         * lib/stdio_.h: Include <stddef.h>.
68127
68128 2007-03-05  Bruno Haible  <bruno@clisp.org>
68129
68130         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68131
68132 2007-03-05  Bruno Haible  <bruno@clisp.org>
68133
68134         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68135         NetBSD 4, from Ralf Wildenhues.
68136
68137 2007-03-04  Bruno Haible  <bruno@clisp.org>
68138
68139         * lib/vasprintf.h: Update #if logic for the case when the functions
68140         exist but are overridden.
68141
68142 2007-03-04  Bruno Haible  <bruno@clisp.org>
68143
68144         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68145         implementations: glibc-2.4 and MacOS X 10.3.
68146         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68147         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68148         * tests/test-vasprintf-posix.c (test_function): Likewise.
68149
68150 2007-03-04  Bruno Haible  <bruno@clisp.org>
68151
68152         * modules/vasprintf-posix-tests: New file.
68153         * tests/test-vasprintf-posix.c: New file.
68154
68155         * modules/vasprintf-posix: New file.
68156         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68157         defined.
68158         * m4/vasprintf-posix.m4: New file.
68159         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68160         gl_FUNC_VASPRINTF.
68161         (gl_FUNC_VASPRINTF): Invoke it.
68162         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68163         here.
68164         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68165
68166 2007-03-04  Bruno Haible  <bruno@clisp.org>
68167
68168         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68169         REPLACE_GETTIMEOFDAY.
68170         * modules/sys_time (Makefile.am): Likewise.
68171         * m4/sys_time_h.m4: Likewise.
68172         * m4/gettimeofday.m4: Likewise.
68173
68174 2007-03-04  Bruno Haible  <bruno@clisp.org>
68175
68176         * modules/vasnprintf-posix-tests: New file.
68177         * tests/test-vasnprintf-posix.c: New file.
68178
68179         * modules/vasnprintf-posix: New file.
68180         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68181         printf-frexpl.h.
68182         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68183         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68184         REPLACE_VASNPRINTF is defined.
68185         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68186         gl_FUNC_VASNPRINTF.
68187         (gl_FUNC_VASNPRINTF): Invoke it.
68188         * m4/vasnprintf-posix.m4: New file.
68189         * m4/printf.m4: New file.
68190
68191 2007-03-04  Bruno Haible  <bruno@clisp.org>
68192
68193         Compile progreloc.c only if --enable-relocatable is specified.
68194         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68195         if --enable-relocatable was specified.
68196         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68197         lib_SOURCES.
68198
68199 2007-03-04  Jim Meyering  <jim@meyering.net>
68200
68201         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68202         Use it consistently, rather than enumerating errno constants.
68203
68204 2007-03-04  Bruno Haible  <bruno@clisp.org>
68205
68206         * modules/xvasprintf-tests: New file.
68207         * tests/test-xvasprintf.c: New file.
68208
68209         * modules/vasprintf-tests: New file.
68210         * tests/test-vasprintf.c: New file.
68211
68212         * modules/vasnprintf-tests: New file.
68213         * tests/test-vasnprintf.c: New file.
68214
68215         * modules/vsnprintf-tests: New file.
68216         * tests/test-vsnprintf.c: New file.
68217
68218         * modules/snprintf-tests: New file.
68219         * tests/test-snprintf.c: New file.
68220
68221 2007-03-04  Bruno Haible  <bruno@clisp.org>
68222
68223         Compile relocatable.c only if --enable-relocatable is specified.
68224         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68225         gl_RELOCATABLE_LIBRARY.
68226         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68227         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68228         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68229         gl_RELOCATABLE_LIBRARY.
68230         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68231         (Makefile.am): Remove lib_SOURCES.
68232         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68233         gl_RELOCATABLE_LIBRARY.
68234         (Makefile.am): Remove lib_SOURCES.
68235         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68236         always.
68237         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68238         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68239
68240 2007-03-04  Bruno Haible  <bruno@clisp.org>
68241
68242         * modules/argmatch-tests: New file.
68243         * tests/test-argmatch.c: New file.
68244
68245         * tests/test-allocsa.c (main): Halve the number of loop runs.
68246
68247         * modules/alloca-opt-tests: New file.
68248         * tests/test-alloca-opt.c: New file.
68249
68250 2007-03-04  Jim Meyering  <jim@meyering.net>
68251
68252         Work around difference between Linux ACLs and Solaris 10 ZFS.
68253         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68254         for EINVAL.
68255
68256 2007-03-03  Bruno Haible  <bruno@clisp.org>
68257
68258         * modules/relocatable-prog (Depends-on): Add back progreloc's
68259         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68260
68261 2007-03-03  Bruno Haible  <bruno@clisp.org>
68262
68263         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68264         * modules/relocatable-lib: New file.
68265
68266 2007-03-03  Bruno Haible  <bruno@clisp.org>
68267
68268         * modules/relocatable-prog: Renamed from modules/relocatable.
68269         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68270
68271 2007-03-03  Bruno Haible  <bruno@clisp.org>
68272
68273         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68274         m4/relocatable-lib.m4.
68275         (Depends-on): Remove 'relocatable'.
68276         (configure.ac): Add gl_RELOCATABLE_NOP.
68277
68278 2007-03-03  Bruno Haible  <bruno@clisp.org>
68279
68280         * modules/relocatable-prog-wrapper: New file.
68281         * modules/relocatable (Depends-on): Add it. Remove all other
68282         dependencies except progname.
68283         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68284
68285         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68286         (gl_FUNC_STRERROR): Nop.
68287         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68288
68289         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68290         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68291
68292         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68293         (gl_FUNC_READLINK): Update.
68294
68295         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68296
68297 2007-03-03  Bruno Haible  <bruno@clisp.org>
68298
68299         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68300         * modules/xreadlink (Depends-on): Add unistd.
68301         * modules/xreadlink-with-size (Depends-on): Likewise.
68302
68303 2007-03-03  Bruno Haible  <bruno@clisp.org>
68304
68305         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68306         extracted from gt_FUNC_SETENV.
68307         (gt_FUNC_SETENV): Remove macro.
68308         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68309         remove gt_FUNC_SETENV.
68310
68311 2007-03-03  Bruno Haible  <bruno@clisp.org>
68312
68313         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68314         ENABLE_RELOCATABLE here.
68315         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68316
68317 2007-03-03  Bruno Haible  <bruno@clisp.org>
68318
68319         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68320         * tests/test-rbtreehash_list.c: Include progname.h.
68321         (main): Call set_program_name.
68322
68323         * modules/rbtree-oset-tests (Depends-on): Add progname.
68324         * tests/test-rbtree_oset.c: Include progname.h.
68325         (main): Call set_program_name.
68326
68327         * modules/rbtree-list-tests (Depends-on): Add progname.
68328         * tests/test-rbtree_list.c: Include progname.h.
68329         (main): Call set_program_name.
68330
68331         * modules/linked-list-tests (Depends-on): Add progname.
68332         * tests/test-linked_list.c: Include progname.h.
68333         (main): Call set_program_name.
68334
68335 2007-03-03  Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68338         All uses of __restrict changed to _Restrict_.
68339         * lib/glob_.h (__restrict): Remove macro.
68340
68341 2007-03-02  Bruno Haible  <bruno@clisp.org>
68342
68343         * modules/gettext (configure.ac): Require gettext infrastructure
68344         from version 0.16.1.
68345
68346 2007-03-02  Bruno Haible  <bruno@clisp.org>
68347
68348         * modules/linkedhash-list-tests (Depends-on): Add progname.
68349         * tests/test-linkedhash_list.c: Include progname.h.
68350         (main): Call set_program_name.
68351
68352         * modules/carray-list-tests (Depends-on): Add progname.
68353         * tests/test-carray_list.c: Include progname.h.
68354         (main): Call set_program_name.
68355
68356         * modules/avltreehash-list-tests (Depends-on): Add progname.
68357         * tests/test-avltreehash_list.c: Include progname.h.
68358         (main): Call set_program_name.
68359
68360         * modules/avltree-oset-tests (Depends-on): Add progname.
68361         * tests/test-avltree_oset.c: Include progname.h.
68362         (main): Call set_program_name.
68363
68364         * modules/avltree-list-tests (Depends-on): Add progname.
68365         * tests/test-avltree_list.c: Include progname.h.
68366         (main): Call set_program_name.
68367
68368         * modules/array-oset-tests (Depends-on): Add progname.
68369         * tests/test-array_oset.c: Include progname.h.
68370         (main): Call set_program_name.
68371
68372         * modules/array-list-tests (Depends-on): Add progname.
68373         * tests/test-array_list.c: Include progname.h.
68374         (main): Call set_program_name.
68375
68376         * modules/argp-tests (Depends-on): Add progname.
68377         * tests/test-argp.c: Include argp.h first. Include progname.h.
68378         (main): Call set_program_name.
68379
68380 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68381
68382         * doc/gnulib-tool.texi (Initial import): Reword description of
68383         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68384         limited effect even if defined after the first system include.
68385
68386 2007-03-01  Bruno Haible  <bruno@clisp.org>
68387
68388         * build-aux/config.libpath: Update to libtool-1.5.22.
68389         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68390
68391 2007-03-01  Bruno Haible  <bruno@clisp.org>
68392
68393         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68394         foo_CFLAGS.
68395         Reported by Ralf Wildenhues.
68396
68397 2007-03-01  Bruno Haible  <bruno@clisp.org>
68398
68399         * build-aux/install-reloc: Remove object files left over by some
68400         compilers.
68401         Reported by Ralf Wildenhues.
68402
68403 2007-03-01  Bruno Haible  <bruno@clisp.org>
68404
68405         * build-aux/install-reloc: Break long lines.
68406
68407 2007-03-01  Bruno Haible  <bruno@clisp.org>
68408
68409         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68410         Reported by Ralf Wildenhues.
68411
68412 2007-03-01  Bruno Haible  <bruno@clisp.org>
68413
68414         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68415         include ordering constraints.
68416
68417 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68420         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68421         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68422         as another example.
68423         * lib/time_.h: Fix misspelling.
68424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68425         Require gl_HEADER_TIME_H_DEFAULTS.
68426         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68427         * m4/time_r.m4 (gl_TIME_R): Likewise.
68428         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68429
68430 2007-03-01  Bruno Haible  <bruno@clisp.org>
68431
68432         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68433         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68434
68435 2007-03-01  Jim Meyering  <jim@meyering.net>
68436
68437         * modules/xreadlink (Maintainer): Add my name.
68438         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68439
68440 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68441             Bruno Haible  <bruno@clisp.org>
68442
68443         * build-aux/install-reloc: Compile also c-ctype.c.
68444         * build-aux/relocatable.sh.in: New file.
68445         * doc/relocatable.texi: New file.
68446         * doc/relocatable-maint.texi: New file.
68447         * doc/gnulib.texi: Include relocatable-maint.texi.
68448         * lib/progreloc.c: Include unistd.h unconditionally.
68449         * lib/relocwrapper.c: Include unistd.h unconditionally.
68450         Include c-ctype.h.
68451         (add_dotbin): Use c_tolower.
68452         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68453         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68454         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68455         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68456         to m4/relocatable-lib.m4.
68457         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68458         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68459         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68460         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68461         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68462         * modules/relocatable: New file.
68463         * modules/relocatable-lib: New file.
68464         * modules/relocatable-script: New file.
68465
68466 2007-02-28  Bruno Haible  <bruno@clisp.org>
68467
68468         Import --enable-relocatable infrastructure.
68469         * build-aux/config.libpath: New file, from GNU gettext.
68470         * build-aux/install-reloc: New file, from GNU gettext.
68471         * build-aux/reloc-ldflags: New file, from GNU gettext.
68472         * lib/relocatable.h: New file, from GNU gettext.
68473         * lib/relocatable.c: New file, from GNU gettext.
68474         * lib/relocwrapper.c: New file, from GNU gettext.
68475         * m4/relocatable.m4: New file, from GNU gettext.
68476
68477 2007-02-28  Bruno Haible  <bruno@clisp.org>
68478
68479         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68480
68481         * modules/xreadlink: New file, from GNU gettext with modifications.
68482         * lib/xreadlink.c: New file, from GNU gettext.
68483         * lib/xreadlink.h: Add comments.
68484         (xreadlink): New declaration.
68485
68486         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68487         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68488         lib/xreadlink-with-size.c.
68489         (configure.ac): Remove gl_XREADLINK invocation.
68490         (Makefile.am): Augment lib_SOURCES.
68491         * m4/xreadlink.m4: Remove file.
68492         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68493         (xreadlink_with_size): Renamed from xreadink.
68494         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68495         * modules/canonicalize (Depends-on): Replace xreadlink with
68496         xreadlink-with-size.
68497         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68498
68499 2007-02-25  Jim Meyering  <jim@meyering.net>
68500
68501         * build-aux/announce-gen: When complaining about excess arguments,
68502         list them.
68503
68504 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * README: Document signed integer overflow situation more
68507         accurately.
68508
68509 2007-02-25  Bruno Haible  <bruno@clisp.org>
68510
68511         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68512         'a' or 'A' conversion.
68513
68514 2007-02-25  Bruno Haible  <bruno@clisp.org>
68515
68516         * modules/filename: Renamed from modules/pathname.
68517         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68518         lib/concatpath.c with lib/concat-filename.c.
68519         (Makefile.am): Update.
68520         (Include): Replace pathname.h with filename.h.
68521         * lib/filename.h: Renamed from lib/pathname.h.
68522         (concatenated_filename): Renamed from concatenated_pathname.
68523         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68524         (concatenated_filename): Renamed from concatenated_pathname.
68525         * lib/findprog.c: Include filename.h instead of pathname.h.
68526         (find_in_path): Update.
68527         * lib/javacomp.c: Include filename.h instead of pathname.h.
68528         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68529         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68530         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68531         is_oldgcj_14_13_usable, is_javac_usable): Update.
68532         * lib/javaexec.c: Include filename.h instead of pathname.h.
68533         (execute_java_class): Update.
68534         * modules/findprog: Update.
68535         * modules/javacomp: Update.
68536         * modules/javaexec: Update.
68537         * MODULES.html.sh (File system functions): Add 'filename', remove
68538         'pathname'.
68539
68540 2007-02-25  Bruno Haible  <bruno@clisp.org>
68541
68542         * modules/printf-frexpl-tests: New file.
68543         * tests/test-printf-frexpl.c: New file.
68544
68545         * modules/printf-frexpl: New file.
68546         * lib/printf-frexpl.h: New file.
68547         * lib/printf-frexpl.c: New file.
68548         * m4/printf-frexpl.m4: New file.
68549
68550 2007-02-25  Bruno Haible  <bruno@clisp.org>
68551
68552         * modules/printf-frexp-tests: New file.
68553         * tests/test-printf-frexp.c: New file.
68554
68555         * modules/printf-frexp: New file.
68556         * lib/printf-frexp.h: New file.
68557         * lib/printf-frexp.c: New file.
68558         * m4/printf-frexp.m4: New file.
68559
68560 2007-02-25  Bruno Haible  <bruno@clisp.org>
68561
68562         Assume automake >= 1.10 for the tests.
68563         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68564         * modules/arctwo-tests: Likewise.
68565         * modules/argp-tests: Likewise.
68566         * modules/avltree-list-tests: Likewise.
68567         * modules/avltree-oset-tests: Likewise.
68568         * modules/avltreehash-list-tests: Likewise.
68569         * modules/carray-list-tests: Likewise.
68570         * modules/crc-tests: Likewise.
68571         * modules/des-tests: Likewise.
68572         * modules/gc-arcfour-tests: Likewise.
68573         * modules/gc-arctwo-tests: Likewise.
68574         * modules/gc-des-tests: Likewise.
68575         * modules/gc-hmac-md5-tests: Likewise.
68576         * modules/gc-hmac-sha1-tests: Likewise.
68577         * modules/gc-md2-tests: Likewise.
68578         * modules/gc-md4-tests: Likewise.
68579         * modules/gc-md5-tests: Likewise.
68580         * modules/gc-pbkdf2-sha1-tests: Likewise.
68581         * modules/gc-rijndael-tests: Likewise.
68582         * modules/gc-sha1-tests: Likewise.
68583         * modules/gc-tests: Likewise.
68584         * modules/getaddrinfo-tests: Likewise.
68585         * modules/hmac-md5-tests: Likewise.
68586         * modules/hmac-sha1-tests: Likewise.
68587         * modules/linked-list-tests: Likewise.
68588         * modules/linkedhash-list-tests: Likewise.
68589         * modules/lock-tests: Likewise.
68590         * modules/md2-tests: Likewise.
68591         * modules/md4-tests: Likewise.
68592         * modules/md5-tests: Likewise.
68593         * modules/rbtree-list-tests: Likewise.
68594         * modules/rbtree-oset-tests: Likewise.
68595         * modules/rbtreehash-list-tests: Likewise.
68596         * modules/read-file-tests: Likewise.
68597         * modules/rijndael-tests: Likewise.
68598         * modules/stdint-tests: Likewise.
68599         * modules/tls-tests: Likewise.
68600
68601 2007-02-24  Bruno Haible  <bruno@clisp.org>
68602
68603         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68604         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68605         function; instead check whether isnan with a double argument links.
68606         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68607         function; instead check whether isnan with a 'long double' argument
68608         links.
68609         Reported by Eric Blake <ebb9@byu.net>.
68610
68611 2007-02-24  Bruno Haible  <bruno@clisp.org>
68612
68613         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68614         defined.
68615         * lib/isnanl.c: Remove all code. Just include isnan.c.
68616         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68617
68618 2007-02-25  Jim Meyering  <jim@meyering.net>
68619
68620         Avoid conflicting types for 'unsetenv' on FreeBSD.
68621         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68622         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68623         in stdlib.h.
68624
68625 2007-02-24  Bruno Haible  <bruno@clisp.org>
68626
68627         * modules/isnanl-nolibm-tests: New file.
68628         * tests/test-isnanl.c: New file.
68629
68630         * modules/isnanl-nolibm: New file.
68631         * lib/isnanl.h: New file.
68632         * lib/isnanl.c: New file.
68633         * m4/isnanl.m4: New file.
68634
68635 2007-02-24  Bruno Haible  <bruno@clisp.org>
68636
68637         * modules/isnan-nolibm-tests: New file.
68638         * tests/test-isnan.c: New file.
68639
68640         * modules/isnan-nolibm: New file.
68641         * lib/isnan.h: New file.
68642         * lib/isnan.c: New file.
68643         * m4/isnan.m4: New file.
68644
68645 2007-02-24  Bruno Haible  <bruno@clisp.org>
68646
68647         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68648         assume that an exponent fits in 20 bits.
68649
68650 2007-02-24  Jim Meyering  <jim@meyering.net>
68651
68652         * m4/regex.m4: Update the description of the configure-time option,
68653         --without-included-regex, to state accurately what the defaults are,
68654         and perhaps to give people an idea why using this option is risky.
68655
68656 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68657
68658         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68659         loops on small arguments.  This attempts to avoid the problem
68660         Bruno Haible reported for AIX 4.3.2 in
68661         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68662
68663 2007-02-23  Bruno Haible  <bruno@clisp.org>
68664
68665         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68666         Needed for help2man.
68667
68668 2007-02-23  Karl Berry  <karl@gnu.org>
68669
68670         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68671         exists, foo.h should be cvs-ignored, not committed.
68672
68673 2007-02-23  Eric Blake  <ebb9@byu.net>
68674
68675         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68676         * lib/stat-time.h (includes): Likewise.
68677         * lib/utimecmp.c (includes): Likewise.
68678         * lib/utimens.h (includes): Likewise.
68679         * lib/getdate.y (includes): Also include "timespec.h" for use
68680         internal to the module.
68681         * modules/utimens (Depends-on): Revert yesterday's patch.
68682         * modules/nanosleep (Depends-on): Add missing dependency.
68683
68684 2007-02-22  Bruno Haible  <bruno@clisp.org>
68685
68686         * lib/glob.c: Don't include getlogin_r.h.
68687
68688 2007-02-22  Jim Meyering  <jim@meyering.net>
68689
68690         * modules/utimens (Depends-on): Add timespec, required for
68691         utimens.h's inclusion of timespec.h.
68692
68693 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68694
68695         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68696         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68697         Schwab in
68698         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68699         I'll try to think of a better way to fix the Solaris problem.
68700
68701         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68702         like glibc; on Solaris 10, it fails with errno == EINVAL.
68703         POSIX says the behavior is unspecified if the first argument is NULL,
68704         so play it safe and never pass NULL to the system getcwd.
68705
68706 2007-02-21  Jim Meyering  <jim@meyering.net>
68707
68708         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68709         of gettimeofday.  It would conflict with the one now always
68710         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68711         an IRIX 6.5 build failure.
68712
68713 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68714
68715         Minor fixups to port to Solaris 10 with Sun C 5.8.
68716         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68717         * modules/getcwd (Depends-on): Add dirfd.
68718         * lib/putenv.c (putenv): #undef it.
68719         (rpl_putenv): New decl.
68720         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68721
68722 2007-02-20  Bruno Haible  <bruno@clisp.org>
68723
68724         * modules/stdio-tests: New file.
68725         * tests/test-stdio.c: New file.
68726
68727         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68728         (Depends-on): Add stdio.
68729         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68730         (Include): Use <stdio.h> instead of vsnprintf.h.
68731         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68732         HAVE_DECL_VSNPRINTF.
68733         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68734
68735         * modules/snprintf (Files): Remove lib/snprintf.h.
68736         (Depends-on): Add stdio.
68737         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68738         (Include): Use <stdio.h> instead of snprintf.h.
68739         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68740         HAVE_DECL_SNPRINTF.
68741         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68742         * lib/getaddrinfo.c: Likewise.
68743
68744         * modules/stdio: New file.
68745         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68746         * lib/snprintf.h: Remove file.
68747         * lib/vsnprintf.h: Remove file.
68748         * lib/.cppi-disable: Remove snprintf.h.
68749         * m4/stdio_h.m4: New file.
68750         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68751
68752 2007-02-20  Jim Meyering  <jim@meyering.net>
68753
68754         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68755         used by e.g., mingw.  From Bruno Haible.
68756
68757 2007-02-19  Bruno Haible  <bruno@clisp.org>
68758
68759         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68760         warnings.
68761         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68762
68763 2007-02-19  Bruno Haible  <bruno@clisp.org>
68764
68765         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68766         from mingw users.
68767
68768 2007-02-19  Bruno Haible  <bruno@clisp.org>
68769
68770         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68771         warnings.
68772         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68773
68774 2007-02-19  Jim Meyering  <jim@meyering.net>
68775
68776         Don't use FD after a successful "fdopendir (fd)".
68777         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68778         Reset it by calling dirfd on the just-obtained DIR*.
68779
68780         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68781         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68782
68783 2007-02-18  Bruno Haible  <bruno@clisp.org>
68784
68785         * lib/readlink.c: Include <unistd.h>.
68786         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68787         HAVE_READLINK.
68788         * modules/readlink (Depends-on): Add unistd.
68789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68790         (Include): Add <unistd.h>.
68791
68792         * lib/getlogin_r.h: Remove file.
68793         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68794         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68795         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68796         HAVE_DECL_GETLOGIN_R.
68797         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68798         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68799         (Include): Use <unistd.h> instead of getlogin_r.h.
68800
68801         * lib/getcwd.h: Remove file.
68802         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68803         * lib/xgetcwd.c: Likewise.
68804         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68805         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68806         * modules/getcwd (Files): Remove lib/getcwd.h.
68807         (Depends-on): Add unistd.
68808         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68809         (Include): Use <unistd.h> instad of getcwd.h.
68810
68811         * lib/ftruncate.c: Include <unistd.h> first.
68812         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68813         Set HAVE_FTRUNCATE.
68814         * modules/ftruncate (Depends-on): Add unistd.
68815         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68816
68817         * lib/fchdir.c: Include <unistd.h> first.
68818         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68820         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68821         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68822         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68823
68824         * lib/dup2.c: Include <unistd.h> first.
68825         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68826         HAVE_DUP2.
68827         * modules/dup2 (Depends-on): Add unistd.
68828         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68829
68830         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68831         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68832         REPLACE_CHOWN. Don't define chown as a macro here.
68833         * modules/chown (Depends-on): Add unistd.
68834         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68835
68836         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68837         Add definition for GL_LINK_WARNING.
68838         (chown, dup2): New declarations.
68839         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68840         link warning.
68841         (ftruncate): New declaration.
68842         (getcwd): New declaration, taken from old getcwd.h.
68843         (getlogin_r): New declaration, taken from old getlogin_r.h.
68844         (readlink): New declaration.
68845         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68846         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68847         (gl_PREREQ_UNISTD): Remove macro.
68848         (gl_UNISTD_MODULE_INDICATOR): New macro.
68849         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68850         many new variables. Don't set UNISTD_H.
68851         * modules/unistd (Description): Change.
68852         (Depends-on): Add link-warning.
68853         (configure.ac): Update.
68854         (Makefile.am): Create unistd.h always. Substitute many new variables
68855         into it.
68856
68857 2007-02-18  Bruno Haible  <bruno@clisp.org>
68858
68859         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68860         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68861         HAVE_GETSUBOPT.
68862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68863         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68864         * lib/getsubopt.h: Remove file.
68865         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68866         (Depends-on): Add stdlib.
68867         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68868         (Includes): Use <stdlib.h> instead of getsubopt.h.
68869         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68870         Set HAVE_GETSUBOPT.
68871         * lib/getsubopt.c: Don't include getsubopt.h.
68872
68873 2007-02-18  Bruno Haible  <bruno@clisp.org>
68874
68875         * modules/fchdir (Depends-on): Add dup2.
68876
68877 2007-02-18  Bruno Haible  <bruno@clisp.org>
68878
68879         * lib/stdlib_.h: Handle glibc's special invocation convention
68880         specially.
68881
68882 2007-02-18  Bruno Haible  <bruno@clisp.org>
68883
68884         * modules/stdlib-tests: New file.
68885         * tests/test-stdlib.c: New file.
68886
68887         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68888         (Depends-on): Add stdlib.
68889         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68890         (Includes): Use <stdlib.h> instead of mkstemp.h.
68891         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68892         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68893         * lib/mkstemp.c: Don't include mkstemp.h.
68894         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68895         * lib/stdlib--.h: Don't include mkstemp.h.
68896
68897         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68898         (Depends-on): Add stdlib.
68899         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68900         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68901         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68902         HAVE_MKDTEMP.
68903         * lib/mkdtemp.c: Don't include mkdtemp.h.
68904         * lib/clean-temp.c: Don't include mkdtemp.h.
68905
68906         * modules/exit (Files): Remove lib/exit.h.
68907         (Depends-on): Add stdlib.
68908         (Makefile.am): Remove lib_SOURCES.
68909         (Include): Use <stdlib.h> instead of exit.h.
68910         * lib/argmatch.c: Don't include exit.h.
68911         * lib/execute.c: Likewise.
68912         * lib/pagealign_alloc.c: Likewise.
68913         * lib/pipe.c: Likewise.
68914         * lib/wait-process.c: Likewise.
68915         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68916         * lib/exitfail.c: Likewise.
68917         * lib/savewd.c: Likewise.
68918         * lib/xsetenv.c: Likewise.
68919
68920         * modules/stdlib: New file.
68921         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68922         and extra comments about mkstemp().
68923         * lib/exit.h: Remove file.
68924         * lib/mkdtemp.h: Remove file.
68925         * lib/mkstemp.h: Remove file.
68926         * m4/stdlib_h.m4: New file.
68927         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68928
68929 2007-02-18  Bruno Haible  <bruno@clisp.org>
68930
68931         * modules/math-tests: New file.
68932         * tests/test-math.c: New file.
68933
68934         * modules/math: New file.
68935         * modules/mathl (Files): Remove lib/mathl.h.
68936         (Depends-on): Add math.
68937         (Makefile.am): Don't mention mathl.h.
68938         (Include): Use <math.h> instead of mathl.h.
68939         * lib/math_.h: New file.
68940         * lib/mathl.h: Remove file.
68941         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68942         mathl.h.
68943         * lib/asinl.c: Likewise.
68944         * lib/atanl.c: Likewise.
68945         * lib/ceill.c: Likewise.
68946         * lib/cosl.c: Likewise.
68947         * lib/expl.c: Likewise.
68948         * lib/floorl.c: Likewise.
68949         * lib/frexpl.c: Likewise.
68950         * lib/ldexpl.c: Likewise.
68951         * lib/logl.c: Likewise.
68952         * lib/sincosl.c: Likewise.
68953         * lib/sinl.c: Likewise.
68954         * lib/sqrtl.c: Likewise.
68955         * lib/tanl.c: Likewise.
68956         * lib/trigl.c: Likewise.
68957         * m4/math_h.m4: New file.
68958         * MODULES.html.sh (Mathematics): Add math.
68959
68960 2007-02-17  Bruno Haible  <bruno@clisp.org>
68961
68962         * modules/wctype-tests: New file.
68963         * tests/test-wctype.c: New file.
68964
68965         * modules/wchar-tests: New file.
68966         * tests/test-wchar.c: New file.
68967
68968         * modules/unistd-tests: New file.
68969         * tests/test-unistd.c: New file.
68970
68971         * modules/time-tests: New file.
68972         * tests/test-time.c: New file.
68973
68974         * modules/sysexits-tests: New file.
68975         * tests/test-sysexits.c: New file.
68976
68977         * modules/sys_time-tests: New file.
68978         * tests/test-sys_time.c: New file.
68979
68980         * modules/sys_stat-tests: New file.
68981         * tests/test-sys_stat.c: New file.
68982
68983         * modules/sys_socket-tests: New file.
68984         * tests/test-sys_socket.c: New file.
68985
68986         * modules/sys_select-tests: New file.
68987         * tests/test-sys_select.c: New file.
68988
68989         * modules/string-tests: New file.
68990         * tests/test-string.c: New file.
68991
68992         * modules/stdbool-tests: New file.
68993         * tests/test-stdbool.c: New file.
68994
68995         * modules/netinet_in-tests: New file.
68996         * tests/test-netinet_in.c: New file.
68997
68998         * modules/inttypes-tests: New file.
68999         * tests/test-inttypes.c: New file.
69000
69001         * modules/fcntl-tests: New file.
69002         * tests/test-fcntl.c: New file.
69003
69004         * modules/byteswap-tests: New file.
69005         * tests/test-byteswap.c: New file.
69006
69007         * modules/arpa_inet-tests: New file.
69008         * tests/test-arpa_inet.c: New file.
69009
69010 2007-02-17  Bruno Haible  <bruno@clisp.org>
69011
69012         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69013         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69014         if the corresponding module is not enabled. Emit link warnings if
69015         the function is used nevertheless.
69016         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69017         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69018         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69019         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69020         * modules/inttypes (Depends-on): Add link-warning.
69021         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69022         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69023         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69024         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69025         * modules/imaxdiv (configure.ac): Likewise.
69026         * modules/strtoimax (configure.ac): Likewise.
69027         * modules/strtoumax (configure.ac): Likewise.
69028
69029 2007-02-17  Bruno Haible  <bruno@clisp.org>
69030
69031         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69032         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69033         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69034         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69035
69036 2007-02-17  Bruno Haible  <bruno@clisp.org>
69037
69038         * modules/link-warning: New file.
69039         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69040         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69041         * modules/string (Depends-on): Add link-warning.
69042         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69043         string.h.
69044         * MODULES.html.sh (Support for building libraries and executables): Add
69045         link-warning.
69046
69047 2007-02-17  Bruno Haible  <bruno@clisp.org>
69048
69049         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69050         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69051         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69052         long lines.
69053
69054 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69055             Bruno Haible  <bruno@clisp.org>
69056
69057         * modules/tmpfile: New file.
69058         * lib/tmpfile.c: New file.
69059         * m4/tmpfile.m4: New file.
69060         * MODULES.html.sh (func_all_modules): New section "Input/output".
69061
69062 2007-02-15  Bruno Haible  <bruno@clisp.org>
69063
69064         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69065         (supports_delete_on_close): New function.
69066         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69067
69068 2007-02-14  Bruno Haible  <bruno@clisp.org>
69069
69070         * modules/mbspcasecmp-tests: New file.
69071         * tests/test-mbspcasecmp.sh: New file.
69072         * tests/test-mbspcasecmp.c: New file.
69073
69074         New module mbspcasecmp.
69075         * modules/mbspcasecmp: New file.
69076         * lib/mbspcasecmp.c: New file.
69077         * lib/string_.h (strncasecmp): Change warning message.
69078         (mbspcasecmp): New declaration.
69079         * m4/mbspcasecmp.m4: New file.
69080         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69081         GNULIB_MBSPCASECMP.
69082         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69083         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69084
69085 2007-02-14  Bruno Haible  <bruno@clisp.org>
69086
69087         * modules/mbsncasecmp-tests: New file.
69088         * tests/test-mbsncasecmp.sh: New file.
69089         * tests/test-mbsncasecmp.c: New file.
69090
69091         New module mbsncasecmp.
69092         * modules/mbsncasecmp: New file.
69093         * lib/mbsncasecmp.c: New file.
69094         * lib/string_.h (mbsncasecmp): New declaration.
69095         * m4/mbsncasecmp.m4: New file.
69096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69097         GNULIB_MBSNCASECMP.
69098         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69099         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69100
69101 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69104         Verify that it doesn't overlap with our flags.
69105         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69106         do not have the desired effect in multibyte locales; instead, use
69107         mbscasecmp.
69108         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69109         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69110         we don't require GNU fnmatch ourselves (if our users require it, they
69111         should do so explicitly).
69112
69113         Fix regex code so it doesn't rely on strcasecmp.
69114         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69115         Otherwise, include gnulib's langinfo.h.
69116         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69117         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69118         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69119         * modules/regex (FILES): Remove m4/codeset.m4.
69120         (Depends-on): Add localcharset.  Remove strcase.
69121
69122 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69123
69124         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69125         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69126
69127 2007-02-13  Bruno Haible  <bruno@clisp.org>
69128
69129         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69130         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69131
69132 2007-02-12  Bruno Haible  <bruno@clisp.org>
69133
69134         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69135         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69136         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69137         time warning rather than a link error.
69138
69139 2007-02-12  Bruno Haible  <bruno@clisp.org>
69140
69141         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69142         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69143         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69144
69145 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69148         args, not 2.
69149
69150 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69151
69152         New module 'time', so that apps can include <time.h> as per
69153         POSIX and GNU instead of separate include files like time_r.h
69154         and timegm.h.  This implementation tries out a simpler approach
69155         for replacing decls in standard include files (as compared to
69156         the string module), somewhat as an experiment.
69157
69158         * config/srclist.txt: Comment out mktime.c for now.
69159         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69160         since it doesn't apply any more.  Use generic wording instead.
69161         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69162         'time'.
69163         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69164         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69165         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69166         Don't include <sys/types.h>; no longer needed since we assume C89.
69167         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69168         * lib/strftime.c: Likewise.
69169         * lib/time_r.c: Likewise.
69170         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69171         * lib/nanosleep.c: Include <time.h> first, to check interface.
69172         * lib/strptime.c: Likewise.
69173         * lib/time_r.c: Likewise.
69174         * lib/timegm.c: Likewise.
69175         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69176         needed.
69177         * lib/timegm.c: Don't include timegm.h; no longer needed.
69178         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69179         time.h now handles any problems in that area.
69180         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69181         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69182         that time.h defines struct timespec.
69183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69184         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69185         handles that.
69186         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69187         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69188         needed.  Set REPLACE_LOCALTIME.
69189         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69190         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69191         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69192         nanosleep; time_h.m4 now does that.  Don't require
69193         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69194         module handles this now.
69195         * modules/getdate (Depends-on): Remove timespec.  Add time.
69196         * modules/nanosleep (Depends-on): Likewise.
69197         * modules/stat-time (Depends-on): Likewise.
69198         * modules/nanosleep (Include): Include time.h, not timespec.h.
69199         * modules/strptime (Files): Remove lib/strptime.h.
69200         (Depends-on): Add extensions, time.
69201         (Include): Include time.h, not strptime.h.
69202         * modules/time_r (Files): Remove lib/time_r.h.
69203         (Depends-on): Add time.
69204         (Include): Include time.h, not time_r.h.
69205         * modules/timegm: Likewise.
69206         * modules/timespec (Description): Now does timespec-related decls
69207         of our own, instead of struct timespec itself.
69208         (Depends-on): Add time; remove extensions.
69209         (Maintainer): Add self.
69210         * modules/utimecmp (Depends-on): Add time; remove timespec.
69211         * modules/utimens (Depends-on): Likewise.
69212         * modules/xnanosleep (Depends-on): Likewise.
69213
69214 2007-02-11  Bruno Haible  <bruno@clisp.org>
69215
69216         * lib/c-strstr.c: Include allocsa.h.
69217         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69218         * lib/c-strcasestr.c: Include allocsa.h.
69219         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69220         * lib/strcasestr.c: Include allocsa.h.
69221         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69222         * lib/mbsstr.c: Include allocsa.h.
69223         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69224         allocsa/freesa instead of malloc/free.
69225         * lib/mbscasestr.c: Include allocsa.h.
69226         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69227         allocsa/freesa instead of malloc/free.
69228         * modules/c-strstr (Depends-on): Add allocsa.
69229         * modules/c-strcasestr (Depends-on): Likewise.
69230         * modules/strcasestr (Depends-on): Likewise.
69231         * modules/mbsstr (Depends-on): Likewise.
69232         * modules/mbscasestr (Depends-on): Likewise.
69233
69234 2007-02-11  Bruno Haible  <bruno@clisp.org>
69235
69236         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69237
69238         * modules/mbsspn-tests: New file.
69239         * tests/test-mbsspn.sh: New file.
69240         * tests/test-mbsspn.c: New file.
69241
69242 2007-02-11  Bruno Haible  <bruno@clisp.org>
69243
69244         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69245
69246         * modules/mbspbrk-tests: New file.
69247         * tests/test-mbspbrk.sh: New file.
69248         * tests/test-mbspbrk.c: New file.
69249
69250 2007-02-11  Bruno Haible  <bruno@clisp.org>
69251
69252         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69253         unneeded cast.
69254
69255         * modules/mbscspn-tests: New file.
69256         * tests/test-mbscspn.sh: New file.
69257         * tests/test-mbscspn.c: New file.
69258
69259 2007-02-11  Bruno Haible  <bruno@clisp.org>
69260
69261         * modules/mbscasecmp-tests: New file.
69262         * tests/test-mbscasecmp.sh: New file.
69263         * tests/test-mbscasecmp.c: New file.
69264
69265 2007-02-11  Bruno Haible  <bruno@clisp.org>
69266
69267         Ensure O(n) worst-case complexity of mbscasestr.
69268         * lib/mbscasestr.c: Include stdbool.h.
69269         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69270         functions.
69271         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69272         the bookkeeping indicates that it's worth it.
69273         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69274
69275         * modules/mbscasestr-tests: New file.
69276         * tests/test-mbscasestr1.c: New file.
69277         * tests/test-mbscasestr2.sh: New file.
69278         * tests/test-mbscasestr2.c: New file.
69279         * tests/test-mbscasestr3.sh: New file.
69280         * tests/test-mbscasestr3.c: New file.
69281         * tests/test-mbscasestr4.sh: New file.
69282         * tests/test-mbscasestr4.c: New file.
69283         * m4/locale-tr.m4: New file.
69284
69285 2007-02-11  Bruno Haible  <bruno@clisp.org>
69286
69287         Ensure O(n) worst-case complexity of mbsstr.
69288         * lib/mbsstr.c: Include stdbool.h.
69289         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69290         functions.
69291         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69292         bookkeeping indicates that it's worth it.
69293         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69294
69295         * modules/mbsstr-tests: New file.
69296         * tests/test-mbsstr1.c: New file.
69297         * tests/test-mbsstr2.sh: New file.
69298         * tests/test-mbsstr2.c: New file.
69299         * tests/test-mbsstr3.sh: New file.
69300         * tests/test-mbsstr3.c: New file.
69301         * m4/locale-fr.m4: New file.
69302
69303 2007-02-11  Bruno Haible  <bruno@clisp.org>
69304
69305         * lib/mbsrchr.c (mbsrchr): Fix bug.
69306
69307         * modules/mbsrchr-tests: New file.
69308         * tests/test-mbsrchr.sh: New file.
69309         * tests/test-mbsrchr.c: New file.
69310
69311 2007-02-11  Bruno Haible  <bruno@clisp.org>
69312
69313         * lib/mbschr.c (mbschr): Fix bug.
69314
69315         * modules/mbschr-tests: New file.
69316         * tests/test-mbschr.sh: New file.
69317         * tests/test-mbschr.c: New file.
69318         * m4/locale-zh.m4: New file.
69319
69320 2007-02-11  Bruno Haible  <bruno@clisp.org>
69321
69322         Support for copying multibyte string iterators.
69323         * lib/mbiter.h: Include <string.h>.
69324         (mbiter_multi_copy): New function.
69325         (mbi_copy): New macro.
69326         * lib/mbuiter.h: Include <string.h>.
69327         (mbuiter_multi_copy): New function.
69328         (mbui_copy): New macro.
69329
69330 2007-02-11  Bruno Haible  <bruno@clisp.org>
69331
69332         New module mbslen.
69333         * modules/mbslen: New file.
69334         * lib/mbslen.c: New file.
69335         * lib/string_.h (mbslen): New declaration.
69336         * m4/mbslen.m4: New file.
69337         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69338         GNULIB_MBSLEN.
69339         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69340         * MODULES.html.sh (Internationalization functions): Add mbslen.
69341
69342 2007-02-11  Bruno Haible  <bruno@clisp.org>
69343
69344         Ensure O(n) worst-case complexity of strcasestr substitute.
69345         * lib/strcasestr.c: Include stdbool.h.
69346         (knuth_morris_pratt): New function.
69347         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69348         bookkeeping indicates that it's worth it.
69349         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69350
69351         * modules/strcasestr-tests: New file.
69352         * tests/test-strcasestr.c: New file.
69353
69354 2007-02-11  Bruno Haible  <bruno@clisp.org>
69355
69356         Ensure O(n) worst-case complexity of c_strcasestr.
69357         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69358         (knuth_morris_pratt): New function.
69359         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69360         the bookkeeping indicates that it's worth it.
69361         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69362
69363         * modules/c-strcasestr-tests: New file.
69364         * tests/test-c-strcasestr.c: New file.
69365
69366 2007-02-11  Bruno Haible  <bruno@clisp.org>
69367
69368         Ensure O(n) worst-case complexity of c_strstr.
69369         * lib/c-strstr.c: Include stdbool.h, string.h.
69370         (knuth_morris_pratt): New function.
69371         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69372         bookkeeping indicates that it's worth it.
69373         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69374
69375         * lib/c-strstr.c: Complete rewrite for maintainability.
69376
69377         * modules/c-strstr-tests: New file.
69378         * tests/test-c-strstr.c: New file.
69379
69380 2007-02-11  Bruno Haible  <bruno@clisp.org>
69381
69382         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69383         5.2.1 and earlier, whereby \055 was treated just like the range
69384         delimiter '-'.
69385         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69386
69387 2007-02-08  Bruno Haible  <bruno@clisp.org>
69388
69389         * modules/regex (Depends-on): Add stdbool.
69390         Reported by Dalibor Topic <robilad@kaffe.org>.
69391
69392 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69393
69394         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69395         Prefer returning from main to exiting from it.
69396         Remove unnecessary parens after sizeof.
69397
69398 2007-02-05  Bruno Haible  <bruno@clisp.org>
69399
69400         New module mbssep.
69401         * modules/mbssep: New file.
69402         * lib/mbssep.c: New file.
69403         * lib/string_.h (strsep): Add a conditional link warning.
69404         (mbssep): New declaration.
69405         * m4/mbssep.m4: New file.
69406         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69407         GNULIB_MBSSEP.
69408         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69409         * MODULES.html.sh (Internationalization functions): Add mbssep.
69410
69411 2007-02-05  Bruno Haible  <bruno@clisp.org>
69412
69413         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69414         Optimize search in case of 1 delimiter.
69415
69416 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69417
69418         * lib/acl.h: Include sys/types.h before sys/acl.h.
69419
69420 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69421
69422         Merge upstream fix for glibc bugzilla #3957:
69423
69424         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69425
69426         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69427         bit for RE_HAT_LISTS_NOT_NEWLINE.
69428         (build_charclass_op): Remove bogus comment.
69429
69430 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69431
69432         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69433
69434 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69435
69436         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69437         * lib/memmem.c [!defined _LIBC]: Include config.h.
69438
69439 2007-02-04  Bruno Haible  <bruno@clisp.org>
69440
69441         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69442         warning message.
69443
69444 2007-02-04  Bruno Haible  <bruno@clisp.org>
69445
69446         New module mbstok_r.
69447         * modules/mbstok_r: New file.
69448         * lib/mbstok_r.c: New file.
69449         * lib/string_.h (strtok_r): Change argument names to match the
69450         comments. Add a conditional link warning.
69451         (mbstok_r): New declaration.
69452         * m4/mbstok_r.m4: New file.
69453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69454         GNULIB_MBSTOK_R.
69455         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69456         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69457
69458 2007-02-04  Bruno Haible  <bruno@clisp.org>
69459
69460         New module mbsspn.
69461         * modules/mbsspn: New file.
69462         * lib/mbsspn.c: New file.
69463         * lib/string_.h (strspn): Add a conditional link warning.
69464         (mbsspn): New declaration.
69465         * m4/mbsspn.m4: New file.
69466         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69467         GNULIB_MBSSPN.
69468         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69469         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69470
69471 2007-02-04  Bruno Haible  <bruno@clisp.org>
69472
69473         New module mbspbrk.
69474         * modules/mbspbrk: New file.
69475         * lib/mbspbrk.c: New file.
69476         * lib/string_.h (strpbrk): Add a conditional link warning.
69477         (mbspbrk): New declaration.
69478         * m4/mbspbrk.m4: New file.
69479         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69480         GNULIB_MBSPBRK.
69481         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69482         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69483
69484 2007-02-04  Bruno Haible  <bruno@clisp.org>
69485
69486         New module mbscspn.
69487         * modules/mbscspn: New file.
69488         * lib/mbscspn.c: New file.
69489         * lib/string_.h (strcspn): Add a conditional link warning.
69490         (mbscspn): New declaration.
69491         * m4/mbscspn.m4: New file.
69492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69493         GNULIB_MBSCSPN.
69494         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69495         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69496
69497 2007-02-04  Bruno Haible  <bruno@clisp.org>
69498
69499         New module mbscasestr, reduced goal of strcasestr.
69500         * modules/mbscasestr: New file.
69501         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69502         (mbscasestr): Renamed from strcasestr.
69503         * lib/strcasestr.c: Don't include mbuiter.h.
69504         (strcasestr): Remove support for multibyte locales.
69505         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69506         Change the conditional link warning.
69507         (mbscasestr): New declaration.
69508         * m4/mbscasestr.m4: New file.
69509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69510         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69511         REPLACE_STRCASESTR.
69512         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69514         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69515         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69516         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69517         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69518         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69519         (Depends-on): Remove mbuiter.
69520         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69521
69522 2007-02-04  Bruno Haible  <bruno@clisp.org>
69523
69524         Simplify handling of strncasecmp.
69525         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69526         the conditional link warning.
69527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69528         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69529         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69530         * modules/strcase (configure.ac): Don't invoke
69531         gl_STRING_MODULE_INDICATOR.
69532         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69533
69534 2007-02-04  Bruno Haible  <bruno@clisp.org>
69535
69536         New module mbscasecmp, reduced goal of strcasecmp.
69537         * modules/mbscasecmp: New file.
69538         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69539         (mbscasecmp): Renamed from strcasecmp.
69540         * lib/strcasecmp.c: Don't include mbuiter.h.
69541         (strcasecmp): Remove support for multibyte locales.
69542         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69543         Change the conditional link warning.
69544         (mbscasecmp): New declaration.
69545         * m4/mbscasecmp.m4: New file.
69546         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69547         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69548         REPLACE_STRCASECMP.
69549         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69550         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69551         GNULIB_MBSCASECMP.
69552         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69553         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69554         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69555         (Depends-on): Remove mbuiter.
69556         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69557
69558 2007-02-04  Bruno Haible  <bruno@clisp.org>
69559
69560         New module mbsstr. Remove module strstr.
69561         * modules/mbsstr: New file.
69562         * modules/strstr: Remove file.
69563         * lib/mbsstr.c: Renamed from lib/strstr.c.
69564         (mbsstr): Renamed from strstr.
69565         * lib/string_.h (strstr): Remove declaration. Change the conditional
69566         link warning.
69567         (mbsstr): New declaration.
69568         * m4/mbsstr.m4: New file.
69569         * m4/strstr.m4: Remove file.
69570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69571         REPLACE_STRSTR.
69572         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69573         Don't initialize GNULIB_STRSTR.
69574         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69575         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69576         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69577         (Support for systems lacking ANSI C 89): Remove strstr.
69578
69579 2007-02-04  Bruno Haible  <bruno@clisp.org>
69580
69581         New module mbsrchr.
69582         * modules/mbsrchr: New file.
69583         * lib/mbsrchr.c: New file.
69584         * lib/string_.h (strrchr): Add a conditional link warning.
69585         (mbsrchr): New declaration.
69586         * m4/mbsrchr.m4: New file.
69587         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69588         GNULIB_MBSRCHR.
69589         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69590         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69591
69592 2007-02-04  Bruno Haible  <bruno@clisp.org>
69593
69594         New module mbschr.
69595         * modules/mbschr: New file.
69596         * lib/mbschr.c: New file.
69597         * lib/string_.h (strchr): Add a conditional link warning.
69598         (mbschr): New declaration.
69599         * m4/mbschr.m4: New file.
69600         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69601         GNULIB_MBSCHR.
69602         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69603         * MODULES.html.sh (Internationalization functions): Add mbschr.
69604
69605 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69608
69609         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69610
69611 2007-02-04  Bruno Haible  <bruno@clisp.org>
69612
69613         New module description section 'configure.ac-early'.
69614         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69615         (func_get_autoconf_early_snippet): New function.
69616         (func_import, func_create_testdir): Use it. Remove special cases for
69617         modules 'extensions' and 'lock'.
69618         * modules/extensions (configure.ac-early): Require
69619         gl_USE_SYSTEM_EXTENSIONS.
69620         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69621
69622 2007-02-04  Bruno Haible  <bruno@clisp.org>
69623
69624         Make use of gcj-4.3's -fsource and -ftarget option.
69625         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69626         and if so try the options -fsource and -ftarget.
69627         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69628         source_version, ftarget_option, target_version arguments.
69629         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69630         (is_envjavac_oldgcj_14_14_usable): Renamed from
69631         is_envjavac_gcj_14_14_usable.
69632         (is_envjavac_oldgcj_14_13_usable): Renamed from
69633         is_envjavac_gcj_14_13_usable.
69634         (is_gcj_present): Update.
69635         (is_gcj_43, is_gcj43_usable): New functions.
69636         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69637         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69638         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69639         try the options -fsource and -ftarget.
69640
69641 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69642
69643         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69644         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69645         larger value.
69646
69647 2007-02-03  Jim Meyering  <jim@meyering.net>
69648
69649         Give tools a better chance to allocate space for very large buffers.
69650         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69651
69652         Make pwd and readlink work also when run with an unreadable parent dir
69653         on systems with openat support.
69654         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69655         provided getcwd function, even when we have openat support.
69656         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69657
69658 2007-02-02  Bruno Haible  <bruno@clisp.org>
69659
69660         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69661         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69662         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69663         portability problems if one of these functions is only used on specific
69664         platforms.
69665         Reported by Paul Eggert.
69666
69667 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69668
69669         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69670         is causing more trouble than it's curing.
69671         * lib/regex_internal.h (__mempcpy): Remove.
69672         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69673         (and make the code a tad smaller to boot).
69674         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69675
69676 2007-02-02  Jim Meyering  <jim@meyering.net>
69677
69678         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69679         section, not in the Makefile.am: one.
69680
69681 2007-02-02  Eric Blake  <ebb9@byu.net>
69682
69683         * lib/strchrnul.c: Always include config.h first.
69684
69685         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69686         gnulib strstr is not necessary here.
69687
69688 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69689
69690         * m4/socklen.m4: Fix typo.
69691
69692 2007-02-02  Eric Blake  <ebb9@byu.net>
69693
69694         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69695         * modules/netinet_in (Makefile.am): Likewise.
69696
69697 2007-02-01  Bruno Haible  <bruno@clisp.org>
69698
69699         * lib/string_.h (GL_LINK_WARNING): New macro.
69700         (strcasecmp, strstr, strcasestr): If provided by the system,
69701         conditionally define as a macro that leads to a warning instead of to
69702         an error.
69703         (strncasecmp): Conditionally define as a macro that leads to a warning.
69704
69705 2007-02-01  Karl Berry  <karl@gnu.org>
69706
69707         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69708
69709 2007-02-01  Bruno Haible  <bruno@clisp.org>
69710
69711         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69712         renamings.
69713
69714 2007-02-01  Eric Blake  <ebb9@byu.net>
69715
69716         * modules/regex (Depends-on): Revert dependence on mempcpy.
69717         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69718         module's definition of mempcpy.
69719         Reported by Paul Eggert.
69720
69721 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69724         the symbol XYZ before redefining it.  This fixes a problem with
69725         programs that don't use XYZ, when compiled on systems that define
69726         XYZ to something else.
69727
69728 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69731         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69732         writeable to group or other and (2) is intended to have a special
69733         mode bit that is set or cleared.  In such a case, the directory
69734         should be neither group- nor other-writeable until the special
69735         mode bits are right.
69736
69737 2007-01-31  Eric Blake  <ebb9@byu.net>
69738
69739         * modules/mountlist (Depends-on): Add strstr.
69740
69741         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69742         bug.
69743         * modules/string (Makefile.am): Remove redundant replacement.
69744         * modules/regex (Depends-on): Add mempcpy.
69745
69746 2007-01-31  Bruno Haible  <bruno@clisp.org>
69747
69748         New module description field 'Link'.
69749         * gnulib-tool (func_usage): Document --extract-link-directive.
69750         (sed_extract_prog): Recognize 'Link' directive.
69751         (func_get_link_directive): New function.
69752         (func_import): Show summary of link directives.
69753         Handle --extract-link-directive option.
69754         * modules/acl (Link): New section.
69755         * modules/clock-time (Link): New section.
69756         * modules/euidaccess (Link): New section.
69757         * modules/gettext (Link): New section.
69758         * modules/iconv (Link): New section.
69759         * modules/lock (Link): New section.
69760         * modules/nanosleep (Link): New section.
69761         * modules/readline (Link): New section.
69762
69763 2007-01-27  Bruno Haible  <bruno@clisp.org>
69764
69765         Enforce the use of gnulib modules for unportable <string.h> functions.
69766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69767         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69768         (gl_HEADER_STRING_H_BODY): Require it.
69769         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69770         the symbol XYZ to one that gives a link error.
69771         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69772         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69773         * modules/mempcpy (configure.ac): Likewise.
69774         * modules/memrchr (configure.ac): Likewise.
69775         * modules/stpcpy (configure.ac): Likewise.
69776         * modules/stpncpy (configure.ac): Likewise.
69777         * modules/strcase (configure.ac): Likewise.
69778         * modules/strcasestr (configure.ac): Likewise.
69779         * modules/strchrnul (configure.ac): Likewise.
69780         * modules/strdup (configure.ac): Likewise.
69781         * modules/strndup (configure.ac): Likewise.
69782         * modules/strnlen (configure.ac): Likewise.
69783         * modules/strpbrk (configure.ac): Likewise.
69784         * modules/strsep (configure.ac): Likewise.
69785         * modules/strstr (configure.ac): Likewise.
69786         * modules/strtok_r (configure.ac): Likewise.
69787
69788 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69789
69790         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69791
69792 2007-01-30  Jim Meyering  <jim@meyering.net>
69793
69794         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69795
69796 2007-01-29  Bruno Haible  <bruno@clisp.org>
69797
69798         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69799         * lib/execute.c: Likewise.
69800         * lib/pipe.c: Likewise.
69801         * lib/printf-args.h: Likewise.
69802         * lib/printf-args.c: Likewise.
69803         * lib/printf-parse.c: Likewise.
69804         * lib/vasnprintf.c: Likewise.
69805
69806 2007-01-29  Eric Blake  <ebb9@byu.net>
69807
69808         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69809         declaration.
69810
69811 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69812
69813         * lib/strptime.h (strptime): Use 'restrict' for args where
69814         POSIX requires this.
69815         * lib/strptime.c (strptime): Likewise.
69816         Change license notice from LGPL to GPL, since gnulib-tool will
69817         change this as needed.
69818         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69819         defined.
69820         Include "strptime.h" first, to check interface.
69821         Do not #undef _LIBC and _NL_CURRENT.
69822         Do not include <stdlib.h>; no longer needed.
69823         Include "time_r.h" and declare ptime_locale_status
69824         only if _LIBC is not defined.
69825         (__P): Remove unused macro.
69826         (match_string): Bring back glibc version, but use it only if _LIBC
69827         is defined.
69828         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69829         Remove unnecessary assertion and abort() call.
69830         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69831         * m4/strptime.m4: Fix serial number comment.
69832         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69833         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69834         (Depends-on): Add time_r.
69835
69836 2007-01-29  Bruno Haible  <bruno@clisp.org>
69837
69838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69839         strptime.
69840         * modules/strptime (Depends-on): Add stdbool.
69841         * lib/strptime.h: Include <time.h> always. Add comments.
69842
69843 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69844
69845         * modules/strptime: New file.
69846         * lib/strptime.h: New file.
69847         * lib/strptime.c: New file.
69848         * m4/strptime.m4: New file.
69849
69850 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69851
69852         * MODULES.html.sh: New module mpsort.
69853         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69854
69855         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69856         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69858         All uses changed.
69859         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69860         All uses changed.
69861         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69862         to _Restrict_.
69863         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69864         the parameter matches the prototype.
69865
69866 2007-01-28  Jim Meyering  <jim@meyering.net>
69867
69868         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69869         sys/time.h here, reverting that part of the previous patch:
69870         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69871
69872 2007-01-28  Bruno Haible  <bruno@clisp.org>
69873
69874         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69875         value of $(SYS_TIME_H).
69876         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69877         remove it conditionally, too. [added by Jim Meyering]
69878         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69879         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69880         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69881         GETTIMEOFDAY_REPLACEMENT to 1.
69882
69883 2007-01-28  Bruno Haible  <bruno@clisp.org>
69884
69885         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69886         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69888         Set UNISTD_H instead of UNISTD_H2.
69889         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69890
69891 2007-01-28  Bruno Haible  <bruno@clisp.org>
69892
69893         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69894         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69895
69896 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69897
69898         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69899         (func_create_testdir): Ensure C locale for `grep' and `tr'
69900         character ranges.
69901         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69902         ACLOCAL_AMFLAGS parsing state machine.
69903
69904 2007-01-27  Bruno Haible  <bruno@clisp.org>
69905
69906         * modules/unistr/base: Update.
69907
69908 2007-01-27  Bruno Haible  <bruno@clisp.org>
69909
69910         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69911         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69912         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69913         modules/unistr/u32-mbtouc.
69914         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69915         * lib/unistr.h: Update.
69916         * lib/linebreak.c: Update.
69917         * modules/unistr/u32-mbtouc: Renamed from
69918         modules/unistr/u32-mbtouc-safe.
69919         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69920         * lib/unistr.h: Update.
69921         * lib/unistr/u32-to-u8.c: Update.
69922         * lib/unistr/u32-to-u16.c: Update.
69923
69924 2007-01-27  Bruno Haible  <bruno@clisp.org>
69925
69926         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69927         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69928         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69929         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69930         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69931         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69932         modules/unistr/u16-mbtouc.
69933         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69934         * lib/unistr.h: Update.
69935         * lib/linebreak.c: Update.
69936         * modules/linebreak: Update.
69937         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69938         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69939         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69940         * modules/unistr/u16-mbtouc: Renamed from
69941         modules/unistr/u16-mbtouc-safe.
69942         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69943         * lib/unistr.h: Update.
69944         * lib/unistr/u16-to-u8.c: Update.
69945         * modules/unistr/u16-to-u8: Update.
69946         * lib/unistr/u16-to-u32.c: Update.
69947         * modules/unistr/u16-to-u32: Update.
69948
69949 2007-01-27  Bruno Haible  <bruno@clisp.org>
69950
69951         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69952         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69953         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69954         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69955         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69956         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69957         modules/unistr/u8-mbtouc.
69958         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69959         * lib/unistr.h: Update.
69960         * lib/striconveh.c: Update.
69961         * modules/striconveh: Update.
69962         * lib/linebreak.c: Update.
69963         * modules/linebreak: Update.
69964         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69965         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69966         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69967         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69968         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69969         * lib/unistr.h: Update.
69970         * lib/striconveh.c: Update.
69971         * modules/striconveh: Update.
69972         * lib/unistr/u8-to-u16.c: Update.
69973         * modules/unistr/u8-to-u16: Update.
69974         * lib/unistr/u8-to-u32.c: Update.
69975         * modules/unistr/u8-to-u32: Update.
69976
69977 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69978
69979         Sync from Libtool.
69980         * lib/argz.c: Do not include strings.h nor memory.h, include
69981         string.h unconditionally.  Patch by Simon Josefsson.
69982
69983 2007-01-27  Bruno Haible  <bruno@clisp.org>
69984
69985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69986         from gl_HEADER_STRING_H_BODY.
69987         (gl_HEADER_STRING_H_BODY): Require it.
69988         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69989         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69990         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69991         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69992         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69993         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69994         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69995         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69996         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69997         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69998         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69999         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70000         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70001         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70002         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70003
70004 2007-01-27  Bruno Haible  <bruno@clisp.org>
70005
70006         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70007         check_PROGRAMS into noinst_PROGRAMS.
70008         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70009         check_PROGRAMS in this case.
70010         (func_import): Set for_test to false.
70011         (func_create_testdir): Set for_test to true.
70012
70013 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70014             Bruno Haible  <bruno@clisp.org>
70015
70016         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70017         (Depends-on): Add string.
70018         (Includes): Use <string.h> instead of strcasestr.h.
70019         * modules/string (Makefile.am): Also substitute the value of
70020         REPLACE_STRCASESTR.
70021         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70022         assume strcasestr is declared in <string.h> not <strings.h>. Also
70023         set REPLACE_STRCASESTR.
70024         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70025         REPLACE_STRCASESTR.
70026         * lib/strcasestr.h: Remove file.
70027         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70028         * lib/string_.h (strcasestr): New declaration.
70029
70030 2007-01-27  Bruno Haible  <bruno@clisp.org>
70031
70032         * lib/string_.h: Use 'extern'.
70033
70034 2007-01-27  Jim Meyering  <jim@meyering.net>
70035
70036         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70037         of set-but-not-used local, "q".
70038
70039         * lib/mempcpy.c: Include <config.h> before <string.h>.
70040         This fixes a compilation error on HP-UX, due to the system's
70041         "restrict"-using mempcpy prototype.
70042
70043 2007-01-26  Bruno Haible  <bruno@clisp.org>
70044
70045         Small optimization.
70046         * lib/javacomp.c: Include c-strstr.h.
70047          (is_envjavac_gcj): Use c_strstr instead of strstr.
70048         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70049
70050 2007-01-26  Bruno Haible  <bruno@clisp.org>
70051
70052         * MODULES.html.sh (Unicode string functions): Add the new modules.
70053
70054         * modules/uniconv/u32-strconv-to-locale: New file.
70055         * lib/uniconv/u32-strconv-to-locale.c: New file.
70056
70057         * modules/uniconv/u16-strconv-to-locale: New file.
70058         * lib/uniconv/u16-strconv-to-locale.c: New file.
70059
70060         * modules/uniconv/u8-strconv-to-locale: New file.
70061         * lib/uniconv/u8-strconv-to-locale.c: New file.
70062
70063         * modules/uniconv/u32-strconv-from-locale: New file.
70064         * lib/uniconv/u32-strconv-from-locale.c: New file.
70065
70066         * modules/uniconv/u16-strconv-from-locale: New file.
70067         * lib/uniconv/u16-strconv-from-locale.c: New file.
70068
70069         * modules/uniconv/u8-strconv-from-locale: New file.
70070         * lib/uniconv/u8-strconv-from-locale.c: New file.
70071
70072         * modules/uniconv/u32-strconv-to-enc: New file.
70073         * lib/uniconv/u32-strconv-to-enc.c: New file.
70074         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70075         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70076
70077         * modules/uniconv/u16-strconv-to-enc: New file.
70078         * lib/uniconv/u16-strconv-to-enc.c: New file.
70079         * lib/uniconv/u-strconv-to-enc.h: New file.
70080         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70081         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70082
70083         * modules/uniconv/u8-strconv-to-enc: New file.
70084         * lib/uniconv/u8-strconv-to-enc.c: New file.
70085         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70086         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70087
70088         * modules/uniconv/u32-strconv-from-enc: New file.
70089         * lib/uniconv/u32-strconv-from-enc.c: New file.
70090         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70091         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70092
70093         * modules/uniconv/u16-strconv-from-enc: New file.
70094         * lib/uniconv/u16-strconv-from-enc.c: New file.
70095         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70096         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70097
70098         * modules/uniconv/u8-strconv-from-enc: New file.
70099         * lib/uniconv/u8-strconv-from-enc.c: New file.
70100         * lib/uniconv/u-strconv-from-enc.h: New file.
70101         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70102         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70103
70104         * modules/uniconv/u32-conv-from-enc: New file.
70105         * lib/uniconv/u32-conv-from-enc.c: New file.
70106         * modules/uniconv/u32-conv-from-enc-tests: New file.
70107         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70108
70109         * modules/uniconv/u16-conv-from-enc: New file.
70110         * lib/uniconv/u16-conv-from-enc.c: New file.
70111         * lib/uniconv/u-conv-from-enc.h: New file.
70112         * modules/uniconv/u16-conv-from-enc-tests: New file.
70113         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70114
70115         * modules/uniconv/u8-conv-from-enc: New file.
70116         * lib/uniconv/u8-conv-from-enc.c: New file.
70117         * modules/uniconv/u8-conv-from-enc-tests: New file.
70118         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70119
70120         * modules/uniconv/base: New file.
70121         * lib/uniconv.h: New file.
70122
70123 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70124
70125         * doc/gnulib-tool.texi (Initial import): Update to match current
70126         behavior with strdup module.
70127         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70128         * lib/memmem.h: Remove; all uses removed.  This is now done
70129         by <string.h>.
70130         * lib/mempcpy.h: Likewise.
70131         * lib/memrchr.h: Likewise.
70132         * lib/stpcpy.h: Likewise.
70133         * lib/stpncpy.h: Likewise.
70134         * lib/strcase.h: Likewise.
70135         * lib/strchrnul.h: Likewise.
70136         * lib/strdup.h: Likewise.
70137         * lib/strndup.h: Likewise.
70138         * lib/strnlen.h: Likewise.
70139         * lib/strpbrk.h: Likewise.
70140         * lib/strsep.h: Likewise.
70141         * lib/strstr.h: Likewise.
70142         * lib/strtok_r.h: Likewise.
70143         * lib/string_.h: New file.
70144         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70145         Rely on <string.h> instead.
70146         * lib/canon-host.c: Likewise.
70147         * lib/chdir-long.c: Likewise.
70148         * lib/concatpath.c: Likewise.
70149         * lib/exclude.c: Likewise.
70150         * lib/fchdir.c: Likewise.
70151         * lib/getaddrinfo.c: Likewise.
70152         * lib/getcwd.c: Likewise.
70153         * lib/getsubopt.c: Likewise.
70154         * lib/glob.c: Likewise.
70155         * lib/hard-locale.c: Likewise.
70156         * lib/iconvme.c: Likewise.
70157         * lib/javacomp.c: Likewise.
70158         * lib/mempcpy.c: Likewise.
70159         * lib/memrchr.c: Likewise.
70160         * lib/regex_internal.h: Likewise.
70161         * lib/stpncpy.c: Likewise.
70162         * lib/strcasecmp.c: Likewise.
70163         * lib/strchrnul.c: Likewise.
70164         * lib/strdup.c: Likewise.
70165         * lib/striconv.c: Likewise.
70166         * lib/striconveh.c: Likewise.
70167         * lib/striconveha.c: Likewise.
70168         * lib/strncasecmp.c: Likewise.
70169         * lib/strndup.c: Likewise.
70170         * lib/strnlen.c: Likewise.
70171         * lib/strsep.c: Likewise.
70172         * lib/strstr.c: Likewise.
70173         * lib/strtok_r.c: Likewise.
70174         * lib/userspec.c: Likewise.
70175         * lib/w32spawn.h: Likewise.
70176         * lib/xstrndup.c: Likewise.
70177         * lib/mountlist.c (strstr): Remove decl.
70178         * m4/string_h.m4: New file.
70179         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70180         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70181         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70182         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70183         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70184         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70185         Set REPLACE_STRCASECMP if necessary.
70186         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70187         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70188         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70189         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70190         HAVE_DECL_STRDUP if necessary.
70191         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70192         since gl_FUNC_STRNDUP does that now.
70193         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70194         Check for decl here...
70195         (gl_PREREQ_STRNLEN): ... not here.
70196         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70197         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70198         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70199         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70200         necessary.
70201         * modules/string: New file.
70202         * modules/memmem (Files): Remove special-purpose include file.
70203         (Depends-on): Add string.
70204         (Include): Include <string.h>, not the removed file.
70205         * modules/mempcpy: Likewise.
70206         * modules/memrchr: Likewise.
70207         * modules/stpcpy: Likewise.
70208         * modules/stpncpy: Likewise.
70209         * modules/strcase: Likewise.
70210         * modules/strchrnul: Likewise.
70211         * modules/strdup: Likewise.
70212         * modules/strndup: Likewise.
70213         * modules/strnlen: Likewise.
70214         * modules/strpbrk: Likewise.
70215         * modules/strsep: Likewise.
70216         * modules/strstr: Likewise.
70217         * modules/strtok_r: Likewise.
70218         * tests/test-dirname.c: Don't include "strdup.h", since
70219         <string.h> now suffices.
70220         * tests/test-memmem.c: Don't include "memmem.h", since
70221         <string.h> now suffices.
70222
70223 2007-01-25  Bruno Haible  <bruno@clisp.org>
70224
70225         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70226         *resultp is 0.
70227
70228         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70229         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70230         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70231         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70232
70233         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70234         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70235         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70236         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70237         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70238         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70239
70240 2007-01-24  Bruno Haible  <bruno@clisp.org>
70241
70242         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70243         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70244         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70245         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70246         gl_FUNC_FTS_CORE.
70247         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70248         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70249         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70250         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70251         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70252         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70253         gl_FUNC_FCHOWNAT.
70254         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70255         gl_FUNC_STRFTIME.
70256         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70257         Reported by Ralf Wildenhues.
70258
70259 2007-01-24  Bruno Haible  <bruno@clisp.org>
70260
70261         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70262         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70263         gl_GETADDRINFO.
70264         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70265         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70266         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70267
70268 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70269
70270         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70271         Don't use 'exit'; just return from 'main'.
70272         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70273
70274         * lib/fnmatch_.h: Readjust white space and comments to match
70275         glibc, to avoid spurious diffs.
70276
70277 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70278
70279         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70280         2004-12-01 change by Jakub Jelinek, since this code won't compile
70281         if !LIBC.  Problem reported by Bob Proulx.
70282
70283 2007-01-23  Bruno Haible  <bruno@clisp.org>
70284
70285         * lib/striconveh.c: Include c-strcaseeq.h.
70286         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70287         * modules/striconveh (Depends-on): Add c-strcaseeq.
70288
70289 2007-01-23  Bruno Haible  <bruno@clisp.org>
70290
70291         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70292
70293         * modules/c-strcaseeq: New file.
70294         * lib/c-strcaseeq.h: New file.
70295
70296         * modules/streq: New file.
70297         * lib/streq.h: New file.
70298
70299 2007-01-23  Bruno Haible  <bruno@clisp.org>
70300
70301         * modules/striconveha-tests: New file.
70302         * tests/test-striconveha.c: New file.
70303
70304         * lib/striconveha.h: Include <stdbool.h>.
70305         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70306         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70307         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70308         (mem_iconveha): New function.
70309         (str_iconveha_notranslit): Renamed from str_iconveha.
70310         (str_iconveha): New function.
70311         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70312         c-strcase.
70313
70314 2007-01-23  Bruno Haible  <bruno@clisp.org>
70315
70316         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70317         encodings without forgiving before trying any encoding with handler.
70318         (str_iconveha): Try all encodings without forgiving before trying any
70319         encoding with handler.
70320
70321 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         Import the following changes from libc.
70324
70325         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70326
70327         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70328
70329         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70330
70331         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70332         normal_bracket label.
70333
70334         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70335
70336         [BZ #361]
70337         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70338         to normal_bracket after fetching the next character.
70339
70340 2007-01-22  Bruno Haible  <bruno@clisp.org>
70341
70342         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70343         argument.
70344         * lib/striconveh.c (iconv_carefully_1): New function.
70345         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70346         argument.
70347         (str_cd_iconveh): Update.
70348         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70349         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70350         * tests/test-striconveh.c (MAGIC): New macro.
70351         (new_offsets): New function.
70352         (main): Test call with and without offsets.
70353
70354 2007-01-22  Bruno Haible  <bruno@clisp.org>
70355
70356         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70357         * modules/sys_select (Makefile.am): Likewise.
70358         * modules/sys_socket (Makefile.am): Likewise.
70359         * modules/sys_time (Makefile.am): Likewise.
70360
70361 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70362
70363         * modules/gettimeofday (License): Change from GPL to LGPL, since
70364         gettimeofday is a library function.
70365
70366 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70367
70368         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70369
70370 2007-01-21  Bruno Haible  <bruno@clisp.org>
70371
70372         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70373
70374 2007-01-21  Bruno Haible  <bruno@clisp.org>
70375
70376         * modules/striconveha: New file.
70377         * lib/striconveha.h: New file.
70378         * lib/striconveha.c: New file.
70379         * MODULES.html.sh (Internationalization functions): Add striconveha.
70380         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70381         string.
70382         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70383
70384 2007-01-21  Bruno Haible  <bruno@clisp.org>
70385
70386         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70387         * lib/striconveh.c (str_iconveh): Likewise.
70388
70389 2007-01-21  Bruno Haible  <bruno@clisp.org>
70390
70391         * lib/striconveh.h (mem_iconveh): New declaration.
70392         * lib/striconveh.c (mem_iconveh): New function.
70393         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70394
70395 2007-01-21  Bruno Haible  <bruno@clisp.org>
70396
70397         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70398
70399         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70400         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70401         original result buffer.
70402         (str_cd_iconveh): Update.
70403         * tests/test-striconveh.c (main): Update.
70404
70405         * lib/striconv.h (mem_cd_iconv): Change specification.
70406         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70407         result buffer.
70408         (str_cd_iconv): Update.
70409         * tests/test-striconv.c (main): Update.
70410
70411 2007-01-21  Bruno Haible  <bruno@clisp.org>
70412
70413         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70414
70415 2007-01-20  Jim Meyering  <jim@meyering.net>
70416
70417         * lib/userspec.c (parse_with_separator): If a user or group string
70418         starts with "+", skip the corresponding name-to-ID look-up, since
70419         such a look-up must fail: user and group names may not include "+".
70420
70421 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70422
70423         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70424         since we now assume the sys_time module.
70425         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70426         check for sys/time.h; no longer needed.
70427         * modules/poll (Depends-on): Depend on sys_time.
70428
70429 2007-01-18  Bruno Haible  <bruno@clisp.org>
70430
70431         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70432         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70433
70434         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70435         gettimeofday.
70436
70437         * tests/test-gettimeofday.c: Include <time.h>.
70438         (dummy): Remove variable.
70439
70440         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70441         gl_HEADER_SYS_TIME_H.
70442         (gl_HEADER_SYS_TIME_H): New macro.
70443
70444         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70445         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70446         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70447         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70448         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70449         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70450         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70451         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70452         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70453         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70454         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70455
70456         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70457         last change; it caused a compilation error when cross-compiling to
70458         Cygwin.
70459
70460 2007-01-18  Jim Meyering  <jim@meyering.net>
70461
70462         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70463         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70464         than the race-prone "test -d sys || mkdir sys".
70465         (configure.ac): Use AC_PROG_MKDIR_P.
70466         * modules/sys_select: Likewise.
70467         * modules/sys_socket: Likewise.
70468         * modules/sys_time: Likewise.
70469
70470 2007-01-18  Eric Blake  <ebb9@byu.net>
70471
70472         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70473         replace gettimeofday.
70474         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70475         name, to avoid infinite recursion.
70476
70477 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70480         module sys_time.
70481         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70482         assume timespec.h defines struct timeval.
70483         * lib/settime.c: Likewise.
70484         * lib/utimens.c: Likewise.
70485         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70486         since we now assume the gettimeofday module.
70487         * lib/tempname.c (__gen_tempname): Likewise.
70488         * lib/gettimeofday.h: Remove.
70489         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70490         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70491         Include <time.h>, for 'time()'.
70492         (localtime_buffer_addr): Also use this workaround if
70493         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70494         to simplify the uses.  All uses changed.
70495         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70496         that #undef is inside {}, and 'const' follows type name consistently.
70497         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70498         (gettimeofday): Do not use the maximum possible value for
70499         tv->tv_usec, since that might break usages other than ls.c.
70500         Instead, we'll leave ls.c alone.  This undoes today's patch
70501         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70502         we've never observed the problem but might as well keep the
70503         canary.
70504         * lib/nanosleep.c: Include timespec.h first, for interface check.
70505         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70506         now assume the sys_time module.
70507         * lib/tempname.c: Likewise.
70508         * lib/timespec.h: Likewise.
70509         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70510         needed.
70511         * lib/strftime.c: Likewise.
70512         * lib/timespec.h: Likewise.
70513         * lib/posixtm.c: Include posixtm.h first, for interface check.
70514         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70515         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70516         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70517         * lib/sys_time_.h: New file.
70518         * lib/timespec.h (struct timespec): Use long int, not long.
70519         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70520         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70521         Remove obsolescent call to AC_HEADER_TIME.
70522         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70524         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70525         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70526         Likewise.
70527         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70528         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70529         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70530         into the sys_time module.  Check for gettimeofday just once.
70531         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70532         for gettimeofday signature to just check the signature.  Merely
70533         compile it, since linking doesn't test signature.  Improve test for
70534         whether gettimeofday.o is actually needed.
70535         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70536         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70537         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70538         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70539         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70540         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70541         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70542         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70543         than worrying about sys/time.h.
70544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70545         Don't bother worrying about TIME_WITH_SYS_TIME.
70546         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70547         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70548         * m4/sys_time_h.m4: New file.
70549         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70550         Don't include sys/time.h.  Return from main rather than exiting.
70551         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70552         all uses changed.
70553         * modules/gethrxtime (Depends-on): Add sys_time.
70554         * modules/gettime (Depends-on): Likewise.
70555         * modules/gettimeofday (Depends-on): Likewise.
70556         * modules/nanosleep (Depends-on): Likewise.
70557         * modules/settime (Depends-on): Likewise.
70558         * modules/tempname (Depends-on): Likewise.
70559         * modules/utimens (Depends-on): Likewise.
70560         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70561         (Include): Change back to <sys/time.h>.
70562         (Maintainer): Add self.
70563         * modules/sys_time: New file.
70564         * modules/tempname (Depends-on): Add gettimeofday.
70565         * tests/test-gettimeofday.c: Include <sys/time.h>
70566         rather than gettimeofday.h.
70567
70568 2007-01-17  Bruno Haible  <bruno@clisp.org>
70569
70570         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70571         the license default to GPL.
70572         (func_create_testdir): Don't complain if a module is LGPL and its
70573         tests module depends on GPLed modules.
70574
70575 2007-01-17  Bruno Haible  <bruno@clisp.org>
70576
70577         * lib/gettimeofday.c (gettimeofday): Add code for the case
70578         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70579         maximum possible value for tv->tv_usec, rather than the minimum one.
70580
70581 2005-10-08  Martin Lambers  <marlam@marlam.de>
70582 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70583 2007-01-16  Bruno Haible  <bruno@clisp.org>
70584
70585         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70586         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70587         gl_FUNC_GETTIMEOFDAY.
70588         (Include): Add gettimeofday.h.
70589         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70590         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70591         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70592         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70593         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70594         * lib/gettimeofday.h: New file.
70595         * lib/gettimeofday.c: Include <sys/timeb.h>.
70596         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70597         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70598         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70599         fall back on time().
70600
70601         * tests/test-gettimeofday.c: New file.
70602         * modules/gettimeofday-tests: New file.
70603
70604 2007-01-16  Eric Blake  <ebb9@byu.net>
70605
70606         * modules/fnmatch (Depends-on): Depend on wchar.
70607         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70608         * m4/fnmatch.m4: Likewise.
70609         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70610         * m4/mbchar.m4: Likewise.
70611         * modules/mbswidth (Depends-on): Depend on wchar.
70612         * lib/mbswidth.c: Assume <wchar.h>.
70613         * m4/mbswidth.m4: Likewise.
70614         * modules/quotearg (Depends-on): Depend on wchar.
70615         * lib/quotearg.c: Assume <wchar.h>.
70616         * m4/quotearg.m4: Likewise.
70617         * modules/regex (Depends-on): Depend on wchar.
70618         * lib/regex_internal.h: Assume <wchar.h>.
70619         * m4/regex.m4: Likewise.
70620         * modules/stdint (Depends-on): Depend on wchar.
70621         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70622         * m4/stdint.m4: Likewise.
70623         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70624         * modules/strftime (Depends-on): Depend on wchar.
70625         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70626         * modules/strtol (Depends-on): Depend on wchar.
70627         * lib/strtol.c: Assume <wchar.h>.
70628         * modules/wcwidth (Depends-on): Depend on wchar.
70629         * lib/wcwidth.h: Assume <wchar.h>.
70630         * m4/wcwidth.m4: Likewise.
70631
70632 2007-01-16  Bruno Haible  <bruno@clisp.org>
70633
70634         * modules/csharpexec-script: New, created from...
70635         * modules/csharpexec: ... this.
70636
70637 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70638
70639         * modules/javaexec-script: New, created from...
70640         * modules/javaexec: ... this.
70641
70642 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70643
70644         * modules/poll (Dependencies): Add sys_select.
70645
70646 2007-01-15  Jim Meyering  <jim@meyering.net>
70647
70648         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70649         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70650         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70651         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70652
70653 2007-01-15  Bruno Haible  <bruno@clisp.org>
70654
70655         * modules/striconveh: New file.
70656         * lib/striconveh.h: New file.
70657         * lib/striconveh.c: New file.
70658         * MODULES.html.sh (Internationalization functions): Add striconveh.
70659
70660         * modules/striconveh-tests: New file.
70661         * tests/test-striconveh.c: New file.
70662
70663 2007-01-15  Bruno Haible  <bruno@clisp.org>
70664
70665         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70666         not from GNU libiconv or GNU libc.
70667
70668 2007-01-15  Bruno Haible  <bruno@clisp.org>
70669
70670         * doc/gnulib-intro.texi (Copyright): Explain the different license
70671         terms for module descriptions, autoconf macros, tests, documentation.
70672
70673 2007-01-14  Bruno Haible  <bruno@clisp.org>
70674
70675         * modules/striconv-tests: New file.
70676         * tests/test-striconv.c: New file.
70677
70678 2007-01-14  Bruno Haible  <bruno@clisp.org>
70679
70680         * modules/iconv-tests: New file.
70681         * tests/test-iconv.c: New file.
70682
70683 2007-01-14  Bruno Haible  <bruno@clisp.org>
70684
70685         * gnulib-tool (func_get_license): For test modules, use the license of
70686         the main module.
70687
70688 2007-01-14  Bruno Haible  <bruno@clisp.org>
70689
70690         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70691         if iconv is found to exist.
70692
70693 2007-01-14  Bruno Haible  <bruno@clisp.org>
70694
70695         * modules/c-ctype-tests: New file.
70696         * tests/test-c-ctype.c: New file.
70697
70698 2007-01-14  Bruno Haible  <bruno@clisp.org>
70699
70700         * modules/binary-io-tests: New file.
70701         * tests/test-binary-io.sh: New file.
70702         * tests/test-binary-io.c: New file.
70703
70704 2007-01-14  Bruno Haible  <bruno@clisp.org>
70705
70706         * modules/array-oset-tests: New file.
70707         * tests/test-array_oset.c: New file.
70708
70709 2007-01-14  Bruno Haible  <bruno@clisp.org>
70710
70711         * modules/array-list-tests: New file.
70712         * tests/test-array_list.c: New file.
70713
70714 2007-01-14  Bruno Haible  <bruno@clisp.org>
70715
70716         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70717         and make.
70718         Reported by Simon Josefsson in
70719         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70720
70721 2007-01-14  Bruno Haible  <bruno@clisp.org>
70722
70723         * modules/allocsa-tests: New file.
70724         * tests/test-allocsa.c: New file.
70725
70726 2007-01-14  Bruno Haible  <bruno@clisp.org>
70727
70728         * modules/fchdir (Depends-on): Add absolute-header.
70729         * modules/unistd (Depends-on): Likewise.
70730
70731 2006-12-30  Bruno Haible  <bruno@clisp.org>
70732
70733         * modules/fchdir: New file.
70734         * modules/unistd (Files): Add lib/unistd_.h.
70735         (Makefile.am): Generate unistd.h from unistd_.h.
70736         * lib/fchdir.c: New file.
70737         * lib/dirent_.h: New file.
70738         * lib/unistd_.h: New file.
70739         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70740         * m4/fchdir.m4: New file.
70741         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70742         (gl_HEADER_UNISTD): Invoke it.
70743         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70744         function.
70745         * lib/backupfile.c (opendir, closedir): Undefine.
70746         * lib/chown.c (open, close): Undefine.
70747         * lib/clean-temp.c (open, close): Undefine.
70748         * lib/copy-file.c (open, close): Undefine.
70749         * lib/execute.c (open, close): Undefine.
70750         * lib/fsusage.c (open, close): Undefine.
70751         * lib/gc-gnulib.c (open, close): Undefine.
70752         * lib/getcwd.c (opendir, closedir): Undefine.
70753         * lib/glob.c (opendir, closedir): Undefine.
70754         * lib/javacomp.c (open, close): Undefine.
70755         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70756         * lib/openat-proc.c (open, close): Undefine.
70757         * lib/pagealign_alloc.c (open, close): Undefine.
70758         * lib/pipe.c (open, close): Undefine.
70759         * lib/progreloc.c (open, close): Undefine.
70760         * lib/savedir.c (opendir, closedir): Undefine.
70761         * lib/utime.c (open, close): Undefine.
70762         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70763
70764 2007-01-10  Bruno Haible  <bruno@clisp.org>
70765
70766         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70767
70768 2007-01-12  Eric Blake  <ebb9@byu.net>
70769
70770         Provide a robust <wchar.h>.  Further simplifications are now
70771         possible in other modules, but not included here.
70772         * modules/wchar: New module.
70773         * m4/wchar.m4: New file.
70774         * lib/wchar_.h: Likewise.
70775         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70776         of the new module.
70777         * MODULES.html.sh (Extended multibyte and wide character utilities):
70778         New section.
70779
70780 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70783         to a reasonable default for memory allocation.
70784         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70785         file system that reports garbage st_size values for symlinks.
70786         Problem reported by Liyang Hu.
70787
70788 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70789
70790         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70791         Emacs .#* auto-save files).
70792
70793 2007-01-11  Bruno Haible  <bruno@clisp.org>
70794
70795         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70796         directory.
70797
70798 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70799
70800         Use @...@ consistently in lib/wctype_.h.
70801         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70802         on it being set to 1 or 0.
70803         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70804         go back to AC_SUBSTing it.
70805         * modules/wctype (Makefile.am): Undo previous change.
70806
70807 2007-01-10  Eric Blake  <ebb9@byu.net>
70808
70809         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70810         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70811         * modules/wctype (Makefile.am): Likewise.
70812         Reported by Chris McGuire.
70813
70814 2007-01-10  Jim Meyering  <jim@meyering.net>
70815
70816         fts.c: a small readability/maintainability improvement
70817         * lib/fts.c (fts_read): Make this code slightly more readable and
70818         maintainable by hoisting the "sp->fts_cur = p" assignments to
70819         immediately follow the statements that set P.  Derived from
70820         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70821
70822 2007-01-10  Eric Blake  <ebb9@byu.net>
70823
70824         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70825         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70827         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70828         Reported by Chris McGuire.
70829
70830 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70831
70832         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70833         in sed script.
70834
70835 2007-01-09  Bruno Haible  <bruno@clisp.org>
70836
70837         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70838         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70839         variables.
70840         (func_module): Use them.
70841
70842 2007-01-09  Bruno Haible  <bruno@clisp.org>
70843
70844         * modules/unistr/base: New file.
70845         * lib/unistr.h: New file.
70846
70847         * modules/unistr/u8-to-u16: New file.
70848         * lib/unistr/u8-to-u16.c: New file.
70849
70850         * modules/unistr/u8-to-u32: New file.
70851         * lib/unistr/u8-to-u32.c: New file.
70852
70853         * modules/unistr/u16-to-u8: New file.
70854         * lib/unistr/u16-to-u8.c: New file.
70855
70856         * modules/unistr/u16-to-u32: New file.
70857         * lib/unistr/u16-to-u32.c: New file.
70858
70859         * modules/unistr/u32-to-u8: New file.
70860         * lib/unistr/u32-to-u8.c: New file.
70861
70862         * modules/unistr/u32-to-u16: New file.
70863         * lib/unistr/u32-to-u16.c: New file.
70864
70865         * modules/unistr/u8-check: New file.
70866         * modules/unistr/u16-check: New file.
70867         * modules/unistr/u32-check: New file.
70868         * lib/unistr/u8-check.c: New file.
70869         * lib/unistr/u16-check.c: New file.
70870         * lib/unistr/u32-check.c: New file.
70871
70872         * modules/unistr/u8-chr: New file.
70873         * modules/unistr/u16-chr: New file.
70874         * modules/unistr/u32-chr: New file.
70875         * lib/unistr/u8-chr.c: New file.
70876         * lib/unistr/u16-chr.c: New file.
70877         * lib/unistr/u32-chr.c: New file.
70878
70879         * modules/unistr/u8-cmp: New file.
70880         * modules/unistr/u16-cmp: New file.
70881         * modules/unistr/u32-cmp: New file.
70882         * lib/unistr/u8-cmp.c: New file.
70883         * lib/unistr/u16-cmp.c: New file.
70884         * lib/unistr/u32-cmp.c: New file.
70885
70886         * modules/unistr/u8-cpy: New file.
70887         * modules/unistr/u16-cpy: New file.
70888         * modules/unistr/u32-cpy: New file.
70889         * lib/unistr/u8-cpy.c: New file.
70890         * lib/unistr/u16-cpy.c: New file.
70891         * lib/unistr/u32-cpy.c: New file.
70892         * lib/unistr/u-cpy.h: New file.
70893
70894         * modules/unistr/u8-cpy-alloc: New file.
70895         * modules/unistr/u16-cpy-alloc: New file.
70896         * modules/unistr/u32-cpy-alloc: New file.
70897         * lib/unistr/u8-cpy-alloc.c: New file.
70898         * lib/unistr/u16-cpy-alloc.c: New file.
70899         * lib/unistr/u32-cpy-alloc.c: New file.
70900         * lib/unistr/u-cpy-alloc.h: New file.
70901
70902         * modules/unistr/u8-endswith: New file.
70903         * modules/unistr/u16-endswith: New file.
70904         * modules/unistr/u32-endswith: New file.
70905         * lib/unistr/u8-endswith.c: New file.
70906         * lib/unistr/u16-endswith.c: New file.
70907         * lib/unistr/u32-endswith.c: New file.
70908         * lib/unistr/u-endswith.h: New file.
70909
70910         * modules/unistr/u8-mblen: New file.
70911         * modules/unistr/u16-mblen: New file.
70912         * modules/unistr/u32-mblen: New file.
70913         * lib/unistr/u8-mblen.c: New file.
70914         * lib/unistr/u16-mblen.c: New file.
70915         * lib/unistr/u32-mblen.c: New file.
70916
70917         * modules/unistr/u8-mbtouc: New file.
70918         * modules/unistr/u16-mbtouc: New file.
70919         * modules/unistr/u32-mbtouc: New file.
70920         * lib/unistr/u8-mbtouc.c: New file.
70921         * lib/unistr/u16-mbtouc.c: New file.
70922         * lib/unistr/u32-mbtouc.c: New file.
70923
70924         * modules/unistr/u8-mbtouc-safe: New file.
70925         * modules/unistr/u16-mbtouc-safe: New file.
70926         * modules/unistr/u32-mbtouc-safe: New file.
70927         * lib/unistr/u8-mbtouc-safe.c: New file.
70928         * lib/unistr/u16-mbtouc-safe.c: New file.
70929         * lib/unistr/u32-mbtouc-safe.c: New file.
70930
70931         * modules/unistr/u8-move: New file.
70932         * modules/unistr/u16-move: New file.
70933         * modules/unistr/u32-move: New file.
70934         * lib/unistr/u8-move.c: New file.
70935         * lib/unistr/u16-move.c: New file.
70936         * lib/unistr/u32-move.c: New file.
70937         * lib/unistr/u-move.h: New file.
70938
70939         * modules/unistr/u8-next: New file.
70940         * modules/unistr/u16-next: New file.
70941         * modules/unistr/u32-next: New file.
70942         * lib/unistr/u8-next.c: New file.
70943         * lib/unistr/u16-next.c: New file.
70944         * lib/unistr/u32-next.c: New file.
70945
70946         * modules/unistr/u8-prev: New file.
70947         * modules/unistr/u16-prev: New file.
70948         * modules/unistr/u32-prev: New file.
70949         * lib/unistr/u8-prev.c: New file.
70950         * lib/unistr/u16-prev.c: New file.
70951         * lib/unistr/u32-prev.c: New file.
70952
70953         * modules/unistr/u8-set: New file.
70954         * modules/unistr/u16-set: New file.
70955         * modules/unistr/u32-set: New file.
70956         * lib/unistr/u8-set.c: New file.
70957         * lib/unistr/u16-set.c: New file.
70958         * lib/unistr/u32-set.c: New file.
70959         * lib/unistr/u-set.h: New file.
70960
70961         * modules/unistr/u8-startswith: New file.
70962         * modules/unistr/u16-startswith: New file.
70963         * modules/unistr/u32-startswith: New file.
70964         * lib/unistr/u8-startswith.c: New file.
70965         * lib/unistr/u16-startswith.c: New file.
70966         * lib/unistr/u32-startswith.c: New file.
70967         * lib/unistr/u-startswith.h: New file.
70968
70969         * modules/unistr/u8-stpcpy: New file.
70970         * modules/unistr/u16-stpcpy: New file.
70971         * modules/unistr/u32-stpcpy: New file.
70972         * lib/unistr/u8-stpcpy.c: New file.
70973         * lib/unistr/u16-stpcpy.c: New file.
70974         * lib/unistr/u32-stpcpy.c: New file.
70975         * lib/unistr/u-stpcpy.h: New file.
70976
70977         * modules/unistr/u8-stpncpy: New file.
70978         * modules/unistr/u16-stpncpy: New file.
70979         * modules/unistr/u32-stpncpy: New file.
70980         * lib/unistr/u8-stpncpy.c: New file.
70981         * lib/unistr/u16-stpncpy.c: New file.
70982         * lib/unistr/u32-stpncpy.c: New file.
70983         * lib/unistr/u-stpncpy.h: New file.
70984
70985         * modules/unistr/u8-strcat: New file.
70986         * modules/unistr/u16-strcat: New file.
70987         * modules/unistr/u32-strcat: New file.
70988         * lib/unistr/u8-strcat.c: New file.
70989         * lib/unistr/u16-strcat.c: New file.
70990         * lib/unistr/u32-strcat.c: New file.
70991         * lib/unistr/u-strcat.h: New file.
70992
70993         * modules/unistr/u8-strchr: New file.
70994         * modules/unistr/u16-strchr: New file.
70995         * modules/unistr/u32-strchr: New file.
70996         * lib/unistr/u8-strchr.c: New file.
70997         * lib/unistr/u16-strchr.c: New file.
70998         * lib/unistr/u32-strchr.c: New file.
70999
71000         * modules/unistr/u8-strcmp: New file.
71001         * modules/unistr/u16-strcmp: New file.
71002         * modules/unistr/u32-strcmp: New file.
71003         * lib/unistr/u8-strcmp.c: New file.
71004         * lib/unistr/u16-strcmp.c: New file.
71005         * lib/unistr/u32-strcmp.c: New file.
71006
71007         * modules/unistr/u8-strcpy: New file.
71008         * modules/unistr/u16-strcpy: New file.
71009         * modules/unistr/u32-strcpy: New file.
71010         * lib/unistr/u8-strcpy.c: New file.
71011         * lib/unistr/u16-strcpy.c: New file.
71012         * lib/unistr/u32-strcpy.c: New file.
71013         * lib/unistr/u-strcpy.h: New file.
71014
71015         * modules/unistr/u8-strcspn: New file.
71016         * modules/unistr/u16-strcspn: New file.
71017         * modules/unistr/u32-strcspn: New file.
71018         * lib/unistr/u8-strcspn.c: New file.
71019         * lib/unistr/u16-strcspn.c: New file.
71020         * lib/unistr/u32-strcspn.c: New file.
71021         * lib/unistr/u-strcspn.h: New file.
71022
71023         * modules/unistr/u8-strdup: New file.
71024         * modules/unistr/u16-strdup: New file.
71025         * modules/unistr/u32-strdup: New file.
71026         * lib/unistr/u8-strdup.c: New file.
71027         * lib/unistr/u16-strdup.c: New file.
71028         * lib/unistr/u32-strdup.c: New file.
71029         * lib/unistr/u-strdup.h: New file.
71030
71031         * modules/unistr/u8-strlen: New file.
71032         * modules/unistr/u16-strlen: New file.
71033         * modules/unistr/u32-strlen: New file.
71034         * lib/unistr/u8-strlen.c: New file.
71035         * lib/unistr/u16-strlen.c: New file.
71036         * lib/unistr/u32-strlen.c: New file.
71037         * lib/unistr/u-strlen.h: New file.
71038
71039         * modules/unistr/u8-strmblen: New file.
71040         * modules/unistr/u16-strmblen: New file.
71041         * modules/unistr/u32-strmblen: New file.
71042         * lib/unistr/u8-strmblen.c: New file.
71043         * lib/unistr/u16-strmblen.c: New file.
71044         * lib/unistr/u32-strmblen.c: New file.
71045
71046         * modules/unistr/u8-strmbtouc: New file.
71047         * modules/unistr/u16-strmbtouc: New file.
71048         * modules/unistr/u32-strmbtouc: New file.
71049         * lib/unistr/u8-strmbtouc.c: New file.
71050         * lib/unistr/u16-strmbtouc.c: New file.
71051         * lib/unistr/u32-strmbtouc.c: New file.
71052
71053         * modules/unistr/u8-strncat: New file.
71054         * modules/unistr/u16-strncat: New file.
71055         * modules/unistr/u32-strncat: New file.
71056         * lib/unistr/u8-strncat.c: New file.
71057         * lib/unistr/u16-strncat.c: New file.
71058         * lib/unistr/u32-strncat.c: New file.
71059         * lib/unistr/u-strncat.h: New file.
71060
71061         * modules/unistr/u8-strncmp: New file.
71062         * modules/unistr/u16-strncmp: New file.
71063         * modules/unistr/u32-strncmp: New file.
71064         * lib/unistr/u8-strncmp.c: New file.
71065         * lib/unistr/u16-strncmp.c: New file.
71066         * lib/unistr/u32-strncmp.c: New file.
71067
71068         * modules/unistr/u8-strncpy: New file.
71069         * modules/unistr/u16-strncpy: New file.
71070         * modules/unistr/u32-strncpy: New file.
71071         * lib/unistr/u8-strncpy.c: New file.
71072         * lib/unistr/u16-strncpy.c: New file.
71073         * lib/unistr/u32-strncpy.c: New file.
71074         * lib/unistr/u-strncpy.h: New file.
71075
71076         * modules/unistr/u8-strnlen: New file.
71077         * modules/unistr/u16-strnlen: New file.
71078         * modules/unistr/u32-strnlen: New file.
71079         * lib/unistr/u8-strnlen.c: New file.
71080         * lib/unistr/u16-strnlen.c: New file.
71081         * lib/unistr/u32-strnlen.c: New file.
71082         * lib/unistr/u-strnlen.h: New file.
71083
71084         * modules/unistr/u8-strpbrk: New file.
71085         * modules/unistr/u16-strpbrk: New file.
71086         * modules/unistr/u32-strpbrk: New file.
71087         * lib/unistr/u8-strpbrk.c: New file.
71088         * lib/unistr/u16-strpbrk.c: New file.
71089         * lib/unistr/u32-strpbrk.c: New file.
71090         * lib/unistr/u-strpbrk.h: New file.
71091
71092         * modules/unistr/u8-strrchr: New file.
71093         * modules/unistr/u16-strrchr: New file.
71094         * modules/unistr/u32-strrchr: New file.
71095         * lib/unistr/u8-strrchr.c: New file.
71096         * lib/unistr/u16-strrchr.c: New file.
71097         * lib/unistr/u32-strrchr.c: New file.
71098
71099         * modules/unistr/u8-strspn: New file.
71100         * modules/unistr/u16-strspn: New file.
71101         * modules/unistr/u32-strspn: New file.
71102         * lib/unistr/u8-strspn.c: New file.
71103         * lib/unistr/u16-strspn.c: New file.
71104         * lib/unistr/u32-strspn.c: New file.
71105         * lib/unistr/u-strspn.h: New file.
71106
71107         * modules/unistr/u8-strstr: New file.
71108         * modules/unistr/u16-strstr: New file.
71109         * modules/unistr/u32-strstr: New file.
71110         * lib/unistr/u8-strstr.c: New file.
71111         * lib/unistr/u16-strstr.c: New file.
71112         * lib/unistr/u32-strstr.c: New file.
71113         * lib/unistr/u-strstr.h: New file.
71114
71115         * modules/unistr/u8-strtok: New file.
71116         * modules/unistr/u16-strtok: New file.
71117         * modules/unistr/u32-strtok: New file.
71118         * lib/unistr/u8-strtok.c: New file.
71119         * lib/unistr/u16-strtok.c: New file.
71120         * lib/unistr/u32-strtok.c: New file.
71121         * lib/unistr/u-strtok.h: New file.
71122
71123         * modules/unistr/u8-uctomb: New file.
71124         * modules/unistr/u16-uctomb: New file.
71125         * modules/unistr/u32-uctomb: New file.
71126         * lib/unistr/u8-uctomb.c: New file.
71127         * lib/unistr/u16-uctomb.c: New file.
71128         * lib/unistr/u32-uctomb.c: New file.
71129
71130         * MODULES.html.sh (Unicode string functions): Add the new modules.
71131
71132 2007-01-08  Bruno Haible  <bruno@clisp.org>
71133
71134         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71135         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71136         subdirectories.
71137
71138 2007-01-08  Karl Berry  <karl@gnu.org>
71139
71140         * doc/error.texi: mention that main() fns must set program_name
71141         when progname is used.
71142
71143 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71144
71145         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71146         WCTYPE_H is empty, for the benefit of builds from non-distclean
71147         directories.  Problem reported by Eric Blake in
71148         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71149
71150 2007-01-08  Bruno Haible  <bruno@clisp.org>
71151
71152         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71153         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71154         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71155         PROVIDE_CANONICALIZE_FILENAME_MODE.
71156         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71157
71158 2007-01-08  Bruno Haible  <bruno@clisp.org>
71159
71160         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71161         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71162         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71163         * lib/fts.c: Likewise.
71164         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71165
71166 2006-12-25  Bruno Haible  <bruno@clisp.org>
71167
71168         * modules/utf8-ucs4-safe: New file.
71169         * lib/utf8-ucs4-safe.h: New file.
71170         * lib/unistr/utf8-ucs4-safe.c: New file.
71171
71172         * modules/utf16-ucs4-safe: New file.
71173         * lib/utf16-ucs4-safe.h: New file.
71174         * lib/unistr/utf16-ucs4-safe.c: New file.
71175
71176         * MODULES.html.sh (Unicode string functions): Add the new modules.
71177
71178 2007-01-08  Bruno Haible  <bruno@clisp.org>
71179
71180         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71181         (Depends-on): Add unitypes.
71182         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71183         (u8_mbtouc_aux): Move out to separate file.
71184         (u8_mbtouc): Use ucs4_t, uint8_t types.
71185         * lib/unistr/utf8-ucs4.c: New file.
71186
71187         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71188         (Depends-on): Add unitypes.
71189         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71190         (u16_mbtouc_aux): Move out to separate file.
71191         (u16_mbtouc): Use ucs4_t, uint16_t types.
71192         * lib/unistr/utf16-ucs4.c: New file.
71193
71194         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71195         (Depends-on): Add unitypes.
71196         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71197         (u8_uctomb_aux): Move out to separate file.
71198         (u8_uctomb): Use ucs4_t, uint8_t types.
71199         * lib/unistr/ucs4-utf8.c: New file.
71200
71201         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71202         (Depends-on): Add unitypes.
71203         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71204         (u16_uctomb_aux): Move out to separate file.
71205         (u16_uctomb): Use ucs4_t, uint16_t types.
71206         * lib/unistr/ucs4-utf16.c: New file.
71207
71208 2006-12-25  Bruno Haible  <bruno@clisp.org>
71209
71210         * modules/unitypes: New file.
71211         * lib/unitypes.h: New file.
71212         * MODULES.html.sh (func_all_modules): New section "Unicode string
71213         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71214         this section. Add unitypes.
71215
71216 2007-01-08  Bruno Haible  <bruno@clisp.org>
71217
71218         Avoid variable names that conflict with those from libtool.
71219         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71220         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71221         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71222         library_names_spec to acl_library_names_spec, hardcode_* to
71223         acl_hardcode_*.
71224         Reported by Ralf Wildenhues.
71225
71226 2007-01-08  Bruno Haible  <bruno@clisp.org>
71227
71228         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71229         definition.
71230         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71231         definition.
71232         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71233         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71234         definition.
71235         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71236         definition.
71237         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71238         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71239         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71240         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71241         definition.
71242         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71243         definition.
71244         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71245         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71246         GC_USE_<algorithm>.
71247         * lib/gc-libgcrypt.c: Likewise.
71248         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71249         * modules/gc-arctwo (configure.ac): Likewise.
71250         * modules/gc-des (configure.ac): Likewise.
71251         * modules/gc-hmac-md5 (configure.ac): Likewise.
71252         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71253         * modules/gc-md2 (configure.ac): Likewise.
71254         * modules/gc-md4 (configure.ac): Likewise.
71255         * modules/gc-md5 (configure.ac): Likewise.
71256         * modules/gc-random (configure.ac): Likewise.
71257         * modules/gc-rijndael (configure.ac): Likewise.
71258         * modules/gc-sha1 (configure.ac): Likewise.
71259
71260 2007-01-08  Bruno Haible  <bruno@clisp.org>
71261
71262         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71263         macro definition.
71264         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71265         definition.
71266         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71267         definition.
71268         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71269         * modules/fcntl-safer (configure.ac): Likewise.
71270         * modules/fopen-safer (configure.ac): Likewise.
71271         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71272         GNULIB_FWRITEERROR macro definition.
71273
71274 2007-01-08  Bruno Haible  <bruno@clisp.org>
71275
71276         * m4/gnulib-common.m4: New file.
71277         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71278         (func_get_filelist): Add m4/gnulib-common.m4.
71279
71280 2007-01-08  Bruno Haible  <bruno@clisp.org>
71281
71282         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71283         command.
71284
71285 2007-01-08  Jim Meyering  <jim@meyering.net>
71286
71287         Use a more robust test for a "can't happen" condition.
71288         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71289         narrowed the st_size value.  Presuming the "can't happen" condition
71290         is true, that narrowing could conceivably convert an invalid st_size
71291         value into a valid one.  Instead, use a change based on Matthew
71292         Woehlke's original patch.
71293
71294         Slight readability improvement: use an assert-like macro
71295         in place of literal "abort ()" uses.
71296         * lib/fts.c (fts_assert): Define.
71297         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71298         Use this macro instead of a bare 'abort'.
71299
71300 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71303         simply work around them.
71304         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71305         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71306         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71307         declaring.
71308         Don't bother to define as macros, since the standard doesn't require it.
71309         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71310         longer worry about IRIX 5.3.
71311         (HAVE_WCTYPE_CTMP_BUG): Remove.
71312
71313 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71316         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71317         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71318         Problems reported by Georg Schwarz for IRIX 5.3.
71319
71320         * gnulib-tool (autoconf_minversion): Take the maximum version number
71321         found, not the minimum.  Problem reported by James Youngman.
71322
71323 2007-01-03  Karl Berry  <karl@gnu.org>
71324
71325         * doc/error.texi: new file, explaining interaction with progname.
71326         * doc/gnulib.texi: include it.  Update copyright.
71327
71328 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71329
71330         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71331         AC_CANONICAL_HOST, to improve autobuild outputs.
71332
71333 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71334             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71335
71336         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71337         sockets, server sockets, and other file descriptors.  Count errors
71338         to compute the return value.  Reorder the code a bit to be easier
71339         to follow.  Don't set event bits that were not requested (except
71340         POLLERR and POLLHUP).
71341
71342 2007-01-01  Bruno Haible  <bruno@clisp.org>
71343
71344         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71345
71346 2007-01-03  Jim Meyering  <jim@meyering.net>
71347
71348         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71349
71350 2007-01-02  Bruno Haible  <bruno@clisp.org>
71351
71352         * modules/settime (Include): Require timespec.h.
71353         * modules/nanosleep (Include): Likewise.
71354
71355 2007-01-01  Bruno Haible  <bruno@clisp.org>
71356
71357         * gnulib-tool (func_emit_copyright_notice): Bump year.
71358         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71359
71360 2007-01-01  Bruno Haible  <bruno@clisp.org>
71361
71362         Improve support for OpenBSD.
71363         * build-aux/config.rpath (libname_spec): Export.
71364         (library_names_spec): New variable. Export.
71365         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71366         library_names_spec from the config.rpath output. Locate shared library
71367         through the name pattern in library_names_spec.
71368
71369 2007-01-01  Eric Blake  <ebb9@byu.net>
71370
71371         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71372
71373 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71374
71375         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71376         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71377         assume the C locale, and avoid an "eval" that could cause trouble.
71378         Problem with SORT reported by Bob Proulx.
71379
71380         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71381         Define.  Trivial patch from Henning Nielsen Lund, originally
71382         sent to bug-grep@gnu.org today.
71383
71384 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71385
71386         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71387         struct stat.  Problem reported by Henning Nielsen Lund.
71388         * lib/acl.c: Include acl.h first, to check interface.  Don't
71389         bother to include sys/types.h and sys/stat.h again.
71390
71391 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71392
71393         Import the following change from libc; problem reported by
71394         Sven Verdoolaege.
71395
71396         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71397
71398         [BZ #1373]
71399         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71400
71401 2006-12-28  Jim Meyering  <jim@meyering.net>
71402
71403         * build-aux/announce-gen: Do not assume that the package
71404         builds any of tar.gz, tar.bz2, and .xdelta files.
71405         Suggestion from Simon Josefsson.
71406
71407 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71408
71409         * modules/announce-gen: New file.
71410
71411 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71414         handles its gotchas now.
71415         * lib/mbswidth.c: Likewise.
71416         * lib/wcwidth.h: Likewise.
71417         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71418         and iswcntrl; the wctype module does this stuff now.
71419         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71421         * modules/mbchar (Depends-on): Add wctype.
71422         * modules/mbswidth (Depends-on): Likewise.
71423         * modules/wcwidth (Depends-on): Likewise.
71424
71425 2006-12-27  Eric Blake  <ebb9@byu.net>
71426
71427         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71428         module uses more than what <wctype.h> is required to provide.
71429
71430 2006-12-26  Eric Blake  <ebb9@byu.net>
71431
71432         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71433
71434 2006-12-26  Eric Blake  <ebb9@byu.net>
71435
71436         * modules/absolute-header: New module.
71437         * modules/fcntl (Depends-on): Depend on it.
71438         * modules/inttypes (Depends-on): Likewise.
71439         * modules/stdint (Depends-on): Likewise.
71440         * modules/sys_stat (Depends-on): Likewise.
71441         * modules/wctype (Depends-on): Likewise.
71442         * MODULES.html.sh (Support for building libraries and
71443         executables): Document it.
71444
71445 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71446
71447         * gnulib-tool (SED): Remove, undoing previous change.
71448         The problem was that it broke coreutils on Solaris, because
71449         "sed --posix" leaked into a makefile.
71450         (sed): New alias, if 'alias' and GNU sed.
71451
71452 2006-12-24  Jim Meyering  <jim@meyering.net>
71453
71454         Work around an fchownat bug in glibc-2.4:
71455         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71456         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71457         in spite of the -P option.
71458         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71459         New macros.
71460         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71461         * modules/openat (Files): Add lib/fchownat.c.
71462         * lib/openat.c (fchownat): Don't define here.  Move to...
71463         * lib/fchownat.c: ...this new file.
71464
71465 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71466
71467         Fix bug reported by Bruno Haible in
71468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71469         where quotearg.c didn't compile on Mac OS X 10.2 because it
71470         lacks <wchar.h> and wint_t.
71471         * lib/wctype_.h (__wctype_wint_t): New type.
71472         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71473         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71474         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71475         Arg is now of type __wctype_wint_t, not wint_t.
71476         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71477         substitute HAVE_WINT_T.
71478         * modules/wctype (Files): Add m4/wint_t.m4.
71479         (wctype.h): Substitute HAVE_WINT_T.
71480
71481 2006-12-23  Bruno Haible  <bruno@clisp.org>
71482
71483         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71484
71485 2006-12-23  Bruno Haible  <bruno@clisp.org>
71486
71487         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71488         S_ISLNK.
71489         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71490         mingw.
71491
71492 2006-12-22  Bruno Haible  <bruno@clisp.org>
71493
71494         * lib/copy-file.c: Include acl.h.
71495         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71496         Close the file descriptors only after being done with copy_acl.
71497         * modules/copy-file (Depends-on): Add acl.
71498
71499 2006-12-22  Bruno Haible  <bruno@clisp.org>
71500
71501         * gnulib-tool (SED): New variable.
71502         Use $SED instead of sed everywhere.
71503
71504 2006-12-22  Bruno Haible  <bruno@clisp.org>
71505
71506         * modules/no-c++: New file.
71507         * m4/no-c++.m4: New file.
71508         * MODULES.html.sh (Support for building libraries and executables):
71509         Add no-c++.
71510
71511 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71512
71513         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71514         Include <limits.h>, and use its INT_MAX to rewrite the
71515         j loop so that it does not overflow 'int'.  Problem reported by
71516         Ralf Wildenhues in
71517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71518         Play it safe by shifting left by 1 rather than multiplying by 2,
71519         as GCC is less likely to optimize this away when the value
71520         is signed (when it assumes overflow leads to undefined behavior).
71521         Also, don't assume time_t uses two's complement.
71522
71523 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71524
71525         * MODULES.html.sh: New module wctype.
71526         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71527         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71528         <wctype.h>, since the new wctype module should fix this.
71529         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71530         the wctype module should arrange for it.
71531         * lib/regex_internal.h: Likewise.
71532         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71533         since the wctype module should handle this now.
71534         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71535         * modules/fnmatch (Depends-on): Add wctype.
71536         * modules/quotearg (Depends-on): Likewise.
71537         * modules/regex (Depends-on): Likewise.
71538
71539 2006-12-19  Bruno Haible  <bruno@clisp.org>
71540
71541         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71542         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71543
71544 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71545
71546         * modules/savewd (Depends-on): Fix dependency on fcntl.
71547
71548 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71551         conforms to C99, rather than relying on the user's environment
71552         setting of STDINT_H.
71553
71554 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71555         and Eric Blake  <ebb9@byu.net>
71556
71557         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71558         This is more consistent with the other defines here.
71559         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71560         Port to z/OS.  Problem reported by Paul Gilmartin.
71561         Change local vars to use gl_ prefix rather than ac_.
71562         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71563         with other defines.
71564         * modules/double-slash-root: New module.
71565         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71566         (Depends-on): Add double-slash-root.
71567         * MODULES.html.sh (File system functions): Mention new module.
71568
71569 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71570
71571         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71572         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71573         This is for the benefit of gzip, which doesn't do i18n.
71574
71575 2006-12-12  Jim Meyering  <jim@meyering.net>
71576
71577         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71578         Reported by Andreas Schwab <schwab@suse.de>.
71579
71580 2006-12-12  Bruno Haible  <bruno@clisp.org>
71581
71582         Merge these changes.
71583         2006-09-05  Bruno Haible  <bruno@clisp.org>
71584         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71585         iconv_alloc succeeded.
71586         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71587         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71588         test for " && dest " at the end - dest is always != NULL there. Call
71589         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71590         with 2xNULL arguments, also to flush the state storage. Handle the
71591         IRIX iconv behaviour. Realloc the final result, to throw away unused
71592         memory.
71593
71594 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71595
71596         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71597         and fchmodat unconditionally, since glibc 2.4 has them.
71598         Problem reported by Arkadiusz Miskiewicz.
71599
71600 2006-12-10  Bruno Haible  <bruno@clisp.org>
71601
71602         * gnulib-tool (func_import): Show the include files only for those
71603         modules that are copied and specified.
71604         Reported by Karl Berry.
71605
71606 2006-12-08  Jim Meyering  <jim@meyering.net>
71607
71608         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71609         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71610
71611         * build-aux/announce-gen: Add two new options, both optional:
71612         --bootstrap-tools=TOOL_LIST
71613               a comma-separated list of tools, e.g.,
71614               autoconf,automake,bison,gnulib
71615         --gnulib-snapshot-date=DATE
71616               if gnulib is in the bootstrap tool list,
71617               then report this as the snapshot date.
71618               If not specified, use the current date/time.
71619               If you specify a date here, be sure it's UTC.
71620
71621 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71622
71623         * tests/test-argp-2.sh: Fix test to match actual output.
71624         (func_compare): Fix sed script to be portable.
71625
71626 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71629         workaround for this case.  It is not autoconfigured now; offhand
71630         it's hard to see how to autoconfigure it.
71631
71632 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71633
71634         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71635         a directory that is about to be chowned.  Such a directory's
71636         initial file permissions should permit the owner only and this
71637         should not be changed until after the chown, since the group and
71638         other bits would be incorrect if they granted permission before
71639         the chown.
71640
71641         Fix porting problem for iswctype reported by Georg Schwarz in:
71642         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71643         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71644         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71645         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71646         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71647
71648 2006-12-03  Jim Meyering  <jim@meyering.net>
71649
71650         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71651         p->fts_statp may not yet be defined.
71652         (fts_read): Instead, set it in the caller, once p->fts_statp is
71653         sure to be defined, and corresponds to a top-level directory.
71654         This bug made du -x fail.  Here's the coreutils test case:
71655         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71656         Reported by Mike Frysinger.
71657
71658 2006-12-01  Jim Meyering  <jim@meyering.net>
71659
71660         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71661         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71662         Reported by Simon Josefsson.
71663
71664 2006-11-30  Jim Meyering  <jim@meyering.net>
71665
71666         * m4/warning.m4: Use the all-permissive copyright notice
71667         recommended by RMS (rather than LGPL).
71668         * m4/vararrays.m4: Likewise.
71669         * m4/flexmember.m4: Likewise.
71670
71671 2006-11-29  Bruno Haible  <bruno@clisp.org>
71672
71673         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71674         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71675         using +=.
71676         Reported by Simon Josefsson <simon@josefsson.org>.
71677
71678 2006-11-28  James Youngman <jay@gnu.org>
71679
71680         * README: Advise users that they might find the bug-gnulib@gnu.org
71681         and autotools-announce@gnu.org mailing lists useful.
71682
71683 2006-11-28  Bruno Haible  <bruno@clisp.org>
71684
71685         * m4/ptrdiff_max.m4: Remove file.
71686
71687 2006-11-21  Bruno Haible  <bruno@clisp.org>
71688
71689         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71690         _AC_COMPUTE_INT.
71691         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71692         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71693         _AC_COMPUTE_INT.
71694         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71695         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71696         _AC_COMPUTE_INT.
71697         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71698
71699 2006-11-28  Jim Meyering  <jim@meyering.net>
71700
71701         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71702         warning from "gcc -Wshadow" about shadowing the builtin.
71703
71704 2006-11-27  Bruno Haible  <bruno@clisp.org>
71705
71706         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71707         _AC_COMPUTE_INT.
71708         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71709
71710 2006-11-27  Bruno Haible  <bruno@clisp.org>
71711             Paul Eggert  <eggert@cs.ucla.edu>
71712
71713         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71714
71715 2006-11-26  Bruno Haible  <bruno@clisp.org>
71716
71717         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71718         noinst_LTLIBRARIES.
71719
71720 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71721             Bruno Haible  <bruno@clisp.org>
71722
71723         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71724         if compiling with "gcc -ansi".
71725
71726 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71727
71728         Fix some incompatibilities with gcc -ansi -pedantic.
71729         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71730         if compiling pedantically with GCC, unless it's C99 or later.
71731         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71732         it mishandles gcc -ansi -pedantic as well.
71733         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71734         if gcc -pedantic.
71735         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71736         initializers for struct if -pedantic, unless it's C99 or later.
71737
71738 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71739
71740         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71741         Don't close an fd more than once. Identical atimes indicate
71742         success, not failure.
71743
71744 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71745
71746         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71747
71748 2006-11-23  Jim Meyering  <jim@meyering.net>
71749
71750         * build-aux/announce-gen: New file.  From coreutils.
71751
71752 2006-11-22  Jim Meyering  <jim@meyering.net>
71753
71754         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71755         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71756         (fts_read): Use a temporary to narrow the overused st_size member
71757         before using it in a switch statement.  Reported by Matthew Woehlke.
71758
71759         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71760         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71761
71762 2006-11-20  Bruno Haible  <bruno@clisp.org>
71763
71764         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71765         changequote instead of pairs of brackets.
71766         Reported by Andreas Schwab <schwab@suse.de>.
71767
71768 2006-11-21  Jim Meyering  <jim@meyering.net>
71769
71770         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71771         so as to remain compatible with older compilers.
71772         Patch from Michael Deutschmann.
71773
71774 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71775
71776         * MODULES.html.sh (File system functions): Add openat.
71777
71778         * lib/openat.h (rpl_fstatat): New macro, if
71779         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71780         (fstatat): Define to rpl_fstatat under the same conditions,
71781         unless COMPILING_FSTATAT.
71782         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71783         seems to have the bug.
71784         * lib/fstatat.c: New file.
71785         * modules/openat (Files): Add it.
71786
71787 2006-11-20  Bruno Haible  <bruno@clisp.org>
71788
71789         * Makefile: New file.
71790
71791 2006-11-20  Jim Meyering  <jim@meyering.net>
71792
71793         The beginnings of syntax-related checks for gnulib.
71794         * lib/Makefile: New file.
71795         * lib/t-idcache: New script.  Ensure that the two halves of
71796         idcache.c stay in sync.
71797
71798         * lib/idcache.c: Adjust comments in user- and group- portions to
71799         be more accurate, and to be consistent with one another.
71800
71801 2006-11-20  Jim Meyering  <jim@meyering.net>
71802
71803         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71804         continue using the flexible array member (thus, this module performs
71805         half as many malloc calls), with the addition that...
71806         (getgroup, getuser): Consistently record a non-match via an empty
71807         "name" string, and map an empty string match to a NULL return value.
71808         * modules/idcache (Depends-on): Re-add flexmember.
71809
71810         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71811         (getuidbyname, getgroup, getgidbyname): Likewise.
71812
71813         Use cleaner syntax: NULL rather than 0.
71814         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71815
71816 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71817
71818         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71819         It mishandled the case where the group was missing.
71820         Problem reported by Greg Schafer.
71821         * modules/idcache: Likewise.
71822
71823 2006-11-18  Jim Meyering  <jim@meyering.net>
71824
71825         * check-module (%exempt_header): Add exception for some
71826         conditionally-included headers.
71827
71828         * modules/i-ring (Depends-on): Add verify.
71829         (License): Change to LGPL.
71830
71831 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71834         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71835         and inttostr.h.  Use snprintf rather than uinttostr, so that
71836         LGPLed code doesn't depend on GPLed.
71837
71838 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71839
71840         * modules/inline (License): Change from GPL to LGPL.
71841
71842 2006-11-17  Jim Meyering  <jim@meyering.net>
71843
71844         * modules/d-type (License): Switch to LGPL.
71845
71846 2006-11-15  Bruno Haible  <bruno@clisp.org>
71847
71848         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71849
71850 2006-11-15  Eric Blake  <ebb9@byu.net>
71851
71852         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71853         the module dependency.
71854
71855 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71856             Bruno Haible  <bruno@clisp.org>
71857
71858         * gnulib-tool (func_create_testdir): Add license consistency check.
71859
71860 2006-11-15  Eric Blake  <ebb9@byu.net>
71861
71862         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71863         random "(cached)" in configure output.
71864
71865 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71866
71867         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71868         test for conforming inttypes.h is both announced and cached.
71869
71870         * MODULES.html.sh (seen_modules, seen_files): New variables.
71871         (func_module): Rewrite to use a few less gnulib-tool and sed
71872         invocations.  Avoid a couple of quadratic algorithms for ...
71873         (missed_modules, missed_files): ... these, with ...
71874         (func_append, func_tmpdir): ... these new functions, from
71875         gnulib-tool.  Analogously, install traps for cleanup.
71876
71877         * tests/test-gc.c (main): Remove unused variables.
71878         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71879
71880 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71881
71882         * modules/inttostr (License): Change to LGPL.
71883
71884 2006-11-14  Eric Blake  <ebb9@byu.net>
71885
71886         * modules/tempname (License): Change to LGPL.
71887
71888 2006-11-14  Eric Blake  <ebb9@byu.net>
71889
71890         * doc/functions.texi (Function Portability): *printf functions on
71891         Cygwin now understand all POSIX size specifiers.
71892
71893 2006-11-14  Bruno Haible  <bruno@clisp.org>
71894
71895         * modules/c-ctype (License): Change to LGPL.
71896
71897 2006-11-12  Bruno Haible  <bruno@clisp.org>
71898
71899         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71900         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71901         for GNOME libraries, for which the include files are installed in
71902         subdirectories of $prefix/include.
71903
71904 2006-11-12  Bruno Haible  <bruno@clisp.org>
71905
71906         * m4/lib-link.m4: Require at least autoconf-2.54.
71907         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71908         name to underscores for the --with option.
71909
71910 2006-11-13  Bruno Haible  <bruno@clisp.org>
71911
71912         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71913         the tests directory.
71914         Reported by Ralf Wildenhues.
71915
71916 2006-11-13  Bruno Haible  <bruno@clisp.org>
71917
71918         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71919         (func_emit_initmacro_end): Undo the override here.
71920         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71921         Works around the famous automake error in coreutils.
71922
71923 2006-11-13  Eric Blake  <ebb9@byu.net>
71924
71925         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71926         element, not its node.
71927
71928 2006-11-12  Bruno Haible  <bruno@clisp.org>
71929
71930         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71931         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71932
71933 2006-11-12  Bruno Haible  <bruno@clisp.org>
71934
71935         * gnulib-tool: New option --local-symlink.
71936         (func_usage): Document it.
71937         (lsymbolic): New variable.
71938         (func_import, func_create_testdir): If --symlink was not specified,
71939         test whether --local-symlink was specified and the file comes from
71940         the local_gnulib_dir.
71941
71942 2006-11-12  Bruno Haible  <bruno@clisp.org>
71943
71944         * gnulib-tool (func_ln): New function.
71945         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71946
71947 2006-11-12  Bruno Haible  <bruno@clisp.org>
71948
71949         Finish support for source files in subdirectories.
71950         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71951         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71952         AUTOMAKE_OPTIONS.
71953         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71954
71955 2006-11-12  Bruno Haible  <bruno@clisp.org>
71956
71957         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71958         EXTRA_lib_SOURCES augmentation.
71959         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71960
71961 2006-11-12  Jim Meyering  <jim@meyering.net>
71962
71963         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71964         file descriptors.  This also averts a failure on systems with
71965         native openat support when a traversed directory lacks "x" access.
71966         * lib/fts_.h: Include "i-ring.h"
71967         (struct FTS) [fts_fd_ring]: New member.
71968         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71969         (FCHDIR): Add parentheses.
71970         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71971         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71972         When descending, rather than simply closing the previous
71973         fts_cwd_fd value, push that file descriptor onto the ring.
71974         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71975         (fts_open): Initialize the new fd_ring member.
71976         (fts_close): Clear the ring.
71977         (fts_safe_changedir): When possible, use our new fd_ring to skip
71978         the diropen and fstat and dev/ino comparison that would normally
71979         accompany a virtual `chdir ("..")'.
71980
71981         * modules/fts (Depends-on): Add i-ring.
71982         * modules/i-ring: New module.
71983         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71984         * m4/i-ring.m4: New file.
71985
71986 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71987
71988         * gnulib-tool (func_create_testdir): Fix replacement of
71989         `build-aux' in configure.ac.  Run autotools in gltests
71990         subdirectory.
71991         (func_create_testdir, func_create_megatestdir, test): There is
71992         no need for '--force' in most autotool invocations in a new
71993         tree.  Actually fail the whole test if any of the tools, or the
71994         configure or make stages fail.
71995
71996         Sync from Automake.
71997         * build-aux/gnupload: Revert last change.  Add pointer to upload
71998         instructions of the GNU Maintenance Instructions.
71999         Suggestion by Karl Berry.
72000
72001 2006-11-10  Jim Meyering  <jim@meyering.net>
72002
72003         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72004
72005 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72006
72007         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72008         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72009         (bind_textdomain_codeset) [! ENABLE_NLS]:
72010         Evaluate all the arguments.  That way, callers get compatible behavior
72011         if the arguments have side effects.  Also, it avoids some GCC
72012         diagnostics in some cases; Joel E. Denny reported problems when Bison
72013         was configured with --enable-gcc-warnigs.
72014
72015 2006-11-10  Jim Meyering  <jim@meyering.net>
72016
72017         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72018         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72019         account.
72020
72021 2006-11-10  Jim Meyering  <jim@meyering.net>
72022
72023         * modules/inline: New file/module.
72024         * modules/xalloc (Files): Remove m4/inline.m4.
72025         (Depends-on): Add inline, instead.
72026         * modules/oset: Likewise.
72027         * modules/list: Likewise.
72028
72029 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72032         Problem reported by Matthew Woehlke.
72033
72034 2006-11-09  Bruno Haible  <bruno@clisp.org>
72035
72036         * lib/tempname.c (gen_tempname): Remove variant that invokes
72037         __gen_tempname.
72038         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72039         __gen_tempname.
72040
72041 2006-11-08  Bruno Haible  <bruno@clisp.org>
72042
72043         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72044         to 'yes' instead of 'cross-compiling'.
72045
72046 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72047
72048         * lib/quotearg.h (quotearg_free): New decl.
72049         * lib/quotearg.c (quotearg_free): New function.
72050         (slot0, nslots, slotvec0, slotvec):
72051         Now file-scope so that quotearg_free can get at them.
72052
72053 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72054
72055         Sync from Automake.
72056         * build-aux/gnupload: Add missing 'gnu' to example URL.
72057         Report by Karl Berry.
72058
72059 2006-11-08  Bruno Haible  <bruno@clisp.org>
72060
72061         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72062         Suggested by Paul Eggert.
72063
72064 2006-11-08  Jim Meyering  <jim@meyering.net>
72065
72066         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72067         It's already included if !_LIBC.
72068         (fts_safe_changedir): Add a comment.
72069
72070 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72071
72072         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72073         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72074         Matthew Woehlke.
72075
72076         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72077         definitions up, to avoid colliding with change below.
72078         (static_inline) [HAVE_INLINE]: New macro.
72079         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72080         Provide extern decls when !HAVE_INLINE.  Do not define unless
72081         static_inline is defined, either by us or by xmalloc.c.  Use
72082         static_inline rather than static inline.
72083         (XCALLOC): Optimize sizeof(T) = 1 case.
72084         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72085
72086 2006-11-07  Bruno Haible  <bruno@clisp.org>
72087
72088         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72089         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72090         AC_C_INLINE.
72091         * modules/xalloc (Files): Add m4/inline.m4.
72092
72093 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72094
72095         * README: Fix typo.
72096         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72097         (Miscellanous Notes): ...from this.
72098
72099 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72102         Mention that offsetof should be used instead of sizeof.
72103         From Bruno Haible.
72104
72105 2006-11-07  Bruno Haible  <bruno@clisp.org>
72106
72107         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72108
72109 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72110
72111         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72112         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72113         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72114         (gl_tree_add_before, gl_tree_add_after):
72115         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72116         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72117         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72118         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72119         (gl_linked_add_after, gl_linked_add_at): Likewise.
72120         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72121         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72122         (gl_tree_add_before, gl_tree_add_after): Likewise.
72123         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72124         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72125         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72126
72127 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72128
72129         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72130
72131 2006-11-06  Bruno Haible  <bruno@clisp.org>
72132
72133         * m4/inline.m4: New file.
72134         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72135         * modules/list (Files): Add m4/inline.m4.
72136         * modules/oset (Files): Likewise.
72137
72138 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         * lib/idcache.c: Include <stddef.h>, for offsetof.
72141         (struct userid.name): Change from char * to a flexible array member.
72142         All uses changed.
72143         * modules/idcache (Depends-on): Add flexmember.
72144
72145         * MODULES.html.sh (Core language properties): New module flexmember.
72146         * modules/flexmember, m4/flexmember.m4: New files.
72147
72148         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72149         inline functions that are identical with the old xnmalloc_inline,
72150         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72151         that we can avoid some unnecessary integer multiplications and
72152         divisions in the common case where the element size is known at
72153         compile time.
72154         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72155         needed.
72156         (xnboundedmalloc): Remove.
72157         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72158         arguments, for consistency with rest of this header.
72159         (xcharalloc): Rewrite using XNMALLOC.
72160         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72161         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72162         versions have been moved to lib/xalloc.h and renamed to be the
72163         non-*_inline versions.
72164         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72165         and xnrealloc functions, since those functions are now inline and
72166         now call us.
72167         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72168         renaming described above.
72169         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72170         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72171         captures the dependency in AC_C_INLINE.
72172
72173         New module canonicalize-lgpl, proposed by Charles Wilson in
72174         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72175         with a few small changes afterwards.
72176         * MODULES.html.sh (File system functions): New module
72177         canonicalize-lgpl.
72178         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72179         and canonicalize_file_name.
72180         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72181         * modules/canonicalize-lgpl: New files.
72182
72183 2006-11-05  Bruno Haible  <bruno@clisp.org>
72184
72185         * gnulib-tool (func_import, func_create_testdir): Create directories
72186         also for files in subdirectories of lib/.
72187
72188 2006-11-05  Bruno Haible  <bruno@clisp.org>
72189
72190         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72191         ANSI C compliant.
72192
72193 2006-11-03  Bruno Haible  <bruno@clisp.org>
72194
72195         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72196         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72197         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72198         (xnboundedmalloc): New inline function.
72199         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72200         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72201         xmalloc.
72202         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72203         xmalloc.
72204         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72205         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72206         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72207         xmalloc.
72208         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72209         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72210         xmalloc.
72211         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72212         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72213         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72214         xmalloc.
72215         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72216         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72217         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72218         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72219         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72220         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72221         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72222
72223 2006-11-03  Bruno Haible  <bruno@clisp.org>
72224
72225         * lib/c-ctype.h [C++]: Define functions without name mangling.
72226         * lib/fwriteerror.h [C++]: Likewise.
72227         * lib/gcd.h [C++]: Likewise.
72228         * lib/linebreak.h [C++]: Likewise.
72229
72230 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72231
72232         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72233         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72234         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72235         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72236         Check for functions and headers just once.
72237         Check for declaration of canonicalize_file_name.
72238         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72239
72240 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72241
72242         * gnulib-tool (func_import): Fix typo in actioncmd.
72243
72244 2006-11-02  Bruno Haible  <bruno@clisp.org>
72245
72246         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72247         newline sequence in the Makefile.am snippet as a space, like "make"
72248         does.
72249         Reported by Roger Persson <perrog@gmail.com>.
72250
72251 2006-11-01  Bruno Haible  <bruno@clisp.org>
72252
72253         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72254         already declared in <string.h>.
72255         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72256
72257 2006-11-01  Bruno Haible  <bruno@clisp.org>
72258
72259         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72260         * lib/strcase.h: Include <string.h>.
72261         (strcasecmp): Define to rpl_strcasecmp here.
72262
72263 2006-11-01  Bruno Haible  <bruno@clisp.org>
72264
72265         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72266
72267 2006-11-01  Eric Blake  <ebb9@byu.net>
72268
72269         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72270
72271         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72272
72273 2006-10-29  Bruno Haible  <bruno@clisp.org>
72274
72275         Make it compile in C++ mode.
72276         * lib/full-write.c (full_rw): Add a cast.
72277
72278 2006-11-01  Bruno Haible  <bruno@clisp.org>
72279
72280         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72281         be POSIX compliant.
72282         Reported by Roger Persson <perrog@gmail.com>.
72283
72284 2006-11-01  Eric Blake  <ebb9@byu.net>
72285
72286         * lib/getopt_.h: Fix comments.
72287
72288 2006-10-31  Eric Blake  <ebb9@byu.net>
72289
72290         * modules/tmpdir (Depends-on): Add sys_stat.
72291         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72292         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72293         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72294         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72295         tempname.
72296
72297 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72298
72299         Avoid some C++ diagnostics reported by Bruno Haible.
72300         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72301         xmalloc.
72302         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72303         (struct slotvec): Move to top level.
72304         (quotearg_n_options): Rewrite to avoid xmalloc.
72305         * lib/xalloc.h (xcharalloc): New function.
72306         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72307         [defined __cplusplus]: Add function template that provides result
72308         type propagation.  This part of the change is from Bruno Haible.
72309
72310 2006-10-29  Bruno Haible  <bruno@clisp.org>
72311
72312         Make it compile in C++ mode.
72313         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72314         * lib/strnlen1.c (strnlen1): Cast memchr result.
72315         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72316         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72317         (create_temp_dir): Rename local variable 'template'.
72318         (compile_csharp_using_sscli): Add cast.
72319         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72320         * lib/findprog.c (find_in_path): Likewise.
72321         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72322         * lib/wait-process.c (register_slave_subprocess): Likewise.
72323
72324 2006-10-22  Bruno Haible  <bruno@clisp.org>
72325
72326         * modules/tsearch: New file.
72327         * lib/tsearch.h: New file.
72328         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72329         * m4/tsearch.m4: New file.
72330         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72331
72332 2006-10-29  Eric Blake  <ebb9@byu.net>
72333
72334         * lib/arcfour.c: Assume config.h.
72335         * lib/arctwo.c: Likewise.
72336         * lib/base64.c: Likewise.
72337         * lib/check-version.c: Likewise.
72338         * lib/crc.c: Likewise.
72339         * lib/des.c: Likewise.
72340         * lib/gc-gnulib.c: Likewise.
72341         * lib/gc-libgcrypt.c: Likewise.
72342         * lib/gc-pbkdf2-sha1.c: Likewise.
72343         * lib/getaddrinfo.c: Likewise.
72344         * lib/getdelim.c: Likewise.
72345         * lib/getline.c: Likewise.
72346         * lib/hmac-md5.c: Likewise.
72347         * lib/hmac-sha1.c: Likewise.
72348         * lib/iconvme.c: Likewise.
72349         * lib/md2.c: Likewise.
72350         * lib/md4.c: Likewise.
72351         * lib/memxor.c: Likewise.
72352         * lib/read-file.c: Likewise.
72353         * lib/readline.c: Likewise.
72354         * lib/rijndael-alg-fst.c: Likewise.
72355         * lib/rijndael-api-fst.c: Likewise.
72356         * lib/xgetdomainname.c: Likewise.
72357
72358 2006-10-28  Eric Blake  <ebb9@byu.net>
72359
72360         * lib/xstrndup.c: Assume config.h.
72361
72362 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72363
72364         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72365         stat-macros.h is now for our own macros, whereas stat_h is for
72366         macros in the <sys/stat.h> name space.
72367         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72368         (STAT_MACROS_H): Remove.
72369         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72370         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72371         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72372         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72373         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72374         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72375         Move these macros to ...
72376         * lib/stat_.h: here.  Don't include stat-macros.h.
72377         * lib/canonicalize.c: Don't include stat-macros.h.
72378         * lib/chown.c: Likewise.
72379         * lib/euidaccess.c: Likewise.
72380         * lib/file-type.c: Likewise.
72381         * lib/filemode.c: Likewise.
72382         * lib/glob.c: Likewise.
72383         * lib/isapipe.c: Likewise.
72384         * lib/lchown.c: Likewise.
72385         * lib/lstat.c: Likewise.
72386         * lib/mkdir-p.c: Likewise.
72387         * lib/rmdir.c: Likewise.
72388         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72389         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72390         unless mkdir isn't declared, to speed up 'configure'.
72391         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72392         would define all the S_* symbols.
72393         * modules/canonicalize (Depends-on):
72394         Depend on sys_stat, not stat-macros.
72395         * modules/chown: Likewise.
72396         * modules/euidaccess: Likewise.
72397         * modules/filemode: Likewise.
72398         * modules/file-type: Likewise.
72399         * modules/glob: Likewise.
72400         * modules/isapipe: Likewise.
72401         * modules/lchown: Likewise.
72402         * modules/lstat: Likewise.
72403         * modules/mkancesdirs: Likewise.
72404         * modules/rmdir: Likewise.
72405         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72406         * modules/modechange: Likewise.
72407         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72408         (configure.ac): Remove gl_STAT_MACROS.
72409         * modules/sys_stat (Depends-on): Remove stat-macros.
72410
72411 2006-10-27  Bruno Haible  <bruno@clisp.org>
72412
72413         * m4/signed.m4: Remove file.
72414         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72415         invocation.
72416         * modules/vasnprintf (Files): Remove m4/signed.m4.
72417
72418 2006-10-27  Bruno Haible  <bruno@clisp.org>
72419
72420         Update to GNU gettext 0.16.
72421         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72422         m4/inttypes-h.m4, m4/signed.m4.
72423         * m4/gettext.m4: Update to GNU gettext 0.16.
72424         * m4/intl.m4: New file, from GNU gettext.
72425         * m4/intldir.m4: New file, from GNU gettext.
72426         * config/srclist.txt: Update
72427
72428 2006-10-27  Eric Blake  <ebb9@byu.net>
72429
72430         * MODULES.html.sh: Document tempname.
72431         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72432         dependencies.
72433         (Files): Move lib/tempname.c...
72434         * modules/tempname: ...to this new module.
72435         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72436         (gl_PREREQ_TEMPNAME): Move...
72437         * m4/tempname.m4: ...to this new file.
72438         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72439         * modules/sys_stat (Depends-on): Add stat-macros.
72440         * lib/stat_.h (includes): Pick up stat macros.
72441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72442         if stat macros are broken.
72443         * lib/tempname.c (includes): No need to include "stat-macros.h".
72444         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72445         (direxists, __path_search) [!_LIBC]: Don't compile these in
72446         gnulib; the tmpdir module covers that.
72447         * lib/tempname.h: New file.
72448
72449 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         * COPYING: Explain how gnulib-tool converts licence headers.
72452         Almost all wording by Eric Blake.
72453
72454 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         * lib/mbchar.h (is_basic_table): Make read-only.
72457         * lib/mbchar.c (is_basic_table): Likewise.
72458         Reported by John Darrington.
72459
72460 2006-10-25  Bruno Haible  <bruno@clisp.org>
72461
72462         * lib/progname.h (set_program_name): Undefine before defining.
72463
72464 2006-10-25  Bruno Haible  <bruno@clisp.org>
72465
72466         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72467         false for non-gcc C++ compilers.
72468         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72469
72470 2006-10-24  Bruno Haible  <bruno@clisp.org>
72471
72472         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72473         iconv implementations like Irix iconv.
72474
72475 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72476
72477         * modules/vararrays: New file.
72478         * m4/vararrays.m4: New file, taken from diffutils.
72479         * MODULES.html.sh: New module vararrays.
72480
72481 2006-10-24  Karl Berry  <karl@gnu.org>
72482
72483         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72484         Don't call GNU Unix.
72485
72486 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72487
72488         * users.txt: Add Libtool.
72489
72490         Sync from Libtool:
72491
72492         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72495         to gnulib's policy of including config.h unconditionally.
72496
72497 2006-10-24  Bruno Haible  <bruno@clisp.org>
72498
72499         * modules/wcwidth (Files): Add m4/wint_t.m4.
72500         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72501         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72502
72503 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72504
72505         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72506         to pacify GCC with some -W flags enabled.  Problem reported by
72507         Bruno Haible.
72508
72509 2006-10-24  Jim Meyering  <jim@meyering.net>
72510
72511         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72512         Reported by Karl Berry.
72513
72514 2006-10-23  Bruno Haible  <bruno@clisp.org>
72515
72516         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72517
72518 2006-10-24  Bruno Haible  <bruno@clisp.org>
72519
72520         * lib/gl_list.h: Use C comment style, not C++ comment style.
72521
72522 2006-10-23  Eric Blake  <ebb9@byu.net>
72523
72524         * lib/getaddrinfo.c (includes): Add missing include.
72525
72526 2006-10-23  Bruno Haible  <bruno@clisp.org>
72527             Paul Eggert  <eggert@cs.ucla.edu>
72528
72529         Ability to rename obstack_free.
72530         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72531         obstack_free.
72532         (obstack_free): Invoke the __obstack_free macro.
72533         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72534
72535 2006-10-23  Bruno Haible  <bruno@clisp.org>
72536             Paul Eggert  <eggert@cs.ucla.edu>
72537
72538         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72539         __argc, __argv from the declaration. (They are defined as macros on
72540         mingw.)
72541
72542 2006-10-22  Bruno Haible  <bruno@clisp.org>
72543
72544         * doc/gnulib-intro.texi: New file.
72545         * doc/gnulib.texi: Include it.
72546
72547 2006-10-21  Bruno Haible  <bruno@clisp.org>
72548
72549         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72550         "Introduction", "Miscellanous Notes", "Particular Modules".
72551
72552 2006-10-21  Bruno Haible  <bruno@clisp.org>
72553
72554         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72555         Change mostlyclean-local rule to avoid sh syntax error from bash
72556         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72557
72558 2006-10-23  Jim Meyering  <jim@meyering.net>
72559
72560         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72561         in place of snprintf.
72562
72563         * modules/inttostr (Files): Add lib/uinttostr.c.
72564         * lib/uinttostr.c (inttostr): New file/function.
72565         * lib/inttostr.h (uinttostr): Declare.
72566         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72567         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72568         Add uinttostr.
72569         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72570
72571 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72572
72573         * lib/canonicalize.c (ELOOP): Define if not already defined.
72574         Problem reported by Bruno Haible in
72575         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72576
72577 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72580         Problem reported by Perry Smith and Ville Laurikari.
72581
72582         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72583         uses.
72584
72585 2006-10-19  Bruno Haible  <bruno@clisp.org>
72586
72587         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72588         for mingw.
72589
72590 2006-10-19  Bruno Haible  <bruno@clisp.org>
72591
72592         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72593         Needed for mingw.
72594
72595 2006-10-19  Bruno Haible  <bruno@clisp.org>
72596
72597         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72598
72599 2006-10-19  Bruno Haible  <bruno@clisp.org>
72600
72601         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72602         it.
72603
72604 2006-10-19  Bruno Haible  <bruno@clisp.org>
72605
72606         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72607         invocation.
72608
72609 2006-10-19  Bruno Haible  <bruno@clisp.org>
72610
72611         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72612         mountlist by default.
72613
72614 2006-10-16  Bruno Haible  <bruno@clisp.org>
72615
72616         * lib/c-strstr.c: Include c-strstr.h.
72617
72618 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72619
72620         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72621         in a slash.
72622
72623 2006-10-18  Bruno Haible  <bruno@clisp.org>
72624
72625         * lib/lock.h [C++]: Wrap definitions in extern "C".
72626
72627 2006-10-18  Bruno Haible  <bruno@clisp.org>
72628
72629         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72630         gl_LIBOBJS list.
72631
72632 2006-10-18  Bruno Haible  <bruno@clisp.org>
72633
72634         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72635
72636 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72637
72638         * lib/xstrtol.h: Include gettext.h.
72639         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72640         Problem reported by Eric Blake.
72641         * modules/xstrtol (Depends-on): Add gettext-h.
72642
72643 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72644
72645         * lib/strftime.c (advance): New macro.
72646         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72647         incomplete type, so you can't add 0 to it.  Problem and patch
72648         reported by Eelco Dolstra for dietlibc.
72649
72650 2006-10-18  Jim Meyering  <jim@meyering.net>
72651
72652         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72653         type for a local, and rename it: s/up/user_proc/.
72654
72655 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72656
72657         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72658         READ_UTMP_USER_PROCESS.
72659         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72660
72661 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72662
72663         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72664         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72665
72666 2006-10-17  Eric Blake  <ebb9@byu.net>
72667
72668         * lib/sigprocmask.c (sigprocmask): Fix typo.
72669
72670         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72671
72672         * modules/clean-temp (Makefile.am): Don't add to make output...
72673         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72674         config.h.
72675
72676 2006-10-17  Bruno Haible  <bruno@clisp.org>
72677
72678         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72679         differently if DEFAULT_TEXT_DOMAIN is set.
72680
72681 2006-10-16  Bruno Haible  <bruno@clisp.org>
72682
72683         * lib/clean-temp.c: Include fwriteerror.h.
72684
72685 2006-10-16  Bruno Haible  <bruno@clisp.org>
72686
72687         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72688
72689 2006-10-16  Bruno Haible  <bruno@clisp.org>
72690
72691         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72692         * lib/sigprocmask.h: Include <sys/types.h>.
72693         (sigset_t): Use the system's definition if present.
72694
72695 2006-10-17  Eric Blake  <ebb9@byu.net>
72696
72697         * lib/xvasprintf.c (includes): Assume config.h.
72698         * lib/xasprintf.c (includes): Likewise.
72699
72700 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72701
72702         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72703         at least as wide as intmax_t.
72704
72705 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72706
72707         (Imported from Automake.)
72708         * build-aux/gnupload: Update to version 1.1 of directive file.
72709
72710 2006-10-16  Eric Blake  <ebb9@byu.net>
72711
72712         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72713         match Automake 1.10a.
72714
72715 2006-10-14  Bruno Haible  <bruno@clisp.org>
72716
72717         * modules/sigprocmask: New file.
72718         * lib/sigprocmask.h: New file.
72719         * lib/sigprocmask.c: New file.
72720         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72721         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72722         request sigprocmask.o.
72723         (gl_PREREQ_SIGPROCMASK): New macro.
72724         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72725         (Depends-on): Add sigprocmask.
72726         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72727         gt_SIGNALBLOCKING. Test for 'raise' only once.
72728         * lib/fatal-signal.c: Include sigprocmask.h.
72729         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72730         unblock_fatal_signals): Define always.
72731         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72732         sigprocmask.
72733
72734 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72735
72736         Sync from Automake.
72737         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72738         which incorrectly sets the mode of an existing destination
72739         directory.  In some cases the unpatched install-sh could do the
72740         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72741         system.  We hope this is rare in practice, but it's clearly worth
72742         fixing.  Problem reported by Alex Unleashed in
72743         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72744         Also, don't bother to check for -m bugs unless we're using -m;
72745         suggested by Stepan Kasal.
72746
72747 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72748
72749         Sync from Automake.
72750         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72751         `-c' flag, so they appear at the same position as in %FASTDEP%
72752         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72753         which ignores unknown options only after the first non-option.
72754         Bug report against M4 by Nelson H. F. Beebe.
72755
72756 2006-10-13  Jim Meyering  <jim@meyering.net>
72757
72758         Fix a bug in yesterday's change.
72759         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72760         p->fts_statp->st_dev would be used uninitialized.
72761         Ensures that we always call fts_stat on the very first entry.
72762         Miklos Szeredi reported that find -xdev stopped working.
72763
72764 2006-10-12  Bruno Haible  <bruno@clisp.org>
72765
72766         * gnulib-tool (func_get_automake_snippet): Append an automatically
72767         computed EXTRA_DIST augmentation.
72768         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72769         * modules/alloca-opt (Makefile.am): Likewise.
72770         * modules/allocsa (Makefile.am): Likewise.
72771         * modules/arcfour (Makefile.am): Likewise.
72772         * modules/arctwo (Makefile.am): Likewise.
72773         * modules/argmatch (Makefile.am): Likewise.
72774         * modules/argz (Makefile.am): Likewise.
72775         * modules/atexit (Makefile.am): Likewise.
72776         * modules/backupfile (Makefile.am): Likewise.
72777         * modules/byteswap (Makefile.am): Likewise.
72778         * modules/c-strtod (Makefile.am): Likewise.
72779         * modules/c-strtold (Makefile.am): Likewise.
72780         * modules/calloc (Makefile.am): Likewise.
72781         * modules/canon-host (Makefile.am): Likewise.
72782         * modules/canonicalize (Makefile.am): Likewise.
72783         * modules/chdir-long (Makefile.am): Likewise.
72784         * modules/chdir-safer (Makefile.am): Likewise.
72785         * modules/check-version (Makefile.am): Likewise.
72786         * modules/chown (Makefile.am): Likewise.
72787         * modules/cloexec (Makefile.am): Likewise.
72788         * modules/close-stream (Makefile.am): Likewise.
72789         * modules/closeout (Makefile.am): Likewise.
72790         * modules/crc (Makefile.am): Likewise.
72791         * modules/csharpexec (Makefile.am): Likewise.
72792         * modules/cycle-check (Makefile.am): Likewise.
72793         * modules/des (Makefile.am): Likewise.
72794         * modules/dev-ino (Makefile.am): Likewise.
72795         * modules/dirfd (Makefile.am): Likewise.
72796         * modules/dirname (Makefile.am): Likewise.
72797         * modules/dup2 (Makefile.am): Likewise.
72798         * modules/eealloc (Makefile.am): Likewise.
72799         * modules/error (Makefile.am): Likewise.
72800         * modules/euidaccess (Makefile.am): Likewise.
72801         * modules/exclude (Makefile.am): Likewise.
72802         * modules/exitfail (Makefile.am): Likewise.
72803         * modules/fcntl-safer (Makefile.am): Likewise.
72804         * modules/fcntl (Makefile.am): Likewise.
72805         * modules/file-type (Makefile.am): Likewise.
72806         * modules/fileblocks (Makefile.am): Likewise.
72807         * modules/filemode (Makefile.am): Likewise.
72808         * modules/filenamecat (Makefile.am): Likewise.
72809         * modules/fnmatch (Makefile.am): Likewise.
72810         * modules/fopen-safer (Makefile.am): Likewise.
72811         * modules/fpending (Makefile.am): Likewise.
72812         * modules/fprintftime (Makefile.am): Likewise.
72813         * modules/free (Makefile.am): Likewise.
72814         * modules/fsusage (Makefile.am): Likewise.
72815         * modules/ftruncate (Makefile.am): Likewise.
72816         * modules/fts (Makefile.am): Likewise.
72817         * modules/gc-arcfour (Makefile.am): Likewise.
72818         * modules/gc-des (Makefile.am): Likewise.
72819         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72820         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72821         * modules/gc-md4 (Makefile.am): Likewise.
72822         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72823         * modules/gc-sha1 (Makefile.am): Likewise.
72824         * modules/gc (Makefile.am): Likewise.
72825         * modules/getaddrinfo (Makefile.am): Likewise.
72826         * modules/getcwd (Makefile.am): Likewise.
72827         * modules/getdelim (Makefile.am): Likewise.
72828         * modules/getdomainname (Makefile.am): Likewise.
72829         * modules/getgroups (Makefile.am): Likewise.
72830         * modules/gethostname (Makefile.am): Likewise.
72831         * modules/gethrxtime (Makefile.am): Likewise.
72832         * modules/getline (Makefile.am): Likewise.
72833         * modules/getloadavg (Makefile.am): Likewise.
72834         * modules/getlogin_r (Makefile.am): Likewise.
72835         * modules/getndelim2 (Makefile.am): Likewise.
72836         * modules/getopt (Makefile.am): Likewise.
72837         * modules/getpagesize (Makefile.am): Likewise.
72838         * modules/getpass-gnu (Makefile.am): Likewise.
72839         * modules/getpass (Makefile.am): Likewise.
72840         * modules/getsubopt (Makefile.am): Likewise.
72841         * modules/gettime (Makefile.am): Likewise.
72842         * modules/gettimeofday (Makefile.am): Likewise.
72843         * modules/getugroups (Makefile.am): Likewise.
72844         * modules/getusershell (Makefile.am): Likewise.
72845         * modules/glob (Makefile.am): Likewise.
72846         * modules/group-member (Makefile.am): Likewise.
72847         * modules/hard-locale (Makefile.am): Likewise.
72848         * modules/hash (Makefile.am): Likewise.
72849         * modules/hmac-md5 (Makefile.am): Likewise.
72850         * modules/hmac-sha1 (Makefile.am): Likewise.
72851         * modules/human (Makefile.am): Likewise.
72852         * modules/idcache (Makefile.am): Likewise.
72853         * modules/imaxabs (Makefile.am): Likewise.
72854         * modules/imaxdiv (Makefile.am): Likewise.
72855         * modules/inet_ntop (Makefile.am): Likewise.
72856         * modules/inet_pton (Makefile.am): Likewise.
72857         * modules/intprops (Makefile.am): Likewise.
72858         * modules/inttostr (Makefile.am): Likewise.
72859         * modules/inttypes (Makefile.am): Likewise.
72860         * modules/isapipe (Makefile.am): Likewise.
72861         * modules/javaversion (Makefile.am): Likewise.
72862         * modules/lchmod (Makefile.am): Likewise.
72863         * modules/lchown (Makefile.am): Likewise.
72864         * modules/localcharset (Makefile.am): Likewise.
72865         * modules/long-options (Makefile.am): Likewise.
72866         * modules/lstat (Makefile.am): Likewise.
72867         * modules/malloc (Makefile.am): Likewise.
72868         * modules/mathl (Makefile.am): Likewise.
72869         * modules/mbchar (Makefile.am): Likewise.
72870         * modules/md2 (Makefile.am): Likewise.
72871         * modules/md4 (Makefile.am): Likewise.
72872         * modules/md5 (Makefile.am): Likewise.
72873         * modules/memcasecmp (Makefile.am): Likewise.
72874         * modules/memchr (Makefile.am): Likewise.
72875         * modules/memcmp (Makefile.am): Likewise.
72876         * modules/memcoll (Makefile.am): Likewise.
72877         * modules/memcpy (Makefile.am): Likewise.
72878         * modules/memmem (Makefile.am): Likewise.
72879         * modules/memmove (Makefile.am): Likewise.
72880         * modules/mempcpy (Makefile.am): Likewise.
72881         * modules/memrchr (Makefile.am): Likewise.
72882         * modules/memset (Makefile.am): Likewise.
72883         * modules/memxor (Makefile.am): Likewise.
72884         * modules/mkancesdirs (Makefile.am): Likewise.
72885         * modules/mkdir-p (Makefile.am): Likewise.
72886         * modules/mkdir (Makefile.am): Likewise.
72887         * modules/mkdtemp (Makefile.am): Likewise.
72888         * modules/mkstemp (Makefile.am): Likewise.
72889         * modules/mktime (Makefile.am): Likewise.
72890         * modules/modechange (Makefile.am): Likewise.
72891         * modules/mountlist (Makefile.am): Likewise.
72892         * modules/nanosleep (Makefile.am): Likewise.
72893         * modules/obstack (Makefile.am): Likewise.
72894         * modules/openat (Makefile.am): Likewise.
72895         * modules/pagealign_alloc (Makefile.am): Likewise.
72896         * modules/pathmax (Makefile.am): Likewise.
72897         * modules/physmem (Makefile.am): Likewise.
72898         * modules/poll (Makefile.am): Likewise.
72899         * modules/posixtm (Makefile.am): Likewise.
72900         * modules/posixver (Makefile.am): Likewise.
72901         * modules/putenv (Makefile.am): Likewise.
72902         * modules/quote (Makefile.am): Likewise.
72903         * modules/quotearg (Makefile.am): Likewise.
72904         * modules/raise (Makefile.am): Likewise.
72905         * modules/read-file (Makefile.am): Likewise.
72906         * modules/readline (Makefile.am): Likewise.
72907         * modules/readlink (Makefile.am): Likewise.
72908         * modules/readtokens (Makefile.am): Likewise.
72909         * modules/readutmp (Makefile.am): Likewise.
72910         * modules/realloc (Makefile.am): Likewise.
72911         * modules/regex (Makefile.am): Likewise.
72912         * modules/rename-dest-slash (Makefile.am): Likewise.
72913         * modules/rename (Makefile.am): Likewise.
72914         * modules/rijndael (Makefile.am): Likewise.
72915         * modules/rmdir (Makefile.am): Likewise.
72916         * modules/rpmatch (Makefile.am): Likewise.
72917         * modules/safe-read (Makefile.am): Likewise.
72918         * modules/safe-write (Makefile.am): Likewise.
72919         * modules/same-inode (Makefile.am): Likewise.
72920         * modules/same (Makefile.am): Likewise.
72921         * modules/save-cwd (Makefile.am): Likewise.
72922         * modules/savedir (Makefile.am): Likewise.
72923         * modules/setenv (Makefile.am): Likewise.
72924         * modules/settime (Makefile.am): Likewise.
72925         * modules/sha1 (Makefile.am): Likewise.
72926         * modules/sig2str (Makefile.am): Likewise.
72927         * modules/snprintf (Makefile.am): Likewise.
72928         * modules/stat-macros (Makefile.am): Likewise.
72929         * modules/stat-time (Makefile.am): Likewise.
72930         * modules/stdbool (Makefile.am): Likewise.
72931         * modules/stdint (Makefile.am): Likewise.
72932         * modules/stdlib-safer (Makefile.am): Likewise.
72933         * modules/stpcpy (Makefile.am): Likewise.
72934         * modules/stpncpy (Makefile.am): Likewise.
72935         * modules/strcase (Makefile.am): Likewise.
72936         * modules/strcasestr (Makefile.am): Likewise.
72937         * modules/strchrnul (Makefile.am): Likewise.
72938         * modules/strcspn (Makefile.am): Likewise.
72939         * modules/strdup (Makefile.am): Likewise.
72940         * modules/strerror (Makefile.am): Likewise.
72941         * modules/strftime (Makefile.am): Likewise.
72942         * modules/strndup (Makefile.am): Likewise.
72943         * modules/strnlen (Makefile.am): Likewise.
72944         * modules/strpbrk (Makefile.am): Likewise.
72945         * modules/strsep (Makefile.am): Likewise.
72946         * modules/strstr (Makefile.am): Likewise.
72947         * modules/strtod (Makefile.am): Likewise.
72948         * modules/strtoimax (Makefile.am): Likewise.
72949         * modules/strtok_r (Makefile.am): Likewise.
72950         * modules/strtol (Makefile.am): Likewise.
72951         * modules/strtoll (Makefile.am): Likewise.
72952         * modules/strtoul (Makefile.am): Likewise.
72953         * modules/strtoull (Makefile.am): Likewise.
72954         * modules/strtoumax (Makefile.am): Likewise.
72955         * modules/strverscmp (Makefile.am): Likewise.
72956         * modules/sys_socket (Makefile.am): Likewise.
72957         * modules/sys_stat (Makefile.am): Likewise.
72958         * modules/sysexits (Makefile.am): Likewise.
72959         * modules/time_r (Makefile.am): Likewise.
72960         * modules/timegm (Makefile.am): Likewise.
72961         * modules/timespec (Makefile.am): Likewise.
72962         * modules/tmpfile-safer (Makefile.am): Likewise.
72963         * modules/trim (Makefile.am): Likewise.
72964         * modules/unistd-safer (Makefile.am): Likewise.
72965         * modules/unlinkdir (Makefile.am): Likewise.
72966         * modules/unlocked-io (Makefile.am): Likewise.
72967         * modules/userspec (Makefile.am): Likewise.
72968         * modules/utime (Makefile.am): Likewise.
72969         * modules/utimecmp (Makefile.am): Likewise.
72970         * modules/utimens (Makefile.am): Likewise.
72971         * modules/vasnprintf (Makefile.am): Likewise.
72972         * modules/vasprintf (Makefile.am): Likewise.
72973         * modules/vsnprintf (Makefile.am): Likewise.
72974         * modules/xalloc (Makefile.am): Likewise.
72975         * modules/xgetcwd (Makefile.am): Likewise.
72976         * modules/xnanosleep (Makefile.am): Likewise.
72977         * modules/xreadlink (Makefile.am): Likewise.
72978         * modules/xstrtod (Makefile.am): Likewise.
72979         * modules/xstrtol (Makefile.am): Likewise.
72980         * modules/xstrtold (Makefile.am): Likewise.
72981         * modules/yesno (Makefile.am): Likewise.
72982         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72983
72984 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72985
72986         * modules/error (Makefile.am): Distribute files through
72987         EXTRA_DIST, not lib_SOURCES.
72988
72989 2006-10-12  Eric Blake  <ebb9@byu.net>
72990
72991         * modules/error (Makefile.am): Distribute files in /lib.
72992         * modules/obstack (Makefile.am): Likewise.
72993
72994 2006-10-12  Bruno Haible  <bruno@clisp.org>
72995
72996         * modules/acl (Makefile.am): Distribute all files in lib/ through
72997         EXTRA_DIST.
72998         * modules/arcfour (Makefile.am): Likewise.
72999         * modules/arctwo (Makefile.am): Likewise.
73000         * modules/argmatch (Makefile.am): Likewise.
73001         * modules/argz (Makefile.am): Likewise.
73002         * modules/atexit (Makefile.am): Likewise.
73003         * modules/backupfile (Makefile.am): Likewise.
73004         * modules/c-strtod (Makefile.am): Likewise.
73005         * modules/c-strtold (Makefile.am): Likewise.
73006         * modules/calloc (Makefile.am): Likewise.
73007         * modules/canon-host (Makefile.am): Likewise.
73008         * modules/canonicalize (Makefile.am): Likewise.
73009         * modules/chdir-long (Makefile.am): Likewise.
73010         * modules/chdir-safer (Makefile.am): Likewise.
73011         * modules/check-version (Makefile.am): Likewise.
73012         * modules/chown (Makefile.am): Likewise.
73013         * modules/cloexec (Makefile.am): Likewise.
73014         * modules/close-stream (Makefile.am): Likewise.
73015         * modules/closeout (Makefile.am): Likewise.
73016         * modules/crc (Makefile.am): Likewise.
73017         * modules/cycle-check (Makefile.am): Likewise.
73018         * modules/des (Makefile.am): Likewise.
73019         * modules/dirfd (Makefile.am): Likewise.
73020         * modules/dirname (Makefile.am): Likewise.
73021         * modules/dup2 (Makefile.am): Likewise.
73022         * modules/euidaccess (Makefile.am): Likewise.
73023         * modules/exclude (Makefile.am): Likewise.
73024         * modules/exitfail (Makefile.am): Likewise.
73025         * modules/fcntl-safer (Makefile.am): Likewise.
73026         * modules/file-type (Makefile.am): Likewise.
73027         * modules/fileblocks (Makefile.am): Likewise.
73028         * modules/filemode (Makefile.am): Likewise.
73029         * modules/filenamecat (Makefile.am): Likewise.
73030         * modules/fnmatch (Makefile.am): Likewise.
73031         * modules/fopen-safer (Makefile.am): Likewise.
73032         * modules/fpending (Makefile.am): Likewise.
73033         * modules/fprintftime (Makefile.am): Likewise.
73034         * modules/free (Makefile.am): Likewise.
73035         * modules/fsusage (Makefile.am): Likewise.
73036         * modules/ftruncate (Makefile.am): Likewise.
73037         * modules/fts (Makefile.am): Likewise.
73038         * modules/gc (Makefile.am): Likewise.
73039         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73040         * modules/getaddrinfo (Makefile.am): Likewise.
73041         * modules/getcwd (Makefile.am): Likewise.
73042         * modules/getdelim (Makefile.am): Likewise.
73043         * modules/getdomainname (Makefile.am): Likewise.
73044         * modules/getgroups (Makefile.am): Likewise.
73045         * modules/gethostname (Makefile.am): Likewise.
73046         * modules/gethrxtime (Makefile.am): Likewise.
73047         * modules/getline (Makefile.am): Likewise.
73048         * modules/getloadavg (Makefile.am): Likewise.
73049         * modules/getlogin_r (Makefile.am): Likewise.
73050         * modules/getopt (Makefile.am): Likewise.
73051         * modules/getpass (Makefile.am): Likewise.
73052         * modules/getpass-gnu (Makefile.am): Likewise.
73053         * modules/getsubopt (Makefile.am): Likewise.
73054         * modules/gettime (Makefile.am): Likewise.
73055         * modules/gettimeofday (Makefile.am): Likewise.
73056         * modules/getugroups (Makefile.am): Likewise.
73057         * modules/getusershell (Makefile.am): Likewise.
73058         * modules/glob (Makefile.am): Likewise.
73059         * modules/group-member (Makefile.am): Likewise.
73060         * modules/hard-locale (Makefile.am): Likewise.
73061         * modules/hash (Makefile.am): Likewise.
73062         * modules/hmac-md5 (Makefile.am): Likewise.
73063         * modules/hmac-sha1 (Makefile.am): Likewise.
73064         * modules/human (Makefile.am): Likewise.
73065         * modules/idcache (Makefile.am): Likewise.
73066         * modules/imaxabs (Makefile.am): Likewise.
73067         * modules/imaxdiv (Makefile.am): Likewise.
73068         * modules/inet_ntop (Makefile.am): Likewise.
73069         * modules/inet_pton (Makefile.am): Likewise.
73070         * modules/inttostr (Makefile.am): Likewise.
73071         * modules/isapipe (Makefile.am): Likewise.
73072         * modules/lchown (Makefile.am): Likewise.
73073         * modules/long-options (Makefile.am): Likewise.
73074         * modules/lstat (Makefile.am): Likewise.
73075         * modules/malloc (Makefile.am): Likewise.
73076         * modules/mathl (Makefile.am): Likewise.
73077         * modules/mbchar (Makefile.am): Likewise.
73078         * modules/md2 (Makefile.am): Likewise.
73079         * modules/md4 (Makefile.am): Likewise.
73080         * modules/md5 (Makefile.am): Likewise.
73081         * modules/memcasecmp (Makefile.am): Likewise.
73082         * modules/memchr (Makefile.am): Likewise.
73083         * modules/memcmp (Makefile.am): Likewise.
73084         * modules/memcoll (Makefile.am): Likewise.
73085         * modules/memcpy (Makefile.am): Likewise.
73086         * modules/memmem (Makefile.am): Likewise.
73087         * modules/memmove (Makefile.am): Likewise.
73088         * modules/mempcpy (Makefile.am): Likewise.
73089         * modules/memrchr (Makefile.am): Likewise.
73090         * modules/memset (Makefile.am): Likewise.
73091         * modules/memxor (Makefile.am): Likewise.
73092         * modules/mkancesdirs (Makefile.am): Likewise.
73093         * modules/mkdir (Makefile.am): Likewise.
73094         * modules/mkdir-p (Makefile.am): Likewise.
73095         * modules/mkdtemp (Makefile.am): Likewise.
73096         * modules/mkstemp (Makefile.am): Likewise.
73097         * modules/mktime (Makefile.am): Likewise.
73098         * modules/modechange (Makefile.am): Likewise.
73099         * modules/mountlist (Makefile.am): Likewise.
73100         * modules/nanosleep (Makefile.am): Likewise.
73101         * modules/openat (Makefile.am): Likewise.
73102         * modules/pagealign_alloc (Makefile.am): Likewise.
73103         * modules/physmem (Makefile.am): Likewise.
73104         * modules/poll (Makefile.am): Likewise.
73105         * modules/posixtm (Makefile.am): Likewise.
73106         * modules/posixver (Makefile.am): Likewise.
73107         * modules/putenv (Makefile.am): Likewise.
73108         * modules/quote (Makefile.am): Likewise.
73109         * modules/quotearg (Makefile.am): Likewise.
73110         * modules/raise (Makefile.am): Likewise.
73111         * modules/read-file (Makefile.am): Likewise.
73112         * modules/readline (Makefile.am): Likewise.
73113         * modules/readlink (Makefile.am): Likewise.
73114         * modules/readtokens (Makefile.am): Likewise.
73115         * modules/readutmp (Makefile.am): Likewise.
73116         * modules/realloc (Makefile.am): Likewise.
73117         * modules/regex (Makefile.am): Likewise.
73118         * modules/rename (Makefile.am): Likewise.
73119         * modules/rename-dest-slash (Makefile.am): Likewise.
73120         * modules/rijndael (Makefile.am): Likewise.
73121         * modules/rmdir (Makefile.am): Likewise.
73122         * modules/rpmatch (Makefile.am): Likewise.
73123         * modules/safe-read (Makefile.am): Likewise.
73124         * modules/safe-write (Makefile.am): Likewise.
73125         * modules/same (Makefile.am): Likewise.
73126         * modules/save-cwd (Makefile.am): Likewise.
73127         * modules/savedir (Makefile.am): Likewise.
73128         * modules/setenv (Makefile.am): Likewise.
73129         * modules/settime (Makefile.am): Likewise.
73130         * modules/sha1 (Makefile.am): Likewise.
73131         * modules/sig2str (Makefile.am): Likewise.
73132         * modules/snprintf (Makefile.am): Likewise.
73133         * modules/stdlib-safer (Makefile.am): Likewise.
73134         * modules/stpcpy (Makefile.am): Likewise.
73135         * modules/stpncpy (Makefile.am): Likewise.
73136         * modules/strcase (Makefile.am): Likewise.
73137         * modules/strcasestr (Makefile.am): Likewise.
73138         * modules/strchrnul (Makefile.am): Likewise.
73139         * modules/strcspn (Makefile.am): Likewise.
73140         * modules/strdup (Makefile.am): Likewise.
73141         * modules/strerror (Makefile.am): Likewise.
73142         * modules/strftime (Makefile.am): Likewise.
73143         * modules/strndup (Makefile.am): Likewise.
73144         * modules/strnlen (Makefile.am): Likewise.
73145         * modules/strpbrk (Makefile.am): Likewise.
73146         * modules/strsep (Makefile.am): Likewise.
73147         * modules/strstr (Makefile.am): Likewise.
73148         * modules/strtod (Makefile.am): Likewise.
73149         * modules/strtoimax (Makefile.am): Likewise.
73150         * modules/strtok_r (Makefile.am): Likewise.
73151         * modules/strtol (Makefile.am): Likewise.
73152         * modules/strtoll (Makefile.am): Likewise.
73153         * modules/strtoul (Makefile.am): Likewise.
73154         * modules/strtoull (Makefile.am): Likewise.
73155         * modules/strtoumax (Makefile.am): Likewise.
73156         * modules/strverscmp (Makefile.am): Likewise.
73157         * modules/time_r (Makefile.am): Likewise.
73158         * modules/timegm (Makefile.am): Likewise.
73159         * modules/tmpfile-safer (Makefile.am): Likewise.
73160         * modules/unistd-safer (Makefile.am): Likewise.
73161         * modules/unlinkdir (Makefile.am): Likewise.
73162         * modules/userspec (Makefile.am): Likewise.
73163         * modules/utime (Makefile.am): Likewise.
73164         * modules/utimecmp (Makefile.am): Likewise.
73165         * modules/utimens (Makefile.am): Likewise.
73166         * modules/vasnprintf (Makefile.am): Likewise.
73167         * modules/vasprintf (Makefile.am): Likewise.
73168         * modules/vsnprintf (Makefile.am): Likewise.
73169         * modules/xalloc (Makefile.am): Likewise.
73170         * modules/xgetcwd (Makefile.am): Likewise.
73171         * modules/xnanosleep (Makefile.am): Likewise.
73172         * modules/xreadlink (Makefile.am): Likewise.
73173         * modules/xstrtod (Makefile.am): Likewise.
73174         * modules/xstrtol (Makefile.am): Likewise.
73175         * modules/xstrtold (Makefile.am): Likewise.
73176         * modules/yesno (Makefile.am): Likewise.
73177
73178 2006-10-12  Jim Meyering  <jim@meyering.net>
73179
73180         * m4/getloadavg.m4: Revert the change below.
73181
73182         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73183         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73184         fail with a symlink, which is what coreutils' ./bootstrap now
73185         creates by default.
73186
73187 2006-10-12  Bruno Haible  <bruno@clisp.org>
73188
73189         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73190         mingw.
73191         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73192         MSVC and mingw explicitly.
73193
73194 2006-10-11  Simon Josefsson  <jas@extundo.com>
73195             Bruno Haible  <bruno@clisp.org>
73196
73197         Add support for multiple gnulib-tool invocations in the scope of a
73198         single configure.ac file.
73199         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73200         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73201         with the same contents as the _LIBADD variable.
73202         (func_emit_initmacro_start, func_emit_initmacro_end,
73203         func_emit_initmacro_done): New functions.
73204         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73205         gl_LIBOBJS and gl_LTLIBOBJS.
73206
73207 2006-10-11  Bruno Haible  <bruno@clisp.org>
73208
73209         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73210         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73211         autoreconf. Instead, invoke autopoint explicitly but move back the
73212         *.m4 files from gnulib.
73213
73214 2006-10-11  Bruno Haible  <bruno@clisp.org>
73215
73216         * gnulib-tool (func_usage): Make module names after --create-testdir
73217         optional.
73218         (func_create_testdir): If no module was specified, use nearly all
73219         modules.
73220
73221 2006-10-12  Jim Meyering  <jim@meyering.net>
73222
73223         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73224         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73225         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73226         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73227         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73228         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73229         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73230         (fts_set_stat_required): New function.
73231         (fts_open): Defer the calls to fts_stat, if possible or requested.
73232         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73233         into fts_stat itself.
73234         (fts_read): Perform any required (deferred) fts_stat call.
73235         (fts_build): Likewise, for the directory we're about to open and read.
73236         In the readdir loop, carefully decide whether each entry will require
73237         an eventual call to fts_stat, using dirent.d_type info if available.
73238         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73239         a command line argument into this function.  Update all callers.
73240         Map a return value of FTS_DOT to FTS_D for a command line argument.
73241         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73242         Thanks to Miklos Szeredi for his tenacity and for the initial
73243         bug report about "find" failing on a FUSE-based file system.
73244
73245         * lib/fts.c (fts_open): Use consistent indentation.
73246
73247 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73248
73249         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73250         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73251         reported by Jim Meyering.  All uses of cache variables renamed
73252         to match Autoconf's.
73253         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73254         the other one.
73255
73256         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73257         Fix misspelling in diagnostic.
73258
73259 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73260
73261         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73262         defined.  Problem reported by Matthew Woehlke.
73263
73264         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73265         Add support for Tandem NonStop R series.
73266         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73267         Use new macro.
73268
73269         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73270         (has_trailing_slash): Omit size arg; all callers changed.
73271         Omit 'inline', since it doesn't help performance and we'd
73272         need to configure it.
73273         Don't count //, ///, etc. as having a trailing slash.
73274         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73275         (rpl_rename_dest_slash): On failure, use rename's errno rather
73276         than (in some cases) an incorrect or junk errno.
73277         Simplify code by removing need to compute length; this does
73278         cause it to make two passes instead of one over the file name,
73279         but it's worth it.
73280
73281         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73282         change, since Autoconf's version may no longer be appropriate now
73283         that we are using CVS Autoconf's version.  Add support for Tandem.
73284
73285 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73286             Bruno Haible  <bruno@clisp.org>
73287
73288         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73289         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73290         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73291         gl_AC_TYPE_LONG_LONG.
73292
73293         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73294         instead of HAVE_LONG_LONG.
73295         * lib/printf-args.c (printf_fetchargs): Likewise.
73296         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73297         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73298         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73299         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73300         gl_AC_TYPE_LONG_LONG.
73301
73302 2006-10-11  Bruno Haible  <bruno@clisp.org>
73303
73304         * m4/longlong.m4: Add comments.
73305         * m4/ulonglong.m4: Likewise.
73306
73307 2006-10-10  Bruno Haible  <bruno@clisp.org>
73308
73309         Make it possible to #define stpcpy, strdup to aliases.
73310         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73311         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73312
73313 2006-10-10  Bruno Haible  <bruno@clisp.org>
73314
73315         Make it possible to #define gcd to an alias.
73316         * lib/gcd.c: Include config.h.
73317
73318 2006-10-10  Bruno Haible  <bruno@clisp.org>
73319
73320         Make it possible to #define c_isascii to an alias.
73321         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73322         defined. Undefine the macros before defining them, to avoid gcc
73323         warnings.
73324         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73325         define NO_C_CTYPE_MACROS early.
73326
73327 2006-10-10  Bruno Haible  <bruno@clisp.org>
73328
73329         Make it possible to #define set_program_name to an alias.
73330         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73331         ENABLE_RELOCATABLE early.
73332
73333 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73334
73335         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73336         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73337         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73338         More generally, don't assume that 64-bit signed int is available
73339         if unsigned int is, and vice versa.
73340         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73341         unsigned symbols, not on their signed counterparts.
73342         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73343         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73344         (UINT64_C, UINTMAX_C):
73345         Likewise.
73346         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73347         unsigned counterparts.
73348         (Have_long_long, Unsigned): New macros.
73349         (Int): Renamed from INT.
73350         (strtoimax): Use the new macros.
73351         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73352         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73353         * modules/inttypes (inttypes.h): Substitute
73354         HAVE_UNSIGNED_LONG_LONG_INT.
73355         * modules/stdint (stdint.h): Likewise.
73356         (Files): Add m4/ulonglong.m4.
73357
73358 2006-10-10  Bruno Haible  <bruno@clisp.org>
73359
73360         Fix a gcc -Wshadow warning.
73361         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73362         to 'bucket'.
73363         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73364         gl_linked_indexof_from_to): Likewise.
73365         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73366         Likewise.
73367         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73368         Likewise.
73369         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73370         Reported by Eric Blake.
73371
73372 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73375         for NetBSD.  Problem reported by Bruno Haible.
73376
73377 2006-10-09  Jim Meyering  <jim@meyering.net>
73378
73379         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73380         Patch from Bruno Haible.
73381
73382 2006-10-09  Jim Meyering  <jim@meyering.net>
73383
73384         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73385         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73386         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73387
73388 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         Don't include <config.h> twice; this doesn't work in some cases,
73391         e.g., when config.h has "#define intmax_t long long int" and
73392         we include <config.h>, <inttypes.h>, <config.h> in that order.
73393         Problem reported by Matthew Woehlke in:
73394         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73395         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73396         * lib/fts-cycle.c: Don't include config.h.
73397         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73398         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73399         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73400         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73401         inttypes.h.
73402         * lib/xstrtoumax.c: Likewise.
73403         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73404         __strtol and the like, so that this module is more like its siblings.
73405         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73406         Remove; no longer needed now that we assume gnulib inttypes.h.
73407
73408 2006-10-08  Bruno Haible  <bruno@clisp.org>
73409
73410         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73411         option.
73412
73413 2006-10-07  Jim Meyering  <jim@meyering.net>
73414
73415         * modules/inttypes (inttypes.h): Revert what seems to have been
73416         an inadvertent part of today's change: use "|", not "/" in the
73417         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73418
73419 2006-10-07  Bruno Haible  <bruno@clisp.org>
73420
73421         * modules/sublist: New file.
73422
73423 2006-10-07  Bruno Haible  <bruno@clisp.org>
73424
73425         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73426         * modules/argz (argz.h): Likewise.
73427         * modules/arpa_inet (arpa/inet.h): Likewise.
73428         * modules/byteswap (byteswap.h): Likewise.
73429         * modules/configmake (configmake.h): Likewise.
73430         * modules/fcntl (fcntl.h): Likewise.
73431         * modules/fnmatch (fnmatch.h): Likewise.
73432         * modules/getopt (getopt.h): Likewise.
73433         * modules/glob (glob.h): Likewise.
73434         * modules/inttypes (inttypes.h): Likewise.
73435         * modules/netinet_in (netinet/in.h): Likewise.
73436         * modules/poll (poll.h): Likewise.
73437         * modules/stdbool (stdbool.h): Likewise.
73438         * modules/stdint (stdint.h): Likewise.
73439         * modules/sys_select (sys/select.h): Likewise.
73440         * modules/sys_socket (sys/socket.h): Likewise.
73441         * modules/sys_stat (sys/stat.h): Likewise.
73442         * modules/sysexits (sysexits.h): Likewise.
73443         * modules/unistd (unistd.h): Likewise.
73444         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73445         Add a "DO NOT EDIT" comment to the generated file.
73446         (func_import): Likewise for gnulib-comp.m4.
73447
73448 2006-10-07  Bruno Haible  <bruno@clisp.org>
73449
73450         * lib/gl_sublist.h: New file.
73451         * lib/gl_sublist.c: New file.
73452
73453 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73456         name (relative to the original working directory) and the file
73457         name component (relative to the temporary working directory).  All
73458         callers changed.
73459         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73460         * lib/mkdir-p.c (make_dir_parents): Likewise.
73461         * lib/mkdir-p.h (make_dir_parents): Likewise.
73462
73463 2006-10-06  Eric Blake  <ebb9@byu.net>
73464
73465         Define several macros for use by the clean-temp module.
73466         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73467         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73468         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73469
73470         * lib/clean-temp.h (close_stream_temp): New declaration.
73471         * lib/clean-temp.c (includes): Pull in headers according to what
73472         other modules are in use.
73473         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73474
73475 2006-10-06  Bruno Haible  <bruno@clisp.org>
73476
73477         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73478         instead of fopen, fwriteerror.
73479
73480 2006-10-06  Bruno Haible  <bruno@clisp.org>
73481
73482         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73483         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73484         int.
73485         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73486         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73487         Return an error indicator.
73488         Suggested by Eric Blake.
73489
73490 2006-10-06  Bruno Haible  <bruno@clisp.org>
73491
73492         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73493         Reported by Eric Blake.
73494
73495 2006-10-06  Bruno Haible  <bruno@clisp.org>
73496
73497         * modules/closeout (Description): Mention stderr too.
73498
73499 2006-10-06  Bruno Haible  <bruno@clisp.org>
73500         and Paul Eggert  <eggert@cs.ucla.edu>
73501
73502         * lib/closeout.c (close_stdout): Also close stderr.
73503         * lib/closeout.h: Update comment.
73504
73505 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73506
73507         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73508         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73509         * lib/dirchownmod.c: Include lchown.h.
73510         * lib/lchown.c: Don't include files that lchown.h now includes.
73511         Don't declare chown, since lchown.h now does that.
73512         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73513         (lchown): Define to rpl_chown if lchown is declared but
73514         does not exist.  Declare using a prototype if lchown is not
73515         declared.  Add a copyright notice.
73516         * lib/mkstemp.h: Include <unistd.h>.
73517         * lib/openat.c: Include lchown.h.
73518
73519         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73520         we now test for that separately.
73521         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73522         rather than O_NOFOLLOW, when testing whether it's possible to
73523         avoid a race condition reliably.
73524         * lib/savewd.c (savewd_chdir): Likewise.
73525
73526         Remove macros that are no longer needed now that stdint.h is
73527         reliable.
73528         * lib/fsusage.c (UINTMAX_MAX): Remove.
73529         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73530         * lib/utimecmp.c (SIZE_MAX): Remove.
73531
73532         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73533
73534         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73535         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73536         O_NOATIME works.
73537
73538 2006-10-05  Bruno Haible  <bruno@clisp.org>
73539
73540         * lib/gl_list.h (gl_sortedlist_search_from_to,
73541         gl_sortedlist_indexof_from_to): New declarations.
73542         (gl_list_implementation): New fields sortedlist_search_from_to,
73543         sortedlist_indexof_from_to.
73544         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73545         inline functions.
73546         * lib/gl_list.c (gl_sortedlist_search_from_to,
73547         gl_sortedlist_indexof_from_to): New functions.
73548         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73549         function.
73550         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73551         (gl_array_sortedlist_search_from_to): New function.
73552         (gl_array_list_implementation): Update.
73553         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73554         function.
73555         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73556         (gl_carray_sortedlist_search_from_to): New function.
73557         (gl_carray_list_implementation): Update.
73558         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73559         gl_linked_sortedlist_indexof_from_to): New functions.
73560         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73561         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73562         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73563         gl_tree_sortedlist_indexof_from_to): New functions.
73564         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73565         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73566         Update.
73567         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73568         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73569         Update.
73570
73571 2006-10-05  Bruno Haible  <bruno@clisp.org>
73572
73573         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73574         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73575         (struct gl_list_implementation): Add fields search_from_to,
73576         indexof_from_to. Remove fields search, indexof.
73577         (gl_list_search): Use the search_from_to method.
73578         (gl_list_search_from, gl_list_search_from_to): New functions.
73579         (gl_list_indexof): Use the indexof_from_to method.
73580         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73581         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73582         (gl_list_search_from, gl_list_search_from_to): New functions.
73583         (gl_list_indexof): Use the indexof_from_to method.
73584         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73585         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73586         gl_array_indexof. Add start_index, end_index arguments.
73587         (gl_array_search_from_to): Renamed from gl_array_search. Add
73588         start_index, end_index arguments.
73589         (gl_array_remove, gl_array_list_implementation): Update.
73590         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73591         gl_carray_indexof. Add start_index, end_index arguments.
73592         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73593         start_index, end_index arguments.
73594         (gl_carray_remove, gl_carray_list_implementation): Update.
73595         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73596         gl_linked_search. Add start_index, end_index arguments.
73597         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73598         start_index, end_index arguments.
73599         (gl_linked_remove): Update.
73600         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73601         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73602         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73603         field to 'size_t'.
73604         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73605         gl_tree_search. Add start_index, end_index arguments.
73606         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73607         start_index, end_index arguments.
73608         (gl_tree_remove): Update.
73609         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73610         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73611         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73612         function.
73613         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73614         gl_tree_search. Add start_index, end_index arguments.
73615         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73616         start_index, end_index arguments.
73617         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73618         Update.
73619         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73620
73621 2006-10-05  Bruno Haible  <bruno@clisp.org>
73622
73623         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73624
73625         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73626         fwriteerror_temp): New declarations.
73627         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73628         (descriptors): New variable.
73629         (cleanup): First, close the descriptors.
73630         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73631         fclose_temp, fwriteerror_temp): New functions.
73632
73633 2006-10-04  Jim Meyering  <jim@meyering.net>
73634
73635         * lib/fts.c (fts_open): Tiny comment change.
73636
73637 2006-10-04  Bruno Haible  <bruno@clisp.org>
73638
73639         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73640         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73641         gl_LOCK_BODY.
73642         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73643         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73644         gl_LOCK_EARLY_BODY.
73645         (gl_LOCK): Require gl_LOCK_BODY.
73646
73647 2006-10-04  Bruno Haible  <bruno@clisp.org>
73648
73649         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73650         (gl_oset_search_atleast): New declaration.
73651         (struct gl_oset_implementation): Add field 'search_atleast'.
73652         (gl_oset_search_atleast): New inline function.
73653         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73654         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73655         (gl_array_oset_implementation): Update.
73656         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73657         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73658         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73659
73660 2006-10-04  Bruno Haible  <bruno@clisp.org>
73661
73662         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73663
73664 2006-10-03  Bruno Haible  <bruno@clisp.org>
73665
73666         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73667         from gl_avltreehash_list_implementation.
73668
73669 2006-10-03  Bruno Haible  <bruno@clisp.org>
73670
73671         * lib/gl_oset.c (gl_oset_add): Fix return type.
73672
73673 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73674
73675         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73676
73677 2006-10-02  Eric Blake  <ebb9@byu.net>
73678
73679         * modules/strnlen (Depends-on): Add extensions.
73680
73681 2006-10-02  Eric Blake  <ebb9@byu.net>
73682
73683         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73684         definition in 2.60+.
73685
73686 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73687
73688         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73689         checks.
73690
73691 2006-10-02  Bruno Haible  <bruno@clisp.org>
73692
73693         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73694         to the AUTOMAKE_OPTIONS.
73695         Reported by Jim Meyering.
73696
73697 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73698
73699         Work around bug in Solaris 10 /proc file system:
73700         /proc/self/fd/NNN/.. isn't the parent directory of
73701         the directory whose file descriptor is NNN.  This needs to
73702         be worked around at run time, not compile time, since a
73703         program might be built on Solaris 8, where things work, and
73704         run on Solaris 10.
73705         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73706         to use the following interface instead:
73707         (OPENAT_BUFFER_SIZE): New macro.
73708         (openat_proc_name): New function.
73709         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73710         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73711         Likewise.
73712         * lib/openat-proc.c: New file.
73713         * modules/openat (Files): Add lib/openat-proc.c.
73714         (Depends-on): Add same-inode, stdbool.
73715         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73716
73717 2006-09-29  Bruno Haible  <bruno@clisp.org>
73718
73719         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73720         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73721         argument. Set stdout_closed before testing for ferror, not after.
73722         (fwriteerror, fwriteerror_no_ebadf): New functions.
73723
73724 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73725
73726         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73727
73728 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73729
73730         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73731         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73732
73733 2006-09-28  Jim Meyering  <jim@meyering.net>
73734
73735         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73736         Include <unistd.h>.
73737
73738 2006-09-28  Bruno Haible  <bruno@clisp.org>
73739
73740         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73741         * modules/linkedhash-list (Depends-on): Likewise.
73742         * modules/rbtreehash-list (Depends-on): Likewise.
73743
73744 2006-09-28  Bruno Haible  <bruno@clisp.org>
73745
73746         * lib/strndup.h: Simplify the redefinition of strndup.
73747         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73748         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73749
73750 2006-09-28  Bruno Haible  <bruno@clisp.org>
73751
73752         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73753         * lib/gl_linkedhash_list.c: Likewise.
73754         * lib/gl_rbtreehash_list.c: Likewise.
73755
73756 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73757
73758         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73759         getaddrinfo.
73760
73761         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73762         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73763         it causes <stdio_ext.h> to cause a compile-time error.
73764         Problem reported by Nelson H. F. Beebe.
73765         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73766         of HAVE_DECL___PENDING.
73767
73768         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73769         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73770         declaration.
73771
73772 2006-09-27  Jim Meyering  <jim@meyering.net>
73773
73774         This file could end up with a definition for a function
73775         named __strndup, rather than rpl_strndup on a system with
73776         incomplete weak_alias support.
73777         * lib/strndup.c (strndup): Rename from __strndup.
73778         Remove #defines that used to map __strndup to strndup.
73779         Don't use K&R prototypes.
73780         Remove LIBC-related code, since this file is not sync'd with glibc.
73781         * lib/strndup.h: Revamp, accordingly.
73782         * m4/strndup.m4: Modernize.
73783
73784 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73785
73786         * modules/savewd (Depends-on): Add 'raise'.
73787         * lib/savewd.c: Include <signal.h>, for 'raise'.
73788
73789 2006-09-26  Jim Meyering  <jim@meyering.net>
73790
73791         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73792         when we detect Darwin 8.7.0's acl_get_file bug.
73793         Rearrange to perform the new (below) run-test while $LIBS
73794         contains any acl-related library.  Set USE_ACL at the end.
73795         (gl_ACL_GET_FILE): New function.
73796
73797 2006-09-26  Eric Blake  <ebb9@byu.net>
73798
73799         * lib/verror.c: Include <config.h> unconditionally.
73800
73801 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73802
73803         * modules/clock-time (Maintainer): Add self.
73804         * modules/getlogin_r (Depends-on): Add extensions.
73805
73806 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73807
73808         * modules/clock-time: New module.
73809         * modules/nanosleep (Depends-on): Add clock-time.
73810         * modules/gethrxtime (Depends-on): Likewise.
73811         * modules/gettime (Depends-on): Likewise.
73812         * modules/settime (Depends-on): Likewise.
73813
73814         * modules/fts-lgpl: Depend on openat.
73815         * modules/mkancesdirs: Depend on savewd.
73816         * modules/mkdir-p: Likewise.
73817
73818 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73819
73820         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73821
73822         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73823         `gl_have_arbitrary_file_name_length_limit' to
73824         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73825         actually works between configure runs.
73826
73827 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73828             Bruno Haible  <bruno@clisp.org>
73829
73830         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73831
73832 2006-09-25  Jim Meyering  <jim@meyering.net>
73833
73834         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73835         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73836
73837 2006-09-25  Eric Blake  <ebb9@byu.net>
73838
73839         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73840         exec's in 2006-09-18 patch when shuffling fds.
73841
73842 2006-09-25  Bruno Haible  <bruno@clisp.org>
73843
73844         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73845         Reported by Jim Meyering.
73846
73847 2006-09-24  Jim Meyering  <jim@meyering.net>
73848
73849         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73850         compare a pointer against a literal "0".  That caused failures with
73851         at least HP-UX's hpcc.
73852
73853 2006-09-22  Simon Josefsson  <jas@extundo.com>
73854
73855         * modules/gc-sha1:
73856         * modules/gc-md4:
73857         * modules/gc-hmac-sha1:
73858         * modules/gc-hmac-md5:
73859         * modules/gc-des:
73860         * modules/gc-arcfour: Distribute more files.
73861
73862 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73863
73864         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73865         (gl_linked_iterator_from_to): Initialize struct completely.
73866         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73867         (gl_tree_iterator_from_to): Likewise
73868         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73869         * lib/gl_array_list.c [lint] (gl_array_iterator)
73870         (gl_array_iterator_from_to): Likewise.
73871         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73872         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73873         (gl_carray_iterator_from_to): Likewise.
73874
73875         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73876         * lib/md4.c (md4_process_block): Remove unused variable.
73877         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73878         parentheses for clarity.
73879
73880 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73881
73882         * modules/bison-i18n (Depends-on): Add gettext.
73883
73884 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73885
73886         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73887         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73888         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73889         also add missing comma that caused broken test.
73890         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73891         stdlib.h, for `abort'.
73892         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73893         variables.
73894         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73895         include unistd.h if present, for `rmdir'.
73896         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73897         variables.
73898         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73899         in the process include standard headers for prototypes.
73900         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73901         gets declared on GNU/Linux.
73902         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73903         unistd.h, for `rmdir'.
73904         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73905
73906         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73907         always true.
73908         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73909
73910         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73911
73912 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73913
73914         * gnulib-tool (func_version): Create output all at once.  This
73915         may help avoid triggering unnecessary SIGPIPEs, and at any
73916         rate it doesn't hurt.
73917
73918 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73919             Bruno Haible  <bruno@clisp.org>
73920
73921         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73922         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73923         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73924
73925         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73926         (gl_FUNC_VASPRINTF): Invoke it.
73927
73928 2006-09-22  Bruno Haible  <bruno@clisp.org>
73929
73930         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73931         getloadavg.c as first argument.
73932
73933 2006-09-22  Bruno Haible  <bruno@clisp.org>
73934
73935         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73936         at the beginning of the gl_INIT macro.
73937         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73938         gl_GETLOADAVG.
73939
73940 2006-09-22  Bruno Haible  <bruno@clisp.org>
73941
73942         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73943         module.
73944         Suggested by Ralf Wildenhues.
73945
73946 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73947
73948         Import this patch from libc:
73949
73950         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73951
73952         * lib/regex_internal.c (re_string_reconstruct): Handle
73953         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73954         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73955         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73956         re_string_context_at.
73957
73958         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73959         now requires it.
73960         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73961         gl_REGEX now does it for us.
73962         (gl_REGEX): Add test taken from
73963         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73964
73965         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73966         Check that large offsets work.  Modernize Autoconf usages.
73967         Prefer "yes" to mean a good thing rather than a bad.
73968         Don't put "#define mkstemp" in config.h, as this might interfere
73969         with standard system headers that "#define mkstemp mkstemp64".
73970
73971         * modules/mkstemp (Depends-on): Add extensions, so that
73972         mkstemp is visible on some platforms.
73973         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73974         (Include): Change to "mkstemp.h" from <stdlib.h>.
73975         (Files): Add mkstemp.h.
73976
73977         * lib/mkstemp.h: New file, since some standard headers
73978         #define mkstemp.
73979         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73980         Include "mkstemp.h".
73981         Make the _LIBC code resemble glibc original more,
73982         e.g., use K&R style.
73983         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73984         (mkstemp): Remove, since mkstemp.h does this for us.
73985         * lib/stdlib--.h: Include mkstemp.h.
73986
73987         Import this patch from libc:
73988
73989         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73990
73991         * lib/tempname.c (__gen_tempname): Change attempts_min
73992         into a macro.  Use preprocessor to decide how to initialize
73993         attempts [Coverity CID 67].
73994
73995 2006-09-20  Bruno Haible  <bruno@clisp.org>
73996
73997         * lib/mkdtemp.c: Import from libc.
73998         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73999                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74000                 attempts_min into a macro.  Use preprocessor to decide how to
74001                 initialize attempts [Coverity CID 67].
74002         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74003                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74004                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74005
74006 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74007
74008         * gnulib-tool (func_exit): New function, to allow to pass the
74009         exit status portably through the trap.  Use everywhere.
74010         (--help, --version): Signal a write error.
74011         (trap): catch SIGPIPE, for write errors.
74012         Exit at the end of the trap, with the correct exit status.
74013
74014 2006-09-19  Karl Berry  <karl@gnu.org>
74015
74016         * doc/gnulib.texi: note about the license texinfo files.
74017
74018 2006-09-19  Eric Blake  <ebb9@byu.net>
74019
74020         * gnulib-tool: Avoid space-tab.
74021
74022 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74023
74024         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74025         that prevented coreutils 6.1 from building.  Problem reported
74026         by Petter Reinholdtsen.
74027
74028 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74029
74030         * gnulib-tool (avoidlist): Fix typo that broke options like
74031         --avoid=lock that are used by coreutils bootstrap.
74032
74033 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74034
74035         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74036         more systematically.
74037
74038 2006-09-18  Jim Meyering  <jim@meyering.net>
74039
74040         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74041
74042 2006-09-18  Bruno Haible  <bruno@clisp.org>
74043
74044         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74045
74046 2006-09-18  Bruno Haible  <bruno@clisp.org>
74047
74048         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74049         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74050         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74051         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74052         * m4/gettext.m4: Require autoconf >= 2.52.
74053         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74054         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74055         of gl_cv_header_inttypes_h.
74056
74057 2006-09-18  Bruno Haible  <bruno@clisp.org>
74058
74059         * lib/javaversion.c: Include configmake.h.
74060
74061 2006-09-18  Bruno Haible  <bruno@clisp.org>
74062
74063         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74064         avoid that the while loops be executed in a subshell.
74065
74066 2006-09-18  Bruno Haible  <bruno@clisp.org>
74067
74068         * MODULES.html.sh (func_module): Break long lines.
74069         Suggested by Bruce Korb <bkorb@gnu.org>.
74070
74071 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74072
74073         Speed up by a factor of 1.12.
74074         * gnulib-tool (nl): New variable.
74075         (func_import): Rewrite include directive extraction to only read each
74076         directive once.
74077
74078 2006-09-17  Bruno Haible  <bruno@clisp.org>
74079
74080         * modules/javaversion (Makefile.am): Remove DEFS setting.
74081         (Depends-on): Add configmake, for PKGDATADIR definition.
74082
74083 2006-09-17  Bruno Haible  <bruno@clisp.org>
74084
74085         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74086
74087 2006-09-17  Bruno Haible  <bruno@clisp.org>
74088
74089         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74090         (func_modules_transitive_closure, func_modules_add_dummy,
74091         func_modules_to_filelist, func_import, func_create_testdir,
74092         func_create_megatestdir, ...): Use it wherever possible.
74093         Suggested by Ralf Wildenhues.
74094
74095 2006-09-16  Karl Berry  <karl@gnu.org>
74096
74097         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74098         to avoid sectioning errors.
74099         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74100         [ifinfo]: blank line after @center-ed titles.
74101         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74102         Spell FSF address consistently with others.
74103         (These changes approved by rms.)
74104
74105 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74106
74107         Speed up by a factor of 1.61.
74108         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74109         already checked module names again.
74110
74111 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74112
74113         Speed up by a factor of 1.13.
74114         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74115         for new_files, and the input to func_add_or_update.
74116
74117 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74118
74119         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74120         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74121
74122 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74123
74124         * modules/mkancesdirs (Depends-on): Add fcntl.
74125         * modules/savewd: New file.
74126         * MODULES.html.sh (File system functions): Add savewd.
74127
74128         * modules/configmake (Makefile.am): Add support for the
74129         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74130
74131 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * m4/savewd.m4: New file.
74134
74135 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74136
74137         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74138         (dirchownmod): New arg FD.  All callers changed.
74139         Use FD rather than opening the directory ourself, as opening is
74140         now the caller's responsibility.
74141         * lib/dirchownmod.h: Likewise.
74142         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74143         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74144         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74145         (test_dir): Remove.
74146         (mkancesdirs): Return length of prefix of FILE that has already
74147         been made, or -2 if there is a child doing the work.  Redo
74148         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74149         ".", and treat ".." specially since it might stray back into
74150         already-created areas.  Use a subprocess if necessary.  New arg
74151         WD; all users changed.  MAKE_DIR function should now return 1
74152         if it creates a directory that is not readable.  Return -2 if
74153         a child process is spun off.
74154         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74155         Adjust signature to match code.
74156         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74157         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74158         all users changed.
74159         * lib/savewd.c, lib/savewd.h: New files.
74160
74161 2006-09-15  Jim Meyering  <jim@meyering.net>
74162
74163         * modules/rename-dest-slash: New module.
74164         * MODULES.html.sh (posix_compat): Add it here.
74165
74166         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74167
74168 2006-09-15  Jim Meyering  <jim@meyering.net>
74169
74170         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74171         file.
74172
74173         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74174
74175 2006-09-15  Jim Meyering  <jim@meyering.net>
74176
74177         * lib/rename-dest-slash.c (has_trailing_slash): Use
74178         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74179         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74180         test before testing whether SRC is a directory.
74181         Suggestions from Bruno Haible.
74182
74183         Avoid a warning about an unused variable.
74184         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74185         into the #ifdef block where it's used.
74186
74187         * lib/rename-dest-slash.c: New file.
74188
74189 2006-09-14  Bruno Haible  <bruno@clisp.org>
74190
74191         * lib/allocsa.c: Include <config.h> unconditionally.
74192         * lib/asnprintf.c: Likewise.
74193         * lib/asprintf.c: Likewise.
74194         * lib/c-strcasecmp.c: Likewise.
74195         * lib/c-strcasestr.c: Likewise.
74196         * lib/c-strncasecmp.c: Likewise.
74197         * lib/c-strstr.c: Likewise.
74198         * lib/classpath.c: Likewise.
74199         * lib/clean-temp.c: Likewise.
74200         * lib/concatpath.c: Likewise.
74201         * lib/copy-file.c: Likewise.
74202         * lib/csharpcomp.c: Likewise.
74203         * lib/csharpexec.c: Likewise.
74204         * lib/execute.c: Likewise.
74205         * lib/fatal-signal.c: Likewise.
74206         * lib/findprog.c: Likewise.
74207         * lib/fwriteerror.c: Likewise.
74208         * lib/gl_array_list.c: Likewise.
74209         * lib/gl_array_oset.c: Likewise.
74210         * lib/gl_avltree_list.c: Likewise.
74211         * lib/gl_avltree_oset.c: Likewise.
74212         * lib/gl_avltreehash_list.c: Likewise.
74213         * lib/gl_carray_list.c: Likewise.
74214         * lib/gl_linked_list.c: Likewise.
74215         * lib/gl_linkedhash_list.c: Likewise.
74216         * lib/gl_list.c: Likewise.
74217         * lib/gl_oset.c: Likewise.
74218         * lib/gl_rbtree_list.c: Likewise.
74219         * lib/gl_rbtree_oset.c: Likewise.
74220         * lib/gl_rbtreehash_list.c: Likewise.
74221         * lib/imaxabs.c: Likewise.
74222         * lib/imaxdiv.c: Likewise.
74223         * lib/javacomp.c: Likewise.
74224         * lib/javaexec.c: Likewise.
74225         * lib/javaversion.c: Likewise.
74226         * lib/linebreak.c: Likewise.
74227         * lib/localcharset.c: Likewise.
74228         * lib/lock.c: Likewise.
74229         * lib/mbchar.c: Likewise.
74230         * lib/mbswidth.c: Likewise.
74231         * lib/mkdtemp.c: Likewise.
74232         * lib/pipe.c: Likewise.
74233         * lib/printf-args.c: Likewise.
74234         * lib/printf-parse.c: Likewise.
74235         * lib/progname.c: Likewise.
74236         * lib/progreloc.c: Likewise.
74237         * lib/readlink.c: Likewise.
74238         * lib/sh-quote.c: Likewise.
74239         * lib/stpcpy.c: Likewise.
74240         * lib/stpncpy.c: Likewise.
74241         * lib/strcasecmp.c: Likewise.
74242         * lib/strcasestr.c: Likewise.
74243         * lib/strcspn.c: Likewise.
74244         * lib/striconv.c: Likewise.
74245         * lib/strncasecmp.c: Likewise.
74246         * lib/strnlen1.c: Likewise.
74247         * lib/strstr.c: Likewise.
74248         * lib/strtok_r.c: Likewise.
74249         * lib/tls.c: Likewise.
74250         * lib/tmpdir.c: Likewise.
74251         * lib/unicodeio.c: Likewise.
74252         * lib/unsetenv.c: Likewise.
74253         * lib/vasnprintf.c: Likewise.
74254         * lib/vasprintf.c: Likewise.
74255         * lib/wait-process.c: Likewise.
74256         * lib/xallocsa.c: Likewise.
74257         * lib/xsetenv.c: Likewise.
74258         * lib/xstriconv.c: Likewise.
74259
74260 2006-09-13  Simon Josefsson  <jas@extundo.com>
74261
74262         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74263         that internally, suggested by Ralf Wildenhues
74264         <Ralf.Wildenhues@gmx.de>.
74265
74266 2006-09-13  Simon Josefsson  <jas@extundo.com>
74267
74268         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74269         @LIBOBJS@.
74270         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74271
74272 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74273
74274         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74275         longer worry about uses that don't define HAVE_CONFIG_H.
74276         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74277         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74278         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74279         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74280         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74281         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74282         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74283         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74284         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74285         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74286         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74287         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74288         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74289         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74290         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74291         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74292         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74293         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74294         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74295         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74296         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74297         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74298         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74299         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74300         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74301         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74302         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74303         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74304         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74305         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74306         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74307         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74308         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74309         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74310         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74311         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74312         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74313         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74314         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74315         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74316         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74317         Likewise.
74318
74319 2006-09-13  Eric Blake  <ebb9@byu.net>
74320
74321         * lib/getopt.c: Fix typo in last commit.
74322
74323 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74324
74325         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74326         dgettext.
74327
74328 2006-09-12  Jim Meyering  <jim@meyering.net>
74329
74330         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74331         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74332         Reported by Nelson H. F. Beebe.
74333
74334 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74335
74336         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74337         program_invocation_name and program_invocation_short_name are
74338         initialized.
74339         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74340         and program_invocation_short_name to argp.h, so they are visible
74341         to user programs.
74342         * lib/argp.h: Likewise
74343
74344 2006-09-10  Bruno Haible  <bruno@clisp.org>
74345
74346         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74347         m4/inttypes_h.m4, m4/uintmax_t.m4.
74348
74349 2006-09-10  Bruno Haible  <bruno@clisp.org>
74350
74351         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74352         gl_AC_TYPE_UINTMAX_T.
74353
74354 2006-09-10  Bruno Haible  <bruno@clisp.org>
74355
74356         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74357
74358 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74359
74360         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74361         convention.  Text proposed by Bruno Haible.
74362         (struct argp_option): Document the use of N_() wrappers.
74363
74364         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74365         '\v', and translate the two parts separately, instead of feeding
74366         the whole string to gettext.  This allows to exclude
74367         '\v' from the strings visible to the translator by writing doc
74368         strings as N_("..") "\v" N_("..").
74369
74370 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74371
74372         * config/srclist.txt: Undo latest change; the bug was fixed.
74373
74374 2006-09-09  Bruno Haible  <bruno@clisp.org>
74375
74376         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74377         assignments if building a library without libtool.
74378         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74379         in func_emit_lib_Makefile_am.
74380         (func_import): When building a static library libfoo.a, arrange to
74381         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74382         (func_create_testdir): Likewise.
74383         * modules/gc (configure.ac, Makefile.am): If building statically,
74384         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74385         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74386         * modules/striconv (configure.ac, Makefile.am): Likewise.
74387         Based on a suggestion by Ralf Wildenhues.
74388
74389 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74390
74391         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74392         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74393         Also:
74394
74395         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74396         Add year_2050_test to catch glibc bug 2821
74397         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74398
74399         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74400         Prefer #ifdef to #if.
74401
74402         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74403         Return from 'main' instead of calling 'exit'.
74404
74405 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74408         returned the maximum time_t value rather than (time_t) -1.
74409         Problem originally reported by William Bardwell
74410         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74411
74412         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74413         Moved to here ...
74414         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74415         ... from here.
74416
74417 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74420         2821 is fixed.
74421
74422 2006-09-08  Jim Meyering  <jim@meyering.net>
74423
74424         Don't make generated files read-only.  That would bother too many
74425         people.  However, do retain the ability to work when targets are
74426         read-only: remove the destination and temporary files before writing
74427         them (when generated via sed or echo), or by using the -f option for
74428         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74429         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74430         * modules/byteswap, modules/configmake, modules/fcntl:
74431         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74432         * modules/localcharset, modules/netinet_in, modules/poll:
74433         * modules/stdbool, modules/stdint, modules/sys_select:
74434         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74435
74436 2006-09-08  Jim Meyering  <jim@meyering.net>
74437
74438         Avoid new build failure on FreeBSD 6.0.
74439         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74440         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74441         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74442
74443 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74444
74445         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74446
74447 2006-09-07  Jim Meyering  <jim@meyering.net>
74448
74449         Fix global typo in last change: use chmod u-w, not chmod u-x.
74450         Spotted by Paul Eggert and Bruce Korb.
74451         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74452         * modules/byteswap, modules/configmake, modules/fcntl:
74453         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74454         * modules/localcharset, modules/netinet_in, modules/poll:
74455         * modules/stdbool, modules/stdint, modules/sys_select:
74456         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74457
74458 2006-09-06  Jim Meyering  <jim@meyering.net>
74459
74460         Make generated files be read-only.
74461         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74462         Ensure that each generated file is now read-only.
74463         * modules/argz: Likewise.
74464         * modules/arpa_inet: Likewise.
74465         * modules/byteswap: Likewise.
74466         * modules/configmake: Likewise.
74467         * modules/fcntl: Likewise.
74468         * modules/fnmatch: Likewise.
74469         * modules/getopt: Likewise.
74470         * modules/glob: Likewise.
74471         * modules/inttypes: Likewise.
74472         * modules/netinet_in: Likewise.
74473         * modules/poll: Likewise.
74474         * modules/stdbool: Likewise.
74475         * modules/stdint: Likewise.
74476         * modules/sys_select: Likewise.
74477         * modules/sys_socket: Likewise.
74478         * modules/sys_stat: Likewise.
74479         * modules/sysexits: Likewise.
74480         * modules/localcharset: Same as above, but continue using temporary
74481         file named "t-$@" (why different?) rather than the "$@-t" used
74482         everywhere else.
74483
74484         * modules/sysexits (Makefile.am): Replace literal occurrences
74485         of "sysexit.h" more readable, and more consistent, "$@".
74486
74487 2006-09-06  Bruno Haible  <bruno@clisp.org>
74488
74489         * modules/striconv: New file.
74490         * modules/xstriconv: New file.
74491         * MODULES.html.sh (Internationalization functions): Add striconv,
74492         xstriconv.
74493
74494 2006-09-06  Bruno Haible  <bruno@clisp.org>
74495
74496         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74497         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74498         not using libtool correctly.
74499
74500 2006-09-06  Bruno Haible  <bruno@clisp.org>
74501
74502         * lib/striconv.h: New file.
74503         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74504         iconvstring.c.
74505         * lib/xstriconv.h: New file.
74506         * lib/xstriconv.c: New file.
74507
74508 2006-09-06  Bruno Haible  <bruno@clisp.org>
74509
74510         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74511         lib_..._LDFLAGS.
74512
74513 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74514
74515         * lib/argz_.h: Sync from Libtool.
74516
74517         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74518                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74519
74520         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74521
74522 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74523
74524         * modules/trim: New file.
74525
74526 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74527
74528         * lib/trim.h: New file.
74529         * lib/trim.c: New file.
74530
74531 2006-09-05  Bruno Haible  <bruno@clisp.org>
74532
74533         * MODULES.html.sh (String handling): Add trim.
74534
74535 2006-09-04  Karl Berry  <karl@gnu.org>
74536
74537         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74538         until next release.
74539
74540 2006-09-03  Bruno Haible  <bruno@clisp.org>
74541
74542         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74543         correctly.
74544
74545 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74548         not gl_GETLOADAVG.  Omit unneeded semicolons.
74549         Problems reported by Ralf Wildenhues in
74550         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74551         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74552         at the end, which is the usual gnulib style.
74553
74554         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74555         of doing all the work ourselves.
74556         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74557         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74558
74559 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74562         Problem reported by Ralf Wildenhues in
74563         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74564
74565         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74566         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74567
74568 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74569
74570         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74571         yesterday's patch by changing test -n to test -z.
74572
74573 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74574
74575         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74576         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74577         the former is now obsolescent.
74578
74579         * modules/chdir-long (Depends-on): Add fcntl.
74580
74581 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74582
74583         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74584         obsolescent, and programs should use gnulib instead.
74585         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74586         but with prefixes changed.
74587
74588 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74589
74590         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74591         or stdbool.h, because they might not exist while configuring.
74592
74593         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74594         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74595         does that for us.
74596         (O_DIRECTORY): Remove.
74597
74598 2006-08-31  Eric Blake  <ebb9@byu.net>
74599
74600         * gnulib-tool: Don't let emacs change spaces to TAB.
74601
74602 2006-08-31  Bruno Haible  <bruno@clisp.org>
74603
74604         * gnulib-tool: When calling func_import more than once, do it in a
74605         subshell.
74606         Reported by Eric Blake <ebb9@byu.net>.
74607
74608 2006-08-31  Bruno Haible  <bruno@clisp.org>
74609
74610         * gnulib-tool (nl): Remove variable.
74611         (sed_transform_lib_file): Use more robust test for config-h module.
74612         (func_import): Fix typo in 2006-08-25 patch.
74613
74614 2006-08-31  Bruno Haible  <bruno@clisp.org>
74615
74616         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74617         specified, augment Makefile.am variables instead of assigning them.
74618
74619 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         Work around a bug in both the Linux and SunOS 64-bit kernels:
74622         nanosleep mishandles sleeps for longer than 2**31 seconds.
74623         Problem reported by Frank v Waveren in
74624         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74626         Check for nanosleep bug.
74627         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74628
74629 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74630
74631         Work around a bug in both the Linux and SunOS 64-bit kernels:
74632         nanosleep mishandles sleeps for longer than 2**31 seconds.
74633         Problem reported by Frank v Waveren in
74634         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74635         * lib/nanosleep.c (BILLION): New constant.
74636         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74637         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74638         implementation.
74639
74640 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * modules/nanosleep (Depends-on): Add gettime.
74643
74644 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74645         and Simon Josefsson  <jas@extundo.com>
74646         and Oskar Liljeblad  <oskar@osk.mine.nu>
74647
74648         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74649         * gnulib-tool (func_import): New license type 'unmodifiable license
74650         text'.
74651         * modules/fdl: Use it.  Longer description.
74652         * module/gpl, module/lgpl: New files.
74653
74654 2006-08-30  Jim Meyering  <jim@meyering.net>
74655
74656         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74657         shadowing the parameter.
74658
74659 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74660
74661         Sync from Libtool:
74662
74663         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74664
74665         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74666         sharing with gnulib.  Report by Eric Blake.
74667
74668 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74669
74670         * modules/isapipe: New file.
74671         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74672
74673 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         * modules/configmake (Makefile.am): Add a comment, and omit
74676         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74677         by Bruno Haible.
74678
74679 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         * m4/isapipe.m4: New file.
74682
74683 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74684
74685         * lib/isapipe.c, lib/isapipe.h: New files.
74686
74687 2006-08-29  Jim Meyering  <jim@meyering.net>
74688
74689         * modules/configmake (Makefile.am): Make configmake.h depend on
74690         Makefile.  Otherwise, a stale configmake.h could hang around.
74691
74692 2006-08-29  Eric Blake  <ebb9@byu.net>
74693
74694         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74695         resolution of upstream bug 3044.
74696
74697 2006-08-29  Bruno Haible  <bruno@clisp.org>
74698
74699         * modules/localcharset (Depends-on): Add configmake.
74700         (Makefile.am): Remove setting of LIBDIR through DEFS.
74701
74702 2006-08-29  Bruno Haible  <bruno@clisp.org>
74703
74704         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74705         defined.
74706
74707 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74708
74709         * modules/fcntl: New file.
74710         * modules/chdir-safer (Depends-on): Add fcntl.
74711         * modules/fts: Likewise.
74712         * modules/mkdir-p: Likewise.
74713
74714         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74715         This undoes the most recent change, since we're now addressing the
74716         problem in a different way.
74717
74718         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74719         into output, since the output might be called Makefile.am even
74720         if $makefile_name is something different.
74721         (func_import): Use $makefile_am rather than
74722         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74723         empty.
74724
74725         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74726
74727 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74728
74729         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74730         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74731         recent change to stdint.m4, since we're now addressing the problem in a
74732         different way.
74733
74734 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74735
74736         * m4/fcntl_h.m4: New file.
74737
74738 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74739
74740         * lib/fcntl_.h: New file.
74741         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74742         the fcntl module.
74743         * lib/dirchownmod.c: Likewise.
74744         * lib/fts.c: Likewise.
74745
74746         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74747         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74748         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74749         just before including <inttypes.h>, to avoid circular inclusion.
74750
74751 2006-08-28  Jim Meyering  <jim@meyering.net>
74752
74753         * doc/visibility.texi: Actually read and correct the grammar of the
74754         sentence affected by yesterday's change.
74755
74756 2006-08-28  Eric Blake  <ebb9@byu.net>
74757
74758         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74759         needs wrapper.
74760
74761 2006-08-28  Eric Blake  <ebb9@byu.net>
74762
74763         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74764
74765 2006-08-28  Eric Blake  <ebb9@byu.net>
74766
74767         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74768
74769 2006-08-28  Bruno Haible  <bruno@clisp.org>
74770
74771         * modules/c-strstr: New file, from GNU gettext.
74772         * MODULES.html.sh (String handling): Add c-strstr.
74773
74774 2006-08-28  Bruno Haible  <bruno@clisp.org>
74775
74776         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74777         macros.
74778         Reported by Eric Blake.
74779
74780 2006-08-28  Bruno Haible  <bruno@clisp.org>
74781
74782         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74783         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74784         * lib/vasprintf.c: Include errno.h, limits.h.
74785         (EOVERFLOW): New fallback definition.
74786         (vasprintf): Test here whether the string length is > INT_MAX.
74787         * lib/vsnprintf.c: Include errno.h, limits.h.
74788         (EOVERFLOW): New fallback definition.
74789         (vsnprintf): Fix bug when generated string was too long for the buffer.
74790         Test here whether the string length is > INT_MAX.
74791
74792 2006-08-28  Bruno Haible  <bruno@clisp.org>
74793
74794         * lib/inttypes_.h (SCNX*): Remove definitions.
74795         Reported by Eric Blake.
74796
74797 2006-08-28  Bruno Haible  <bruno@clisp.org>
74798
74799         * lib/c-strstr.h: New file, from GNU gettext.
74800         * lib/c-strstr.c: New file, from GNU gettext.
74801
74802 2006-08-28  Bruno Haible  <bruno@clisp.org>
74803
74804         * gnulib-tool: Reorder some statements.
74805
74806 2006-08-28  Bruno Haible  <bruno@clisp.org>
74807
74808         * gnulib-tool: New option --makefile-name.
74809         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74810         $makefile_name.
74811         (func_import): Write $makefile_name to the cache file, and read it from
74812         there unless explicitly specified. Use $makefile_name as file name
74813         instead of Makefile.am. Adjust the recommendations accordingly.
74814
74815 2006-08-28  Bruno Haible  <bruno@clisp.org>
74816
74817         * gnulib-tool (func_verify_module): Check against misapplying patch.
74818
74819 2006-08-28  Bruno Haible  <bruno@clisp.org>
74820
74821         * gnulib-tool (func_relativize, func_relconcat): New functions.
74822         Give an error if --local-dir is given with --update.
74823         Remove trailing slashes from $local_gnulib_dir.
74824         (func_import): Store the relativized $local_gnulib_dir in
74825         gnulib-cache.m4, and read it from there if not specified explicitly.
74826
74827 2006-08-28  Bruno Haible  <bruno@clisp.org>
74828
74829         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74830         is the current directory. Respect also $local_gnulib_dir.
74831
74832 2006-08-28  Bruno Haible  <bruno@clisp.org>
74833             Simon Josefsson  <jas@extundo.com>
74834
74835         BeOS portability.
74836         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74837
74838 2006-08-27  Jim Meyering  <jim@meyering.net>
74839
74840         * doc/visibility.texi: Remove duplicate word: "pointer".
74841
74842 2006-08-26  Bruno Haible  <bruno@clisp.org>
74843
74844         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74845         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74846         (Makefile.am): Create inttypes.h from inttypes_.h.
74847         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74848
74849         * modules/imaxabs: New file.
74850
74851         * modules/imaxdiv: New file.
74852
74853 2006-08-26  Bruno Haible  <bruno@clisp.org>
74854
74855         * m4/inttypes.m4: New file.
74856         * m4/_inttypes_h.m4: Remove file.
74857         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74858         PRI_MACROS_BROKEN.
74859         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74860
74861         * m4/imaxabs.m4: New file.
74862
74863         * m4/imaxdiv.m4: New file.
74864
74865 2006-08-26  Bruno Haible  <bruno@clisp.org>
74866
74867         * lib/inttypes_.h: New file.
74868         * lib/inttypes.h: Remove file.
74869         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74870
74871         * lib/imaxabs.c: New file.
74872
74873         * lib/imaxdiv.c: New file.
74874
74875 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         New config-h module, so that "make" output needn't be cluttered
74878         by -DHAVE_CONFIG_H.
74879         * MODULES.html.sh (Support for building libraries and executables):
74880         Add config-h.
74881         * modules/config-h: New file.
74882         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74883         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74884         the config-h module is used.
74885
74886         New configmake module, so that "make" output needn't be cluttered
74887         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74888         * MODULES.html.sh (Support for building libraries and executables):
74889         Add configmake.
74890         * modules/configmake: New file.
74891
74892 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         * m4/config-h.m4: New file.
74895
74896 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74897
74898         * config/srclist.txt: Add elisp-comp.
74899
74900 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         * MODULES.html.sh (Support for building libraries and executables):
74903         Add elisp-comp.
74904         * build-aux/elisp-comp: New file.
74905         * modules/elisp-comp: New file.
74906
74907 2006-08-24  Bruno Haible  <bruno@clisp.org>
74908
74909         * gnulib-tool (func_create_testdir): Use non-default values of
74910         sourcebase and m4base.
74911
74912 2006-08-24  Bruno Haible  <bruno@clisp.org>
74913
74914         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74915         HTML structure.
74916
74917 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74918
74919         * modules/openat (Depends-on): Add lchown.
74920
74921 2006-08-23  Bruno Haible  <bruno@clisp.org>
74922
74923         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74924         of gl_LOCK_EARLY instead of gl_LOCK.
74925
74926 2006-08-23  Bruno Haible  <bruno@clisp.org>
74927
74928         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74929         on OSF/1 to no.
74930         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74931
74932 2006-08-23  Bruno Haible  <bruno@clisp.org>
74933
74934         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74935         as unusable.
74936
74937         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74938         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74939         (gl_LOCK): New macro.
74940
74941 2006-08-22  Simon Josefsson  <jas@extundo.com>
74942
74943         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74944         to md5 module.
74945
74946 2006-08-22  Simon Josefsson  <jas@extundo.com>
74947
74948         * MODULES.html.sh: Add "Support for maintaining and release
74949         projects".
74950
74951         * build-aux/gnupload: New file, from coreutils.
74952
74953 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         Avoid the need for AC_LIBSOURCES in m4 macros.
74956         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74957         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74958         * modules/check-version (EXTRA_DIST): Add check-version.h.
74959         * modules/crc (EXTRA_DIST): Add crc.h.
74960         * modules/des (EXTRA_DIST): Add des.h.
74961         * modules/gc (EXTRA_DIST): Add gc.h.
74962         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74963         * modules/getline (EXTRA_DIST): Add getline.h.
74964         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74965         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74966         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74967         * modules/md2 (EXTRA_DIST): Add md2.h.
74968         * modules/md4 (EXTRA_DIST): Add md4.h.
74969         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74970         * modules/read-file (EXTRA_DIST): Add read-file.h.
74971         * modules/readline (EXTRA_DIST): Add readline.h.
74972         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74973         rijndael-api-fst.h.
74974
74975 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74976
74977         * m4/rijndael.m4 (gl_ARCFOUR):
74978         * m4/arctwo.m4 (gl_ARCTWO):
74979         * m4/check-version.m4 (gl_CHECK_VERSION):
74980         * m4/crc.m4 (gl_CRC):
74981         * m4/des.m4 (gl_DES):
74982         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74983         * m4/gc.m4 (gl_GC):
74984         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74985         * m4/getline.m4 (gl_FUNC_GETLINE):
74986         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74987         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74988         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74989         * m4/md2.m4 (gl_MD2):
74990         * m4/md4.m4 (gl_MD4):
74991         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74992         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74993         * m4/readline.m4 (gl_FUNC_READLINE):
74994         * m4/rijndael.m4 (gl_RIJNDAEL):
74995         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74996         to get the necessary .h files and whatnot.
74997
74998 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74999
75000         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75001         gnulib rather than the other way around.
75002         * config/srclistvars.sh (COREUTILS): Remove.
75003
75004 2006-08-22  Jim Meyering  <jim@meyering.net>
75005
75006         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75007
75008         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75009
75010 2006-08-22  Eric Blake  <ebb9@byu.net>
75011
75012         * modules/regexprops-generic: New file.
75013         * MODULES.html.sh (Support for building documentation): List it.
75014
75015 2006-08-22  Eric Blake  <ebb9@byu.net>
75016
75017         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75018         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75019         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75020         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75021
75022 2006-08-22  Bruno Haible  <bruno@clisp.org>
75023
75024         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75025         and lib_LTLIBRARIES like the other lib_* variables.
75026
75027 2006-08-22  Bruno Haible  <bruno@clisp.org>
75028
75029         * build-aux/x-to-1.in: New file, from GNU gettext.
75030
75031 2006-08-22  Bruno Haible  <bruno@clisp.org>
75032
75033         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75034         <utmpx.h> exists.
75035
75036 2006-08-22  Bruno Haible  <bruno@clisp.org>
75037
75038         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75039         <utmpx.h> exists.
75040
75041 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         BeOS portability.
75044         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75045         exist.
75046         Problem reported by Bruno Haible.
75047
75048 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75049
75050         Avoid the need for AC_LIBSOURCES in m4 macros.
75051         * modules/acl (EXTRA_DIST): Add acl.h.
75052         * modules/argmatch (Files): Add m4/argmatch.m4.
75053         (configure.ac): Add gl_ARGMATCH.
75054         (EXTRA_DIST): Renamed from lib_SOURCES, for
75055         consistency with the other modules.  Remove argmatch.c.
75056         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75057         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75058         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75059         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75060         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75061         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75062         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75063         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75064         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75065         * modules/closeout (EXTRA_DIST): Add closeout.h.
75066         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75067         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75068         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75069         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75070         dirname.h; remove basename.c and stripslash.c.
75071         * modules/exclude (EXTRA_DIST): Add exclude.h.
75072         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75073         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75074         * modules/file-type (EXTRA_DIST): Add file-type.h.
75075         * modules/filemode (EXTRA_DIST): Add filemode.h.
75076         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75077         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75078         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75079         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75080         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75081         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75082         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75083         * modules/getdate (EXTRA_DIST): Add getdate.c.
75084         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75085         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75086         * modules/getpass (EXTRA_DIST): Add getpass.h.
75087         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75088         * modules/group-member (EXTRA_DIST): Add group-member.h.
75089         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75090         * modules/hash (EXTRA_DIST): Add hash.h.
75091         * modules/human (EXTRA_DIST): Add human.h.
75092         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75093         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75094         * modules/lchown (EXTRA_DIST): Add lchown.h.
75095         * modules/long-options (EXTRA_DIST): Add long-options.h.
75096         * modules/lstat (EXTRA_DIST): Add lstat.h.
75097         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75098         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75099         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75100         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75101         * modules/memxor (EXTRA_DIST): Add memxor.h.
75102         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75103         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75104         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75105         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75106         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75107         * modules/physmem (EXTRA_DIST): Add physmem.h.
75108         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75109         * modules/posixver (EXTRA_DIST): Add posixver.h.
75110         * modules/quote (EXTRA_DIST): Add quote.h.
75111         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75112         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75113         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75114         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75115         regex_internal.h regexec.c.
75116         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75117         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75118         * modules/same (EXTRA_DIST): Add same.h.
75119         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75120         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75121         * modules/savedir (EXTRA_DIST): Add savedir.h.
75122         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75123         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75124         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75125         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75126         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75127         * modules/strdup (EXTRA_DIST): Add strdup.h.
75128         * modules/strftime (EXTRA_DIST): Add strftime.h.
75129         * modules/strndup (EXTRA_DIST): Add strndup.h.
75130         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75131         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75132         * modules/time_r (EXTRA_DIST): Add time_r.h.
75133         * modules/timespec (EXTRA_DIST): Add timespec.h.
75134         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75135         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75136         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75137         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75138         * modules/userspec (EXTRA_DIST): Add userspec.h.
75139         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75140         * modules/utimens (EXTRA_DIST): Add utimens.h.
75141         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75142         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75143         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75144         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75145         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75146         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75147         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75148         * modules/yesno (EXTRA_DIST): Add yesno.h.
75149
75150 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75151
75152         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75153
75154         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75155         * m4/dev-ino.m4, same-inode.m4: Remove.
75156
75157         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75158         * m4/acl.m4 (AC_FUNC_ACL):
75159         * m4/backupfile.m4 (gl_BACKUPFILE):
75160         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75161         * m4/canon-host.m4 (gl_CANON_HOST):
75162         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75163         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75164         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75165         * m4/cloexec.m4 (gl_CLOEXEC):
75166         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75167         * m4/closeout.m4 (gl_CLOSEOUT):
75168         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75169         * m4/dirname.m4 (gl_DIRNAME):
75170         * m4/exclude.m4 (gl_EXCLUDE):
75171         * m4/exitfail.m4 (gl_EXITFAIL):
75172         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75173         * m4/file-type.m4 (gl_FILE_TYPE):
75174         * m4/filemode.m4 (gl_FILEMODE):
75175         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75176         * m4/fpending.m4 (gl_FUNC_FPENDING):
75177         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75178         * m4/fts.m4 (gl_FUNC_FTS):
75179         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75180         * m4/getdate.m4 (gl_GETDATE):
75181         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75182         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75183         * m4/getpass.m4 (gl_FUNC_GETPASS):
75184         * m4/gettime.m4 (gl_GETTIME):
75185         * m4/getugroups.m4 (gl_GETUGROUPS):
75186         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75187         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75188         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75189         * m4/hash.m4 (gl_HASH):
75190         * m4/idcache.m4 (gl_IDCACHE):
75191         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75192         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75193         * m4/long-options.m4 (gl_LONG_OPTIONS):
75194         * m4/lstat.m4 (gl_FUNC_LSTAT):
75195         * m4/md5.m4 (gl_MD5):
75196         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75197         * m4/memcoll.m4 (gl_MEMCOLL):
75198         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75199         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75200         * m4/memxor.m4 (gl_MEMXOR):
75201         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75202         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75203         * m4/modechange.m4 (gl_MODECHANGE):
75204         * m4/mountlist.m4 (gl_MOUNTLIST):
75205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75206         * m4/openat.m4 (gl_FUNC_OPENAT):
75207         * m4/pathmax.m4 (gl_PATHMAX):
75208         * m4/physmem.m4 (gl_PHYSMEM):
75209         * m4/posixtm.m4 (gl_POSIXTM):
75210         * m4/posixver.m4 (gl_POSIXVER):
75211         * m4/quote.m4 (gl_QUOTE):
75212         * m4/quotearg.m4 (gl_QUOTEARG):
75213         * m4/readtokens.m4 (gl_READTOKENS):
75214         * m4/readutmp.m4 (gl_READUTMP):
75215         * m4/regex.m4 (gl_REGEX):
75216         * m4/safe-read.m4 (gl_SAFE_READ):
75217         * m4/safe-write.m4 (gl_SAFE_WRITE):
75218         * m4/same.m4 (gl_SAME):
75219         * m4/save-cwd.m4 (gl_SAVE_CWD):
75220         * m4/savedir.m4 (gl_SAVEDIR):
75221         * m4/settime.m4 (gl_SETTIME):
75222         * m4/sha1.m4 (gl_SHA1):
75223         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75224         * m4/stat-macros.m4 (gl_STAT_MACROS):
75225         * m4/stat-time.m4 (gl_STAT_TIME):
75226         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75227         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75228         * m4/strdup.m4 (gl_FUNC_STRDUP):
75229         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75230         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75231         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75232         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75233         * m4/time_r.m4 (gl_TIME_R):
75234         * m4/timespec.m4 (gl_TIMESPEC):
75235         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75236         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75237         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75238         * m4/userspec.m4 (gl_USERSPEC):
75239         * m4/utimecmp.m4 (gl_UTIMECMP):
75240         * m4/utimens.m4 (gl_UTIMENS):
75241         * m4/xalloc.m4 (gl_XALLOC):
75242         * m4/xgetcwd.m4 (gl_XGETCWD):
75243         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75244         * m4/xreadlink.m4 (gl_XREADLINK):
75245         * m4/xstrtod.m4 (gl_XSTRTOD):
75246         * m4/yesno.m4 (gl_YESNO):
75247         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75248         to get the necessary .h files and whatnot.
75249
75250 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75251             Bruno Haible  <bruno@clisp.org>
75252
75253         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75254         /bin/sh understanding of '!' conditional negation.
75255
75256 2006-08-21  Jim Meyering  <jim@meyering.net>
75257
75258         * modules/openat (Depends-on): Really alphabetize.
75259
75260         * modules/acl (Depends-on): Add error and quote.
75261
75262         * check-module (find_included_lib_files): Add at-func.c to the
75263         ok-to-include-more-than-once white list.
75264
75265         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75266
75267 2006-08-21  Bruno Haible  <bruno@clisp.org>
75268
75269         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75270         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75271         Reported by Martin Lambers <marlam@marlam.de>.
75272
75273 2006-08-21  Bruno Haible  <bruno@clisp.org>
75274
75275         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75276         specify an installation location, don't emit a noinst_LIBRARIES or
75277         noinst_LTLIBRARIES assignment.
75278
75279 2006-08-21  Bruno Haible  <bruno@clisp.org>
75280
75281         BeOS portability.
75282         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75283         BeOS has mbrtowc() but no <wctype.h>.
75284
75285 2006-08-21  Bruno Haible  <bruno@clisp.org>
75286
75287         BeOS portability.
75288         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75289         exist.
75290
75291 2006-08-21  Bruno Haible  <bruno@clisp.org>
75292
75293         BeOS portability.
75294         * lib/mbchar.h: Include <wctype.h> only if it exists.
75295
75296 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         Remove files that are no longer needed by their respective modules.
75299         * m4/obstack.m4: Remove.
75300         * m4/strerror_r.m4: Remove.
75301         * m4/uint32_t.m4: Remove.
75302         * m4/uintptr_t.m4: Remove.
75303         * m4/ullong_max.m4: Remove.
75304         * m4/xstrtoimax.m4: Remove.
75305         * m4/xstrtoumax.m4: Remove.
75306
75307         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75308         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75309         dependencies now capture this.
75310
75311         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75312         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75313         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75314         * m4/human.m4 (gl_HUMAN): Likewise.
75315         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75316         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75317
75318         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75319
75320         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75321         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75322         stdint.
75323         * m4/human.m4 (gl_HUMAN): Likewise.
75324         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75325         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75326         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75327         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75328         * m4/xstrtol (gl_XSTRTOL): Likewise.
75329
75330         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75331         AC_TYPE_LONG_LONG_INT.
75332         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75333         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75334         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75335         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75336
75337         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75338         on stdbool.
75339
75340         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75341         (gl_PREREQ_XSTRTOUL): Remove.
75342
75343         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75344
75345         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75346         mode.
75347
75348 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         Add and change modules to make it easier for coreutils to use
75351         gnulib-tool.
75352         * modules/backupfile (Files): Remove m4/d-ino.m4.
75353         (Depends-on): Add d-ino.
75354         * modules/cycle-check (Depends-on): Add stdint.
75355         (lib_SOURCES): Add cycle-check.h.
75356         * modules/d-ino: New module.
75357         * modules/d-type: New module.
75358         * modules/error (Files): Remove m4/strerror_r.m4.
75359         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75360         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75361         m4/inttypes_h.m4, m4/uintmax_t.m4.
75362         (Depends-on): Add stdint.
75363         (lib_SOURCES): Add fsusage.h.
75364         * modules/getcwd (Files): Remove d-ino.m4.
75365         (Depends-on): Add d-ino.
75366         * modules/getndelim2 (Depends-on): Add stdint.
75367         * modules/glob (Files): Remove m4/d-type.m4.
75368         (Depends-on): Add d-type.
75369         * modules/host-os: New module.
75370         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75371         m4/inttypes_h.m4, m4/uintmax_t.m4.
75372         * Depends-on: Add stdint.
75373         (lib_SOURCES): Add human.h.
75374         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75375         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75376         m4/uintmax_t.m4, m4/ulonglong.m4.
75377         (Depends-on): Add stdint.
75378         (EXTRA_DIST): Add inttostr.h.
75379         * modules/lchmod: New module.
75380         * modules/link-follow: New module.
75381         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75382         (Depends-on): Add lchmod.
75383         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75384         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75385         (Depends-on): Add stdint.
75386         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75387         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75388         (Depends-on): Add stdint.
75389         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75390         * modules/perl: New module.
75391         * modules/regex (Depends-on): Add stdint.
75392         * modules/rmdir-errno: New module.
75393         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75394         m4/intmax_t.m4.
75395         (Depends-on): Add stdint.
75396         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75397         m4/uintmax_t.m4.
75398         (Depends-on): Add stdint.
75399         * modules/unlink-busy: New module.
75400         * modules/utimecmp (Depends-on): Add stdint.
75401         * modules/uptime: New module.
75402         * modules/winsz-ioctl: New module.
75403         * modules/winsz-termios: New module.
75404         * modules/xnanosleep (Depends-on): Add nanosleep.
75405         * modules/ullong_max: Remove.
75406         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75407         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75408         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75409         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75410         (Depends-on): Add inttypes.
75411         (lib_SOURCES): Add xstrtol.h.
75412         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75413         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75414         * MODULES.html.sh: Move 'assert' into the assert section.
75415         Move 'dummy' into the linking section.
75416         Remove ullong_max.
75417         Add section for compatibility checks for POSIX:2001 functions,
75418         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75419         winsz-ioctl, and winsz-termios into it.
75420         Add lchmod.
75421         Add top-level Misc section and put host-os, perl, and uptime
75422         into it.
75423
75424 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75427         now assume the stdint module.  Do not include inttypes.h.
75428         * lib/fsusage.h: Likewise.
75429         * lib/getndelim2.c: Likewise.
75430         * lib/human.h: Likewise.
75431         * lib/inttostr.h: Likewise.
75432         * lib/obstack.c: Likewise.
75433         * lib/regex_internal.h: Likewise.
75434         * lib/tempname.c: Likewise.
75435         * lib/utimecmp.c: Likewise.
75436         * lib/xstrtol.h: Likewise.
75437
75438         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75439
75440         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75441         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75442         * lib/xtime.h: Likewise.
75443
75444 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75445
75446         * modules/openat (Files): Add lib/fchmodat.c.
75447         Fixes problem reported by Jay Youngman.
75448
75449 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75450
75451         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75452         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75453
75454 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75455             Bruno Haible  <bruno@clisp.org>
75456
75457         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75458         and is a script that invokes bison. Tighten the code. Add comments.
75459
75460 2006-08-18  Jim Meyering  <jim@meyering.net>
75461
75462         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75463         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75464         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75465         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75466
75467 2006-08-18  Bruno Haible  <bruno@clisp.org>
75468
75469         * modules/bison-i18n: New file.
75470         * MODULES.html.sh (Internationalization functions): Add it.
75471
75472 2006-08-18  Bruno Haible  <bruno@clisp.org>
75473
75474         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75475         sys/statvfs.h. When getmntinfo was found, check its declaration and
75476         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75477
75478 2006-08-18  Bruno Haible  <bruno@clisp.org>
75479
75480         * m4/bison-i18n.m4: New file, from bison.
75481
75482 2006-08-18  Bruno Haible  <bruno@clisp.org>
75483
75484         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75485         (ME_DUMMY): Treat "kernfs" as a dummy.
75486         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75487
75488 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75489
75490         Update from coreutils.
75491
75492         2006-08-15  Jim Meyering  <jim@meyering.net>
75493
75494         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75495
75496         2006-01-17  Jim Meyering  <jim@meyering.net>
75497
75498         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75499
75500         2006-01-11  Jim Meyering  <jim@meyering.net>
75501
75502         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75503         Check for the lchmod function.
75504
75505 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75506
75507         Update from coreutils.
75508
75509         * lib/__fpending.h: Add copyright notice.
75510         * lib/fprintftime.h: Likewise.
75511         * lib/savedir.c: Use (C) in copyright notice.
75512         * lib/savedir.h: Likewise.
75513
75514         2006-08-15  Jim Meyering  <jim@meyering.net>
75515
75516         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75517         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75518         in support of the EXPECTED_ERRNO macro.
75519         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75520         definitions.  Instead, define the appropriate symbols and include
75521         "at-func.c".
75522         * lib/mkdirat.c (mkdirat): Likewise.
75523         * lib/fchmodat.c (fchmodat): Likewise.
75524         (ENOSYS): Remove definition.
75525         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75526         it.  Don't include "unistd--.h" -- it wasn't ever used.
75527
75528         2006-01-17  Jim Meyering  <jim@meyering.net>
75529
75530         Rewrite fts.c not to change the current working directory,
75531         by using openat, fstatat, fdopendir, etc..
75532
75533         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75534         (HAVE_OPENAT_SUPPORT): Define.
75535         [_LIBC] (fchdir): Don't undef or define; no longer used.
75536         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75537         Now, this `function' always succeeds, and consumes its file descriptor
75538         parameter -- so callers must not close such FDs.  Update callers.
75539         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75540         (diropen): Add parameter, SP.  Adjust all callers.
75541         Implement using diropen_fd, rather than open.
75542         (fts_open): Initialize new member, fts_cwd_fd.
75543         Remove fts_rft-setting code.
75544         (fts_close): Close fts_cwd_fd, if necessary.
75545         (__opendir2): Define in terms of opendir or opendirat,
75546         depending on whether the FST_NOCHDIR flag is set.
75547         (fts_build): Since fts_safe_changedir consumes its FD, and since
75548         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75549         and close the dup'd file descriptor upon failure.
75550         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75551         (fts_safe_changedir): Tweak semantics to reflect that this function
75552         now calls cwd_advance_fd and hence consumes its FD argument.
75553         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75554         [struct FTS] (fts_rft): Remove now-unused member.
75555         [struct FTS] (fts_cycle.state): Improve comment.
75556
75557         * lib/openat.c (openat_needs_fchdir): New function.
75558         * lib/openat.h (openat_needs_fchdir): Declare it.
75559
75560 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75561
75562         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75563         Problem and fix reported by Pádraig Brady in
75564         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75565
75566 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75569
75570 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75571
75572         * lib/memcoll.c (memcoll): Optimize for the common case where the
75573         arguments are bytewise equal.
75574
75575 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75576
75577         * doc/regexprops-generic.texi: Add a copyright notice.
75578
75579 2006-08-15  Bruno Haible  <bruno@clisp.org>
75580
75581         * modules/tmpdir (License): Change to LGPL.
75582
75583 2006-08-15  Bruno Haible  <bruno@clisp.org>
75584
75585         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75586         module.
75587
75588 2006-08-14  Simon Josefsson  <jas@extundo.com>
75589
75590         * config/srclist.txt: Add gnupload.
75591
75592 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75593
75594         Change copyright notice from LGPL 2 to GPL 2, since that's the
75595         standard form used in the gnulib repository.
75596         * tests/test-lock.c: Likewise.
75597         * tests/test-stdint.c: Likewise.
75598         * tests/test-tls.c: Likewise.
75599
75600         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75601         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75602         Add copyright notice.
75603
75604         * check-module: Add copyright notice.  Output a copyright
75605         notice if "--version" is specified.
75606         * modules/COPYING: New file.
75607         * tests/test-getaddrinfo.c: Add copyright notice.
75608         * tests/test-verify.c: Likewise.
75609
75610 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         Change copyright notice from LGPL 2 to GPL 2, since that's the
75613         standard form used in the gnulib repository.
75614         * lib/lock.c: LGPL -> GPL.
75615         * lib/lock.h: Likewise.
75616         * lib/strnlen1.c: Likewise.
75617         * lib/strnlen1.h: Likewise.
75618         * lib/tls.c: Likewise.
75619         * lib/tls.h: Likewise.
75620         * lib/tmpdir.c: Likewise.
75621
75622         * lib/TODO: Remove; this belongs only in coreutils.
75623
75624 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75625
75626         Add copyright notices to long-enough files that lack them, since
75627         otherwise the files aren't clearly free.  Use the same notice that
75628         getdate.texi already uses.
75629         * doc/alloca-opt.texi: Add copyright notice.
75630         * doc/alloca.texi: Likewise.
75631         * doc/ctime.texi: Likewise.
75632         * doc/functions.texi: Likewise.
75633         * doc/gcd.texi: Likewise.
75634         * doc/gnulib-tool.texi: Likewise.
75635         * doc/inet_ntoa.texi: Likewise.
75636         * doc/visibility.texi: Likewise.
75637
75638         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75639         * doc/quote.texi: Add copyright notice.
75640
75641         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75642         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75643         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75644         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75645         is now obsolete, and give a pointer to the Sun list.
75646         Add copyright notice.
75647
75648 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75649
75650         * config/srclistvars.sh: Add copyright notice.
75651
75652 2006-08-14  Eric Blake  <ebb9@byu.net>
75653
75654         Import the following change from libc:
75655
75656         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75657
75658         Upstream bug 2997.
75659         * lib/misc/error.c: Add space between program name and message if file
75660         name is missing.
75661
75662 2006-08-12  Karl Berry  <karl@gnu.org>
75663
75664         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75665         remove, these originate in gnulib now.
75666
75667 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75668
75669         * doc/Makefile (standards.info standards.html standards.dvi):
75670         Also depend on make-stds.texi.
75671
75672 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75673
75674         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75675         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75676
75677         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75678         in wchar_t.  Problem reported by Eric Blake.
75679
75680         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75681         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75682         Also, help the compiler to keep LEN in a register.
75683
75684 2006-08-11  Eric Blake  <ebb9@byu.net>
75685
75686         * users.txt: Sort.  Add tar.
75687
75688 2006-08-11  Bruno Haible  <bruno@clisp.org>
75689
75690         * users.txt: New file.
75691
75692 2006-08-11  Bruno Haible  <bruno@clisp.org>
75693
75694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75695         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75696
75697 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75698
75699         * modules/snprintf (Depends-on): Remove minmax.
75700         (Maintainer): Add self and Bruno.
75701
75702 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75703
75704         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75705         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75706         (EOVERFLOW): Define if the system does not.
75707         Do not include "minmax.h"; it wasn't used.
75708         (snprintf): Don't assume size_t promotes to an unsigned type.
75709         Fix bug when generated string was too long for the buffer: the
75710         buffer's contents are supposed to be the initial prefix of the
75711         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75712         exceeds INT_MAX; do the check ourselves.
75713
75714         Import the following changes from libc:
75715
75716         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75717
75718         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75719         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75720         set wc to the byte which couldn't be converted.
75721         (re_string_reconstruct): Don't clear valid_raw_len before calling
75722         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75723         tip_context using re_string_context_at.
75724
75725         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75726
75727         * lib/posix/regex.h: g++ still cannot handled [restrict].
75728
75729         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75730
75731         * lib/posix/regex.h: Remove special handling for VMS.
75732
75733 2006-08-10  Jim Meyering  <jim@meyering.net>
75734
75735         * modules/same-inode: New module.
75736         * modules/dev-ino: New module.
75737         * modules/cycle-check: Depend on these modules, rather than simply
75738         including their .h files.
75739         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75740         required via m4/cycle-check.m4.
75741         * modules/same: Depend on new same-inode module, rather than
75742         including same-inode.h.
75743         * modules/chdir-safer: New file.
75744
75745         * modules/chown (Depends-on): Add stat-macros.
75746
75747 2006-08-10  Jim Meyering  <jim@meyering.net>
75748
75749         * m4/cycle-check.m4: New file.
75750         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75751         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75752
75753 2006-08-10  Eric Blake  <ebb9@byu.net>
75754
75755         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75756         in from original proposal.
75757
75758 2006-08-10  Eric Blake  <ebb9@byu.net>
75759         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75760
75761         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75762         namespace.
75763
75764 2006-08-10  Bruno Haible  <bruno@clisp.org>
75765
75766         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75767         as well.
75768
75769 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75770
75771         Sync from coreutils.
75772
75773         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75774
75775         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75776         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75777
75778 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75779
75780         * modules/restrict: Remove; no longer needed now that we assume
75781         Autoconf 2.59 or later.
75782         * MODULES.html.sh: Remove 'restrict'.
75783         * modules/argp (Depends-on): Remove 'restrict'.
75784         * modules/base64 (Depends-on): Likewise.
75785         * modules/gc (Depends-on): Likewise.
75786         * modules/getaddrinfo (Depends-on): Likewise.
75787         * modules/glob (Depends-on): Likewise.
75788         * modules/inet_ntop (Depends-on): Likewise.
75789         * modules/inet_pton (Depends-on): Likewise.
75790         * modules/memxor (Depends-on): Likewise.
75791         * modules/regex (Depends-on): Likewise.
75792         * modules/strtok_r (Depends-on): Likewise.
75793         * modules/time_r (Depends-on): Likewise.
75794
75795 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75796
75797         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75798         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75799         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75800         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75801         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75802         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75803         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75804         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75805
75806         Merge from coreutils.
75807         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75808         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75809         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75810         * m4/time_r.m4 (gl_TIME_R): Likewise.
75811
75812 2006-08-09  Karl Berry  <karl@gnu.org>
75813
75814         * config/srclist.txt: no more gettext-tools, per Bruno.
75815
75816 2006-08-08  Eric Blake  <ebb9@byu.net>
75817
75818         * modules/verror: New module.
75819         * MODULES.html.sh: Document it.
75820
75821 2006-08-08  Eric Blake  <ebb9@byu.net>
75822
75823         * lib/verror.h, lib/verror.c: New files.
75824
75825 2006-08-08  Eric Blake  <ebb9@byu.net>
75826
75827         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75828         verror_at_line output complies with GNU Coding Standards even when
75829         file is NULL.
75830
75831 2006-08-07  Bruno Haible  <bruno@clisp.org>
75832
75833         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75834         versions of AIX.
75835         Reported by Ralf Wildenhues.
75836
75837 2006-08-07  Bruno Haible  <bruno@clisp.org>
75838
75839         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75840         in an AC_DEFUN. Needed so that the autoconf snippets can use
75841         AC_REQUIRE.
75842
75843 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75844
75845         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75846         Initialize pkgdata_DATA.
75847         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75848         overriding it.
75849
75850 2006-08-06  Eric Blake  <ebb9@byu.net>
75851
75852         * lib/error.h: Fold in some upstream changes from glibc.
75853         * lib/error.c: Likewise.
75854
75855 2006-08-04  Bruno Haible  <bruno@clisp.org>
75856
75857         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75858         Make the mostlyclean-local rule depend on mostlyclean-generic.
75859         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75860
75861 2006-07-31  Bruno Haible  <bruno@clisp.org>
75862
75863         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75864         <stdlib.h>, <string.h>.
75865
75866 2006-07-30  Bruno Haible  <bruno@clisp.org>
75867
75868         * modules/readlink (License): Change to LGPL.
75869
75870 2006-07-30  Bruno Haible  <bruno@clisp.org>
75871
75872         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75873         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75874         set PKGDATADIR to point to it.
75875
75876 2006-07-30  Bruno Haible  <bruno@clisp.org>
75877
75878         * modules/csharpexec (configure.ac): Comment out macro invocation.
75879         * modules/javaexec (configure.ac): Likewise.
75880         * modules/javacomp-script (configure.ac): Likewise.
75881
75882         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75883
75884 2006-07-30  Bruno Haible  <bruno@clisp.org>
75885
75886         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75887         linked-list.
75888
75889 2006-07-30  Bruno Haible  <bruno@clisp.org>
75890
75891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75892
75893 2006-07-30  Bruno Haible  <bruno@clisp.org>
75894
75895         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75896         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75897         get removed.
75898
75899 2006-07-29  Bruno Haible  <bruno@clisp.org>
75900
75901         Make it possible for gnulib-tool to work with locally modified or
75902         augmented gnulib repositories.
75903         * gnulib-tool (func_usage): Document --local-dir option.
75904         (local_gnulib_dir): New variable.
75905         Handle --local-dir option.
75906         (func_lookup_file): New function.
75907         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75908         (func_get_description, func_get_filelist, func_get_description,
75909         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75910         func_get_automake_snippet, func_get_include_directive,
75911         func_get_license, func_get_maintainer): Use func_lookup_file.
75912         (func_import, func_create_testdir): Use func_lookup_file.
75913
75914 2006-07-29  Bruno Haible  <bruno@clisp.org>
75915
75916         * modules/setenv (Depends-on): Add unistd.
75917
75918 2006-07-29  Bruno Haible  <bruno@clisp.org>
75919
75920         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75921
75922 2006-07-29  Bruno Haible  <bruno@clisp.org>
75923
75924         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75925
75926 2006-07-29  Bruno Haible  <bruno@clisp.org>
75927
75928         * gnulib-tool (import, update): If there is no Makefile.am, look at
75929         aclocal.m4, instead of bailing out.
75930
75931 2006-07-29  Bruno Haible  <bruno@clisp.org>
75932
75933         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75934         Categorize the options by when they are useful.
75935
75936 2006-07-29  Bruno Haible  <bruno@clisp.org>
75937
75938         * gnulib-tool (func_usage): Document option --no-libtool.
75939         Handle option --no-libtool.
75940         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75941         for changed semantics of $libtool variable.
75942         (func_import): Likewise. If libtool is not used, show this through
75943         an option --no-libtool.
75944         (func_create_testdir): Update.
75945
75946 2006-07-29  Bruno Haible  <bruno@clisp.org>
75947
75948         * gnulib-tool (func_import): Extend error message about missing
75949         --doc-base.
75950
75951 2006-07-29  Bruno Haible  <bruno@clisp.org>
75952
75953         * gnulib-tool (func_import): Don't create the $docbase directory if
75954         there is no file to store there.
75955
75956 2006-07-29  Bruno Haible  <bruno@clisp.org>
75957
75958         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75959         relevant, look for configure.ac there, not in the current directory.
75960         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75961
75962 2006-07-29  Bruno Haible  <bruno@clisp.org>
75963
75964         * gnulib-tool (SORT): New variable.
75965         (func_usage): Undocument --assume-autoconf option.
75966         Remove --assume-autoconf option handling.
75967         (autoconf_minversion): Determine from the contents of configure.ac.
75968         (func_import): Remove autoconf_minversion handling.
75969         Suggested by Eric Blake.
75970
75971 2006-07-29  Bruno Haible  <bruno@clisp.org>
75972
75973         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75974
75975 2006-07-29  Bruno Haible  <bruno@clisp.org>
75976
75977         * config/srclist.txt (*setenv.[ch]): Remove rules.
75978
75979 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75980
75981         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75982
75983 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75984
75985         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75986         arpa/inet.h.
75987
75988 2006-07-28  Simon Josefsson  <jas@extundo.com>
75989
75990         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75991         * modules/inet_pton (Depends-on): Likewise.
75992
75993 2006-07-28  Simon Josefsson  <jas@extundo.com>
75994
75995         * m4/netinet_in_h.m4: New file.
75996
75997 2006-07-28  Simon Josefsson  <jas@extundo.com>
75998
75999         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76000         #include's.
76001
76002 2006-07-28  Simon Josefsson  <jas@extundo.com>
76003
76004         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76005         #include's.
76006
76007 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76008
76009         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76010         setgid on directories only if they set these bits.
76011         * lib/modechange.h: Remove obsolete comment about masks.
76012
76013 2006-07-28  Eric Blake  <ebb9@byu.net>
76014
76015         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76016         macro expansion.
76017
76018 2006-07-28  Bruno Haible  <bruno@clisp.org>
76019
76020         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76021
76022 2006-07-28  Bruno Haible  <bruno@clisp.org>
76023
76024         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76025
76026 2006-07-28  Bruno Haible  <bruno@clisp.org>
76027
76028         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76029         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76030         Define fallbacks.
76031         Avoids link error on FreeBSD 4.x.
76032         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76033
76034         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76035         encoding.
76036         * lib/mbswidth.c (iswcntrl): Likewise.
76037
76038 2006-07-27  Bruno Haible  <bruno@clisp.org>
76039
76040         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76041         test.
76042
76043 2006-07-27  Bruno Haible  <bruno@clisp.org>
76044
76045         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76046         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76047         defined.
76048
76049 2006-07-26  Eric Blake  <ebb9@byu.net>
76050
76051         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76052
76053 2006-07-26  Eric Blake  <ebb9@byu.net>
76054
76055         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76056         like mingw that lack mkstemp.
76057         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76058         avoid compilation warning on mingw.
76059
76060 2006-07-26  Bruno Haible  <bruno@clisp.org>
76061
76062         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76063         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76064         INT_FAST*_MIN, INTPTR_MIN.
76065
76066 2006-07-25  Bruno Haible  <bruno@clisp.org>
76067
76068         * modules/version-etc (Depends-on): Add stdarg.
76069
76070 2006-07-25  Bruno Haible  <bruno@clisp.org>
76071
76072         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76073         complex commands.
76074
76075 2006-07-25  Bruno Haible  <bruno@clisp.org>
76076
76077         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76078         defined in <stdarg.h> or config.h.
76079
76080 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76083         (gl_STDIO_SAFER): Remove.
76084
76085 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         * MODULES.html.sh (File stream based Input/Output):
76088         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76089         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76090         * modules/fopen-safer, modules/tmpfile-safer: New files.
76091         * modules/stdio-safer: Remove.
76092
76093 2006-07-24  Bruno Haible  <bruno@clisp.org>
76094
76095         * modules/tmpdir: New file.
76096         * MODULES.html.sh (File system functions): Add it.
76097
76098 2006-07-24  Bruno Haible  <bruno@clisp.org>
76099
76100         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76101         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76102
76103 2006-07-24  Bruno Haible  <bruno@clisp.org>
76104
76105         * modules/clean-temp: New file.
76106
76107 2006-07-24  Bruno Haible  <bruno@clisp.org>
76108
76109         * m4/tmpdir.m4: New file, from GNU gettext.
76110
76111 2006-07-24  Bruno Haible  <bruno@clisp.org>
76112
76113         * lib/tmpdir.h: New file, from GNU gettext.
76114         * lib/tmpdir.c: New file, from GNU gettext.
76115
76116 2006-07-24  Bruno Haible  <bruno@clisp.org>
76117
76118         * lib/clean-temp.h: New file, from GNU gettext.
76119         * lib/clean-temp.c: New file, from GNU gettext.
76120
76121 2006-07-23  Eric Blake  <ebb9@byu.net>
76122
76123         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76124         (Depends-on): Add binary-io.
76125
76126 2006-07-23  Eric Blake  <ebb9@byu.net>
76127
76128         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76129
76130 2006-07-23  Eric Blake  <ebb9@byu.net>
76131
76132         * lib/tmpfile-safer.c: New file.
76133         * lib/stdio-safer.h (fopen_safer): Add prototype.
76134         * lib/stdio--.h (tmpfile): Make safer.
76135
76136 2006-07-23  Bruno Haible  <bruno@clisp.org>
76137
76138         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76139         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76140         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76141         gl_linked_remove_at): Use it.
76142
76143 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76144         and Simon Josefsson <jas@extundo.com>
76145
76146         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76147
76148         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76149
76150 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76151
76152         * modules/close-stream: New file.
76153         * modules/closeout (Description): Make it clear that it exits
76154         with a diagnostic on error.
76155         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76156         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76157
76158 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76159
76160         * m4/close-stream.m4: New file.
76161
76162 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76163
76164         * lib/close-stream.c, lib/close-stream.h: New files.
76165
76166 2006-07-22  Bruno Haible  <bruno@clisp.org>
76167
76168         Merge from GNU gettext 0.15.
76169
76170         2006-05-01  Bruno Haible  <bruno@clisp.org>
76171
76172                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76173
76174         2006-07-22  Bruno Haible  <bruno@clisp.org>
76175
76176                 * modules/javaversion: New file.
76177                 * MODULES.html.sh (Java): Add javaversion.
76178
76179         2006-03-12  Bruno Haible  <bruno@clisp.org>
76180
76181                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76182
76183         2005-12-04  Bruno Haible  <bruno@clisp.org>
76184
76185                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76186                 (untested).
76187
76188         2006-06-21  Bruno Haible  <bruno@clisp.org>
76189
76190                 Avoid warnings from recent versions of mcs.
76191                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76192                 -o, -L, -r any more. Use options documented since mcs-1.0
76193                 instead. Similarly for -g.
76194
76195         2005-12-04  Bruno Haible  <bruno@clisp.org>
76196
76197                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76198                 .resources, not .resource.
76199
76200         2005-07-09  Bruno Haible  <bruno@clisp.org>
76201
76202                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76203                 add a .dll suffix.
76204                 Reported by Mark Junker <mjscod@gmx.de>.
76205
76206         2006-07-22  Bruno Haible  <bruno@clisp.org>
76207
76208                 * modules/gettext: Upgrade to gettext-0.15.
76209                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76210                 m4/visibility.m4.
76211                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76212
76213 2006-07-22  Bruno Haible  <bruno@clisp.org>
76214
76215         Merge from GNU gettext 0.15.
76216
76217         2006-03-25  Bruno Haible  <bruno@clisp.org>
76218
76219                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76220
76221         2006-07-21  Bruno Haible  <bruno@clisp.org>
76222
76223                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76224                 "1.1".
76225
76226         2006-05-09  Bruno Haible  <bruno@clisp.org>
76227
76228                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76229                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76230                 for the conftestver execution.
76231
76232         2006-05-01  Bruno Haible  <bruno@clisp.org>
76233
76234                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76235                 optional target-version argument. Verify that the compiler
76236                 groks source of the specified source-version, or add -source
76237                 option as necessary. Verify that the compiler produces
76238                 bytecode in the specified target-version, or add -target and
76239                 -source options as necessary. Make the result of the test
76240                 available as variable CONF_JAVAC. Also log error output in
76241                 config.log.
76242
76243         2006-03-11  Bruno Haible  <bruno@clisp.org>
76244
76245                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76246
76247         2006-05-09  Bruno Haible  <bruno@clisp.org>
76248
76249                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76250                 CLASSPATH_SEPARATOR to a semicolon.
76251
76252         2006-03-12  Bruno Haible  <bruno@clisp.org>
76253
76254                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76255                 available as variable CONF_JAVA, for subsequent autoconf
76256                 tests. Also log error output in config.log.
76257
76258         2006-07-19  Bruno Haible  <bruno@clisp.org>
76259
76260                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76261                 that getline works on glibc2 systems. Needed to avoid trouble
76262                 in relocatable.c.
76263                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76264
76265         2005-12-04  Bruno Haible  <bruno@clisp.org>
76266
76267                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76268                 launcher (untested).
76269
76270         2005-12-04  Bruno Haible  <bruno@clisp.org>
76271
76272                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76273
76274         2006-07-22  Bruno Haible  <bruno@clisp.org>
76275
76276                 * gettext.m4: Update from GNU gettext-0.15.
76277                 * nls.m4: Likewise.
76278                 * po.m4: Likewise.
76279                 * inttypes-pri.m4: Likewise.
76280                 * inttypes-h.m4: Renamed from inttypes.m4.
76281                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76282
76283 2006-07-22  Bruno Haible  <bruno@clisp.org>
76284
76285         Merge from GNU gettext 0.15.
76286
76287         2005-07-05  Bruno Haible  <bruno@clisp.org>
76288
76289                 * printf-args.c (printf_fetchargs): Work around broken
76290                 definition of wint_t on mingw.
76291
76292         2005-02-12  Bruno Haible  <bruno@clisp.org>
76293
76294                 * xallocsa.h: Add extern "C" for C++.
76295
76296         2006-05-17  Bruno Haible  <bruno@clisp.org>
76297
76298                 Cygwin portability.
76299                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76300
76301         2006-04-30  Bruno Haible  <bruno@clisp.org>
76302
76303                 * progreloc.c: Include <mach-o/dyld.h> if available.
76304                 (find_executable): Use _NSGetExecutablePath when possible.
76305
76306         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76307
76308                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76309                 function.
76310
76311         2005-12-29  Bruno Haible  <bruno@clisp.org>
76312
76313                 * progreloc.c (set_program_name_and_installdir): Fix
76314                 compilation error.
76315
76316         2005-12-04  Bruno Haible  <bruno@clisp.org>
76317
76318                 Cygwin portability.
76319                 * progreloc.c: Include <windows.h> also on Cygwin.
76320                 (find_executable): Add support for Cygwin.
76321                 (set_program_name_and_installdir): Handle also platforms with
76322                 nonempty EXEEXT.
76323
76324         2006-07-11  Bruno Haible  <bruno@clisp.org>
76325
76326                 * javacomp.c: Fix a comment.
76327                 Reported by Jim Meyering.
76328
76329         2006-04-30  Bruno Haible  <bruno@clisp.org>
76330
76331                 * javacomp.h (compile_java_class): Add source_version,
76332                 target_version arguments.
76333                 * javacomp.c: Rewritten to choose only a compiler that
76334                 respects the specified source_version and target_version.
76335
76336         2006-06-27  Bruno Haible  <bruno@clisp.org>
76337
76338                 Assume correct S_ISDIR macro.
76339                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76340
76341         2006-07-22  Bruno Haible  <bruno@clisp.org>
76342
76343                 * javaversion.h: New file, from GNU gettext.
76344                 * javaversion.c: New file, from GNU gettext.
76345                 * javaversion.java: New file, from GNU gettext.
76346                 * javaversion.class: New file, from GNU gettext.
76347
76348         2006-05-17  Bruno Haible  <bruno@clisp.org>
76349
76350                 Cygwin portability.
76351                 * javaexec.c (execute_java_class): Test for jview program
76352                 also on Cygwin.
76353
76354         2006-04-09  Bruno Haible  <bruno@clisp.org>
76355
76356                 * fatal-signal.c: Don't include string.h.
76357                 (at_fatal_signal): Use a copying loop instead of memcpy.
76358
76359         2005-12-04  Bruno Haible  <bruno@clisp.org>
76360
76361                 * csharpexec.c: Add support for 'clix' launcher (untested).
76362                 (execute_csharp_using_sscli): New function.
76363                 (execute_csharp_program): Call it.
76364
76365         2006-06-21  Bruno Haible  <bruno@clisp.org>
76366
76367                 Avoid warnings from recent versions of mcs.
76368                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76369                 -o, -L, -r any more. Use options documented since mcs-1.0
76370                 instead. Similarly for -g.
76371
76372         2005-07-09  Bruno Haible  <bruno@clisp.org>
76373
76374                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76375                 add a .dll suffix.
76376                 Reported by Mark Junker <mjscod@gmx.de>.
76377
76378         2006-06-17  Bruno Haible  <bruno@clisp.org>
76379
76380                 * config.charset: Update for NetBSD 3.0.
76381
76382         2006-05-17  Bruno Haible  <bruno@clisp.org>
76383
76384                 Cygwin portability.
76385                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76386
76387         2006-05-16  Bruno Haible  <bruno@clisp.org>
76388
76389                 * localcharset.c [CYGWIN]: Include <windows.h>.
76390                 (get_charset_aliases): For Cygwin, return the same CPxxx
76391                 aliases list as under WIN32.
76392                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76393                 the environment variables. Fall back to GetACP().
76394
76395         2006-04-05  Bruno Haible  <bruno@clisp.org>
76396
76397                 * config.charset: Update Juan Manuel Guerrero's address.
76398
76399         2005-02-12  Bruno Haible  <bruno@clisp.org>
76400
76401                 * allocsa.h: Add extern "C" for C++.
76402
76403         2005-02-10  Bruno Haible  <bruno@clisp.org>
76404
76405                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76406                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76407
76408         2006-07-22  Bruno Haible  <bruno@clisp.org>
76409
76410                 * gettext.h: Update to GNU gettext-0.15.
76411
76412 2006-07-22  Bruno Haible  <bruno@clisp.org>
76413
76414         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76415         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76416         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76417
76418 2006-07-21  Eric Blake  <ebb9@byu.net>
76419
76420         * modules/stdlib-safer: New file.
76421         * MODULES.html.sh (File stream based Input/Output): Add
76422         stdlib-safer.
76423
76424 2006-07-21  Eric Blake  <ebb9@byu.net>
76425
76426         * lib/stdlib-safer.h: New file from coreutils, required by
76427         stdlib--.h.
76428
76429 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76430
76431         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76432
76433 2006-07-20  Bruno Haible  <bruno@clisp.org>
76434
76435         * gnulib-tool: Recognize new option --assume-autoconf.
76436         (autoconf_minversion): New variable.
76437         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76438
76439 2006-07-20  Bruno Haible  <bruno@clisp.org>
76440
76441         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76442
76443 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76444
76445         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76446         Reindent and repaginate.
76447
76448 2006-07-19  Derek Price  <derek@ximbiot.com>
76449
76450         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76451         Correct grammar.
76452
76453 2006-07-17  Bruno Haible  <bruno@clisp.org>
76454
76455         * modules/list: New file.
76456         * modules/array-list: New file.
76457         * modules/carray-list, modules/carray-list-tests: New files.
76458         * modules/linked-list, modules/linked-list-tests: New files.
76459         * modules/avltree-list, modules/avltree-list-tests: New files.
76460         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76461         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76462         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76463         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76464         * modules/oset: New file.
76465         * modules/array-oset: New file.
76466         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76467         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76468         * tests/test-carray_list.c: New file.
76469         * tests/test-linked_list.c: New file.
76470         * tests/test-avltree_list.c: New file.
76471         * tests/test-rbtree_list.c: New file.
76472         * tests/test-linkedhash_list.c: New file.
76473         * tests/test-avltreehash_list.c: New file.
76474         * tests/test-rbtreehash_list.c: New file.
76475         * tests/test-avltree_oset.c: New file.
76476         * tests/test-rbtree_oset.c: New file.
76477         * MODULES.html.sh (Container data structures): New section.
76478
76479 2006-07-17  Bruno Haible  <bruno@clisp.org>
76480
76481         * m4/gl_list.m4: New file.
76482
76483 2006-07-17  Bruno Haible  <bruno@clisp.org>
76484
76485         * lib/gl_list.h: New file.
76486         * lib/gl_list.c: New file.
76487         * lib/gl_array_list.h: New file.
76488         * lib/gl_array_list.c: New file.
76489         * lib/gl_carray_list.h: New file.
76490         * lib/gl_carray_list.c: New file.
76491         * lib/gl_linked_list.h: New file.
76492         * lib/gl_linked_list.c: New file.
76493         * lib/gl_anylinked_list1.h: New file.
76494         * lib/gl_anylinked_list2.h: New file.
76495         * lib/gl_avltree_list.h: New file.
76496         * lib/gl_avltree_list.c: New file.
76497         * lib/gl_anyavltree_list1.h: New file.
76498         * lib/gl_anyavltree_list2.h: New file.
76499         * lib/gl_rbtree_list.h: New file.
76500         * lib/gl_rbtree_list.c: New file.
76501         * lib/gl_anyrbtree_list1.h: New file.
76502         * lib/gl_anyrbtree_list2.h: New file.
76503         * lib/gl_anytree_list1.h: New file.
76504         * lib/gl_anytree_list2.h: New file.
76505         * lib/gl_linkedhash_list.h: New file.
76506         * lib/gl_linkedhash_list.c: New file.
76507         * lib/gl_anyhash_list1.h: New file.
76508         * lib/gl_anyhash_list2.h: New file.
76509         * lib/gl_avltreehash_list.h: New file.
76510         * lib/gl_avltreehash_list.c: New file.
76511         * lib/gl_rbtreehash_list.h: New file.
76512         * lib/gl_rbtreehash_list.c: New file.
76513         * lib/gl_anytreehash_list1.h: New file.
76514         * lib/gl_anytreehash_list2.h: New file.
76515
76516         * lib/gl_oset.h: New file.
76517         * lib/gl_oset.c: New file.
76518         * lib/gl_array_oset.h: New file.
76519         * lib/gl_array_oset.c: New file.
76520         * lib/gl_avltree_oset.h: New file.
76521         * lib/gl_avltree_oset.c: New file.
76522         * lib/gl_rbtree_oset.h: New file.
76523         * lib/gl_rbtree_oset.c: New file.
76524         * lib/gl_anytree_oset.h: New file.
76525
76526 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76527
76528         * m4/mkancesdirs.m4: New file.
76529         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76530         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76531         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76532         it.
76533
76534 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76535
76536         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76537         * lib/mkancesdirs.h: New files.
76538         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76539         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76540         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76541         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76542         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76543         callers changed.  Revamp internals significantly, by not
76544         attempting to create directories that are temporarily more
76545         permissive than the final results.  Do not attempt to use
76546         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76547         This removes some race conditions, fixes some bugs, and simplifies
76548         things.  Use new dirchownmod function to do owner and mode changes.
76549         * lib/mkdir-p.h: Likewise.
76550         * lib/modechange.c (octal_to_mode): New function.
76551         (struct mode_change): New member mentioned.
76552         (make_node_op_equals): New arg mentioned.  All callers changed.
76553         (mode_compile): Keep track of which mode bits the user has explicitly
76554         mentioned.
76555         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76556         New arg PMODE_BITS, to keep track of which mode bits the user
76557         mentioned; it treats S_ISUID and S_ISGID speciall.
76558         All callers changed.
76559         * lib/modechange.h: Likewise.
76560
76561 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76562
76563         * MODULES.html.sh: Add mkancestors.
76564         * modules/mkancesdirs: New module.
76565         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76566         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76567         The chdir-safer and afs files are now orphans; I'll remove them
76568         unless someone speaks up.
76569         Add lib/dirchownmod.c, lib/dirchownmod.h.
76570         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76571         Add lchown, mkancesdirs.
76572         (Maintainer): Add self.
76573
76574 2006-07-15  Karl Berry  <karl@gnu.org>
76575
76576         * gnulib-tool: help message wording/arrangement.
76577
76578 2006-07-14  Simon Josefsson  <jas@extundo.com>
76579
76580         * doc/gnulib.texi (Libtool and Windows): New section.
76581
76582 2006-07-12  Simon Josefsson  <jas@extundo.com>
76583
76584         * modules/gendocs (License): Fix license, approved by Karl.
76585
76586 2006-07-12  Eric Blake  <ebb9@byu.net>
76587
76588         * MODULES.html.sh: Add gendocs.
76589
76590 2006-07-11  Eric Blake  <ebb9@byu.net>
76591
76592         * modules/fdl: New module, to install doc/fdl.texi.
76593         * MODULES.html.sh: Add new section for documentation modules.
76594         * gnulib-tool: Avoid space-tab.
76595         (--doc-base): New option, to manage files from doc.
76596
76597 2006-07-11  Eric Blake  <ebb9@byu.net>
76598
76599         * m4/absolute-header.m4: Fix comments to match recent change.
76600
76601 2006-07-11  Eric Blake  <ebb9@byu.net>
76602
76603         * gnulib-tool: List --doc-base before --tests-base.
76604
76605 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76606
76607         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76608
76609 2006-07-11  Bruno Haible  <bruno@clisp.org>
76610
76611         * README: Mention where to put documentation.
76612
76613 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76614
76615         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76616
76617 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76618
76619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76620         to stdint.m4.
76621
76622 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76623
76624         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76625         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76626         "no/such/file/stdint.h" when there is no such file, so that
76627         the resulting C code can be parsed by dodgy compilers.
76628         Problems reported by Bob Proulx.
76629
76630 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76631
76632         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76633         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76634         macros into the GNU _D_EXACT_NAMLEN.
76635         * lib/savedir.c:  Likewise.
76636         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76637
76638 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76639         and Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76642         * m4/savedir.m4:
76643         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76644         macros into the GNU _D_EXACT_NAMLEN.
76645
76646 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76649         around the absolute name, to work around a problem with the HP-UX
76650         11.23 native C compiler, reported by Bob Proulx.
76651
76652 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76653
76654         * doc/maintain.texi, make-stds.texi: Sync from
76655         <http://savannah.gnu.org/projects/gnustandards>.
76656
76657 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76658
76659         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76660
76661 2006-07-09  Jim Meyering  <jim@meyering.net>
76662
76663         * m4/glob.m4: Remove a doubled word in a comment.
76664
76665 2006-07-09  Jim Meyering  <jim@meyering.net>
76666
76667         * lib/argp-pv.c: Remove a doubled word in a comment.
76668         * lib/check-version.c (check_version): Likewise.
76669         * lib/javacomp.c (compile_java_class): Likewise.
76670
76671 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76672
76673         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76674         for the benefit of people using Autoconf 2.60.  If you want to
76675         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76676         (or m4/onceonly.m4, if pre-2.57) manually.
76677
76678 2006-07-08  Jim Meyering  <jim@meyering.net>
76679
76680         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76681         comment.
76682         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76683         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76684         comment.
76685
76686 2006-07-08  Jim Meyering  <jim@meyering.net>
76687
76688         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76689
76690 2006-07-07  Simon Josefsson  <jas@extundo.com>
76691
76692         * tests/test-crc.c: Change expected crc value, the test vector
76693         were probably computed using the old broken crc.c?
76694
76695 2006-07-06  Simon Josefsson  <jas@extundo.com>
76696
76697         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76698         now the canonical place for the M4 file).
76699
76700         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76701         from the sys_socket dependency now.
76702
76703         * modules/inet_pton (Files): Ditto.
76704
76705         * modules/inet_ntop (Files): Ditto.
76706
76707 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76708
76709         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76710         not gl_PREREQ_GETUSERSHELL.
76711
76712 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76713
76714         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76715         with only one argument, for Autoconf 2.60.
76716         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76717         expand to nothing, so add a shell command to avoid syntax error.
76718         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76719
76720 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76721
76722         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76723
76724 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76725
76726         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76727         no longer needed.  Check for isblank decl.
76728         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76729         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76730         of existence.
76731
76732 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         * lib/getloadavg.c: Use __VMS, not VMS.
76735         * lib/getopt.c: Likewise.
76736         * lib/getpagesize.h: Likewise.
76737         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76738         and probably does not work.
76739
76740 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76741
76742         * lib/.cppi-disable: Add wcwidth.
76743         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76744         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76745         (ISGRAPH): Remove.  All uses changed to isgraph.
76746         (FOLD) [!defined _LIBC]: Remove special case.
76747         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76748         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76749         HAVE_ISBLANK.
76750         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76751         case.
76752
76753 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76754
76755         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76756         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76757         brackets.  Other minor changes to suppress some compiler
76758         warnings.
76759
76760 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76761         and Paul Eggert  <eggert@cs.ucla.edu>
76762
76763         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76764         of invoking obsolescent AC_HEADER_DIRENT macro.
76765         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76766         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76767         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76768         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76769         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76770         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76771         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76772         * m4/readdir.m4: Remove; no longer needed.
76773
76774 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76775         and Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76778         Don't worry about this obsolete case any more.
76779         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76780         directories.
76781         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76782         worry about this obsolete case any more.
76783         * lib/fts.c: Likewise.
76784         * lib/getcwd.c: Likewise.
76785         * lib/glob.h: Likewise.
76786         * lib/savedir.c: Likewise.
76787
76788 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76789
76790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76791         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76792         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76793         needed.
76794         All uses removed.
76795         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76796         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76797         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76798         needed.
76799         * m4/getdate.m4 (gl_GETDATE): Likewise.
76800         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76801         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76802         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76803         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76804         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76805         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76806         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76807         needed.
76808
76809 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76810
76811         * lib/memcasecmp.c: Include <limits.h>.
76812         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76813         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76814         Don't assume isdigit succeeds only on '0' through '9'.
76815
76816 2006-07-05  Eric Blake  <ebb9@byu.net>
76817
76818         * modules/getaddrinfo (Depends-on): Add snprintf.
76819
76820 2006-07-05  Eric Blake  <ebb9@byu.net>
76821
76822         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76823         to avoid 'header present but could not be compiled' on cygwin.
76824
76825 2006-07-05  Eric Blake  <ebb9@byu.net>
76826
76827         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76828         missing from netdb.h.
76829         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76830
76831 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76832
76833         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76834         no longer needed.
76835         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76836         * m4/getdate.m4 (gl_GETDATE): Likewise.
76837         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76838         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76839         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76840         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76841         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76842
76843 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76844
76845         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76846         All uses of is_space replaced by isspace.
76847         * lib/exit.h: Don't talk about STDC_HEADERS.
76848         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76849         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76850         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76851         replaced by isprint etc.
76852         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76853         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76854         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76855         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76856         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76857         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76858
76859 2006-07-05  Bruno Haible  <bruno@clisp.org>
76860
76861         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76862         the function exists, before testing against AIX.
76863         Reported by Martin Lambers <marlam@marlam.de>.
76864
76865 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76866
76867         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76868         From Mark D. Baushke.
76869
76870 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76873         to the absolute name, not just one, to bypass Sun C 5.8's
76874         "warning: #include of /usr/include/... may be non-portable".
76875
76876 2006-07-04  Eric Blake  <ebb9@byu.net>
76877
76878         * modules/dirname-tests: New test module.
76879         * tests/test-dirname.c: New file, replacing dirname.c
76880         TEST_DIRNAME section that was recently deleted.
76881
76882 2006-07-04  Bruno Haible  <bruno@clisp.org>
76883
76884         Assume ANSI C header files and <ctype.h> functions.
76885         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76886         (mbsnwidth): Use isprint, iscntrl instead.
76887
76888 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76889
76890         Merge from coreutils.
76891         * MODULES.html.sh: Add xstrtold.
76892         * modules/xstrtold: New file.
76893         * modules/cycle-check (Files): Add lib/same-inode.h.
76894         * modules/dirname (Files): Add m4/double-slash-root.m4.
76895         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76896         * modules/mkdir-p (Files): Add lib/same-inode.h.
76897         * modules/same (Files): Add lib/same-inode.h.
76898
76899 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76900
76901         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76902         This is to keep the terminology clean; POSIX talks about
76903         "absolute pathnames", not "full pathnames", but the GNU
76904         Coding Standards say to use "path" for something else;
76905         so use "absolute" to keep both sides happy.
76906         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76907         Set gl_absolute_header, not gl_full_header_path.
76908         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76909         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76910         All uses changed.
76911
76912         Merge from coreutils.
76913
76914         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76917         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76918         want to require the building of c-strtod.o.
76919         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76920         needs -lm directly.
76921         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76922
76923         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76926         --as-needed option if available.  Problem reported by Albert Chin in
76927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76928         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76929         cc merely issues a bunch of annoying warnings for --as-needed
76930         (this problem was reported by Bob Proulx).  Also, try linking with
76931         -lm to detect a bug in binutils 2.16 (this problem was reported
76932         by Ralf Wildenhues).
76933
76934         2006-06-18  Jim Meyering  <jim@meyering.net>
76935
76936         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76937         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76938         macro.
76939         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76940         also check for glibc-2.4's abort-inducing bug.
76941
76942         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76943         Low-probability clean-up should be to use rmdir to get rid of
76944         the just-created directory, not unlink.
76945
76946         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76947         configure fail, and request a bug report to inform us about it.
76948         Add a comment that, barring reports to the contrary, in 2007 we'll
76949         assume ftruncate is universally available.
76950
76951         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76952
76953         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76954
76955         2006-03-12  Jim Meyering  <jim@meyering.net>
76956
76957         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76958         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76959         * m4/same.m4 (gl_SAME): Likewise.
76960         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76961
76962         2006-03-11  Eric Blake  <ebb9@byu.net>
76963
76964         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76965         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76966         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76967         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76968
76969 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76970
76971         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76972         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76973         reported by Mark D. Baushke, one in
76974         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76975
76976         Merge from coreutils.
76977
76978         * lib/.cppi-disable: Add stdint_.h.
76979         * lib/.cvsignore: Add stdint.h.
76980
76981         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76982
76983         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76984         both double and long double versions.
76985         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76986         * lib/xstrtold.c: New file.
76987         * lib/xstrtod.h (xstrtold): New decl.
76988
76989         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76990
76991         * lib/filemode.c (setst): Remove.
76992         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76993         (arguably) clearer, and the generated code is a bit smaller on my
76994         Debian GNU/Linux stable x86 host.
76995
76996         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76997
76998         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76999         Assume that filemode.h includes sys/types.h and sys/stat.h.
77000         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77001         (ftypelet): Reorder to put common cases first, for efficiency.
77002         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77003         to do 'M'.
77004         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77005         of 10, for compatibility with FreeBSD.  All callers changed.
77006         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77007         types that can't be deduced solely from st_mode.  First arg is now a
77008         const pointer.
77009         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77010         (strmode): Renamed from mode_string.
77011         (filemodestring): New decl.
77012         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77013         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77014         needed.
77015         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77016
77017         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77020         fsusage.h now does that.  Include fsusage.h first, to test interface.
77021         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77022         at most one method (the old code could have generated decls that
77023         didn't conform to C89, not that this was ever exercised).
77024         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77025
77026         2006-03-19  Jim Meyering  <jim@meyering.net>
77027
77028         Work even in a chroot where d_ino values for entries in "/"
77029         don't match the stat.st_ino values for the same names.
77030         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77031         number, iterate through all entries again, using lstat instead.
77032         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77033         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77034
77035         * lib/getcwd.c (__getcwd): Clarify a comment.
77036         Use memcpy in place of a call to strcpy.
77037
77038         2006-03-12  Jim Meyering  <jim@meyering.net>
77039
77040         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77041         matches that of the current directory (which we're about to chdir ".."
77042         out of), then save the dev-ino of the parent, instead.
77043
77044         * lib/same-inode.h (SAME_INODE): New file/macro.
77045         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77046         Include "same-inode.h", instead.
77047         * lib/same.c: Likewise.
77048         * lib/cycle-check.h: Include "same-inode.h".
77049         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77050         * lib/cycle-check.c (SAME_INODE): Remove definition.
77051         * lib/root-dev-ino.h: Include "same-inode.h".
77052
77053         2006-03-11  Eric Blake  <ebb9@byu.net>
77054
77055         * lib/same.c (same_name): s/base_name/last_component/
77056         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77057         * lib/filenamecat.c (file_name_concat): Likewise.
77058
77059         2006-03-11  Eric Blake  <ebb9@byu.net>,
77060                     Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77063         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77064         drive prefix.
77065         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77066         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77067         (last_component): New method.
77068         * lib/dirname.c (dir_len): Determine when drive letters need a
77069         subsequent slash.  Preserve // when it is special.
77070         (dir_name): Don't append dot when drive letter is absolute.
77071         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77072         * lib/basename.c (base_name): New semantics - malloc the result.
77073         Preserve // when it is special.  Preserve relative files that look
77074         like drive letters.
77075         (base_len): Preserve // when it is special.
77076         (last_component): New method, similar to old base_name semantics.
77077         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77078         base_name.  Strip redundant slashes from ///.
77079
77080 2006-07-03  Jim Meyering  <jim@meyering.net>
77081
77082         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77083         macro is used before the first cycle_check call.
77084
77085 2006-07-03  Eric Blake  <ebb9@byu.net>
77086
77087         * modules/dirname (Depends-on): Add xstrndup.
77088
77089 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77090
77091         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77092         test cases, so that config.log is a bit easier to follow.
77093
77094 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77097         both are 64 bits, since this seems to be the tradition, and this
77098         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77099         we ever run into a host that prefers long long to long in this
77100         case, we'll need another configure-time test.  Problem reported by
77101         Jim Meyering.
77102
77103 2006-07-02  Eric Blake  <ebb9@byu.net>
77104
77105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77106
77107 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * modules/inttypes (Depends-on): No longer depends on stdint.
77110         * modules/stdint (Description): Say more about assumptions.
77111         Say that the fast types might differ.  Say macros are used.
77112         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77113         (Makefile.am): Revise list of substituted symbols to match
77114         new stdint.m4.
77115         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77116         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77117         * tests/test-stdint.c (verify_same_types)
77118         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77119         the code conforms to C99/C89.
77120         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77121         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77122
77123 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77124
77125         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77126         but fix a bug, by requiring at least 64 bits.
77127         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77128         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77129         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77130         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77131
77132         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77133         changes.  Make 2.59 a prerequisite.  Check and substitute for
77134         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77135         inttypes.h.  Do not use special include files; just use the
77136         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77137         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77138         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77139         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77140         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77141         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77142         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77143         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77144         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77145         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77146         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77147         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77148         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77149         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77150         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77151         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77152         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77153         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77154         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77155         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77156         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77157         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77158         not check for things that C99 does not require, e.g., int8_t.  If
77159         a test isn't needed unless <stdint.h> isn't working, and is
77160         unlikely to be needed for any other reason, then don't do it
77161         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77162         size_t, since we assume C89 freestanding at least.  Do not check
77163         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77164         the right thing even if the types are not defined.  Instead use:
77165         (gl_STDINT_TYPE_PROPERTIES): New macro.
77166         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77167         testing whether <sys/types.h> clashes, as Autoconf does this for
77168         us now.  All uses removed.
77169         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77170         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77171         (gl_CHECK_TYPE_SAME):
77172         Remove; no longer needed.
77173         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77174         exists, since we'll return 0 anyway in that case.
77175         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77176
77177 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77180         possible collision with system files.
77181         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77182         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77183         WCHAR_MIN and WCHAR_MAX in this case.
77184         (<stddef.h>): Do not include; no longer needed.
77185         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77186         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77187         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77188         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77189         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77190         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77191         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77192         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77193         !defined(__c99))]: Include in this case too, since it's harmless
77194         now.
77195         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77196         dangerous to do so.
77197         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77198         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77199         (_STDINT_MIN, _STDINT_MAX): New macros.
77200         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77201         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77202         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77203         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77204         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77205         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77206         macros, not typedefs; this simplifies things quite a bit.
77207         Use long int for all types narrower than int64_t.
77208         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77209         Define in terms of long long int or int64_t or long int,
77210         not int64_t or int32_t.  This saves some compile-time testing.
77211         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77212         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77213         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77214         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77215         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77216         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77217         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77218         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77219         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77220         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77221         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77222         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77223         undef any previous version and define our own version, for
77224         simplicity and consistency with the new macros for types.
77225         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77226         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77227         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77228         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77229         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77230         @WINT_T_SUFFIX@ to keep things simple here.
77231         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77232         Simplify by assuming typical 8/16/32/64 host, since we're
77233         already doing that elsewhere anyway.
77234         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77235         and assume long long int is 64 bits if available.  This
77236         speeds up 'configure'.
77237
77238 2006-07-01  Eric Blake  <ebb9@byu.net>
77239
77240         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77241         Reported by Andreas Buening.
77242
77243 2006-07-01  Eric Blake  <ebb9@byu.net>
77244
77245         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77246
77247 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77248
77249         * lib/getaddrinfo.c: fixed typo
77250
77251 2006-06-29  Jim Meyering  <jim@meyering.net>
77252
77253         * modules/strftime (Maintainer): Add my name, since with the
77254         FPRINTFTIME changes strftime.c has forked from glibc.
77255
77256 2006-06-29  Eric Blake  <ebb9@byu.net>
77257
77258         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77259
77260 2006-06-29  Eric Blake  <ebb9@byu.net>
77261
77262         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77263
77264 2006-06-29  Eric Blake  <ebb9@byu.net>
77265
77266         * lib/stat_.h: New file.
77267
77268 2006-06-29  Eric Blake  <ebb9@byu.net>
77269
77270         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77271         unused static function.
77272
77273 2006-06-29  Eric Blake  <ebb9@byu.net>
77274
77275         * doc/functions.texi (Function Portability): Document missing lstat
77276         on mingw.
77277
77278 2006-06-29  Eric Blake  <ebb9@byu.net>
77279
77280         * MODULES.html.sh: Add sys_stat.
77281         * modules/sys_stat: New module.
77282         * modules/mkstemp (Depends-on): Add sys_stat.
77283
77284 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77285
77286         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77287
77288 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77289
77290         * m4/c-bs-a.m4: Removed.
77291
77292 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77293
77294         * lib/strftime.c: Assume strftime() exists.
77295
77296 2006-06-29  Derek Price  <derek@ximbiot.com>
77297
77298         * modules/c-bs-a: Removed - \a is C89.
77299         * MODULES.html.sh: Remove c-bs-a.
77300
77301 2006-06-29  Bruno Haible  <bruno@clisp.org>
77302
77303         * modules/wcwidth (License): Change to LGPL.
77304
77305 2006-06-28  Simon Josefsson  <jas@extundo.com>
77306
77307         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77308         on _WIN32.
77309
77310         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77311         getnameinfo.
77312
77313 2006-06-28  Simon Josefsson  <jas@extundo.com>
77314
77315         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77316
77317 2006-06-28  Simon Josefsson  <jas@extundo.com>
77318
77319         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77320         functions there.  It will succeed on Windows XP, but on Windows
77321         2000 and (presumably) earlier, it will fail, and use the internal
77322         re-implementation.
77323         (use_win32_p): New function.
77324         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77325         Support AI_NUMERICSERV to disable getservbyname.
77326         (getnameinfo): New function, only supports
77327         NI_NUMERICHOST|NI_NUMERICSERV for now.
77328
77329         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77330         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77331         getnameinfo.
77332
77333 2006-06-28  Eric Blake  <ebb9@byu.net>
77334
77335         * modules/wcwidth: New file.
77336         * modules/mbchar (Depends-on): Add wcwidth.
77337         * modules/mbswidth (Depends-on): Add wcwidth.
77338         * MODULES.html.sh: Add wcwidth.
77339
77340 2006-06-28  Eric Blake  <ebb9@byu.net>
77341
77342         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77344
77345 2006-06-28  Eric Blake  <ebb9@byu.net>
77346
77347         * lib/xvasprintf.h: Fix comments.
77348
77349 2006-06-28  Eric Blake  <ebb9@byu.net>
77350
77351         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77352         * lib/mbswidth.c (wcwidth): Move from here...
77353         * lib/wcwidth.h: ...to this new file.
77354
77355 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77356
77357         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77358
77359         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77360         it's obsolete.
77361         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77362
77363 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77364
77365         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77366         Autoconf 2.60 says this stuff was obsolete.
77367
77368 2006-06-28  Bruno Haible  <bruno@clisp.org>
77369
77370         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77371
77372 2006-06-28  Bruno Haible  <bruno@clisp.org>
77373
77374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77375         gt_TYPE_WCHAR_T.
77376
77377 2006-06-28  Bruno Haible  <bruno@clisp.org>
77378
77379         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77380         declaration for wcwidth.
77381         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77382
77383 2006-06-28  Bruno Haible  <bruno@clisp.org>
77384
77385         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77386         (mkdir): Define using _mkdir.
77387
77388 2006-06-28  Bruno Haible  <bruno@clisp.org>
77389
77390         * lib/getaddrinfo.h: Fix POSIX URL.
77391         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77392         _WIN32.
77393         (use_win32_p): Make static.
77394         (getaddrinfo): Reject service name if it is empty or does not consist
77395         solely of decimal digits, or if its value is > 65535.
77396         (getnameinfo): Remove useless casts.
77397
77398 2006-06-27  Simon Josefsson  <jas@extundo.com>
77399
77400         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77401         Eggert and Martin Lambers.
77402
77403 2006-06-27  Simon Josefsson  <jas@extundo.com>
77404
77405         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77406         Eggert and Martin Lambers.
77407
77408 2006-06-27  Bruno Haible  <bruno@clisp.org>
77409
77410         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77411         result to 0, not to empty.
77412         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77413
77414 2006-06-27  Bruno Haible  <bruno@clisp.org>
77415
77416         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77417
77418 2006-06-26  Simon Josefsson  <jas@extundo.com>
77419
77420         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77421         present.
77422
77423 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77424
77425         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77426         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77427         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77428
77429 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77430
77431         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77432
77433 2006-06-26  Bruno Haible  <bruno@clisp.org>
77434
77435         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77436
77437 2006-06-26  Bruno Haible  <bruno@clisp.org>
77438
77439         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77440
77441 2006-06-26  Bruno Haible  <bruno@clisp.org>
77442
77443         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77444         SGI C compiler in pre-C99 mode.
77445         Suggested by Mark D. Baushke and Larry Jones.
77446
77447 2006-06-26  Bruno Haible  <bruno@clisp.org>
77448
77449         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77450         WCHAR_MAX.
77451         Reported by Mark D. Baushke and Larry Jones.
77452
77453 2006-06-26  Bruno Haible  <bruno@clisp.org>
77454
77455         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77456         in pre-C99 mode.
77457         Suggested by Mark D. Baushke and Larry Jones.
77458
77459 2006-06-23  Simon Josefsson  <jas@extundo.com>
77460             Bruno Haible  <bruno@clisp.org>
77461
77462         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77463         Emit mostlyclean-local rule.
77464         (func_emit_tests_Makefile_am): Likewise.
77465         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77466
77467 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77468
77469         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77470
77471 2006-06-23  Bruno Haible  <bruno@clisp.org>
77472
77473         * tests/test-stdint.c: Update to match ISO C 99 Technical
77474         Corrigendum 1.
77475
77476 2006-06-23  Bruno Haible  <bruno@clisp.org>
77477
77478         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77479
77480 2006-06-23  Bruno Haible  <bruno@clisp.org>
77481
77482         * lib/stdint_.h: Treat IRIX like OpenBSD.
77483
77484 2006-06-23  Bruno Haible  <bruno@clisp.org>
77485
77486         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77487         ISO C 99 Technical Corrigendum 1.
77488
77489 2006-06-22  Simon Josefsson  <jas@extundo.com>
77490
77491         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77492         MinGW.
77493
77494 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77495
77496         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77497         needed.  Some compiler complained about some of them.  Problem reported
77498         by Larry Jones in
77499         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77500
77501 2006-06-21  Simon Josefsson  <jas@extundo.com>
77502
77503         * tests/test-getaddrinfo.c: New file.
77504
77505         * modules/getaddrinfo-tests: New file.
77506
77507         * MODULES.html.sh: Add inet_pton.
77508
77509         * modules/inet_pton: New file.
77510
77511 2006-06-21  Simon Josefsson  <jas@extundo.com>
77512
77513         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77514         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77515         of using the (limited) gnulib implementation on Windows XP.
77516
77517         * m4/inet_pton.m4: New file.
77518
77519 2006-06-21  Simon Josefsson  <jas@extundo.com>
77520
77521         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77522         variable.
77523
77524         * lib/socket_.h: Don't define WINVER.
77525
77526         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77527         slightly modified to work in gnulib.
77528
77529 2006-06-21  Simon Josefsson  <jas@extundo.com>
77530
77531         * doc/gnulib.texi (Windows sockets): Add.
77532
77533 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77534
77535         * lib/read-file.c (fread_file): Start with buffer allocation of
77536         0 bytes rather than 1 byte; this simplifies the code.
77537         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77538         code to free buffer and save/restore errno.
77539         (internal_read_file): Remove unused local.
77540
77541 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77542
77543         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77544         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77545         Problem reported by Denis Excoffier in
77546         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77547
77548 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77549
77550         * modules/sys_socket, modules/socklen: Include sys/types since
77551         FreeBSD 4.x's sys/socket.h needs it.
77552
77553 2006-06-19  Simon Josefsson  <jas@extundo.com>
77554
77555         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77556
77557 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77558
77559         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77560
77561 2006-06-19  Bruno Haible  <bruno@clisp.org>
77562
77563         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77564         and FULL_PATH_INTTYPES_H in angle brackets.
77565         Reported by Mark D. Baushke <mdb@gnu.org>.
77566
77567 2006-06-17  Eric Blake  <ebb9@byu.net>
77568
77569         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77570         errno.
77571
77572 2006-06-17  Bruno Haible  <bruno@clisp.org>
77573
77574         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77575         <sys/inttypes.h>.
77576
77577 2006-06-17  Bruno Haible  <bruno@clisp.org>
77578
77579         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77580         whether errno is declared. Assume <errno.h> declares errno.
77581
77582 2006-06-17  Bruno Haible  <bruno@clisp.org>
77583
77584         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77585
77586 2006-06-17  Bruno Haible  <bruno@clisp.org>
77587
77588         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77589         problem on Solaris 2.5.1.
77590
77591 2006-06-16  Eric Blake  <ebb9@byu.net>
77592
77593         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77594         * lib/unicodeio.c [!defined errno]: Likewise.
77595         * lib/strtol.c [!defined errno]: Likewise.
77596         * lib/strtod.c [!defined errno]: Likewise.
77597
77598 2006-06-15  Eric Blake  <ebb9@byu.net>
77599
77600         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77601
77602 2006-06-15  Eric Blake  <ebb9@byu.net>
77603
77604         * config/srclist.txt (ssize_t.m4): Lose sync.
77605
77606 2006-06-15  Bruno Haible  <bruno@clisp.org>
77607
77608         * modules/stdint (Files): Include m4/full-header-path.m4,
77609         m4/size_max.m4, m4/wchar_t.m4.
77610         (Makefile.am): Many more substitutions.
77611         * modules/stdint-tests: New file.
77612         * tests/test-stdint.c: New file.
77613
77614 2006-06-15  Bruno Haible  <bruno@clisp.org>
77615
77616         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77617         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77618         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77619         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77620         gl_CHECK_TYPE_SAME): New macros.
77621
77622 2006-06-15  Bruno Haible  <bruno@clisp.org>
77623
77624         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77625
77626 2006-06-15  Bruno Haible  <bruno@clisp.org>
77627
77628         * lib/stdint_.h: Rewritten to be fully auto-configured.
77629         Fixes bug on HP-UX/IA64.
77630
77631 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77632
77633         * lib/getdate.y (__attribute__): Don't define if already defined.
77634         Problem reported by Larry Jones.
77635         * lib/utimens.c (__attribute__): Likewise.
77636
77637 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77638
77639         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77640         reported by Andreas Schwab.
77641
77642 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77643             Bruno Haible  <bruno@clisp.org>
77644
77645         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77646         check for the declaration of strnlen and a run test that exposes the
77647         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77648         rpl_strndup.
77649
77650 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77651             Bruno Haible  <bruno@clisp.org>
77652
77653         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77654
77655 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77656
77657         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77658         compile test, for Tru64 4.0D.
77659
77660 2006-05-28  Karl Berry  <karl@gnu.org>
77661
77662         * config/srclist.txt (printf-args.c): lose sync.
77663
77664 2006-05-26  Martin Lambers  <marlam@marlam.de>
77665
77666         * lib/getpass.c: Updates the test for the native W32 API, and adds
77667         missing includes, thus fixing compilation warnings.
77668
77669 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77670
77671         * lib/exclude.c (exclude_fnmatch): New function.
77672         (excluded_file_name): Call exclude_fnmatch.
77673         * lib/exclude.h (excluded_file_name): New prototype
77674
77675 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77676
77677         * lib/tempname.c (small_open, large_open): New macros.
77678         (__open, __open64) [!_LIBC]: Remove.
77679         (__gen_tempname): Use small_open and large_open instead of __open
77680         and __open64.  This fixes a portability bug on HP-UX 11.11i
77681         reported by Simon Wing-Tang in
77682         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77683
77684 2006-05-24  Bruno Haible  <bruno@clisp.org>
77685
77686         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77687         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77688         Reported by Thorsten Maerz <torte@netztorte.de> via
77689         Aaron Stone <aaron@serendipity.cx>.
77690
77691 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77694         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77695         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77696         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77697         not really conditional on the cache.
77698         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77699
77700 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77703         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77704         (my_usleep): Don't mishandle maximum value.
77705
77706 2006-05-19  Jim Meyering  <jim@meyering.net>
77707
77708         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77709
77710 2006-05-17  Bruno Haible  <bruno@clisp.org>
77711
77712         Cygwin portability.
77713         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77714
77715 2006-05-17  Bruno Haible  <bruno@clisp.org>
77716
77717         * lib/stdint_.h: Fix recognition of Cygwin.
77718
77719 2006-05-15  Bruno Haible  <bruno@clisp.org>
77720
77721         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77722         on libtool patch by Ralf Wildenhues.
77723
77724 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77725
77726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77727         test for C99 conformance; (bool) 0.5 is an integer constant
77728         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77729         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77730
77731 2006-05-11  Simon Josefsson  <jas@extundo.com>
77732
77733         * m4/xvasprintf.m4: Fix obvious typo.
77734
77735 2006-05-11  Jim Meyering  <jim@meyering.net>
77736
77737         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77738         James Lemley.
77739
77740 2006-05-10  Simon Josefsson  <jas@extundo.com>
77741
77742         * lib/md4.c: Typo fix, update copyright years.
77743         (K1, K2): Don't use L because it turn computations into 64-bit on
77744         64-bit platforms.
77745
77746 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77747
77748         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77749         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77750         unwanted sign propagation, e.g., on hosts with 64-bit int.
77751         There still are some problems with reeelly weird theoretical hosts
77752         (e.g., 33-bit int) but it's not worth worrying about now.
77753         * lib/sha1.c (rol): Likewise.
77754         (K1, K2, K3, K4): Remove unnecessary L suffix.
77755
77756 2006-05-10  Bruno Haible  <bruno@clisp.org>
77757
77758         * lib/des.c: Cast to avoid warnings.
77759
77760 2006-05-09  Bruno Haible  <bruno@clisp.org>
77761
77762         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77763         (Depends-on): Depend also on xsize, stdarg.
77764         (configure.ac): Add gl_XVASPRINTF.
77765
77766 2006-05-09  Bruno Haible  <bruno@clisp.org>
77767
77768         * m4/xvasprintf.m4: New file.
77769
77770 2006-05-09  Bruno Haible  <bruno@clisp.org>
77771
77772         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77773         (EOVERFLOW): Define fallback value.
77774         (xstrcat): New function.
77775         (xvasprintf): Recognize the special case of a string concatenation.
77776
77777 2006-05-08  Eric Blake  <ebb9@byu.net>
77778
77779         * gnulib-tool (func_version): Base copyright year on CVS date.
77780         (func_emit_copyright_notice): New function.
77781         (func_emit_lib_Makefile_am): Use it.
77782         (func_emit_tests_Makefile_am): Likewise.
77783         (func_import): Likewise.
77784
77785 2006-05-08  Bruno Haible  <bruno@clisp.org>
77786
77787         * modules/stdarg: New file.
77788         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77789
77790 2006-05-08  Bruno Haible  <bruno@clisp.org>
77791
77792         * m4/stdarg.m4: New file, from GNU gettext.
77793
77794 2006-05-08  Bruno Haible  <bruno@clisp.org>
77795
77796         * config/srclist.txt (build-aux/config.rpath): different from latest
77797         release.
77798
77799 2006-05-08  Bruno Haible  <bruno@clisp.org>
77800
77801         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77802
77803 2006-05-05  Jim Meyering  <jim@meyering.net>
77804
77805         * m4/warning.m4: New file, derived from bison's file by the same name.
77806
77807 2006-05-03  Bruno Haible  <bruno@clisp.org>
77808
77809         * lib/stdint_.h: Shorter URL.
77810         * lib/inttypes.h: Likewise.
77811
77812 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77815
77816 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77817
77818         * lib/verify.h: Document the internals better.  Most of this change
77819         was written by Bruno Haible.
77820
77821 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77822
77823         * doc/verify.texi: New file, partly based on a proposal by
77824         Bruno Haible.
77825
77826 2006-05-02  Bruno Haible  <bruno@clisp.org>
77827
77828         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77829         test from here...
77830         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77831
77832 2006-04-29  Bruno Haible  <bruno@clisp.org>
77833
77834         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77835         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77836
77837 2006-04-29  Bruno Haible  <bruno@clisp.org>
77838
77839         * gnulib-tool: Make --update option actually work.
77840
77841 2006-04-29  Bruno Haible  <bruno@clisp.org>
77842
77843         * doc/gcd.texi: New file.
77844         * doc/gnulib.texi: Include it.
77845
77846 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77847
77848         * lib/getdate.y (get_date): When adding relative date, start with the
77849         initial time, not with the result of the first mktime call.
77850
77851 2006-04-25  Bruno Haible  <bruno@clisp.org>
77852
77853         * gnulib-tool (func_import): Output the include directives in three
77854         blocks, sorted separately.
77855         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77856
77857 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77858
77859         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77860         to define main with arguments, for C++.  Reported by Eric Blake.
77861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77862         Prefer 'int main ()' to 'int main (void)', for C++.
77863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77864         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77865         for 'main', for C99 and C++.
77866
77867 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77870         Don't assume that exit status -1 is valid.
77871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77872         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77873         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77874         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77875         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77876         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77877         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77878         functions can be used without declaring them, or that you can
77879         exit with status -1.
77880         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77881
77882 2006-04-24  Karl Berry  <karl@gnu.org>
77883
77884         * config/srclist.txt (longdouble.m4): sync lost.
77885
77886 2006-04-24  Eric Blake  <ebb9@byu.net>
77887
77888         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77889
77890 2006-04-24  Bruno Haible  <bruno@clisp.org>
77891
77892         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77893         poll() implementation in AIX.
77894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77895
77896 2006-04-24  Bruno Haible  <bruno@clisp.org>
77897
77898         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77899         assigned exactly once.
77900
77901 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77902             Bruno Haible  <bruno@clisp.org>
77903
77904         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77905         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77906         for AM_CPPFLAGS.
77907
77908 2006-04-23  Bruno Haible  <bruno@clisp.org>
77909
77910         * modules/copy-file: Depend on unistd.
77911         * modules/execute: Likewise.
77912         * modules/fatal-signal: Likewise.
77913         * modules/findprog: Likewise.
77914         * modules/mkdtemp : Likewise.
77915         * modules/pipe: Likewise.
77916         * modules/wait-process: Likewise.
77917
77918 2006-04-23  Bruno Haible  <bruno@clisp.org>
77919
77920         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77921         condition was already detected.
77922         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77923
77924 2006-04-23  Bruno Haible  <bruno@clisp.org>
77925
77926         * lib/copy-file.c: Include <unistd.h> unconditionally.
77927         * lib/execute.c: Likewise.
77928         * lib/fatal-signal.c: Likewise.
77929         * lib/findprog.c: Likewise.
77930         * lib/mkdtemp.c: Likewise.
77931         * lib/pipe.h: Likewise.
77932         * lib/pipe.c: Likewise.
77933         * lib/wait-process.h: Likewise.
77934
77935 2006-04-23  Bruno Haible  <bruno@clisp.org>
77936
77937         * gnulib-tool (func_usage): Fix --import description. Document
77938         --update.
77939         (func_import): Create temporary file in a temporary directory, if
77940         --dry-run is specified. Silence errors from 'grep' when there are no
77941         m4 files in $m4dir.
77942         (func_create_testdir): Silence errors from 'grep' when there are no
77943         m4 files in $m4dir.
77944         Reported by Karl Berry <karl@freefriends.org>.
77945
77946 2006-04-20  Bruno Haible  <bruno@clisp.org>
77947
77948         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77949         one argument, so that the code will be portable to Autoconf 2.60.
77950         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77951         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77952         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77953
77954 2006-04-19  Derek Price  <derek@ximbiot.com>
77955             Eric Blake  <ebb9@byu.net>
77956
77957         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77958         rather than "/full/path.h".  Update comment to match.  Shorten &
77959         generalize m4_translit call via AS_TR_CPP.
77960
77961 2006-04-19  Derek Price  <derek@ximbiot.com>
77962             Eric Blake  <ebb9@byu.net>
77963
77964         * lib/inttypes.h: Correct grammar in comment.
77965
77966 2006-04-18  Derek Price  <derek@ximbiot.com>
77967             Paul Eggert  <eggert@cs.ucla.edu>
77968
77969         * modules/inttypes: New file.
77970         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77971
77972 2006-04-18  Derek Price  <derek@ximbiot.com>
77973             Paul Eggert  <eggert@cs.ucla.edu>
77974
77975         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77976         New files.
77977
77978 2006-04-18  Derek Price  <derek@ximbiot.com>
77979             Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         * lib/inttypes.h: New file.
77982         * lib/strtoimax.c: Assume <inttypes.h>.
77983
77984 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77985
77986         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77987         isn't mounted.  Problem reported by Kir Kolyshkin.
77988
77989 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77990
77991         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77992         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77993         Derek R. Price.
77994         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77995         implementation.
77996
77997 2006-04-12  Eric Blake  <ebb9@byu.net>
77998
77999         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78000         is now done automatically by the corresponding Autoconf macro.
78001
78002 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78003
78004         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78005         time_r.h.
78006
78007 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78008
78009         Merge regex changes from libc, removing some of our
78010         POSIX-conformance changes that were rejected and redoing them in a
78011         less-intrusive way.
78012
78013         * lib/regcomp.c (re_compile_internal, init_dfa):
78014         Length arg is now size_t, not Idx.  All uses changed.
78015         (peek_token): Forward decl now says internal_function.
78016         (__re_error_msgid, __re_error_msgid_idx):
78017         Now static rather than extern with attribute_hidden.
78018         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78019         For some reason libc prefers K&R style defns for external functions.
78020         (regerror) [!defined _LIBC]: Likewise.
78021         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78022         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78023         (build_range_exp, build_collating_symbol):
78024         Use K&R-style defn.
78025         (re_compile_fastmap): Use '\0' to memset, not 0.
78026         (utf8_sb_map): Make the calculations more obvious.
78027         (init_dfa, parse_bracket_exp, build_charclass_op):
78028         Call calloc and cast result, as glibc does.
78029         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78030         (build_range_exp, build_collating_symbol):
78031         Now internal functions.
78032
78033         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78034
78035         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78036         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78037         Don't depend on VMS; depend on __VMS instead, for POSIX
78038         namespace cleanness.
78039         (regoff_t): Define to ssize_t, not long int.
78040
78041         Remove the REG_ macros named below.  Instead, make the old names
78042         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78043         __USE_GNU_REGEX.
78044         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78045         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78046         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78047         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78048         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78049         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78050         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78051         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78052         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78053         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78054         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78055         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78056         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78057         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78058         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78059         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78060         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78061         (REG_NREGS):
78062         Remove.  All uses replaced by the old RE_* names.
78063         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78064         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78065         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78066         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78067         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78068         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78069         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78070         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78071         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78072         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78073         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78074         Don't bother having these macros be independent of each others'
78075         values, since they no longer exist in the POSIX name space.
78076
78077         Rename the following member names back to their old names,
78078         unless !__USE_GNU_REGEX.  All uses changed back.
78079         (buffer): Renamed from re_buffer.
78080         (allocated): Renamed from re_allocated.
78081         (used): Renamed from re_used.
78082         (syntax): Renamed from re_syntax.
78083         (fastmap): Renamed from re_fastmap.
78084         (translate): Renamed from re_translate.
78085         (can_be_null): Renamed from re_can_be_null.
78086         (regs_allocated): Renamed from re_regs_allocated.
78087         (fastmap_accurate): Renamed from re_fastmap_accurate.
78088         (no_sub): Renamed from re_no_sub.
78089         (not_bol): Renamed from re_not_bol.
78090         (not_eol): Renamed from re_not_eol.
78091         (newline_anchor): Renamed from re_newline_anchor.
78092         (num_regs): Renamed from rm_num_regs.
78093         (start): Renamed from rm_start.
78094         (end): Renamed from rm_end.
78095
78096         (free_state): Move up a bit.
78097
78098         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78099         #define to be empty.
78100         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78101         when that is what is intended.
78102         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78103         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78104         (MAX): New macro.
78105         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78106         All uses changed back to re_malloc, etc.  It's now the caller's
78107         responsibility to check for overflow; all callers changed.
78108         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78109         (re_x2nrealloc): Remove.
78110         (free_state): Remove decl.
78111
78112         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78113         (re_set_registers, re_exec):
78114         Use K&R-style defn.
78115
78116         2006-01-31  Roland McGrath  <roland@redhat.com>
78117
78118         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78119         Reported by Mike Frysinger <vapier@gentoo.org>.
78120
78121         2006-01-15  Andreas Jaeger  <aj@suse.de>
78122
78123         [BZ #1950]
78124         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78125         build_wcs_upper_buffer change.
78126         (build_wcs_upper_buffer): Change return type.
78127
78128         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78129
78130         * lib/regex_internal.h: Include <stdint.h> if available.
78131
78132         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78133
78134         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78135
78136         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78137
78138         * lib/regcomp.c: Adjust for changed secondary hash function.
78139
78140         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78141
78142         * lib/regex.h: Pretty printing.
78143         Clean up namespace a bit.
78144
78145         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78146
78147         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78148         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78149
78150         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78151                     Ulrich Drepper  <drepper@redhat.com>
78152
78153         [BZ #1302]
78154         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78155         changed.
78156         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78157
78158         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78159
78160         [BZ #281]
78161         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78162         * lib/regcomp.c: Remove unnecessary uses of
78163         unsigned RE_TRANSLATE_TYPE.
78164         * lib/regex_internal.h: Likewise.
78165         * lib/regex_internal.c: Likewise.
78166         * lib/regexec.c: Likewise.
78167         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78168
78169         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78170
78171         * lib/regexec.c (find_recover_state): Remove unnecessary
78172         initialization.
78173         (transit_state_bkref): Make DFA a const pointer.
78174         (get_subexp): Likewise.
78175         (check_arrival): Likewise.
78176         (update_cur_sifted_state): Likewise.
78177         (re_search_internal): Likewise.
78178         (prune_impossible_nodes): Likewise.
78179         (acquire_init_state_context): Likewise.
78180         (proceed_next_node): Likewise.
78181         (set_regs): Likewise.
78182         (free_fail_stack_return): Likewise.
78183         (check_arrival_expand_ecl): Mark DFA parameter as const.
78184         (check_arrival_expand_ecl_sub): Likewise.
78185         (check_subexp_limits): Likewise.
78186         (sub_epsilon_src_nodes):  Likewise.
78187         (add_epsilon_src_nodes):  Likewise.
78188         (merge_state_array): Likewise.
78189         (update_regs): Likewise.
78190         (build_trtable): Likewise.
78191         (sift_states_backward): Mark MCTX parameter as const.
78192         (build_sifted_states): Likewise.
78193         (update_cur_sifted_state): Likewise.
78194         (sift_states_mkref): Likewise.
78195         (check_arrival_expand_ecl): Mark eclosure as const.
78196         (check_dst_limits_calc_pos_1): Likewise.
78197         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78198         pointer.
78199
78200         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78201
78202         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78203         (transit_state_sb): Likewise.
78204         (transit_state_mb): Likewise.
78205         (sift_states_iter_mb): Likewise.
78206         (check_arrival_add_next_nodes): Likewise.
78207         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78208         [_LIBC] (re_search_2_stub): Use mempcpy.
78209
78210         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78211         mbrtowc for very simple UTF-8 case.
78212
78213         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78214         a pointer-to-const.
78215         (re_acquire_state_context): Likewise.
78216         * lib/regex_internal.h: Adjust prototypes.
78217
78218         * lib/regex.c: Prevent using C++ compilers.
78219
78220         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78221         (re_acquire_state_context): Likewise.
78222
78223 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         * modules/regex (Depends-on): Add ssize_t.
78226
78227 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78228
78229         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78230         translation table.
78231
78232 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78235
78236 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78237             Bruno Haible  <bruno@clisp.org>
78238
78239         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78240         <sys/types.h> and <inttypes.h>.
78241
78242 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78243
78244         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78245         `__error_t_defined', so argp.h will not typedef the former.
78246
78247 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78250         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78251         glibc names.  Even if glibc is changed to conform to POSIX, the
78252         traditional names will be available anyway, since regex depends on
78253         the extensions module.  Also, fix a longstanding typo in the
78254         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78255         reported by Emanuele Giaquinta.  Also, change sense of cached
78256         variable, so that the message makes sense.
78257
78258 2006-03-24  Simon Josefsson  <jas@extundo.com>
78259
78260         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78261         including some doc fixes.
78262         (base64_encode_alloc): Fix +1 bug on allocation failures.
78263
78264 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78265
78266         * lib/base64.c (base64_encode): Do not read past end of array with
78267         unsanitized input on systems with CHAR_BIT > 8.
78268
78269 2006-03-24  Eric Blake  <ebb9@byu.net>
78270
78271         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78272
78273 2006-03-22  Karl Berry  <karl@gnu.org>
78274
78275         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78276         * config/srclistvars.sh (COREUTILS): new var.
78277
78278 2006-03-17  Jim Meyering  <jim@meyering.net>
78279
78280         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78281         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78282
78283 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78286         no longer needs it.  Instead, check that regoff_t is as least
78287         as wide as ptrdiff_t.
78288
78289         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78290         so that our regex.h stays compatible with the installed regex.
78291         This is helpful for installers who configure --without-included-regex.
78292         Problem reported by Emanuele Giaquinta.
78293
78294 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78295
78296         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78297         Typedef to long int, not to off_, as POSIX will likely change
78298         in that direction.
78299
78300 2006-03-15  Eric Blake  <ebb9@byu.net>
78301
78302         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78303
78304 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78305
78306         * lib/argp-help.c (validate_uparams): Fix typo
78307         * lib/argp-parse.c (argp_default_options): Consistently begin help
78308         messages with a lowercase letter.
78309
78310 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78311
78312         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78313         overrun buffers and shouldn't be used (much as gets shouldn't be
78314         used).
78315         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78316
78317 2006-03-08  Simon Josefsson  <jas@extundo.com>
78318
78319         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78320         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78321
78322 2006-03-08  Simon Josefsson  <jas@extundo.com>
78323
78324         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78325         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78326
78327 2006-03-08  Simon Josefsson  <jas@extundo.com>
78328
78329         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78330         signal that configure disabled the device.
78331
78332 2006-03-08  Simon Josefsson  <jas@extundo.com>
78333
78334         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78335         languages.
78336
78337 2006-03-07  Simon Josefsson  <jas@extundo.com>
78338
78339         * modules/getopt (Depends-on): Add unistd.
78340
78341         * modules/unistd: New file.
78342
78343 2006-03-07  Simon Josefsson  <jas@extundo.com>
78344
78345         * modules/gc-random: New file.
78346
78347 2006-03-07  Simon Josefsson  <jas@extundo.com>
78348
78349         * m4/unistd_h.m4: New file.
78350
78351 2006-03-07  Simon Josefsson  <jas@extundo.com>
78352
78353         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78354         test to be side-effect free by storing the result in the cache
78355         variable gl_cv_lib_readline, and moving the assignment of
78356         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78357         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78358
78359 2006-03-07  Simon Josefsson  <jas@extundo.com>
78360
78361         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78362         error on missing devices (the functions will return an error).
78363
78364         * m4/gc.m4: Move random stuff to gc-random.m4
78365
78366 2006-03-07  Simon Josefsson  <jas@extundo.com>
78367
78368         * lib/unistd_.h: New file.
78369
78370 2006-03-07  Simon Josefsson  <jas@extundo.com>
78371
78372         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78373
78374 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78375
78376         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78377         Problem reported by Juan Manuel Guerrero.
78378
78379 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78380
78381         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78382         the unistd module.
78383         * lib/getlogin_r.c: Likewise.
78384         * lib/getlogin_r.h: Likewise.
78385         * lib/glob.c: Likewise.
78386         * lib/pagealign_alloc.c: Likewise.
78387         * lib/unistd_.h: Remove; no longer needed.
78388
78389 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78390
78391         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78392         Add unistd.
78393         * modules/c-stack (Depends-on): Add unistd.
78394         * modules/getlogin_r: Likewise.
78395         * modules/glob: Likewise.
78396         * modules/pagealign_alloc: Likewise.
78397         * modules/unistd (Files): Remove lib/unistd_.h.
78398         (EXTRA_DIST): Remove.
78399         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78400         need unistd_.h.
78401         (MOSTLYCLEANFILES): Remove unistd.h-t.
78402
78403 2006-03-03  Simon Josefsson  <jas@extundo.com>
78404
78405         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78406
78407 2006-03-03  Simon Josefsson  <jas@extundo.com>
78408
78409         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78410         libidn and bison.
78411
78412 2006-03-03  Simon Josefsson  <jas@extundo.com>
78413
78414         * build-aux/maint.mk: Add indent target.
78415
78416 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78417
78418         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78419         our replacement poll.h in any case, to avoid a differing
78420         declaration from a system header.  Seen on AIX.
78421
78422 2006-03-01  Simon Josefsson  <jas@extundo.com>
78423
78424         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78425         <kasal@ucw.cz>.
78426
78427 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * modules/gettime (Depends-on): Add extensions module.
78430         * modules/nanosleep (Depends-on): Likewise.
78431         * modules/settime (Depends-on): Likewise.
78432
78433 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78434
78435         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78436         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78437         pedantically.
78438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78439         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78440
78441         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78442         not "==".  Reported by Ralf Wildenhues.
78443
78444 2006-03-01  Karl Berry  <karl@gnu.org>
78445
78446         * doc/Copyright/request-*: new files, synced from gnuorg.
78447
78448 2006-03-01  Karl Berry  <karl@gnu.org>
78449
78450         * config/srclist.txt (Copyright/*): new entries.
78451
78452 2006-02-28  Simon Josefsson  <jas@extundo.com>
78453
78454         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78455
78456 2006-02-27  Simon Josefsson  <jas@extundo.com>
78457
78458         * lib/base64.h: Indent #define's.  From Jim Meyering
78459         <jim@meyering.net>.
78460
78461 2006-02-27  Jim Meyering  <jim@meyering.net>
78462
78463         Revert the change of 2006-02-24, so these files can continue
78464         to be sync'd from gettext.
78465         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78466         of `config.h'.
78467
78468 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78469
78470         * modules/intprops: New file.
78471         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78472         Add intprops.
78473         * modules/getloadavg (Files): Remove lib/intprops.h.
78474         (Depends-on): Add intprops.
78475         * modules/human: Likewise.
78476         * modules/inttostr: Likewise.
78477         * modules/openat: Likewise.
78478         * modules/sig2str: Likewise.
78479         * modules/userspec: Likewise.
78480         * modules/utimecmp: Likewise.
78481         * modules/xnanosleep: Likewise.
78482         * modules/xstrtol: Likewise.
78483
78484 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78485
78486         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78487         * modules/lock-tests (TESTS): Use $(EXEEXT).
78488         * modules/tls-tests: Likewise.
78489         * modules/argp-tests: Likewise.
78490         (check_PROGRAMS): New var, replacing...
78491         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78492
78493 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78494
78495         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78496         `config.h'.
78497
78498 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78499
78500         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78501
78502 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78503
78504         Sync from coreutils.
78505         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78506         gl_CHDIR_SAFER.
78507
78508 2006-02-22  Jim Meyering  <jim@meyering.net>
78509
78510         Sync from coreutils.
78511         * m4/chdir-safer.m4: New file.
78512
78513 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78514
78515         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78516         AT_FDCWD exceeds INT_MAX.
78517         * lib/openat.h (AT_FDCWD): Likewise.
78518
78519 2006-02-17  Eric Blake  <address@hidden>
78520
78521         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78522
78523 2006-02-16  Simon Josefsson  <jas@extundo.com>
78524
78525         * modules/getaddrinfo (Depends-on): Add sys_socket.
78526
78527 2006-02-15  Simon Josefsson  <jas@extundo.com>
78528
78529         * build-aux/maint.mk: Add dsyntax-check rule.
78530
78531 2006-02-15  Eric Blake  <ebb9@byu.net>
78532
78533         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78534         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78535         'present but cannot compile' warnings on cygwin.
78536         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78537         use ws2tcpip.h if sys/socket.h works.
78538         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78539         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78540
78541 2006-02-14  Simon Josefsson  <jas@extundo.com>
78542
78543         * modules/maintainer-makefile (Files): Rename.
78544
78545         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78546         and (the local) Makefile.cfg to maint-cfg.mk.
78547
78548         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78549         to the latter.
78550
78551         * modules/maintainer-makefile: New module.
78552
78553         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78554         severaly stripped to make it possible to build it up from scratch
78555         with reliable tests.
78556
78557         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78558         fixes to permit overriding the default actions when configure and
78559         makefile are not available.
78560
78561 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78562
78563         Sync from coreutils.
78564         * modules/lstat (Depends-on): Don't depend on xalloc.
78565         (License): Change from GPL to LGPL, since this is now simply a
78566         replacement for a libc function.
78567
78568 2006-02-14  Jim Meyering  <jim@meyering.net>
78569
78570         Sync from coreutils.
78571
78572         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78573         failure on deficient systems, and simplify gnulib lgpl dependencies.
78574         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78575         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78576
78577         * lib/xalloc-die.c: Remove unused definition of N_.
78578
78579 2006-02-14  Jim Meyering  <jim@meyering.net>
78580
78581         Sync from coreutils.
78582         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78583         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78584         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78585         double-quote uses of that variable, to accommodate the rare case in
78586         which getmntent is available in none of the libraries checked.  This
78587         happens at least on FreeBSD 5.0.
78588
78589 2006-02-13  Simon Josefsson  <jas@extundo.com>
78590
78591         * gnulib-tool (Usage): Fix --import, from
78592         karl@freefriends.org (Karl Berry).
78593
78594 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78595
78596         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78597
78598 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78599
78600         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78601         "autoupdate" on 2005-12-12.
78602
78603 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78604
78605         * modules/closeout (Depends-on): Remove atexit.
78606
78607 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78608
78609         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78610         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78611
78612 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78613
78614         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78615         __EXTENSIONS__ if this causes compilation to fail.  Problem
78616         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78617         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78618
78619 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78620
78621         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78622         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78623         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78624         All uses changed.
78625
78626 2006-01-26  Simon Josefsson  <jas@extundo.com>
78627
78628         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78629         prototype is visible on mingw32.
78630
78631         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78632         for mingw32.
78633
78634         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78635         mingw32).
78636
78637 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78640         attempt to open for write; this always fails, at least on POSIX
78641         hosts.  This reinstates the 2006-01-09 change, which was
78642         inadvertently removed.
78643
78644 2006-01-26  Bruno Haible  <bruno@clisp.org>
78645
78646         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78647         Reported by Paul Eggert.
78648
78649 2006-01-26  Bruno Haible  <bruno@clisp.org>
78650             Paul Eggert  <eggert@cs.ucla.edu>
78651
78652         * lib/stdbool_.h (_Bool)
78653         [(! (defined __cplusplus || defined __BEOS__)
78654           && !defined __GNUC__
78655           && !(defined __HP_cc || defined __xlc__
78656                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78657                || defined __sgi))]:
78658         #define to signed char in these cases too; this simplifies
78659         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78660         etc., separately) and makes it more conservative.
78661
78662 2006-01-25  Simon Josefsson  <jas@extundo.com>
78663
78664         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78665         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78666         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78667
78668 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78669
78670         * lib/argp-namefrob.h: Bugfix. Remove stray #
78671
78672 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78673
78674         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78675         so that we test the test.
78676         Check for yet another HP-UX cc bug involving *bool |= bool.
78677
78678 2006-01-25  Karl Berry  <karl@gnu.org>
78679
78680         * config/srclist.txt (vasnprintf.c): sync lost.
78681
78682 2006-01-25  Jim Meyering  <jim@meyering.net>
78683
78684         Sync from the stable (b5) branch of coreutils:
78685
78686         * lib/fts.c (fts_children): Don't let close() clobber errno from
78687         failed fchdir().
78688
78689         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78690         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78691         a dangling symlink.  That can also happen at least for ELOOP.
78692         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78693         FYI, this bug predates the inclusion of fts.c in coreutils.
78694
78695         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78696         in their own block, so pre-c99 compilers don't object.
78697
78698         Avoid the double-free (first in fts_read, second in fts_close) that
78699         would occur when an `active' directory is made inaccessible (e.g.,
78700         via chmod a-x) during a traversal.
78701         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78702         before returning.  Reproduce this failure by
78703         mkdir -p a/b; cd a; chmod a-x . b
78704         Reported by Stavros Passas.
78705
78706 2006-01-25  Jim Meyering  <jim@meyering.net>
78707
78708         * lib/fileblocks.c: Remove more useless parentheses.
78709         * lib/readutmp.h: Likewise.
78710
78711 2006-01-25  Bruno Haible  <bruno@clisp.org>
78712
78713         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78714         warnings.
78715         Reported by Paul Eggert.
78716
78717 2006-01-25  Bruno Haible  <bruno@clisp.org>
78718
78719         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78720         rid of a trap command. For Solaris sh.
78721         Reported by Mark D. Baushke <mdb@gnu.org>.
78722
78723 2006-01-24  Simon Josefsson  <jas@extundo.com>
78724
78725         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78726         Bruno.
78727
78728 2006-01-24  Karl Berry  <karl@gnu.org>
78729
78730         * config/srclist.txt (argp-namefrob.h): sync lost.
78731
78732 2006-01-24  Jim Meyering  <jim@meyering.net>
78733
78734         * modules/openat (Files): Add lib/intprops.h.
78735         From Mark D. Baushke.
78736
78737 2006-01-24  Jim Meyering  <jim@meyering.net>
78738
78739         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78740         Reported by Mark D. Baushke.
78741
78742 2006-01-24  Jim Meyering  <jim@meyering.net>
78743
78744         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78745
78746 2006-01-24  Bruno Haible  <bruno@clisp.org>
78747
78748         * modules/strnlen (Maintainer): Change from glibc to all.
78749
78750 2006-01-24  Bruno Haible  <bruno@clisp.org>
78751
78752         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78753         Patch by Paul Eggert.
78754
78755 2006-01-24  Bruno Haible  <bruno@clisp.org>
78756
78757         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78758         already has it.
78759         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78760         2005-11-26.
78761
78762         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78763         'signed char' to avoid problems with the built-in _Bool type.
78764         Reported by Paul Eggert on 2005-11-26.
78765
78766 2006-01-24  Bruno Haible  <bruno@clisp.org>
78767
78768         * gnulib-tool (func_import): Avoid constructing complicated sed
78769         expressions inside backquote.
78770         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78771
78772 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78773
78774         These changes imported from libc.
78775         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78776         test and two separate function calls.
78777         * lib/strndup.c (__strndup): Add libc_hidden_def.
78778
78779 2006-01-23  Simon Josefsson  <jas@extundo.com>
78780
78781         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78782         Remove the test_*_SOURCES variable: automake infers it by default.
78783         * modules/tls-tests: Likewise.
78784
78785 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78786
78787         Work around porting bugs reported by Dieter in
78788         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78789         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78790         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78791         Include "getopt.h" first, to check interface.
78792         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78793         !HAVE_DECL_GETENV.
78794         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78795         (__strndup): Revert to K&R-style function dfns, the glibc style.
78796         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78797         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78798         Include strnlen.h first, to get prototype properly.
78799         (strnlen): Renamed from __strnlen.
78800         Remove weak alias.
78801
78802 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78803
78804         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78805
78806 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78807
78808         * config/srclist.txt: Adjust to reflect glibc reorganization.
78809         This affects only comments.
78810
78811 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78812
78813          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78814          Reported by Bruce Korb <bkorb@gnu.org>.
78815
78816 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78817
78818         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78819         to pacify gcc -Wswitch-default.
78820
78821 2006-01-22  Bruno Haible  <bruno@clisp.org>
78822
78823         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78824         temporary buffer for sprintf, take into account the precision also
78825         for 'd', 'i', 'u', 'o', 'x', 'X'.
78826
78827 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78828
78829         * modules/argp-tests: New module
78830         * tests/test-argp.c: New file
78831         * tests/test-argp-2.sh: New file
78832
78833 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78834
78835         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78836         (__argp_base_name): Removed
78837         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78838         typo.
78839         (__argp_base_name): Provide macro definition or extern declaration
78840         depending on the configuration
78841
78842 2006-01-20  Simon Josefsson  <jas@extundo.com>
78843
78844         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78845
78846 2006-01-20  Simon Josefsson  <jas@extundo.com>
78847
78848         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78849
78850 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78851
78852         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78853         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78854         Suggested by Bruno Haible.
78855
78856 2006-01-20  Karl Berry  <karl@gnu.org>
78857
78858         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78859         until changes propagate, I guess.
78860
78861 2006-01-19  Simon Josefsson  <jas@extundo.com>
78862
78863         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78864
78865 2006-01-19  Simon Josefsson  <jas@extundo.com>
78866
78867         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78868
78869 2006-01-19  Simon Josefsson  <jas@extundo.com>
78870
78871         * gnulib-tool: Set check_PROGRAMS.
78872
78873         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78874         modules/des-tests, modules/gc-arcfour-tests,
78875         modules/gc-arctwo-tests, modules/gc-des-tests,
78876         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78877         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78878         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78879         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78880         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78881         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78882         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78883         test_*_SOURCES.
78884
78885 2006-01-18  Simon Josefsson  <jas@extundo.com>
78886
78887         * modules/socklen (Depends-on): Depend on sys_socket.
78888
78889 2006-01-18  Simon Josefsson  <jas@extundo.com>
78890
78891         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78892         modules/des-tests, modules/gc-arcfour-tests,
78893         modules/gc-arctwo-tests, modules/gc-des-tests,
78894         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78895         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78896         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78897         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78898         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78899         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78900         $(EXEEXT) to automake TESTS variable, for mingw32.
78901
78902 2006-01-17  Simon Josefsson  <jas@extundo.com>
78903
78904         * modules/socklen (Include): Need sys/socket.h.
78905
78906 2006-01-17  Bruno Haible  <bruno@clisp.org>
78907
78908         * modules/ssize_t (Include): Add <sys/types.h>.
78909
78910 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78911
78912         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78913         it's not portable and it doesn't work with cross-compiles.
78914         Problem reported by Bruno Haible.  Fix missing-$ typo in
78915         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78916         -zignore from being used with Sun's C compiler.
78917
78918 2006-01-12  Simon Josefsson  <jas@extundo.com>
78919
78920         * lib/base64.c: Fix warning, reported by Bruno Haible
78921         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78922
78923 2006-01-12  Bruno Haible  <bruno@clisp.org>
78924
78925         * modules/ldd: New file.
78926         * build-aux/ldd.sh.in: New file.
78927         * MODULES.html.sh (Support for building libraries and executables): Add
78928         ldd.
78929
78930 2006-01-12  Bruno Haible  <bruno@clisp.org>
78931
78932         * m4/ldd.m4: New file.
78933
78934 2006-01-12  Bruno Haible  <bruno@clisp.org>
78935
78936         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78937         endless loop while replacing $auxdir with build-aux.
78938
78939 2006-01-11  Simon Josefsson  <jas@extundo.com>
78940
78941         * lib/stdint_.h (SIZE_MAX): Add missing (.
78942
78943 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78944
78945         Sync from coreutils.
78946         * lib/md5.c: Fix commentary typos.
78947         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78948         * lib/md5.h (__attribute__): Remove; unused.
78949         * lib/sha1.c: Fix commentary to match md5 better.
78950         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78951         so that we don't need to worry about alignment.  All uses changed.
78952         This merges the 2005-10-28 md5 change into sha1.
78953
78954 2006-01-11  Jim Meyering  <jim@meyering.net>
78955
78956         Sync from coreutils.
78957         * lib/md5.c (OP): Fix spacing.
78958
78959 2006-01-11  Bruno Haible  <bruno@clisp.org>
78960
78961         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78962         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78963         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78964
78965 2006-01-11  Bruno Haible  <bruno@clisp.org>
78966
78967         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78968         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78969         the "early" section as well.
78970
78971 2006-01-11  Bruno Haible  <bruno@clisp.org>
78972
78973         Avoid "ar: no archive members specified" error on MacOS X.
78974         * gnulib-tool (func_modules_add_dummy): New function.
78975         (func_import, func_create_testdir): Invoke it.
78976
78977 2006-01-11  Bruno Haible  <bruno@clisp.org>
78978
78979         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78980         with $auxdir in AC_CONFIG_FILES statements.
78981
78982 2006-01-11  Bruno Haible  <bruno@clisp.org>
78983
78984         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78985         Initialize also noinst_HEADERS to empty.
78986
78987 2006-01-11  Bruno Haible  <bruno@clisp.org>
78988
78989         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78990         variables.
78991         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78992         autoreconf.
78993
78994 2006-01-11  Bruno Haible  <bruno@clisp.org>
78995
78996         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78997         overridable by the user.
78998         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78999
79000 2006-01-10  Simon Josefsson  <jas@extundo.com>
79001
79002         * modules/sys_socket: New file.
79003
79004 2006-01-10  Simon Josefsson  <jas@extundo.com>
79005
79006         * m4/sys_socket_h.m4: New file.
79007
79008 2006-01-10  Simon Josefsson  <jas@extundo.com>
79009
79010         * lib/socket_.h: New file.
79011
79012 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         * modules/readutmp (Maintainer): Add myself.
79015
79016 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79017
79018         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79019         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79020         People who are still concerned with buggy memcmp implementations
79021         can invoke gl_FUNC_MEMCMP themselves.
79022
79023 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79024
79025         * lib/regex_internal.h (BITSET_WORD_BITS):
79026         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79027         preprocessor mishandles large unsigned values as if they were signed.
79028         Problem reported by Claudio Fontana in
79029         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79030
79031 2006-01-10  Jim Meyering  <jim@meyering.net>
79032
79033         Avoid the double-free (first in fts_read, second in fts_close) that
79034         would occur when an `active' directory is made inaccessible (e.g.,
79035         via chmod a-x) during a traversal.
79036         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79037         before returning.  Reproduce this failure by
79038         mkdir -p a/b; cd a; chmod a-x . b
79039         Reported by Stavros Passas.
79040
79041         Sync from coreutils.
79042         * lib/sha1.c: Tweak grammar in a comment.
79043
79044 2006-01-10  Jim Meyering  <jim@meyering.net>
79045
79046         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79047         Patch by Joerg Sonnenberger.
79048
79049 2006-01-10  Bruno Haible  <bruno@clisp.org>
79050
79051         * modules/readutmp: Depend on module free.
79052         * modules/strtok_r: Depend on module restrict.
79053
79054 2006-01-10  Bruno Haible  <bruno@clisp.org>
79055
79056         * modules/gettext (configure.ac): Add an invocation of
79057         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79058
79059 2006-01-10  Bruno Haible  <bruno@clisp.org>
79060
79061         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79062         Reported by Werner Lemberg <wl@gnu.org>.
79063
79064 2006-01-10  Bruno Haible  <bruno@clisp.org>
79065
79066         * lib/localcharset.c: Update from GNU gettext.
79067
79068 2006-01-10  Bruno Haible  <bruno@clisp.org>
79069
79070         * lib/argp.h (__const): Remove macro. Use const instead.
79071         * lib/argp-fmtstream.h (__const): Likewise.
79072         * lib/glob_.h (__const): Remove macro.
79073         * lib/glob-libc.h: Use const instead of __const.
79074
79075 2006-01-10  Bruno Haible  <bruno@clisp.org>
79076
79077         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79078         variable.
79079         Needed to avoid an automake error regarding the 'gettext' module.
79080
79081 2006-01-09  Simon Josefsson  <jas@extundo.com>
79082
79083         * modules/inet_ntop (Depends-on): Add restrict.
79084
79085 2006-01-09  Simon Josefsson  <jas@extundo.com>
79086
79087         * modules/gc-rijndael-tests (License): Put under LGPL.
79088
79089         * modules/gc-des-tests (License): Likewise.
79090
79091         * modules/gc-arcfour-tests (License): Likewise.
79092
79093         * modules/gc-arctwo-tests (License): Likewise.
79094
79095         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79096
79097         * modules/gc-hmac-sha1-tests (Files): Likewise.
79098
79099         * modules/gc-hmac-md5-tests (License): Likewise.
79100
79101         * modules/gc-sha1-tests (License): Likewise.
79102
79103         * modules/gc-md5-tests (License): Likewise.
79104
79105         * modules/gc-md4-tests (License): Likewise.
79106
79107         * modules/gc-md2-tests (License): Likewise.
79108
79109         * modules/gc-tests (License): Likewise.
79110
79111         * modules/des-tests (License): Likewise.
79112
79113         * modules/md4-tests (License): Likewise.
79114
79115         * modules/md2-tests (License): Likewise.
79116
79117 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79118
79119         Sync from coreutils:
79120
79121         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79122         * modules/lib-ignore: New file.
79123         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79124         chdir-safer.m4, lchmod.m4.
79125         * modules/openat: Add mkdirat.c, openat-priv.h.
79126
79127 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79128
79129         Sync from coreutils.
79130         * m4/lib-ignore.m4: New file.
79131         * m4/lchmod.m4: New file.
79132
79133 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79134
79135         Sync from coreutils.
79136         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79137         for write access: POSIX says that must fail.
79138         * lib/fts.c (diropen): Likewise.
79139         * lib/save-cwd.c (save_cwd): Likewise.
79140         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79141         well, for minor improvements on hosts that lack O_DIRECTORY.
79142         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79143         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79144         Fall back on chown if open failed with EACCES.
79145
79146         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79147         Report an error at compile-time if only a 1-second nominal clock
79148         resolution is found.
79149
79150         * lib/lchmod.h: New file.
79151         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79152         (make_dir_parents): Use lchown rather than chown, and
79153         lchmod rather than chmod.
79154
79155         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79156         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79157         "proc" reported by n0dalus.
79158
79159         * lib/mountlist.c: Include <limits.h>.
79160         (dev_from_mount_options)
79161         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79162         New function.  It no longer assumes "dev=" has the System V meaning
79163         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79164         (read_file_system_list)
79165         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79166         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79167         dev= in that case.
79168
79169         * lib/posixtm.h (PDS_PRE_2000): New macro.
79170         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79171         allow_century.  All usages changed.  Reject dates outside the range
79172         1969-1999 if PDS_PRE_2000 is used.
79173
79174 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79175
79176         Sync from coreutils.
79177         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79178         (Time of day items): Mention the possibility of leap seconds.
79179         Problem reported by Dr. David Alan Gilbert.
79180
79181 2006-01-09  Jim Meyering  <jim@meyering.net>
79182
79183         Sync from coreutils.
79184
79185         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79186
79187         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79188
79189         * lib/modechange.c (mode_compile): Reject an invalid mode string
79190         that starts with an octal digit.  From Andreas Gruenbacher.
79191
79192         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79193         and dup to open_safer and dup_safer, respectively.
79194         (openat_permissive): Fix typo in comment.
79195
79196         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79197         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79198         (_): Remove; no longer needed.
79199         (openat): Renamed from rpl_openat; no need for rpl_openat
79200         since openat.h renames openat for us.
79201         Replace most of the body with a call to openat_permissive,
79202         to avoid duplicate code.
79203         Port to (probably hypothetical) environments were mode_t is
79204         wider than int.
79205         (openat_permissive): Require mode arg, so that we can check
79206         types better.  Put it just after flags.  Change cwd failure
79207         indicator from pointer-to-bool to pointer-to-errno-value.
79208         All callers changed.
79209         Invoke openat_save_fail and/or openat_restore_fail if
79210         cwd_errno is null, so that openat can call us.
79211         (openat_permissive, fdopendir, fstatat, unlinkat):
79212         Simplify errno handling to avoid some duplicate code,
79213         as it's OK to set errno on success.
79214         * lib/openat.h: Revamp code so that function macros depend on
79215         __OPENAT_PREFIX only, not also on AT_FDCWD.
79216         (openat_ro): Remove.  Caller changed to use openat_permissive.
79217         (openat_permissive): Now a macro, if not a function.
79218         (openat_restore_fail, openat_save_fail): Now always functions,
79219         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79220
79221         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79222         and openat.c.
79223         * lib/mkdirat.c: Include openat-priv.h.
79224         Remove definitions of macros defined therein.
79225         * lib/openat.c: Likewise.
79226
79227         * lib/mkdirat.c (mkdirat): New file and function.
79228         * lib/openat.h (mkdirat): Declare.
79229
79230         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79231
79232         * lib/openat.h (openat_permissive): Declare.
79233         (openat_ro): Define.
79234
79235         * lib/openat.c (EXPECTED_ERRNO): New macro.
79236         (openat_permissive): New function -- used in remove.c rewrite.
79237         (all functions): Set errno just before returning, only if there
79238         was an actual failure.
79239         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79240
79241         Emulate openat-family functions using Linux's procfs, if possible.
79242         Idea and some code based on Ulrich Drepper's glibc changes.
79243
79244         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79245         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79246         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79247         before falling back on save_cwd and restore_cwd.
79248         (fdopendir, fstatat, unlinkat): Likewise.
79249
79250         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79251         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79252
79253         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79254         as second argument to va_arg.  Otherwise, some versions of gcc
79255         warn that `if this code is reached, the program will abort'.
79256
79257 2006-01-09  Jim Meyering  <jim@meyering.net>
79258
79259         Sync from coreutils.
79260         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79261         Require openat-priv.h.
79262
79263 2006-01-09  Bruno Haible  <bruno@clisp.org>
79264
79265         * modules/strnlen (Include): Use strnlen.h.
79266
79267 2006-01-09  Bruno Haible  <bruno@clisp.org>
79268
79269         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79270
79271 2006-01-09  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/sysexit_.h (EX_OK): New macro.
79274         Suggested by Martin Lambers <marlam@marlam.de>.
79275
79276 2006-01-09  Bruno Haible  <bruno@clisp.org>
79277
79278         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79279         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79280
79281 2006-01-09  Bruno Haible  <bruno@clisp.org>
79282
79283         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79284         numbers.
79285
79286 2006-01-09  Bruno Haible  <bruno@clisp.org>
79287
79288         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79289         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79290         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79291         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79292
79293 2006-01-09  Bruno Haible  <bruno@clisp.org>
79294
79295         * build-aux/javacomp.sh.in: New file, moved from lib/.
79296         * modules/javacomp-script (Files): Update.
79297         (configure.ac): Add AC_CONFIG_FILES invocation.
79298         (EXTRA_DIST): Remove variable.
79299
79300         * build-aux/javaexec.sh.in: New file, moved from lib/.
79301         * modules/javaexec (Files): Update.
79302         (configure.ac): Add AC_CONFIG_FILES invocation.
79303         (EXTRA_DIST): Remove javaexec.sh.in.
79304
79305         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79306         * modules/csharpcomp-script (Files): Update.
79307         (configure.ac): Add AC_CONFIG_FILES invocation.
79308         (EXTRA_DIST): Remove variable.
79309
79310         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79311         * modules/csharpexec (Files): Update.
79312         (configure.ac): Add AC_CONFIG_FILES invocation.
79313         (EXTRA_DIST): Remove csharpexec.sh.in.
79314
79315 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79316
79317         Sync from coreutils.
79318
79319         Add POSIX ACL support
79320         * lib/acl.h (copy_acl, set_acl): Add declarations.
79321         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79322         systems other than Linux.
79323         (chmod_or_fchmod): New function: use fchmod when possible,
79324         and chmod otherwise.
79325         (file_has_acl): Add a POSIX ACL implementation, with a
79326         Linux-specific subcase.
79327         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79328         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79329         acls are unsupported.
79330         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79331         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79332         are unsupported.
79333
79334 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79335
79336         Sync from coreutils.
79337         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79338
79339 2006-01-07  Bruno Haible  <bruno@clisp.org>
79340
79341         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79342         gl_EARLY.
79343
79344 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79345
79346         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79347         Problem reported for Mingw by Mark Junker.
79348
79349 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79350
79351         * README: Gnulib normally doesn't generate a tarball.
79352
79353 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79354
79355         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79356         long int, not int, for nanosecond counts, so that people who are
79357         used to POSIX struct timespec won't be surprised.  Reported by Jim
79358         Meyering.
79359
79360 2005-12-28  Bruno Haible  <bruno@clisp.org>
79361
79362         * build-aux/config.rpath: Update from GNU gettext.
79363
79364 2005-12-16  Jim Meyering  <jim@meyering.net>
79365
79366         * modules/fprintftime: New module.
79367         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79368
79369 2005-12-16  Jim Meyering  <jim@meyering.net>
79370
79371         * m4/fprintftime.m4: New file.
79372
79373 2005-12-16  Jim Meyering  <jim@meyering.net>
79374
79375         * lib/fprintftime.c, lib/fprintftime.h: New files.
79376
79377 2005-12-15  Simon Josefsson  <jas@extundo.com>
79378
79379         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79380         new m4/socklen.m4.
79381
79382 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79383
79384         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79385         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79386
79387 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79388
79389         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79390         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79391         struct uparams is valid. Fall back to the default values if it is
79392         not.
79393
79394 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79395
79396         * modules/argp (Files): Add argp-pin.c
79397         (Depends-on): dirname
79398         (lib_SOURCES): Add argp-pin.c
79399
79400 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79401
79402         * m4/argp.m4:  Check if program_invocation_name and
79403         program_invocation_short_name are declared and define appropriate
79404         macros if they are not.
79405
79406 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79407
79408         * lib/argp-help.c (__argp_base_name): New function
79409         (__argp_short_program_name): Rewrite using __argp_base_name
79410         * lib/argp-namefrob.h: Define program_invocation_name and
79411         program_invocation_short_name if requested
79412         (__argp_base_name): Add prototype
79413         * lib/argp-parse.c (argp_def): Use gettext wrappers
79414         (argp_default_parser): Use __argp_base_name
79415         * lib/argp-pin.c: New file. Defines program_invocation_name and
79416         program_invocation_short_name on systems that lack them.
79417
79418 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79421         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79422         porting problem reported by Georg Schwarz in
79423         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79424
79425 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79426
79427         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79428         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79429         porting problem reported by Georg Schwarz in
79430         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79431
79432 2005-12-05  Bruno Haible  <bruno@clisp.org>
79433
79434         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79435         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79436         Reported by Mark Junker <mjscod@gmx.de>.
79437
79438 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79441         Use implementation from Albert Chin, with some
79442         comments/corrections by Stepan Kasal and myself.
79443
79444 2005-12-02  Bruno Haible  <bruno@clisp.org>
79445
79446         * gnulib-tool (func_import): Accept GPLed build tool modules when
79447         --lgpl is given.
79448         * modules/csharpcomp-script: New file.
79449         * modules/csharpcomp: Depend on it.
79450         * modules/javacomp-script: New file.
79451         * modules/javacomp: Depend on it.
79452         Suggested by Simon Josefsson.
79453
79454 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79457         statement, to work around an HP-UX 10.20 compiler bug reported by
79458         Peter O'Gorman.
79459
79460 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79461
79462         * modules/savedir (Depends-on): Add openat.
79463
79464 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79465
79466         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79467         (uintmax_t) [defined uintmax_t]: Do not declare.
79468         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79469         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79470         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79471         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79472         sake of portability to weird hosts that C allows (though we don't
79473         know of any practical examples).
79474
79475         * lib/savedir.h (fdsavedir): New decl.
79476         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79477         contains most of the former guts of savedir.
79478         (savedir): Use savedirstream.
79479         Include "openat.h".
79480
79481 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79482
79483         * modules/obstack (Files): Add m4/ulonglong.m4.
79484         Problem reported by Davide Angelocola.
79485
79486 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79487
79488         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79489         coreutils no longer futzes with rounding modes.
79490
79491 2005-11-14  Jim Meyering  <jim@meyering.net>
79492
79493         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79494         replacement of mkstemp.
79495
79496 2005-11-10  Simon Josefsson  <jas@extundo.com>
79497
79498         * lib/readline.c: Remove EOL.
79499
79500 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79501
79502         * modules/gethrxtime (Depends-on): Add gettime.
79503
79504 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79505
79506         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79507         or gettimeofday; no longer needed.
79508
79509 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79510
79511         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79512         time business.
79513         (gethrxtime) [! (HAVE_NANOUPTIME
79514         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79515         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79516         our own approximation.
79517
79518 2005-11-08  Eric Blake  <ebb9@byu.net>
79519
79520         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79521
79522 2005-11-08  Eric Blake  <ebb9@byu.net>
79523
79524         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79525
79526 2005-11-04  Bruno Haible  <bruno@clisp.org>
79527
79528         * gnulib-tool: Implement --update mode.
79529
79530 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79531
79532         Fix porting problem reported by Theodoros V. Kalamatianos.
79533         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79534         Don't assume that futimes failing means we must fail.
79535
79536 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79537
79538         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79539         variables to suggest the intended function of the PATH_MAX check.
79540
79541 2005-10-30  Kean Johnston  <jkj@sco.com>
79542
79543         Trivial changes to support SCO systems.
79544         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79545         as PATH_MAX.
79546         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79547         where __ptr is null when no I/O is pending.
79548
79549 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79550
79551         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79552         leave errno alone.  Problem reported by Dmitry V. Levin.
79553
79554 2005-10-28  Simon Josefsson  <jas@extundo.com>
79555
79556         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79557         Test more.
79558
79559         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79560
79561         * modules/md2, modules/md2-tests: New files.
79562
79563 2005-10-28  Simon Josefsson  <jas@extundo.com>
79564
79565         * m4/inet_ntop.m4: More tests.
79566
79567         * m4/gc-md2.m4, md2.m4: New file.
79568
79569 2005-10-28  Simon Josefsson  <jas@extundo.com>
79570
79571         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79572         "restrict" keywords, as per POSIX.  Protect the function
79573         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79574         Don't use K&R prototypes.  Check the sprintf return values.
79575         Re-define EAFNOSUPPORT if not present.  Indent.
79576
79577         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79578         suggested by Bruno Haible <bruno@clisp.org>.
79579
79580         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79581
79582         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79583
79584         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79585         libgcrypt).
79586
79587         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79588
79589         * lib/md2.h, lib/md2.c: New files.
79590
79591 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79594         errno alone.  Problem reported by Frederic Jolliton.
79595
79596 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79597
79598         * modules/verify (License): Change from GPL to LGPL.  This is a
79599         tiny module and there are apparently near-equivalents that are
79600         under the BSD license.
79601
79602 2005-10-24  Simon Josefsson  <jas@extundo.com>
79603
79604         * modules/sha1: Relicense to LGPL.
79605
79606 2005-10-24  Simon Josefsson  <jas@extundo.com>
79607
79608         * lib/md4.h: Shrink buffer size, now that we changed the type.
79609
79610 2005-10-23  Simon Josefsson  <jas@extundo.com>
79611
79612         * gnulib-tool (func_import): Fix --tests-base.
79613
79614 2005-10-22  Simon Josefsson  <jas@extundo.com>
79615
79616         * modules/arcfour (Depends-on): Need stdint.
79617
79618 2005-10-22  Simon Josefsson  <jas@extundo.com>
79619
79620         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79621         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79622
79623 2005-10-22  Simon Josefsson  <jas@extundo.com>
79624
79625         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79626         suggested by Bruno Haible <bruno@clisp.org>.
79627
79628 2005-10-22  Simon Josefsson  <jas@extundo.com>
79629
79630         * lib/crc.h: Include stddef.h, for size_t.
79631
79632 2005-10-22  Simon Josefsson  <jas@extundo.com>
79633
79634         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79635         arcfour_context struct (simplify test vector testing in GNU
79636         Shishi).
79637
79638 2005-10-21  Simon Josefsson  <jas@extundo.com>
79639
79640         * modules/des, modules/des-tests: New files.
79641
79642         * modules/gc-des, modules/gc-des-tests: New files.
79643
79644         * tests/test-des.c, tests/test-gc-des.c: New file.
79645
79646 2005-10-21  Simon Josefsson  <jas@extundo.com>
79647
79648         * modules/arctwo, modules/arctwo-tests: New files.
79649
79650         * tests/test-arctwo.c: New file.
79651
79652         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79653
79654         * tests/test-gc-arctwo.c: New file.
79655
79656 2005-10-21  Simon Josefsson  <jas@extundo.com>
79657
79658         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79659         Bruno Haible <bruno@clisp.org>.
79660
79661         * m4/gc-des.m4: New file.
79662
79663 2005-10-21  Simon Josefsson  <jas@extundo.com>
79664
79665         * m4/arctwo.m4: New file.
79666
79667         * m4/gc-arctwo.m4: New file.
79668
79669 2005-10-21  Simon Josefsson  <jas@extundo.com>
79670
79671         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79672         block.
79673
79674 2005-10-21  Simon Josefsson  <jas@extundo.com>
79675
79676         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79677         <bruno@clisp.org>.
79678
79679         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79680
79681         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79682         Bruno Haible <bruno@clisp.org>.
79683
79684         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79685         <bruno@clisp.org>.
79686
79687 2005-10-21  Simon Josefsson  <jas@extundo.com>
79688
79689         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79690
79691 2005-10-21  Simon Josefsson  <jas@extundo.com>
79692
79693         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79694
79695 2005-10-21  Simon Josefsson  <jas@extundo.com>
79696
79697         * lib/des.h, lib/des.c: New files.
79698
79699         * lib/gc-gnulib.c: Support DES.c
79700
79701 2005-10-21  Simon Josefsson  <jas@extundo.com>
79702
79703         * lib/arctwo.h, lib/arctwo.c: New files.
79704
79705         * lib/gc-gnulib.c: Support ARCTWO.
79706
79707 2005-10-21  Simon Josefsson  <jas@extundo.com>
79708
79709         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79710         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79711
79712 2005-10-21  Simon Josefsson  <jas@extundo.com>
79713
79714         * gnulib-tool (func_import, func_create_testdir): Define automake
79715         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79716         Makefile.am snippet),
79717         suggested by Bruno Haible <bruno@clisp.org>.
79718
79719         * modules/gc (Makefile.am): Use it.
79720
79721 2005-10-21  Bruno Haible  <bruno@clisp.org>
79722
79723         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79724         patch.
79725
79726 2005-10-19  Simon Josefsson  <jas@extundo.com>
79727
79728         * tests/test-gc-rijndael.c: New file.
79729
79730         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79731
79732 2005-10-19  Simon Josefsson  <jas@extundo.com>
79733
79734         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79735         interface too.
79736
79737 2005-10-19  Simon Josefsson  <jas@extundo.com>
79738
79739         * tests/test-gc-arcfour.c: New file.
79740
79741         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79742
79743 2005-10-19  Simon Josefsson  <jas@extundo.com>
79744
79745         * modules/gc-md4, modules/gc-md4-tests: New file.
79746
79747         * tests/test-gc-md4.c: New file.
79748
79749 2005-10-19  Simon Josefsson  <jas@extundo.com>
79750
79751         * m4/gc-md4.m4: New file.
79752
79753 2005-10-19  Simon Josefsson  <jas@extundo.com>
79754
79755         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79756         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79757         <kasal@ucw.cz>.
79758
79759 2005-10-19  Simon Josefsson  <jas@extundo.com>
79760
79761         * m4/gc-arcfour.m4: New file.
79762
79763         * m4/gc-rijndael.m4: New file.
79764
79765 2005-10-19  Simon Josefsson  <jas@extundo.com>
79766
79767         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79768
79769 2005-10-19  Simon Josefsson  <jas@extundo.com>
79770
79771         * lib/gc-gnulib.c: Support ARCFOUR.
79772
79773 2005-10-19  Simon Josefsson  <jas@extundo.com>
79774
79775         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79776         support.
79777
79778         * lib/gc.h: Add ECB enum type.
79779
79780         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79781
79782 2005-10-18  Simon Josefsson  <jas@extundo.com>
79783
79784         * tests/test-md5.c: New file.
79785
79786         * modules/md5-tests: New file.
79787
79788 2005-10-18  Simon Josefsson  <jas@extundo.com>
79789
79790         * tests/test-md4.c: New file.
79791
79792         * modules/md4, modules/md4-tests: New files.
79793
79794 2005-10-18  Simon Josefsson  <jas@extundo.com>
79795
79796         * m4/md4.m4: New file.
79797
79798 2005-10-18  Simon Josefsson  <jas@extundo.com>
79799
79800         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79801
79802 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79803
79804         * gnulib-tool (func_create_testdir): Omit the second check whether
79805         BUILT_SOURCES in nonempty.
79806
79807 2005-10-17  Simon Josefsson  <jas@extundo.com>
79808
79809         * tests/test-rijndael.c: New file.
79810
79811 2005-10-17  Simon Josefsson  <jas@extundo.com>
79812
79813         * modules/sha1: Depend on stdint instead of md5.
79814
79815         * modules/md5: Depend on stdint, remove uint32_t.
79816
79817 2005-10-17  Simon Josefsson  <jas@extundo.com>
79818
79819         * modules/gc-sha1-tests: New file.
79820
79821         * tests/test-gc-sha1.c: New file.
79822
79823 2005-10-17  Simon Josefsson  <jas@extundo.com>
79824
79825         * m4/md5.m4: Remove call to uint32_t.m4.
79826
79827 2005-10-17  Simon Josefsson  <jas@extundo.com>
79828
79829         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79830
79831         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79832         md5.h.
79833
79834         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79835
79836         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79837
79838 2005-10-17  Simon Josefsson  <jas@extundo.com>
79839
79840         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79841
79842 2005-10-17  Simon Josefsson  <jas@extundo.com>
79843
79844         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79845
79846 2005-10-17  Simon Josefsson  <jas@extundo.com>
79847
79848         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79849
79850         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79851
79852 2005-10-17  Bruno Haible  <bruno@clisp.org>
79853
79854         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79855         that it can also be used in a test.
79856
79857 2005-10-16  Bruno Haible  <bruno@clisp.org>
79858
79859         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79860         TESTS_ENVIRONMENT, so that individual tests can augment it.
79861
79862         * gnulib-tool (func_create_testdir): Use an intermediate target for
79863         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79864         macros, like $(ALLOCA_H), which cannot be passed through the command
79865         line.
79866
79867 2005-10-15  Simon Josefsson  <jas@extundo.com>
79868
79869         * modules/rijndael-tests: New file.
79870
79871         * modules/rijndael: New file.
79872
79873 2005-10-15  Simon Josefsson  <jas@extundo.com>
79874
79875         * m4/rijndael.m4: New file.
79876
79877 2005-10-15  Simon Josefsson  <jas@extundo.com>
79878
79879         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79880
79881         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79882
79883 2005-10-14  Simon Josefsson  <jas@extundo.com>
79884
79885         * tests/test-arcfour.c: New file.
79886
79887         * modules/arcfour, modules/arcfour-tests: New files.
79888
79889 2005-10-14  Simon Josefsson  <jas@extundo.com>
79890
79891         * m4/arcfour.m4: New file.
79892
79893 2005-10-14  Simon Josefsson  <jas@extundo.com>
79894
79895         * lib/arcfour.h, lib/arcfour.c: New files.
79896
79897 2005-10-14  Roland McGrath  <roland@redhat.com>
79898
79899         Import from libc.  [BZ #1331]
79900         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79901         macro argument.
79902         Reported by Matej Vela <vela@debian.org>.
79903
79904 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79905
79906         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79907         include <wchar.h>; no longer needed.
79908
79909 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79910
79911         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79912
79913 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79914         and  Ulrich Drepper  <drepper@redhat.com>
79915
79916         Import from libc.
79917         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79918         instead of inline stream orientation test and two separate
79919         function calls.  Pay no attention to USE_IN_LIBIO.
79920
79921 2005-10-13  Simon Josefsson  <jas@extundo.com>
79922
79923         * modules/gc-hmac-md5-tests: New file.
79924
79925         * tests/test-gc-hmac-sha1.c: New file.
79926
79927         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79928
79929         * modules/gc-hmac-md5-tests: New file.
79930
79931         * tests/test-gc-md5.c: New file.
79932
79933         * modules/gc-md5-tests: New file.
79934
79935 2005-10-13  Simon Josefsson  <jas@extundo.com>
79936
79937         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79938         Move memory allocation outside of loop.
79939
79940 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79941
79942         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79943         intermediate directory is in a read-only file system.  Problem
79944         reported by Eric Blake.
79945
79946 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79947
79948         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79949
79950 2005-10-12  Simon Josefsson  <jas@extundo.com>
79951
79952         * tests/test-hmac-sha1.c: New file.
79953
79954         * modules/hmac-sha1-tests: New file.
79955
79956         * modules/hmac-sha1: New file.
79957
79958 2005-10-12  Simon Josefsson  <jas@extundo.com>
79959
79960         * modules/gc-sha1: New file.
79961
79962 2005-10-12  Simon Josefsson  <jas@extundo.com>
79963
79964         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79965
79966         * tests/test-gc-pbkdf2-sha1.c: New file.
79967
79968 2005-10-12  Simon Josefsson  <jas@extundo.com>
79969
79970         * modules/gc-md5, modules/gc-hmac-md5: New files.
79971
79972         * modules/gc (Files): Remove md5, memxor and hmac files.
79973
79974 2005-10-12  Simon Josefsson  <jas@extundo.com>
79975
79976         * m4/gc-pbkdf2-sha1.m4: New file.
79977
79978         * m4/gc-hmac-sha1.m4: New file.
79979
79980         * m4/gc-sha1: New file.
79981
79982         * m4/hmac-sha1.m4: New file.
79983
79984 2005-10-12  Simon Josefsson  <jas@extundo.com>
79985
79986         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79987
79988         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79989
79990 2005-10-12  Simon Josefsson  <jas@extundo.com>
79991
79992         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79993         suggested by Bruno Haible <bruno@clisp.org>.
79994
79995 2005-10-12  Simon Josefsson  <jas@extundo.com>
79996
79997         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79998
79999 2005-10-12  Simon Josefsson  <jas@extundo.com>
80000
80001         * lib/gc-pbkdf2-sha1.c: New file.
80002
80003         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80004
80005 2005-10-12  Simon Josefsson  <jas@extundo.com>
80006
80007         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80008
80009         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80010
80011 2005-10-12  Simon Josefsson  <jas@extundo.com>
80012
80013         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80014         GC_USE_HMAC_MD5, respectively.
80015
80016         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80017         (gc_md5): Fix typo.
80018
80019         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80020
80021         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80022
80023         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80024
80025 2005-10-12  Bruno Haible  <bruno@clisp.org>
80026
80027         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80028         Reported by Stepan Kasal <kasal@ucw.cz>.
80029
80030 2005-10-11  Simon Josefsson  <jas@extundo.com>
80031
80032         * tests/test-crc.c: New file.
80033
80034         * modules/crc, modules/crc-tests: New files.
80035
80036 2005-10-11  Simon Josefsson  <jas@extundo.com>
80037
80038         * m4/crc.m4: New file.
80039
80040 2005-10-11  Simon Josefsson  <jas@extundo.com>
80041
80042         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80043
80044         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80045
80046         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80047
80048 2005-10-11  Simon Josefsson  <jas@extundo.com>
80049
80050         * lib/crc.h, lib/crc.c: New files.
80051
80052         * lib/gc.h (gc_hash_buffer): Add doc.
80053
80054 2005-10-11  Bruno Haible  <bruno@clisp.org>
80055
80056         * modules/c-strcasestr: New file.
80057         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80058
80059 2005-10-11  Bruno Haible  <bruno@clisp.org>
80060
80061         * modules/c-strcase: New file.
80062         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80063
80064 2005-10-11  Bruno Haible  <bruno@clisp.org>
80065
80066         * lib/strcasecmp.c: Include limits.h.
80067         (strcasecmp): Avoid integer overflow on exotic platforms.
80068         * lib/strncasecmp.c: Include limits.h.
80069         (strncasecmp): Avoid integer overflow on exotic platforms.
80070         Reported by Paul Eggert.
80071
80072 2005-10-11  Bruno Haible  <bruno@clisp.org>
80073
80074         * lib/c-strcasestr.h: New file, from GNU gettext.
80075         * lib/c-strcasestr.c: New file, from GNU gettext.
80076
80077 2005-10-11  Bruno Haible  <bruno@clisp.org>
80078
80079         * lib/c-strcase.h: New file, from GNU gettext.
80080         * lib/c-strcasecmp.c: New file, from GNU gettext.
80081         * lib/c-strncasecmp.c: New file, from GNU gettext.
80082
80083 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80084
80085         * modules/mempcpy (License): GPL -> LGPL.
80086         * modules/strchrnul (License): Likewise.
80087         * modules/sysexits (License): Likewise.
80088
80089 2005-10-08  Simon Josefsson  <jas@extundo.com>
80090
80091         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80092
80093 2005-10-07  Simon Josefsson  <jas@extundo.com>
80094
80095         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80096
80097 2005-10-06  Simon Josefsson  <jas@extundo.com>
80098
80099         * tests/test-hmac-md5.c: New file.
80100
80101         * modules/hmac-md5-tests: New file.
80102
80103         * modules/hmac-md5: New file.
80104
80105 2005-10-06  Simon Josefsson  <jas@extundo.com>
80106
80107         * m4/hmac-md5.m4: New file.
80108
80109         * m4/memxor.m4: Require gl_C_RESTRICT.
80110
80111 2005-10-06  Simon Josefsson  <jas@extundo.com>
80112
80113         * lib/memxor.c (memxor): Avoid casts and warnings.
80114
80115 2005-10-06  Simon Josefsson  <jas@extundo.com>
80116
80117         * lib/hmac-md5.c: New file.
80118
80119         * lib/hmac.h: New file.
80120
80121 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80122
80123         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80124         promotes to int, not unsigned int, to catch the AIX 5.3
80125         compiler bug.
80126
80127 2005-10-05  Simon Josefsson  <jas@extundo.com>
80128
80129         * modules/memxor: New file.
80130
80131         * modules/iconv (Files): Move config.rpath to havelib, it is used
80132         there.
80133
80134         * modules/havelib (Files): Add config.rpath.
80135
80136 2005-10-05  Simon Josefsson  <jas@extundo.com>
80137
80138         * m4/memxor.m4: New file.
80139
80140 2005-10-05  Simon Josefsson  <jas@extundo.com>
80141
80142         * lib/memxor.c (memxor): Fix compiler error.
80143
80144         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80145         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80146
80147         * lib/memxor.h, lib/memxor.c: New files.
80148
80149         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80150         we assume all systems have it, suggested by Jim Meyering
80151         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80152         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80153         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80154         same reasons.
80155
80156 2005-10-05  Simon Josefsson  <jas@extundo.com>
80157
80158         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80159
80160 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80161
80162         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80163         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80164         needed, since the source code now assumes these .h files.
80165
80166 2005-10-05  Derek Price  <derek@ximbiot.com>
80167
80168         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80169
80170 2005-10-05  Bruno Haible  <bruno@clisp.org>
80171
80172         * modules/stdint (License): Change to LGPL.
80173
80174 2005-10-04  Simon Josefsson  <jas@extundo.com>
80175
80176         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80177         D. Baushke" <mdb@gnu.org>.
80178
80179 2005-10-04  Bruno Haible  <bruno@clisp.org>
80180
80181         * lib/verify.h (verify_true): Provide alternative definition for C++.
80182
80183 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80184
80185         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80186         (SSIZE_MAX): New macro, if not already defined.
80187         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80188         than 2 GiB.
80189
80190 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         Sync from coreutils.
80193         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80194         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80195         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80196         ULLONG_MAX doesn't work with 2.7.2.1.
80197
80198 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80199
80200         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80201         From Ben Pfaff.
80202
80203         * modules/exclude (Depends-on): Depend on verify.
80204         * modules/strtoimax (Depends-on): Likewise.
80205         * modules/utimecmp (Depends-on): Likewise.
80206
80207 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80208
80209         * lib/exclude.c: Include verify.h.
80210         (verify): Remove.  All callers changed to use verify.h's version.
80211         * lib/strtoimax.c: Likewise.
80212         * lib/utimecmp.c: Likewis.e
80213
80214         Sync from coreutils.
80215         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80216         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80217         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80218         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80219         bother returning ENOSYS if settimeofday or stime fails; just let
80220         them return whatever errno they want to return.
80221         * lib/utimens.c: Include unistd.h, for dup2.
80222         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80223         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80224
80225 2005-10-02  Jim Meyering  <jim@meyering.net>
80226
80227         Sync from coreutils.
80228         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80229         from glibc-2.2.5 that fails for read-only files.
80230
80231 2005-10-02  Jim Meyering  <jim@meyering.net>
80232
80233         Sync from coreutils.
80234         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80235         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80236         `#if HAVE_CONFIG_H'.
80237         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80238         Remove AT_FDCWD test.
80239         Do not consume the fd unless successful.
80240         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80241         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80242         block, so that we don't even try to compile it if settimeofday is
80243         available.  This works around a compilation failure on OSF1 V5.1,
80244         due to stime requiring a `long int*' while tv_sec is `int'.
80245
80246 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80247
80248         Sync from coreutils.
80249         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80250         against `yes', rather than just testing for nonempty.
80251
80252 2005-10-01  Simon Josefsson  <jas@extundo.com>
80253
80254         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80255         and Darwin.
80256
80257         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80258         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80259         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80260         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80261         Check if struct addrinfo is declared.
80262
80263 2005-10-01  Simon Josefsson  <jas@extundo.com>
80264
80265         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80266         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80267         AI_* and EAI_* definitions.  Protect function declarations.
80268
80269 2005-10-01  Jim Meyering  <jim@meyering.net>
80270
80271         Sync from coreutils.
80272
80273         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80274         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80275         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80276         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80277         in the inet and nsl libraries.  Required on Solaris 5.7.
80278
80279 2005-10-01  Jim Meyering  <jim@meyering.net>
80280
80281         Sync from coreutils.
80282         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80283         in the inet and nsl libraries.  Required on Solaris 5.7.
80284
80285 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80286
80287         * lib/getdelim.c (getdelim): Remove unused variables.
80288
80289 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80290
80291         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80292         so that the code works even with ancient cpp.  Portability problem
80293         with GCC 2.7.2.1 reported by Thomas M.Ott.
80294
80295 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * modules/regex (Depends-on): Add strcase.
80298
80299         * modules/gethostname (Licence): Change from GPL to LGPL, since
80300         gethostname.c is a trivial implementation of a standard library
80301         function.
80302         * modules/poll (License): Change from GPL to LGPL, since it's
80303         derived from LGPL code.
80304
80305 2005-09-27  Jim Meyering  <jim@meyering.net>
80306
80307         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80308         HAVE_CONFIG_H.
80309
80310         * lib/intprops.h (signed_type_or_expr__): Define.
80311         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80312         for unsigned types.
80313
80314 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80315
80316         * lib/verify.h (verify_expr): Remove, replacing with:
80317         (verify_true): New macro that returns true instead of void.
80318         (verify_type__): Remove.
80319         (verify): Use verify_true rather than verify_type__.
80320
80321 2005-09-26  Bruno Haible  <bruno@clisp.org>
80322
80323         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80324         is necessary.
80325         (lib_SOURCES): Remove mbchar.c.
80326         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80327         (Files): Add m4/mbrtowc.m4.
80328         * modules/mbiter: Likewise.
80329         * modules/mbuiter: Likewise.
80330
80331 2005-09-26  Bruno Haible  <bruno@clisp.org>
80332
80333         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80334         compile mbchar.c if they are not both present.
80335         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80336         * m4/mbiter.m4 (gl_MBITER): Likewise.
80337         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80338         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80339         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80340
80341 2005-09-25  Jim Meyering  <jim@meyering.net>
80342
80343         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80344         also uses socklen_t.
80345
80346 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80347
80348         * lib/utimens.c (ENOSYS): Define if not already defined.
80349         (futimens): Support having a null PATH if the file descriptor
80350         is nonnegative.
80351
80352         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80353         Remove.
80354         (__attribute): Define to empty unless GCC 3.1 or later.
80355         This works around a core dump on OpenBSD 3.4, which has GCC
80356         2.95.3, which dumps core when given __attribute__(()).  It also
80357         simplifies other tests, since we really don't want to bother with
80358         worrying about which ancient version of GCC supported what.
80359         Original problem reported by Yoann Vandoorselaere, with part of
80360         the fix suggested by Derek Price.
80361
80362 2005-09-24  Jim Meyering  <jim@meyering.net>
80363
80364         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80365         so we can once again use a positive bitfield width of 1 -- now we
80366         don't have to explain why we were using a bitfield width of 2.
80367
80368 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80369
80370         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80371         and similarly for the other external symbols.  Problem reported
80372         by James Gallager.
80373
80374         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80375         bug reported by Jim Meyering.
80376
80377         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80378         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80379         not needed, since socklen is a prerequisite module.
80380
80381 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80382
80383         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80384         Problem reported by Eric Blake.
80385         (getaddrinfo): Initialize se so that it's not garbage.
80386         Redo internal storage allocation so that it doesn't make unportable
80387         assumptions about alignment.
80388         Fix a memory leak.
80389
80390         * lib/utimens.c (futimens): Use futimesat if available.
80391         Prefer it to futimes since it doesn't have the futimes bug.
80392
80393         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80394         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80395         Instead, declare a function that returns a pointer to an array,
80396         and use verify_type__ to declare the size of the array.
80397         Problem and germ of a solution reported by Bruno Haible.
80398         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80399         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80400
80401 2005-09-23  Jim Meyering  <jim@meyering.net>
80402
80403         Sync from coreutils.
80404         Correct build failure (socklen_t not defined) on at least
80405         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80406         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80407
80408 2005-09-23  Jim Meyering  <jim@meyering.net>
80409
80410         * modules/getaddrinfo (Depends-on): Add socklen.
80411
80412 2005-09-23  Bruno Haible  <bruno@clisp.org>
80413
80414         * tests/test-verify.c: New file.
80415
80416 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80417
80418         Sync from coreutils.
80419
80420         * modules/argmatch (Depends-on): Add verify.
80421         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80422         unistd-safer.
80423         * modules/save-cwd (Depends-on): Likewise.
80424
80425         * modules/openat (Files): Add lib/openat-die.c.
80426         (Depends-on): Remove error, exitfail.
80427         Add dirname.
80428
80429         * modules/verify: New file.
80430         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80431         with "verify" module.
80432
80433 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80434
80435         Sync from coreutils.
80436
80437         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80438         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80439         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80440         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80441         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80442         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80443         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80444         Don't bother checking for string.h, stdlib.h, unistd.h.
80445         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80446         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80447         module's job.
80448         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80449         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80450
80451         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80452         (gl_GETDATE): Use it.
80453
80454         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80455
80456 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80457
80458         Sync from coreutils.
80459
80460         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80461         stat-time.h.
80462         * lib/argmatch.h: Include verify.h
80463         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80464         (ARGMATCH_ASSERT): Remove; unused.
80465         * lib/canonicalize.c: Assume STDC_HEADERS.
80466         * lib/exclude.c: Include "strcase.h".
80467         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80468         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80469         and stdio-safer.h.
80470         (getusershell): Call fopen, not fopen_safer.
80471         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80472         Do not include unistd-safer.h.
80473         (save_cwd): Don't call fd_safer; no longer needed
80474         now that we include fcntl--.h.
80475
80476         * lib/getdate.y (relative_time): New type.
80477         (RELATIVE_TIME_0): New constant.
80478         (parser_control): Use relative_time instead of doing it ourselves.
80479         (%union): Add new relative_time rel member.
80480         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80481         Now typeless.
80482         (relunit, relunit_snumber): Now of type rel.
80483         (zone, rel, relunit, get_date): Adjust to above changes.
80484
80485         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80486         Do not include unistd-safer.h.
80487         (getloadavg): Don't call fd_safer; no longer needed
80488         now that we include fcntl--.h.
80489
80490         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80491         (make_dir_parents): Treat ENOSYS like EEXIST.
80492
80493         Improve quality of diagnostics on restore_cwd failure.
80494         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80495         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80496         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80497         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80498         each time through the loop.  Do not diagnose restore_cwd failure;
80499         that is the caller's job (and perhaps the caller does not care).
80500
80501         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80502         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80503         If the file already exists but is not a directory, don't bother
80504         to try to make its parents.
80505         Close potential file descriptor leak if we can't chdir("/") (!).
80506         Don't always return true if chdir($PWD) fails; return true only
80507         if the requested action was done successfully (except for the
80508         chdir($PWD)).
80509         Don't log final directory unless we actually made it.
80510         Refactor to avoid duplicate code to fix up permissions.
80511         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80512
80513         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80514         to make it a bit faster and (I hope) clearer.
80515         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80516         Fix bug in formats like %2N.
80517
80518         * lib/verify.h: New file.
80519
80520 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80521
80522         Sync from coreutils.
80523         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80524
80525 2005-09-22  Jim Meyering  <jim@meyering.net>
80526
80527         Sync from coreutils.
80528
80529         * m4/lstat.m4 (gl_FUNC_LSTAT):
80530         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80531         Remove obsolete comment.
80532         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80533         * m4/xstrtod.m4: Likewise.
80534
80535         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80536
80537 2005-09-22  Jim Meyering  <jim@meyering.net>
80538
80539         Sync from coreutils.
80540
80541         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80542
80543         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80544         the .tm_year member, since otherwise gcc-4.0 would now warn about
80545         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80546
80547         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80548         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80549
80550         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80551         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80552         when run in a time zone for which daylight savings time is in effect
80553         for the starting date.
80554
80555         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80556         stop us from restricting permissions of just-created absolute-named
80557         directories.
80558         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80559         to restore initial working directory.
80560         * lib/mkdir-p.c (make_dir_parents): New parameter:
80561         different_working_dir, to tell caller if/when we change the working
80562         directory and are unable to return to the initial one.
80563         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80564         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80565         `return false'.  This fixes a bug introduced on 2004-07-30.
80566
80567         * lib/openat.c (fdopendir): Be sure to close the supplied
80568         file descriptor before returning.  This makes our replacement
80569         implementation a little closer to Solaris's, where fdopendir
80570         ties the file descriptor to the returned DIR* pointer.
80571         * lib/openat.c (unlinkat): New function.
80572         * lib/openat.h (unlinkat): Add prototype.
80573         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80574         (openat_restore_fail): Rename from openat_restore_die.
80575         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80576
80577         Provide an alternative to exiting immediately upon save_cwd or
80578         restore_cwd failure.  Now, an application can arrange e.g.,
80579         to perform a longjump in that case.
80580         * lib/openat.c: Include dirname.h.
80581         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80582         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80583         and openat_restore_die rather than calling error directly.
80584         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80585
80586         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80587         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80588         define.
80589
80590         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80591         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80592                             int utc, int nanoseconds);
80593         Background:
80594         date should not have to allocate a megabyte of virtual memory to
80595         handle a format argument like +%1048575T.  When implemented with
80596         strftime, it must allocate such a buffer, use strftime to fill it
80597         in, print it, then free it.
80598         With fprintftime, it simply prints everything and exits.
80599         With no need for memory allocation, that's one fewer way to fail.
80600         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80601         optional field width, not before, so we accept %9:z, not %:9z.
80602         (my_strftime): Be sure to use L_('x') for literals.
80603
80604         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80605         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80606         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80607         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80608         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80609         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80610         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80611         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80612         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80613         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80614         * lib/xgethostname.c, lib/xreadlink.c:
80615         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80616
80617         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80618         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80619         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80620         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80621         and don't include <sys/file.h>).
80622
80623 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80624
80625         Sync from coreutils.
80626
80627         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80628         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80629         [!LDAV_DONE]: Avoid unused variable warning.
80630
80631 2005-09-21  Bruno Haible  <bruno@clisp.org>
80632
80633         * lib/unicodeio.h (unicode_to_mb): New declaration.
80634
80635 2005-09-20  Derek Price  <derek@ximbiot.com>
80636
80637         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80638         getaddrinfo.h.
80639
80640 2005-09-20  Bruno Haible  <bruno@clisp.org>
80641
80642         * gnulib-tool: Remove trailing slashes from the values specified for
80643         --source-base, --m4-base, --tests-base, --aux-dir.
80644         Suggested by Simon Josefsson <jas@extundo.com>.
80645
80646 2005-09-20  Bruno Haible  <bruno@clisp.org>
80647
80648         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80649         func_modules_to_filelist, func_import, func_create_testdir): Make all
80650         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80651         change when gnulib-tool is invoked in a different locale.
80652
80653 2005-09-19  Simon Josefsson  <jas@extundo.com>
80654
80655         * m4/socklen.m4: Fix typo.
80656
80657 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80658
80659         Use a consistent style for including <config.h>.
80660         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80661         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80662         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80663         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80664         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80665         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80666         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80667         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80668         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80669         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80670         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80671         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80672         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80673         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80674         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80675         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80676         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80677         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80678         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80679         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80680         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80681         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80682         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80683         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80684         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80685         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80686         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80687         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80688         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80689         lib/xstrtoumax.c, lib/yesno.c:
80690         Standardize inclusion of config.h.
80691         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80692         lib/inttostr.h:  Removed inclusion of config.h from header files.
80693         * lib/inttostr.c:  Adjusted in-tree users.
80694         * lib/timespec.h: Remove superfluous warning to include config.h.
80695         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80696         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80697         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80698         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80699         config.h with HAVE_CONFIG_H.
80700
80701 2005-09-19  Jim Meyering  <jim@meyering.net>
80702
80703         * modules/pathmax (License): Change to LGPL.
80704
80705 2005-09-19  Derek Price  <derek@ximbiot.com>
80706
80707         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80708
80709 2005-09-19  Bruno Haible  <bruno@clisp.org>
80710
80711         * gnulib-tool (import): Provide default for --tests-base.
80712
80713 2005-09-19  Bruno Haible  <bruno@clisp.org>
80714
80715         * doc/quote.texi: New file, extracted from gnulib.texi.
80716         * doc/ctime.texi: New file, extracted from gnulib.texi.
80717         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80718         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80719         * doc/gnulib.texi: Include them.
80720
80721 2005-09-18  Bruno Haible  <bruno@clisp.org>
80722
80723         Portability fix.
80724         * gnulib-tool (func_readlink): New function.
80725         (func_ln_if_changed): Use it.
80726
80727 2005-09-18  Bruno Haible  <bruno@clisp.org>
80728
80729         * gnulib-tool: Support --with-tests also with --import.
80730         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80731         (func_import): Use variables $testsbase and $inctests. Emit a
80732         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80733         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80734         SUBDIRS += $testsdir.
80735         (func_create_testdir): Update.
80736
80737 2005-09-18  Bruno Haible  <bruno@clisp.org>
80738
80739         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80740         instead of $dry_run.
80741         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80742         (func_ln_if_changed): Don't handle dry-run here.
80743         (func_import): In dry-run mode, detect more precisely which actions
80744         would be performed, and don't use "...ing" verbs.
80745
80746 2005-09-18  Bruno Haible  <bruno@clisp.org>
80747
80748         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80749         (func_import): Use join on two temporary files instead of three nested
80750         loops, in order to determine which files are new or old.
80751
80752 2005-09-18  Bruno Haible  <bruno@clisp.org>
80753
80754         * gnulib-tool (func_import): Comment out code that spits out the
80755         new files with --dry-run.
80756
80757 2005-09-18  Bruno Haible  <bruno@clisp.org>
80758
80759         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80760
80761 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80762
80763         * lib/stat-time.h: New file.
80764         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80765         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80766         in a different way.
80767         (timespec_cmp): New function.
80768         * lib/utimecmp.c: Include stat-time.h.
80769         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80770         members exist, not on the obsolescent ST_MTIM_NSEC.
80771         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80772
80773 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80774
80775         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80776
80777 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80778
80779         * MODULES.html.sh (File system functions): Add stat-time.
80780         * modules/stat-time: New file.
80781         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80782         is now done in a different way, by the stat-time module.
80783         * modules/utimecmp (Depends-on): Add stat-time.
80784
80785 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80786
80787         * m4/st_mtim.m4: Remove.  Superseded by...
80788         * m4/stat-time.m4: New file.
80789         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80790         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80791
80792 2005-09-15  Derek Price  <derek@ximbiot.com>
80793
80794         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80795
80796 2005-09-15  Derek Price  <derek@ximbiot.com>
80797
80798         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80799         * lib/regex_internal.c: Ditto, using this...
80800         (__GNUC_PREREQ): ...new macro.
80801         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80802         using...
80803         (__GNUC_PREREQ): ...this new macro.
80804
80805         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80806
80807 2005-09-15  Derek Price  <derek@ximbiot.com>
80808             Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80811         changes, consolidating in...
80812         * lib/regex_internal.h: ...this file.
80813
80814 2005-09-13  Jim Meyering  <jim@meyering.net>
80815
80816         * lib/canon-host.c: Filter through gnu indent and reword comments
80817         slightly.
80818         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80819
80820 2005-09-13  Derek Price  <derek@ximbiot.com>
80821
80822         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80823         failure.
80824         Reported by Jim Meyering  <jim@meyering.net>.
80825
80826 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80827
80828         * lib/base64.c: Typo.
80829         (base64_encode): Put b64str in initialized data section.
80830
80831 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80832
80833         Merge glibc and coreutils changes into gnulib, plus a few
80834         extra fixes.
80835         * lib/md5.c: Use #error rather than a string.
80836         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80837         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80838         (__attribute__): Define to empty for non recent-GCC.
80839         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80840         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80841         Renamed from their non-__ counterparts, with new macros replacing
80842         them if not _LIBC.  Add __THROW attribute.
80843         (rol): Remove.
80844         (struct md5_ctx): Align buffer if using GCC.
80845         * lib/sha1.h (struct sha1_ctx): Likewise.
80846         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80847         The old name was backwards.
80848         (NOTSWAP): Remove; not used.
80849         (rol): New macro, moved here from md5.h.
80850         (sha1_process_block): Remove a FIXME that doesn't make sense.
80851
80852 2005-09-12  Derek Price  <derek@ximbiot.com>
80853
80854         Return usable errors from canon-host.
80855         * lib/canon-host.h: New file.
80856         * lib/canon-host.c (canon_host): Wrap...
80857         (canon_host_r): ...this new function, which now relies exclusively on
80858         getaddrinfo.
80859         (ch_strerror): New function.
80860         (last_cherror): New global.
80861         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80862         interface.
80863         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80864         void *.
80865         (freeaddrinfo): Free ai->ai_canonname when set.
80866
80867 2005-09-12  Derek Price  <derek@ximbiot.com>
80868
80869         Make canon-host require getaddrinfo.
80870         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80871         AC_LIBSOURCE canon-host.h.  Call...
80872         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80873         gl_GETADDRINFO.
80874         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80875
80876 2005-09-12  Derek Price  <derek@ximbiot.com>
80877
80878         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80879         LGPL.
80880         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80881
80882 2005-09-12  Derek Price  <derek@ximbiot.com>
80883
80884         * lib/gai_strerror.c: Include config.h when available.  Include
80885         getaddrinfo.h before other headers to test interface.
80886         Reported by Larry Jones <lawrence.jones@ugs.com>.
80887
80888 2005-09-12  Derek Price  <derek@ximbiot.com>
80889             Paul Eggert  <eggert@cs.ucla.edu>
80890
80891         * modules/glob (Files): Add glob-libc.h.
80892
80893 2005-09-12  Derek Price  <derek@ximbiot.com>
80894             Paul Eggert  <eggert@cs.ucla.edu>
80895
80896         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80897         glob_.h, glob-libc.h.
80898         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80899
80900 2005-09-12  Derek Price  <derek@ximbiot.com>
80901             Paul Eggert  <eggert@cs.ucla.edu>
80902
80903         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80904         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80905         protecting things that should be done only in gnulib contexts.
80906         * lib/glob_.h: New file, containing only the glob things needed for
80907         gnulib.
80908         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80909         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80910         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80911         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80912         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80913         and to respect the namespace rules better.
80914
80915 2005-09-08  Simon Josefsson  <jas@extundo.com>
80916
80917         * modules/socklen: New file.
80918
80919 2005-09-08  Simon Josefsson  <jas@extundo.com>
80920
80921         * m4/socklen.m4: New file.
80922
80923 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80924
80925         * modules/utimens (Files): Add m4/utimbuf.m4, since
80926         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80927         Reported by Sergey Poznyakoff.
80928
80929 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80930
80931         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80932         definitions, since that's the preferred style in glibc.
80933         Fix a minor spacing issue, and update copyright notice to match
80934         glibc's.
80935
80936 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80937
80938         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80939
80940 2005-09-06  Simon Josefsson  <jas@extundo.com>
80941
80942         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80943         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80944
80945 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80946
80947         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80948         warning.
80949
80950 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80951
80952         * config/srclist.txt: Add glibc bug 1302.
80953
80954 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80955
80956         Change bitset word type from unsigned int to unsigned long int,
80957         as this has better performance on typical 64-bit hosts.
80958         Port bitset code to hosts with unusual word sizes.
80959         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80960         (build_collating_symbol):
80961         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80962         argument is a bitset.  This is merely a style issue, but it makes
80963         it clearer that an entire array is expected.
80964         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80965         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80966         Port to the case where bitset_word is not the same as unsigned int.
80967         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80968         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80969         Likewise.
80970         * lib/regexec.c (check_dst_limits_calc_pos_1,
80971         check_subexp_matching_top):
80972         (build_trtable, group_nodes_into_DFAstates):
80973         Likewise.
80974         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80975         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80976         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80977         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80978         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80979         * lib/regcomp.c (optimize_subexps, lower_subexp):
80980         Work even if bitset_word has holes in its bitwise representation.
80981         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80982         * lib/regexec.c (check_dst_limits_calc_pos_1,
80983         check_subexp_matching_top):
80984         Likewise.
80985         * lib/regex_internal.c (re_string_reconstruct):
80986         Don't assume UCHAR_MAX == 255.
80987         * lib/regex_internal.h (bitset_set_all): Likewise.
80988         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80989         All uses changed.
80990         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80991         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80992         All uses changed.
80993         (BITSET_WORD_MAX): New macro.
80994         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80995         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80996         (bitset_empty, bitset_copy):
80997         Prefer sizeof (bitset) to multiplying it out ourselves.
80998         (bitset_not_merge): Remove; unused.
80999         (bitset_contain): Return bool, not unsigned int with one bit on.
81000         All callers changed.
81001         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81002         alignment than re_node_set; do this by defining a new internal
81003         type struct dests_alloc and using it to allocate memory.
81004
81005 2005-09-05  Bruno Haible  <bruno@clisp.org>
81006
81007         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81008         links.
81009
81010 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81011
81012         * modules/size_max (Makefile.am): Add size_max.h
81013
81014 2005-09-04  Derek Price  <derek@ximbiot.com>
81015
81016         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81017
81018 2005-09-03  Simon Josefsson  <jas@extundo.com>
81019
81020         * gnulib-tool: Fix typo.
81021
81022 2005-09-03  Simon Josefsson  <jas@extundo.com>
81023
81024         * config/srclist.txt: Add glibc bug 1293.
81025
81026 2005-09-03  Derek Price  <derek@ximbiot.com>
81027
81028         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81029         From Larry Jones <lawrence.jones@ugs.com>.
81030
81031 2005-09-02  Simon Josefsson  <jas@extundo.com>
81032
81033         * modules/socklen: New file.
81034
81035 2005-09-02  Simon Josefsson  <jas@extundo.com>
81036
81037         * modules/havelib: New module.
81038
81039         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81040         Use havelib.
81041
81042 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81043
81044         Check for arithmetic overflow when calculating sizes, to prevent
81045         some buffer-overflow issues.  These patches are conservative, in the
81046         sense that when I couldn't determine whether an overflow was possible,
81047         I inserted a run-time check.
81048         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81049         macros.
81050         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81051         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81052         (re_xnrealloc, re_x2nrealloc): New inline functions.
81053         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81054         parse_bracket_exp):
81055         (build_equiv_class, build_charclass): Check for arithmetic overflow
81056         in size expression calculations.
81057         * lib/regex_internal.c (re_string_realloc_buffers):
81058         (build_wcs_upper_buffer, re_node_set_add_intersect):
81059         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81060         (re_dfa_add_node, register_state): Likewise.
81061         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81062         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81063         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81064         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81065
81066 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81067
81068         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81069         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81070
81071 2005-09-02  Bruno Haible  <bruno@clisp.org>
81072
81073         Support for lib vs. lib64 distinction on biarch platforms.
81074         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81075         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81076         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81077
81078 2005-09-02  Bruno Haible  <bruno@clisp.org>
81079
81080         * gnulib-tool (import): In the other first-use case, provide defaults
81081         as well.
81082
81083 2005-09-02  Bruno Haible  <bruno@clisp.org>
81084
81085         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81086         patches not yet found in the latest gettext release.
81087
81088 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81089
81090         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81091         to avoid a collision with bits/local_lim.h in glibc.
81092         All uses changed.  Problem reported by Dmitry V. Levin in
81093         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81094
81095         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81096         bugs in int versus size_t comparisons.
81097         (re_string_context_at): Fix bug where the code assumed that
81098         Idx is signed.
81099
81100         Use bool where appropriate.
81101         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81102         All callers changed.
81103         (calc_eclosure_iter): Likewise, for ROOT arg.
81104         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81105         (build_charclass_op): Likewise, for NON_MATCH arg.
81106         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81107         (re_string_construct_common): Likewise, for ICASE arg.
81108         * lib/regexec.c (re_search_2_stub, re_search_stub):
81109         Likewise, for RET_LEN arg.
81110         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81111         (set_regs): Likewise, for FL_BACKTRACK arg.
81112         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81113         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81114         (calc_eclosure_iter, parse_bracket_exp):
81115         Use bool for internal variables that are booleans.
81116         * lib/regexec.c (re_search_internal, check_matching,
81117         proceed_next_node):
81118         (set_regs, build_sifted_states, sift_states_bkref):
81119         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81120         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81121         (find_collation_sequence_value):
81122         Likewise.
81123         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81124         (re_node_set_compare):
81125         Return bool, not int. All callers changed.
81126         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81127         (build_trtable, check_node_accept): Likewise.
81128         * lib/regex_internal.h: Include stdbool.h.
81129
81130         Fix bugs uncovered when converting to bool.
81131         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81132         failure instead of charging ahead blindly.
81133         * lib/regex_internal.c (register_state): Likewise.
81134         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81135         for freeing internal storage.
81136         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81137         bitset pieces used as boolean, to avoid undefined behavior
81138         on hosts that do int overflow checking.
81139
81140 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81141
81142         * config/srclist.txt: Add glibc bugs 1285-1287.
81143
81144 2005-09-01  Jim Meyering  <jim@meyering.net>
81145
81146         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81147         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81148         Require gl_STAT_MACROS, too.
81149
81150 2005-09-01  Bruno Haible  <bruno@clisp.org>
81151
81152         * gnulib-tool (import): In the first-use case, provide defaults.
81153
81154 2005-09-01  Bruno Haible  <bruno@clisp.org>
81155
81156         * gnulib-tool (func_import): Remove the .tmp files.
81157
81158 2005-09-01  Bruno Haible  <bruno@clisp.org>
81159
81160         * gnulib-tool (func_import): Fix handling of symbolic links.
81161
81162 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81163
81164         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81165         old glibc regex code mishandles strings longer than 2**31 bytes.
81166         This patch fixes this when the regex code is used in gnulib
81167         (i.e., outside glibc).
81168
81169         This patch should not affect the use of the regex code inside
81170         glibc.  No doubt this problem also needs to be handled for glibc
81171         as well, but the result will be an incompatible change to the
81172         glibc ABI, and the old ABI will have to be supported too.  That
81173         can be the the subject for another patch.
81174
81175         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81176         governing whether the rest of this patch is active.  By default,
81177         the macro is disabled and the patch has no effect.
81178         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81179         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81180         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81181         (re_match_2, re_set_registers): Use the new types.
81182         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81183         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81184         New macros.
81185         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81186         (re_string_context_at, bin_tree_t, re_dfastate_t):
81187         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81188         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81189         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81190         (re_string_char_size_at, re_string_wchar_at):
81191         (re_string_elem_size_at):
81192         Use the new types and macros to port to 64-bit hosts.
81193         Use unsigned types for internal values, so that the code
81194         mostly works even for arrays larger than SSIZE_MAX.
81195         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81196         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81197         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81198         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81199         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81200         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81201         (calc_inveclosure, parse_dup_op, build_range_exp):
81202         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81203         (fetch_number, create_token_tree, mark_opt_subexp):
81204         Likewise.
81205         * lib/regex_internal.c (re_string_construct_common,
81206         create_ci_newstate):
81207         (create_cd_newstate, re_string_allocate, re_string_construct):
81208         (re_string_realloc_buffers, build_wcs_upper_buffer):
81209         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81210         (re_string_reconstruct, re_string_peek_byte_case):
81211         (re_string_fetch_byte_case, re_string_context_at):
81212         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81213         (re_node_set_init_copy, re_node_set_add_intersect):
81214         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81215         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81216         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81217         (re_acquire_state, re_acquire_state_context, register_state):
81218         Likewise.
81219         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81220         search_cur_bkref_entry):
81221         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81222         (re_search_internal, re_search_2_stub, re_search_stub)
81223         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81224         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81225         (update_cur_sifted_state, check_dst_limits):
81226         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81227         (check_subexp_limits, sift_states_bkref, merge_state_array):
81228         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81229         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81230         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81231         (expand_bkref_cache, check_node_accept_bytes):
81232         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81233         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81234         (acquire_init_state_context, check_halt_node_context):
81235         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81236         (sift_states_backward, clean_state_log_if_needed):
81237         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81238         (find_recover_state, transit_state_sb, transit_state_mb):
81239         (transit_state_bkref, build_trtable, match_ctx_clean):
81240         Likewise.
81241         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81242         to work around an assumption that REG_MISSING is negative.
81243
81244         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81245         (seek_collating_symbol_entry) [defined _LIBC]:
81246         (lookup_collation_sequence_value) [defined _LIBC]:
81247         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81248         Use prototypes rather than old-style function definitions.
81249         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81250         (transit_state_sb) [0]:
81251         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81252
81253         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81254         rm_eo.
81255
81256         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81257         (optimize_subexps, lower_subexp):
81258         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81259         since the signed shift might overflow.  Use 1u<<31 instead.
81260         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81261         Likewise.
81262         * lib/regexec.c (check_dst_limits_calc_pos_1,
81263         check_subexp_matching_top): Likewise.
81264
81265         * lib/regcomp.c (optimize_subexps, lower_subexp):
81266         Use CHAR_BIT rather than 8, for clarity.
81267         * lib/regexec.c (check_dst_limits_calc_pos_1):
81268         (check_subexp_matching_top): Likewise.
81269         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81270         have to worry about portability issues when shifting it left.
81271         Remove no-longer-needed test for table_size > 0.
81272         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81273         in a word, as the resulting behavior is undefined.
81274         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81275         in one case, a <= should have been an <, and in another case the
81276         whole test was missing.
81277         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81278         the standard name CHAR_BIT.
81279         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81280         this is not true on one's complement and signed-magnitude hosts.
81281
81282         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81283         next_last_offset.
81284         (struct re_dfa_t): Remove unused member states_alloc.
81285         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81286
81287 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81288
81289         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81290         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81291         and large-file glibc and in 32-bit large-file Solaris.
81292
81293 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81294
81295         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81296         lengths fit in regoff_t; this isn't true if regoff_t is the same
81297         width as size_t.
81298         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81299         (= START + RANGE) instead of RANGE.  This avoids overflow
81300         problems when regoff_t is the same width as size_t.
81301         All callers changed.
81302         (re_search_2_stub): Check for overflow when adding the
81303         sizes of the two strings.
81304         (re_search_stub): Check for overflow when adding START
81305         to RANGE; if it occurs, substitute the extreme value.
81306
81307 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81308
81309         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81310
81311 2005-08-31  Jim Meyering  <jim@meyering.net>
81312
81313         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81314         a pointer-to-const.
81315         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81316         (register_state): Likewise.
81317         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81318         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81319         (group_nodes_into_DFAstates): Likewise.
81320
81321 2005-08-31  Jim Meyering  <jim@meyering.net>
81322
81323         * check-module: Add a FIXME comment.
81324
81325 2005-08-31  Eric Blake  <ebb9@byu.net>
81326
81327         * modules/unistd-safer (Files): Add unistd--.h.
81328         * modules/stdio-safer (Files): Add stdio--.h.
81329
81330 2005-08-31  Derek Price  <derek@ximbiot.com>
81331
81332         * lib/getdelim.c (getdelim): Return EOF on EOF.
81333         Reported by Larry Jones <lawrence.jones@ugs.com>.
81334
81335 2005-08-31  Bruno Haible  <bruno@clisp.org>
81336
81337         Avoid unnecessary diffs in the generated lib/Makefile.am.
81338         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81339         the generated files.
81340         (func_import): Don't set cmd.
81341
81342 2005-08-31  Bruno Haible  <bruno@clisp.org>
81343
81344         * lib/strstr.c: Include <stddef.h>, for NULL.
81345         * lib/strcasestr.c: Likewise.
81346         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81347
81348 2005-08-31  Bruno Haible  <bruno@clisp.org>
81349
81350         * gnulib-tool: New option --macro-prefix.
81351         (func_import): Use macro_prefix.
81352         (import): Handle option --macro-prefix.
81353
81354 2005-08-31  Bruno Haible  <bruno@clisp.org>
81355
81356         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81357         Also use new variables cached_lgpl, cached_libtool.
81358
81359 2005-08-31  Bruno Haible  <bruno@clisp.org>
81360
81361         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81362         always instantiating them.
81363
81364 2005-08-31  Bruno Haible  <bruno@clisp.org>
81365
81366         * gnulib-tool (func_import): Read the previous cached settings
81367         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81368         earlier added by gnulib but are now dropped. Warn when a gnulib file
81369         overwrites a non-gnulib file.
81370
81371 2005-08-31  Bruno Haible  <bruno@clisp.org>
81372
81373         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81374         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81375         projects that don't keep autogenerated files in CVS. Put into
81376         actioncmd only the specified modules, not the transitive closure.
81377
81378 2005-08-31  Bruno Haible  <bruno@clisp.org>
81379
81380         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81381         Create directories that shall be filled.
81382         (import): Don't look for gl_* macros in configure.ac. Recurse across
81383         all directories containing a gnulib-cache.m4 files, if meaningful.
81384
81385 2005-08-31  Bruno Haible  <bruno@clisp.org>
81386
81387         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81388         (import): Set seen_libtool when we see gl_LIBTOOL.
81389
81390 2005-08-31  Bruno Haible  <bruno@clisp.org>
81391
81392         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81393         declaration macro definitions from generated gnulib.m4.
81394
81395 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81396
81397         * lib/iconvme.h: Add prototype for iconv_alloc.
81398
81399 2005-08-29  Simon Josefsson  <jas@extundo.com>
81400
81401         * lib/iconvme.c: Fix errno.
81402
81403 2005-08-29  Bruno Haible  <bruno@clisp.org>
81404
81405         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81406         that it works when the directory contains spaces.
81407
81408 2005-08-29  Bruno Haible  <bruno@clisp.org>
81409
81410         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81411
81412 2005-08-29  Bruno Haible  <bruno@clisp.org>
81413
81414         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81415         Emit more advice.
81416
81417 2005-08-29  Bruno Haible  <bruno@clisp.org>
81418         and Stepan Kasal  <kasal@ucw.cz>
81419
81420         * check-module: If more parameters are given, check each of them
81421         separately; add more exceptions, as noted by Jim Meyering.
81422         (check_module): New procedure.
81423         (%exempt_header): Now contains all exceptions.
81424
81425 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81426
81427         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81428
81429 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81430
81431         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81432
81433 2005-08-28  Bruno Haible  <bruno@clisp.org>
81434
81435         * m4/gnulib-tool.m4: New file.
81436
81437 2005-08-27  Jim Meyering  <jim@meyering.net>
81438
81439         * modules/unistd-safer (Files): Add pipe-safer.c.
81440         * modules/fcntl-safer (Files): Add creat-safer.c.
81441
81442 2005-08-27  Jim Meyering  <jim@meyering.net>
81443
81444         * m4/stdlib-safer.m4: New file.  From coreutils.
81445         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81446         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81447         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81448         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81449         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81450
81451 2005-08-27  Jim Meyering  <jim@meyering.net>
81452
81453         * lib/fopen-safer.c: Merge minor changes from coreutils.
81454         * lib/dup-safer.c: Likewise.
81455         * lib/fd-safer.c: Likewise.
81456
81457         Merge from coreutils.
81458         * lib/stdio--.h: New file.
81459         * lib/stdlib--.h: New file.
81460         * lib/mkstemp-safer.c: New file.
81461
81462         GNU tar needs these.
81463         * lib/pipe-safer.c: New file.
81464         * lib/creat-safer.c: New file.
81465         * lib/fcntl--.h (creat): Define to creat_safer.
81466         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81467         * lib/unistd--.h (pipe): Define to pipe_safer.
81468         * lib/unistd-safer.h: Declare pipe_safer.
81469
81470 2005-08-26  Simon Josefsson  <jas@extundo.com>
81471
81472         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81473         Haible <bruno@clisp.org>.
81474
81475 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81476
81477         * lib/regex_internal.h: Remove all references to
81478         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81479         or better.
81480         (bitset_not, bitset_merge, bitset_not_merge):
81481         (bitset_mask, re_string_allocate, re_string_construct):
81482         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81483         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81484         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81485         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81486         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81487         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81488         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81489         (re_acquire_state_context):
81490         Remove unnecessary forward decls.
81491         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81492         Put __attribute at function definition,
81493         now that the function decl has been removed.
81494         * lib/regex_internal.c (re_string_peek_byte_case):
81495         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81496         Likewise.
81497
81498 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81499
81500         * m4/regex.m4: Add AC_PREREQ(2.50).
81501         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81502
81503 2005-08-25  Simon Josefsson  <jas@extundo.com>
81504
81505         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81506         __fsetlocking.
81507
81508 2005-08-25  Simon Josefsson  <jas@extundo.com>
81509
81510         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81511         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81512         GLIBC specific code.
81513
81514 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81515
81516         Make regex safe for g++.  This fixes one real bug (an "err"
81517         that should have been "*err").  g++ problem reported by
81518         Sam Steingold.
81519         * lib/regex_internal.h (re_calloc): New macro, consistent with
81520         re_malloc etc.  All callers of calloc changed to use re_calloc.
81521         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81522         not int.  All callers changed.
81523         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81524         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81525         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81526         (find_recover_state): Change "err" to "*err"; this fixes what
81527         appears to be a real bug.
81528         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81529         versus int.
81530
81531 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81532
81533         * modules/regex (Depends-on): Add malloc, since the code
81534         assumes that !malloc(0) means failure.
81535
81536 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81537
81538         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81539
81540         alloca modernization/simplification for regex.
81541         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81542         needs to be at the start of the file, and can be moved into
81543         regex_internal.h and simplified.
81544         * lib/regex_internal.h: Include <alloca.h>.
81545         (__libc_use_alloca) [!defined _LIBC]: New macro.
81546         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81547         now works outside glibc.
81548
81549 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81550
81551         * config/srclist.txt: Add glibc bugs 1241, 1245.
81552
81553 2005-08-25  Jim Meyering  <jim@meyering.net>
81554
81555         * lib/open-safer.c: Include <config.h>.
81556         Otherwise, we'd lose LARGEFILE support in any file using
81557         e.g. "fcntl--.h"
81558
81559 2005-08-25  Bruno Haible  <bruno@clisp.org>
81560
81561         * m4/minmax.m4: Require autoconf 2.52.
81562         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81563         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81564         alternatives of translit over the alphabet.
81565         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81566
81567 2005-08-24  Simon Josefsson  <jas@extundo.com>
81568
81569         * tests/test-getpass.c: New file.
81570
81571 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81572
81573         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81574         for GNU regex features.
81575
81576 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81577
81578         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81579         * lib/regex.h (regerror): Likewise.
81580
81581         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81582         requires this.  (The code never needed it.)
81583
81584         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81585         All uses of recently-renamed identifiers changed to use the new,
81586         POSIX-compliant names.  The code will build and run just fine
81587         without these changes, but it's better to eat our own dog food
81588         and use the standard-conforming names.
81589
81590         * lib/regex.h: Fix a multitude of POSIX name space violations.
81591         These changes have an effect only for programs that define
81592         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81593         do not change anything for programs compiled in the normal way.
81594         Also, there is no effect on the ABI.
81595
81596         (_REGEX_SOURCE): New macro.
81597         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81598         defined and _GNU_SOURCE is not; this fixes a name space violation.
81599
81600         Rename the following macros to obey POSIX requirements.
81601         The old names are still visible as macros if _REGEX_SOURCE is defined.
81602         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81603         RE_BACKSLASH_ESCAPE_IN_LISTS.
81604         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81605         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81606         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81607         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81608         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81609         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81610         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81611         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81612         (REG_INTERVALS): renamed from RE_INTERVALS.
81613         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81614         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81615         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81616         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81617         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81618         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81619         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81620         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81621         RE_UNMATCHED_RIGHT_PAREN_ORD.
81622         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81623         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81624         (REG_DEBUG): renamed from RE_DEBUG.
81625         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81626         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81627         unusual, since we can't clash with the POSIX REG_ICASE.
81628         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81629         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81630         (REG_NO_SUB): renamed from RE_NO_SUB.
81631         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81632         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81633         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81634         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81635         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81636         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81637         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81638         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81639         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81640         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81641         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81642         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81643         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81644         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81645         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81646         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81647         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81648         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81649         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81650         (REG_FIXED): Renamed from REGS_FIXED.
81651         (REG_NREGS): Renamed from RE_NREGS.
81652
81653         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81654         of other REG_* macros, since POSIX says the user is allowed to
81655         #undef these macros selectively.
81656
81657         (reg_errcode_t): Update comment stating what other tables need
81658         to be consistent.
81659
81660         Rename the following enum values to obey POSIX requirements.
81661         The old names are still visible as macros.
81662         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81663         is not defined, since GNU is supposed to be a superset of POSIX as
81664         much as possible, and since we want reg_errcode_t to be a signed
81665         type for implementation consistency.
81666         (_REG_NOERROR): Renamed from REG_NOERROR.
81667         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81668         (_REG_BADPAT): Renamed from REG_BADPAT.
81669         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81670         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81671         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81672         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81673         (_REG_EBRACK): Renamed from REG_EBRACK.
81674         (_REG_EPAREN): Renamed from REG_EPAREN.
81675         (_REG_EBRACE): Renamed from REG_EBRACE.
81676         (_REG_BADBR): Renamed from REG_BADBR.
81677         (_REG_ERANGE): Renamed from REG_ERANGE.
81678         (_REG_ESPACE): Renamed from REG_ESPACE.
81679         (_REG_BADRPT): Renamed from REG_BADRPT.
81680         (_REG_EEND): Renamed from REG_EEND.
81681         (_REG_ESIZE): Renamed from REG_ESIZE.
81682         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81683         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81684         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81685         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81686         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81687
81688         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81689         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81690         changed.  But support the old name if the new one is not defined
81691         and if _REGEX_SOURCE.
81692
81693         Change the following member names in struct re_pattern_buffer.
81694         The old names are still supported if !_REGEX_SOURCE.
81695         The new names are always supported, regardless of _REGEX_SOURCE.
81696         (re_buffer): Renamed from buffer.
81697         (re_allocated): Renamed from allocated.
81698         (re_used): Renamed from used.
81699         (re_syntax): Renamed from syntax.
81700         (re_fastmap): Renamed from fastmap.
81701         (re_translate): Renamed from translate.
81702         (re_can_be_null): Renamed from can_be_null.
81703         (re_regs_allocated): Renamed from regs_allocated.
81704         (re_fastmap_accurate): Renamed from fastmap_accurate.
81705         (re_no_sub): Renamed from no_sub.
81706         (re_not_bol): Renamed from not_bol.
81707         (re_not_eol): Renamed from not_eol.
81708         (re_newline_anchor): Renamed from newline_anchor.
81709
81710         Change the following member names in struct re_registers.
81711         The old names are still supported if !_REGEX_SOURCE.
81712         The new names are always supported, regardless of _REGEX_SOURCE.
81713         (rm_num_regs): Renamed from num_regs.
81714         (rm_start): Renamed from start.
81715         (rm_end): Renamed from end.
81716
81717         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81718         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81719         Prepend __ to parameter names.
81720
81721         Undo yesterday's changes.
81722
81723 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81724
81725         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81726         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81727         lib/regex.c.
81728
81729 2005-08-24  Jim Meyering  <jim@meyering.net>
81730
81731         Sync from coreutils.
81732         * m4/fcntl-safer.m4: New file.
81733
81734         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81735         and object files for this module.
81736
81737 2005-08-24  Jim Meyering  <jim@meyering.net>
81738
81739         Sync from coreutils.
81740         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81741
81742 2005-08-24  Jim Meyering  <jim@meyering.net>
81743
81744         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81745         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81746
81747 2005-08-24  Jim Meyering  <jim@meyering.net>
81748
81749         * modules/fcntl-safer: New module.
81750         * modules/fts (Depends-on): Add fcntl-safer.
81751         * MODULES.html.sh (File descriptor based Input/Output):
81752         Add fcntl-safer.
81753
81754 2005-08-24  Bruno Haible  <bruno@clisp.org>
81755
81756         Support for unit test modules.
81757         * modules/README: Mention tests modules.
81758         * modules/TEMPLATE-TESTS: New file.
81759         * gnulib-tool: New options --extract-tests-module, --with-tests and
81760         --tests-base (unused for the moment).
81761         (testsbase, inctests): New variables.
81762         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81763         (func_verify_module): Exclude TEMPLATE-TESTS.
81764         (func_verify_nontests_module, func_verify_tests_module): New functions.
81765         (func_get_dependencies): Add implicit dependency for tests modules.
81766         (func_get_tests_module): New function.
81767         (func_modules_transitive_closure): When --with-tests was specified,
81768         include the unit tests as well, unless explicitly avoided.
81769         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81770         (func_emit_tests_Makefile_am): New function.
81771         (func_create_testdir): When --with-tests was specified, emit a
81772         tests/ directory.
81773         * MODULES.html.sh (Future developments): Update.
81774
81775 2005-08-24  Bruno Haible  <bruno@clisp.org>
81776
81777         * modules/tls-tests: New file.
81778         * tests/test-tls.c: New file, from GNU gettext.
81779
81780 2005-08-24  Bruno Haible  <bruno@clisp.org>
81781
81782         * modules/lock-tests: New file.
81783         * tests/test-lock.c: New file, from GNU gettext.
81784
81785 2005-08-24  Bruno Haible  <bruno@clisp.org>
81786
81787         * lib/lock.h: Add multiple inclusion guard.
81788         * lib/tls.h: Add multiple inclusion guard.
81789
81790 2005-08-24  Bruno Haible  <bruno@clisp.org>
81791
81792         * gnulib-tool: Add support for the --aux-dir option to
81793         --create-testdir, --create-megatestdir, --test, --megatest.
81794         (func_create_testdir, func_create_megatestdir): Optionally emit a
81795         AC_CONFIG_AUX_DIR directive.
81796         (create-testdir, create-megatestdir, test, megatest): Provide a
81797         default value for $auxdir.
81798
81799 2005-08-24  Bruno Haible  <bruno@clisp.org>
81800
81801         * gnulib-tool (import): Use compound statement instead of subshell
81802         where possible.
81803
81804 2005-08-24  Bruno Haible  <bruno@clisp.org>
81805
81806         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81807
81808 2005-08-24  Bruno Haible  <bruno@clisp.org>
81809
81810         * gnulib-tool (func_version): Update.
81811
81812 2005-08-24  Bruno Haible  <bruno@clisp.org>
81813
81814         * gnulib-tool (func_import, func_create_testdir,
81815         func_create_megatestdir): Quote all autoconf macro arguments.
81816
81817 2005-08-24  Bruno Haible  <bruno@clisp.org>
81818
81819         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81820         option --force, because --force causes the aclocal.m4 of each
81821         subdirectory to be newer than the corresponding config.h.in.
81822
81823 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81824
81825         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81826         All contents moved to gl_REGEX.
81827         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81828         assume that it does.
81829
81830 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81831
81832         * lib/regex.h (REG_NOSYS)
81833         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81834         Define, since POSIX requires it as of 2001.
81835         (_REG_ENOSYS)
81836         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81837         New private symbol, used to keep the enum signed in all cases.
81838         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81839         Youngman in
81840         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81841
81842         * lib/regex_internal.c (re_string_skip_chars, register_state):
81843         (calc_state_hash):
81844         Remove forward decls; no longer needed now that we use prototypes.
81845         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81846         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81847         (clean_state_log_if_needed): Likewise.
81848
81849 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81850
81851         * config/srclist.txt: Add glibc bugs 1231-1233.
81852
81853 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81854
81855         Fix problems reported by Sam Steingold in
81856         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81857         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81858         assumed that reg_errcode_t is a signed type, which is not
81859         necessarily true if _XOPEN_SOURCE is not defined.
81860         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81861         since some compilers warn about it otherwise.
81862
81863 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81864
81865         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81866         (init_word_char, create_initial_state, duplicate_node_closure):
81867         (fetch_token, peek_token_bracket, build_range_exp):
81868         (build_collating_symbol): Remove forward decls; no longer needed
81869         now that we use prototypes.
81870
81871         * lib/regcomp.c:
81872         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81873         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81874         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81875         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81876         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81877         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81878         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81879         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81880         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81881         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81882         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81883         (build_charclass, build_charclass_op, fetch_number, create_tree):
81884         (create_token_tree, mark_opt_subexp, duplicate_tree):
81885         Use prototypes rather than old-style definitions.
81886
81887         * lib/regex_internal.c:
81888         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81889         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81890         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81891         (re_string_reconstruct, re_string_peek_byte_case):
81892         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81893         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81894         (re_node_set_init_copy, re_node_set_add_intersect):
81895         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81896         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81897         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81898         (re_acquire_state, re_acquire_state_context, register_state):
81899         (create_ci_newstate, create_cd_newstate, free_state):
81900         Likewise.
81901         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81902         re_search_2):
81903         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81904         (re_search_internal, prune_impossible_nodes):
81905         (acquire_init_state_context, check_matching, static):
81906         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81907         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81908         (update_regs, sift_states_backward, build_sifted_states):
81909         (clean_state_log_if_needed, merge_state_array):
81910         (update_cur_sifted_state, add_epsilon_src_nodes):
81911         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81912         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81913         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81914         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81915         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81916         (check_arrival, check_arrival_add_next_nodes):
81917         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81918         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81919         (check_node_accept_bytes, check_node_accept, extend_buffers):
81920         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81921         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81922         (sift_ctx_init):
81923         Likewise.
81924
81925         * lib/regex_internal.h:
81926         (re_string_allocate, re_string_construct, re_string_reconstruct):
81927         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81928         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81929         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81930         (re_string_context_at, re_string_peek_byte_case):
81931         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81932         is defined, since we now use prototypes always.
81933
81934         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81935         C89 or better.  All uses removed.
81936
81937 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81938
81939         * config/srclist.txt: Add glibc bugs 1220-1227.
81940
81941 2005-08-20  Jim Meyering  <jim@meyering.net>
81942
81943         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81944         of unused local, dfa.
81945
81946 2005-08-20  Bruno Haible  <bruno@clisp.org>
81947
81948         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81949
81950 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81951
81952         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81953         (re_node_set_insert_last, re_dfa_add_node):
81954         Rename local variables to avoid GCC shadowing warnings.
81955
81956 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81957
81958         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81959         [defined lint]: Suppress bogus uninitialized-variable warnings.
81960
81961         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81962         and let the caller return REG_ESPACE if out of space.  This
81963         removes an uninitialied-variable warning with GCC 4.0.1, and also
81964         avoids taking the address of a local variable.  All callers
81965         changed.
81966
81967 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81968
81969         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81970         $LIBCSRC/posix/regexec.c.
81971         Add glibc bug 1217 for regcomp.c.
81972
81973 2005-08-19  Jim Meyering  <jim@meyering.net>
81974
81975         * lib/regexec.c (proceed_next_node): Redo local variables to
81976         avoid GCC shadowing warnings.
81977
81978 2005-08-18  Bruno Haible  <bruno@clisp.org>
81979
81980         * lib/strstr.c (strstr): Fix return value in multibyte case.
81981         * lib/strcasestr.c (strcasestr): Likewise.
81982
81983 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81986
81987 2005-08-17  Jim Meyering  <jim@meyering.net>
81988
81989         Make the %s format (seconds since the epoch) work for a negative
81990         number and when used with a zero-padded field width, e.g. %015s.
81991
81992         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81993         label so that it precedes the code to set `digits'.  Otherwise,
81994         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81995         print `00-22'.  Now, it prints `-0022', as it should.
81996
81997 2005-08-17  Bruno Haible  <bruno@clisp.org>
81998
81999         * modules/strstr (Files): Add m4/mbrtowc.m4.
82000         (Depends-on): Add mbuiter.
82001
82002 2005-08-17  Bruno Haible  <bruno@clisp.org>
82003
82004         * modules/strcasestr: New file.
82005         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82006         strcasestr.
82007
82008 2005-08-17  Bruno Haible  <bruno@clisp.org>
82009
82010         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82011
82012 2005-08-17  Bruno Haible  <bruno@clisp.org>
82013
82014         * modules/mbuiter: New file.
82015         * MODULES.html.sh (Extended multibyte and wide character utilities):
82016         Add mbuiter.
82017
82018 2005-08-17  Bruno Haible  <bruno@clisp.org>
82019
82020         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82021         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82022
82023 2005-08-17  Bruno Haible  <bruno@clisp.org>
82024
82025         * m4/strcasestr.m4: New file.
82026
82027 2005-08-17  Bruno Haible  <bruno@clisp.org>
82028
82029         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82030         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82031
82032 2005-08-17  Bruno Haible  <bruno@clisp.org>
82033
82034         * lib/strcasestr.h: New file.
82035         * lib/strcasestr.c: New file.
82036
82037 2005-08-17  Bruno Haible  <bruno@clisp.org>
82038
82039         * lib/strcasecmp.c: Use mbuiter.h.
82040
82041 2005-08-17  Bruno Haible  <bruno@clisp.org>
82042
82043         * lib/mbuiter.h: New file.
82044
82045 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82046
82047         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82048         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82049         and gl_GETOPT are both invoked via different paths (as happens
82050         with GNU tar CVS because it uses both argp and getopt), the former
82051         wins.
82052
82053 2005-08-16  Bruno Haible  <bruno@clisp.org>
82054
82055         * modules/tls: New file.
82056         * MODULES.html.sh (Multithreading): Add tls.
82057
82058 2005-08-16  Bruno Haible  <bruno@clisp.org>
82059
82060         * modules/strnlen1: New file.
82061         * MODULES.html.sh (String handling): Add strnlen1.
82062
82063 2005-08-16  Bruno Haible  <bruno@clisp.org>
82064
82065         * modules/strcase (Files): Add m4/mbrtowc.m4.
82066         (Depends-on): Add strnlen1, mbchar.
82067
82068 2005-08-16  Bruno Haible  <bruno@clisp.org>
82069
82070         * modules/mbiter: New file.
82071         * MODULES.html.sh (Extended multibyte and wide character utilities):
82072         Add mbiter.
82073
82074 2005-08-16  Bruno Haible  <bruno@clisp.org>
82075
82076         * modules/mbfile: New file.
82077         * MODULES.html.sh (Extended multibyte and wide character utilities):
82078         Add mbfile.
82079
82080 2005-08-16  Bruno Haible  <bruno@clisp.org>
82081
82082         * modules/mbchar: New file.
82083         * MODULES.html.sh (Extended multibyte and wide character utilities):
82084         New section.
82085
82086 2005-08-16  Bruno Haible  <bruno@clisp.org>
82087
82088         * m4/tls.m4: New file, from GNU gettext.
82089
82090 2005-08-16  Bruno Haible  <bruno@clisp.org>
82091
82092         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82093         always.
82094         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82095
82096 2005-08-16  Bruno Haible  <bruno@clisp.org>
82097
82098         * m4/mbiter.m4: New file.
82099
82100 2005-08-16  Bruno Haible  <bruno@clisp.org>
82101
82102         * m4/mbfile.m4: New file.
82103
82104 2005-08-16  Bruno Haible  <bruno@clisp.org>
82105
82106         * m4/mbchar.m4: New file.
82107
82108 2005-08-16  Bruno Haible  <bruno@clisp.org>
82109
82110         * lib/tls.h: New file, from GNU gettext.
82111         * lib/tls.c: New file, from GNU gettext.
82112
82113 2005-08-16  Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/strnlen1.h: New file.
82116         * lib/strnlen1.c: New file.
82117
82118 2005-08-16  Bruno Haible  <bruno@clisp.org>
82119
82120         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82121         (mbi_init): Update.
82122         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82123         NUL byte, not after it.
82124
82125 2005-08-16  Bruno Haible  <bruno@clisp.org>
82126
82127         * lib/strcase.h (strcasecmp): Add note in comments.
82128         * lib/strncasecmp.c: Use code from strcasecmp.c.
82129         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82130         (strcasecmp): Work correctly in multibyte locales.
82131
82132 2005-08-16  Bruno Haible  <bruno@clisp.org>
82133
82134         * lib/mbiter.h: New file.
82135
82136 2005-08-16  Bruno Haible  <bruno@clisp.org>
82137
82138         * lib/mbfile.h: New file.
82139
82140 2005-08-16  Bruno Haible  <bruno@clisp.org>
82141
82142         * lib/mbchar.h: New file.
82143         * lib/mbchar.c: New file.
82144
82145 2005-08-16  Bruno Haible  <bruno@clisp.org>
82146
82147         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82148         the valid ones. Makes the comparison operations transitive:
82149         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82150         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82151
82152 2005-08-15  Simon Josefsson  <jas@extundo.com>
82153
82154         * modules/ssize_t (License): Change to 'unlimited'.
82155
82156         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82157
82158 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82159
82160         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82161         Add comments for each pending glibc patch.
82162
82163 2005-08-15  Bruno Haible  <bruno@clisp.org>
82164
82165         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82166         __cplusplus is defined.
82167
82168 2005-08-14  Jim Meyering  <jim@meyering.net>
82169
82170         Sync from coreutils.
82171
82172         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82173         Use the hash-table-based cycle-detection code not just when
82174         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82175         Reported by James Youngman in
82176         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82177         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82178         FTS_TIGHT_CYCLE_CHECK.
82179         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82180         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82181         once again.
82182         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82183         * lib/fts.c (fd_safer): Remove decl.
82184         Include fcntl--.h rather than unistd-safer.h
82185         (fts_safe_changedir): Don't call fd_safer; no longer needed
82186         now that we include fcntl--.h.
82187
82188 2005-08-12  Simon Josefsson  <jas@extundo.com>
82189
82190         * modules/getndelim2: Use ssize_t module.
82191         * modules/getnline: Likewise.
82192         * modules/safe-read: Likewise.
82193         * modules/xreadlink: Likewise.
82194
82195         * modules/ssize_t: New file.
82196
82197 2005-08-12  Simon Josefsson  <jas@extundo.com>
82198
82199         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82200
82201 2005-08-12  Simon Josefsson  <jas@extundo.com>
82202
82203         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82204         ssize_t.
82205
82206 2005-08-12  Simon Josefsson  <jas@extundo.com>
82207
82208         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82209         readline, getdelim and check_version.
82210         (Support for systems lacking ISO C 99: Sizes of integer types):
82211         Add size_max.
82212
82213 2005-08-12  Bruno Haible  <bruno@clisp.org>
82214
82215         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82216
82217 2005-08-11  Simon Josefsson  <jas@extundo.com>
82218
82219         * modules/readline: New file.
82220
82221         * modules/strnlen (Files): Add strnlen.h.
82222
82223 2005-08-11  Simon Josefsson  <jas@extundo.com>
82224
82225         * m4/readline.m4: New file.
82226
82227 2005-08-11  Simon Josefsson  <jas@extundo.com>
82228
82229         * lib/readline.h, readline.c: New file.
82230
82231 2005-08-11  Simon Josefsson  <jas@extundo.com>
82232
82233         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82234         gl_AVOID.
82235
82236 2005-08-11  Bruno Haible  <bruno@clisp.org>
82237
82238         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82239
82240 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82241
82242         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82243
82244 2005-08-10  Simon Josefsson  <jas@extundo.com>
82245
82246         * tests/test-iconvme.c: New file.
82247
82248 2005-08-10  Simon Josefsson  <jas@extundo.com>
82249
82250         * m4/strnlen.m4: New file.
82251
82252         * m4/strndup.m4: Don't check for strnlen declaration, done in
82253         strnlen.m4.
82254
82255 2005-08-10  Simon Josefsson  <jas@extundo.com>
82256
82257         * lib/strndup.c: Use strnlen.h.
82258
82259         * lib/strnlen.h: New file.
82260
82261 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82262
82263         * README: Typos.
82264
82265 2005-08-02  Simon Josefsson  <jas@extundo.com>
82266
82267         * modules/readline: New file.
82268
82269 2005-08-02  Simon Josefsson  <jas@extundo.com>
82270
82271         * modules/getdelim: New file.
82272
82273         * modules/getline: Rewrite, don't use getndelim2.
82274
82275 2005-08-02  Simon Josefsson  <jas@extundo.com>
82276
82277         * m4/getline.m4: Separate out getdelim stuff into separate module.
82278
82279         * m4/getdelim.m4: New file.
82280
82281 2005-08-02  Simon Josefsson  <jas@extundo.com>
82282
82283         * lib/getline.h, getline.c: Rewrite.
82284
82285         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82286
82287 2005-07-31  Bruno Haible  <bruno@clisp.org>
82288
82289         * lib/lock.h (gl_lock_initializer): New macro.
82290         (gl_lock_define_initialized): Use it.
82291         (gl_rwlock_initializer): New macro.
82292         (gl_rwlock_define_initialized): Use it.
82293         (gl_recursive_lock_initializer): New macro.
82294         (gl_recursive_lock_define_initialized): Use it.
82295
82296 2005-07-30  Karl Berry  <karl@gnu.org>
82297
82298         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82299         Report from Ben Pfaff, regarding getopt.
82300
82301 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82302
82303         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82304         normal way.
82305         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82306         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82307         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82308         (gl_GETOPT): Use the new macros.  Most of the implementation
82309         is moved to the new macros.  This is for programs like Emacs
82310         that don't want all the functionality of gl_GETOPT.
82311
82312 2005-07-26  Bruno Haible  <bruno@clisp.org>
82313
82314         * m4/lock.m4: Update from GNU gettext.
82315
82316 2005-07-26  Bruno Haible  <bruno@clisp.org>
82317
82318         * lib/lock.h: Update from GNU gettext.
82319         * lib/lock.c: Update from GNU gettext.
82320
82321 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82322
82323         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82324         obsolescent AC_TRY_RUN.  Include the default includes files, for
82325         'exit'.
82326
82327 2005-07-24  Bruno Haible  <bruno@clisp.org>
82328
82329         * modules/visibility: New file.
82330         * MODULES.html.sh (Misc): Add visibility.
82331
82332 2005-07-24  Bruno Haible  <bruno@clisp.org>
82333
82334         * m4/visibility.m4: New file.
82335
82336 2005-07-24  Bruno Haible  <bruno@clisp.org>
82337
82338         * doc/visibility.texi: New file.
82339
82340 2005-07-22  Bruno Haible  <bruno@clisp.org>
82341
82342         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82343         $(ALLOCA_H), redundant through BUILT_SOURCES.
82344         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82345         redundant through BUILT_SOURCES.
82346         * modules/byteswap (Makefile.am): Remove explicit dependency on
82347         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82348         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82349         $(FNMATCH_H), redundant through BUILT_SOURCES.
82350         * modules/getopt (Makefile.am): Remove explicit dependency on
82351         $(GETOPT_H), redundant through BUILT_SOURCES.
82352         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82353         redundant through BUILT_SOURCES.
82354         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82355         redundant through BUILT_SOURCES.
82356         * modules/stdbool (Makefile.am): Remove explicit dependency on
82357         $(STDBOOL_H), redundant through BUILT_SOURCES.
82358         * modules/stdint (Makefile.am): Remove explicit dependency on
82359         $(STDINT_H), redundant through BUILT_SOURCES.
82360         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82361         Remove explicit dependency on $(SYSEXITS_H).
82362         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82363
82364 2005-07-18  Simon Josefsson  <jas@extundo.com>
82365
82366         * lib/check-version.c (check_version): Accept identical versions too.
82367
82368 2005-07-18  Bruno Haible  <bruno@clisp.org>
82369
82370         * modules/lock: New file.
82371         * MODULES.html.sh (Multithreading): New section.
82372
82373 2005-07-18  Bruno Haible  <bruno@clisp.org>
82374
82375         * m4/lock.m4: New file, from GNU gettext.
82376
82377 2005-07-18  Bruno Haible  <bruno@clisp.org>
82378
82379         * lib/lock.h: New file, from GNU gettext.
82380         * lib/lock.c: New file, from GNU gettext.
82381
82382 2005-07-18  Bruno Haible  <bruno@clisp.org>
82383
82384         * lib/lock.h (gl_once_t): New type.
82385         (gl_once_define, gl_once): New macros.
82386         * lib/lock.c (fresh_once): New variable.
82387         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82388         functions.
82389
82390 2005-07-16  Simon Josefsson  <jas@extundo.com>
82391
82392         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82393         workaround, suggested by Bruno.
82394
82395 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82396
82397         * modules/xalloc (Depends-on): Add xalloc-die.
82398         * modules/xvasprintf (Depends-on): Add xalloc-die.
82399
82400 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82401
82402         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82403         with a minor change.
82404
82405 2005-07-15  Bruno Haible  <bruno@clisp.org>
82406
82407         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82408         When using lib/poll.c, define poll as rpl_poll.
82409
82410 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82411
82412         * modules/argp (Depends-on): Remove unlocked-io.
82413
82414 2005-07-14  Derek Price  <derek@ximbiot.com>
82415
82416         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82417         for glob symlink bug.
82418
82419 2005-07-14  Bruno Haible  <bruno@clisp.org>
82420
82421         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82422         Instead, test for *_unlocked function declarations directly.
82423
82424 2005-07-11  Simon Josefsson  <jas@extundo.com>
82425
82426         * modules/size_max: New file.
82427
82428         * modules/xsize: Depend on size_max module for size_max.m4.
82429
82430 2005-07-11  Simon Josefsson  <jas@extundo.com>
82431
82432         * lib/size_max.h: New file.
82433
82434 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82435
82436         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82437         copyright symbol and the year.
82438         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82439         (version_etc_va): Use parameterized copyright notice.
82440         Reword to conform to the current GNU coding standards.
82441
82442 2005-07-11  Karl Berry  <karl@gnu.org>
82443
82444         * doc/gnulib.texi (Quoting): new node.
82445         (Initial import): more info, from Patrice.
82446
82447 2005-07-11  Bruno Haible  <bruno@clisp.org>
82448
82449         * gnulib-tool (func_usage): Document option --avoid.
82450         (Command line options): Handle --avoid.
82451         (func_acceptable): New function.
82452         (func_modules_transitive_closure): Use it.
82453
82454 2005-07-11  Bruno Haible  <bruno@clisp.org>
82455
82456         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82457         Reported by Jim Meyering.
82458
82459 2005-07-10  Bruno Haible  <bruno@clisp.org>
82460
82461         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82462         Needed when size_t is smaller than 'unsigned int'.
82463         Reported by Paul Eggert.
82464
82465 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82466
82467         * modules/argp (Depends-on): Add unlocked-io
82468
82469 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82470
82471         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82472         block of defines.
82473
82474 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82475
82476         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82477         fix now.
82478
82479 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82480         and Paul Eggert  <eggert@cs.ucla.edu>
82481
82482         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82483         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82484
82485 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82486
82487         * modules/regex (Files): Add lib/regex_internal.c,
82488         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82489         (Depends-on): Add extensions.
82490         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82491
82492 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82493
82494         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82495         pathconf.
82496         * m4/same.m4 (gl_SAME): Likewise.
82497         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82498
82499         * m4/regex.m4: Adjust to new libc regex implementation.
82500         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82501         all the .c and .h parts of (the new) regex.
82502         Quote the m4 stuff better.
82503         Check for RE_ICASE bug of old gnulib.
82504         Check for REG_STARTEND of recent libc.
82505         Rename local variables from jm_* to gl_*.
82506         Quote operand of "test -f".
82507         Say "recent enough" version of libc, not "version 2".
82508         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82509         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82510         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82511         Remove check for btowc, isascii.
82512         Require AM_LANGINFO_CODESET.
82513
82514 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82515
82516         * lib/regex.c, regex.h: Sync from libc.
82517         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82518         * lib/regexec.c:
82519         New files, synced from libc, except that regex_internal.h
82520         currently has a small porting fix.
82521
82522 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82523
82524         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82525         regex_internal.c, regexec.c.
82526         Add regex_internal.h too, but as a comment, since the libc version
82527         is currently broken in gnulib mode.
82528
82529 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82530
82531         Support programs like Emacs that use gnulib but not gettext.
82532         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82533         * modules/gettext-h: New file.
82534         * modules/gettext (Files): Remove lib/gettext.h.
82535         (Depends-on): Add gettext-h.
82536         (Makefile.am): Remove lib_SOURCES.
82537         * modules/argmatch, modules/c-stack, modules/closeout:
82538         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82539         * modules/execute, modules/file-type, modules/getaddrinfo:
82540         * modules/getopt, modules/human, modules/javacomp:
82541         * modules/javaexec, modules/mkdir-p, modules/obstack:
82542         * modules/openat, modules/pagealign_alloc, modules/pipe:
82543         * modules/quotearg, modules/regex, modules/rpmatch:
82544         * modules/unicodeio, modules/userspec, modules/version-etc:
82545         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82546         * modules/xsetenv:
82547         Depend on gettext-h, not gettext.
82548
82549 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82550
82551         * gnulib-tool (func_import): Add support for 'public domain' license.
82552         * modules/alloca, modules/atexit, modules/memmove:
82553         Now public domain, not GPL.
82554         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82555         * modules/realloc, modules/strerror, modules/strtod:
82556         Now LGPL, not GPL.
82557
82558 2005-07-05  Bruno Haible  <bruno@clisp.org>
82559
82560         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82561         autoconf CVS. Needed for mingw.
82562
82563 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82564
82565         Remove the dependency of the strftime module on the tzset module.
82566         * modules/strftime (Depends-on): Remove dependency on tzset.
82567
82568 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82569
82570         Remove the dependency of the strftime module on the tzset module.
82571         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82572         gl_FUNC_TZSET_CLOBBER.
82573
82574 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82575
82576         Remove the dependency of the strftime module on the tzset module.
82577         * lib/strftime.c (my_strftime)
82578         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82579         Copy the input structure, to work around some of the bug with
82580         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82581         Solaris releases, you should also use the tzset module, but we won't
82582         require it as a dependency any more since we don't want LGPLed code
82583         to depend on GPLed code.
82584
82585 2005-07-02  Jim Meyering  <jim@meyering.net>
82586
82587         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82588         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82589         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82590         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82591
82592 2005-07-02  Jim Meyering  <jim@meyering.net>
82593
82594         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82595
82596 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82597
82598         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82599         declares only 'struct timespec;' (!).
82600
82601 2005-07-01  Jim Meyering  <jim@meyering.net>
82602
82603         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82604         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82605         * lib/save-cwd.c, tempname.c:
82606         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82607         and don't include <sys/file.h>).
82608
82609 2005-06-29  Jim Meyering  <jim@meyering.net>
82610
82611         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82612         type name.  Use the variable name instead.
82613         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82614         Likewise.
82615
82616 2005-06-28  Simon Josefsson  <jas@extundo.com>
82617
82618         * modules/check-version (Files): Add check-version.m4.
82619
82620 2005-06-28  Simon Josefsson  <jas@extundo.com>
82621
82622         * m4/check-version.m4: New file, suggested by Jim Meyering
82623         <jim@meyering.net>.
82624
82625 2005-06-28  Simon Josefsson  <jas@extundo.com>
82626
82627         * lib/check-version.h, lib/check-version.c: New files.
82628
82629 2005-06-28  Simon Josefsson  <jas@extundo.com>
82630
82631         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82632         collision with global variable.  Better indentation.  Don't
82633         increment buffer pointer beyond buffer end.  Based on comments
82634         from Paul Eggert <eggert@cs.ucla.edu>.
82635
82636         * lib/base64.h: Indent.
82637
82638 2005-06-28  Simon Josefsson  <jas@extundo.com>
82639
82640         * doc/gnulib.texi (Library version handling): New section.
82641
82642 2005-06-28  Jim Meyering  <jim@meyering.net>
82643
82644         * check-module (find_included_lib_files): Hard-code another
82645         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82646         but modules/fts-lgpl (correctly) does not list those files.
82647
82648         * modules/canonicalize (Files): Add lib/pathmax.h.
82649
82650 2005-06-25  Simon Josefsson  <jas@extundo.com>
82651
82652         * modules/check-version: New file.
82653
82654 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82657         initializer of struct addrinfo, as an indication that we don't
82658         care how many members the structure has.
82659
82660 2005-06-24  Derek Price  <derek@ximbiot.com>
82661         and Bruno Haible  <bruno@clisp.org>
82662
82663         Remove stat module & update lstat.
82664         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82665         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82666         * m4/stat.m4: Remove this file.
82667
82668 2005-06-24  Derek Price  <derek@ximbiot.com>
82669         and Bruno Haible  <bruno@clisp.org>
82670
82671         Remove stat module & update lstat.
82672         * lib/stat.c: Remove this file...
82673         (slash_aware_lstat): ...moving this content and its support...
82674         * lib/lstat.c (rpl_lstat): ...into here.
82675         * lib/lstat.h: New file.
82676
82677 2005-06-24  Derek Price  <derek@ximbiot.com>
82678         and Bruno Haible  <bruno@clisp.org>
82679
82680         Remove stat module & update lstat.
82681         * config/srclist.txt (libc sources): Remove stat.
82682
82683 2005-06-24  Derek Price  <derek@ximbiot.com>
82684         and Bruno Haible  <bruno@clisp.org>
82685
82686         Remove stat module & update lstat.
82687         * MODULES.html.sh (stat): Remove.
82688         * MODULES.html: Regenerated.
82689         * modules/lstat (Description): Correct function name.
82690         (Files): Add "lstat.h".
82691         (Depends-on): Remove stat, add xalloc, stat-macros.
82692         * modules/stat: Remove this file.
82693         (Include): Add "lstat.h", remove <sys/stat.h>.
82694
82695 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82696
82697         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82698         (ranged_convert): Don't save conversion in a temporary struct.
82699         This causes a warning with GCC 4.0.0, and anyway in the typical
82700         case it's not worth the extra 100 bytes or so of code.
82701         (ranged_convert, __mktime_internal): When calling a function via a
82702         pointer P, use P () rather than (*P) (), as we now assume C89 or
82703         better.
82704
82705 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82706
82707         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82708         "who -r" failed to give output.  Problem reported by Tim Waugh.
82709
82710         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82711         (xcalloc): Use it to avoid needless tests.
82712         Problem reported by Jim Meyering.
82713
82714 2005-06-20  Derek Price  <derek@ximbiot.com>
82715
82716         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82717         unnecessary for Autoconfs > 2.59c.
82718
82719 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82720
82721         * lib/argp.h (__option_is_short): Check upper limit of
82722         __key. Isprint() requires its argument to have the value
82723         of an unsigned char or EOF.
82724
82725 2005-06-16  Jim Meyering  <jim@meyering.net>
82726
82727         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82728         when either N or S is zero.
82729
82730 2005-06-16  Derek Price  <derek@ximbiot.com>
82731
82732         * m4/bison.m4: Declare YACC & YFLAGS precious.
82733
82734 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82735
82736         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82737         multibyte string or pattern, fall back on unibyte matching.
82738         Problem reported by James Youngman.
82739
82740 2005-06-08  Bruno Haible  <bruno@clisp.org>
82741
82742         * modules/csharpcomp: New file.
82743         * MODULES.html.sh (C#): Add csharpcomp.
82744
82745 2005-06-08  Bruno Haible  <bruno@clisp.org>
82746
82747         * m4/csharpcomp.m4: New file, from GNU gettext.
82748
82749 2005-06-08  Bruno Haible  <bruno@clisp.org>
82750
82751         * lib/csharpcomp.h: New file, from GNU gettext.
82752         * lib/csharpcomp.c: New file, from GNU gettext.
82753         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82754
82755 2005-06-08  Bruno Haible  <bruno@clisp.org>
82756
82757         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82758         warning on mingw.
82759
82760 2005-06-07  Derek Price  <derek@ximbiot.com>
82761
82762         Sync from CVS.
82763         * lib/glob_.h: Indent nested #ifdef.
82764
82765 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82766
82767         Sync from coreutils.
82768         Use "file name" when talking about file names, instead of "filename"
82769         or "path", as per the GNU coding standards.
82770         * lib/mkdir-p.c: Renamed from makepath.c.
82771         (make_dir_parents): Renamed from make_path.  All callers changed.
82772         * lib/mkdir-p.h: Likewise.  All includers changed.
82773         * lib/filenamecat.c: Renamed from path-concat.c.
82774         (file_name_concat): Renamed from path_concat.  All callers changed.
82775         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82776         * lib/filenamecat.h: Likewise.  All includers changed.
82777         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82778         in comments or local variable names.
82779         * lib/basename.c: Likewise.
82780         * lib/canonicalize.c, canonicalize.h: Likewise.
82781         * lib/dirname.c, dirname.h: Likewise.
82782         * lib/euidaccess.c: Likewise.
82783         * lib/exclude.c: Likewise
82784         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82785         * lib/fsusage.c, fsuage.h: Likewise.
82786         * lib/fts.c, fts_.h: Likewise.
82787         * lib/getcwd.c: Likewise.
82788         * lib/getloadavg.c: Likewise.
82789         * lib/mkstemp.c: Likewise.
82790         * lib/mountlist.c, mountlist.h: Likewise.
82791         * lib/openat.c, openat.h: Likewise.
82792         * lib/readlink-stub.c: Likewise.
82793         * lib/readutmp.c, readutmp.h: Likewise.
82794         * lib/rename.c: Likewise.
82795         * lib/rmdir.c: Likewise.
82796         * lib/same.c: Likewise.
82797         * lib/savedir.c: Likewise.
82798         * lib/stripslash.c: Likewise.
82799         * lib/tempname.c: Likewise.
82800         * lib/xreadlink.c: Likewise.
82801         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82802         All uses changed.
82803         * lib/exclude.h: Likewise.
82804
82805         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82806         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82807         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82808         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82809         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82810         files have been getting away with it for years (MORE/BSD 4.3
82811         is extinct now).
82812         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82813         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82814
82815         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82816         Define to 256, not 255, as per modern POSIX.
82817
82818 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82819
82820         Sync from coreutils.
82821         Use "file name" when talking about file names, instead of "filename"
82822         or "path", as per the GNU coding standards.
82823         * MODULES.html.sh: mkdir-p renamed from makepath.
82824         filenamecat renamed from path-concat.
82825         * modules/filenamecat: Renamed from modules/path-concat.
82826         (Files): filenamecat.h and filenamecat.c renamed from
82827         path-concat.h and path-concat.c.
82828         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82829         (Include): filenamecat.h, not path-concat.h.
82830         * modules/mkdir-p: Renamed from modules/makepath.
82831         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82832         makepath.c.
82833         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82834         (Include): mkdir-p.h, not makepath.h.
82835
82836 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82837
82838         Sync from coreutils.
82839         * m4/mkdir-p.m4: Renamed from makepath.m4.
82840         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82841         Rename files from makepath.c to mkdir-p.c, and from
82842         makepath.h to mkdir-p.h.
82843         * m4/filenamecat.m4: Renamed from path-concat.m4.
82844         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82845         Rename files from path-concat.c to filenamecat.c,
82846         and from path-concat.h to filenamecat.h.
82847         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82848         "file name" in local variables or comments.
82849         * m4/rename.m4: Likewise.
82850
82851 2005-06-01  Bruno Haible  <bruno@clisp.org>
82852
82853         * modules/csharpexec: New file.
82854         * MODULES.html.sh (C#): New section.
82855
82856 2005-06-01  Bruno Haible  <bruno@clisp.org>
82857
82858         * m4/csharp.m4: New file, from GNU gettext.
82859         * m4/csharpexec.m4: New file, from GNU gettext.
82860
82861 2005-06-01  Bruno Haible  <bruno@clisp.org>
82862
82863         * lib/csharpexec.h: New file, from GNU gettext.
82864         * lib/csharpexec.c: New file, from GNU gettext.
82865         * lib/csharpexec.sh.in: New file, from GNU gettext.
82866
82867 2005-05-31  Derek Price  <derek@ximbiot.com>
82868             Paul Eggert  <eggert@cs.ucla.edu>
82869
82870         Sync from cvs.
82871         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82872
82873 2005-05-31  Derek Price  <derek@ximbiot.com>
82874             Paul Eggert  <eggert@cs.ucla.edu>
82875
82876         Sync from cvs.
82877         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82878
82879 2005-05-29  Derek Price  <derek@ximbiot.com>
82880
82881         * config/srclist.txt (glob_.h, glob.c): Add these files.
82882
82883 2005-05-29  Derek Price  <derek@ximbiot.com>
82884
82885         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82886         * modules/glob: New file.
82887         * modules/getlogin_r: Add link to POSIX spec in description.
82888
82889 2005-05-29  Derek Price  <derek@ximbiot.com>
82890             Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         * m4/glob.m4: New file.
82893
82894 2005-05-29  Derek Price  <derek@ximbiot.com>
82895             Paul Eggert  <eggert@cs.ucla.edu>
82896
82897         * lib/glob_.h, lib/glob.c: New files.
82898
82899 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82900
82901         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82902         * modules/fts-lgpl (Depends-on): Remove gettext.
82903
82904 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82905
82906         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82907         and don't require gt_INTTYPES_PRI.
82908
82909 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82910
82911         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82912
82913         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82914         the configuration hassle isn't worth it.
82915         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82916         (LONGEST_MODIFIER, PRIuMAX): Remove.
82917
82918 2005-05-27  Bruno Haible  <bruno@clisp.org>
82919
82920         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82921
82922 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82923
82924         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82925         _POSIX_PTHREAD_SEMANTICS for Solaris.
82926
82927 2005-05-25  Derek Price  <derek@ximbiot.com>
82928
82929         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82930
82931 2005-05-25  Derek Price  <derek@ximbiot.com>
82932             Paul Eggert  <eggert@cs.ucla.edu>
82933
82934         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82935         * lib/getlogin_r.c, getlogin_r.h: New files.
82936
82937 2005-05-25  Bruno Haible  <bruno@clisp.org>
82938             Derek Price  <derek@ximbiot.com>
82939
82940         * lib/getlogin_r.h: Simplify API documentation.
82941
82942 2005-05-23  Derek Price  <derek@ximbiot.com>
82943
82944         * modules/minmax (Files): Add m4/minmax.m4.
82945         (configure.ac): Add gl_MINMAX.
82946
82947 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82948
82949         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82950         so that unistd-safer.h (GPL'ed code) need not be included.
82951
82952 2005-05-22  Bruno Haible  <bruno@clisp.org>
82953
82954         * m4/minmax.m4: New file.
82955         Based on a patch by Derek Price <derek@ximbiot.com>.
82956
82957 2005-05-22  Bruno Haible  <bruno@clisp.org>
82958
82959         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82960         (INT64_MIN): Fix definition.
82961         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82962
82963         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82964         NEED_SIGNED_INT_TYPES.
82965
82966         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82967         HAVE_SYSTEM_INTTYPES.
82968
82969 2005-05-22  Bruno Haible  <bruno@clisp.org>
82970
82971         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82972         Also include <sys/param.h> if it defines MIN, MAX.
82973         Based on a patch by Derek Price <derek@ximbiot.com>.
82974
82975 2005-05-21  Jim Meyering  <jim@meyering.net>
82976
82977         * modules/fts (Files): Add m4/inttypes-pri.m4.
82978         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82979
82980 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82981
82982         New fts module.
82983         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82984         (setup_dir, free_dir): New functions.
82985         (enter_dir, leave_dir): Define trivial
82986         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82987         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82988         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82989         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82990         Move to fts-cycle.c.
82991         (fts_open): Use setup_dir.
82992         (fts_close): Use free_dir.
82993         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82994         This adds a label and some gotos, but the alternatives were messier.
82995         Check for memory allocation failure when entering a dir.
82996         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82997         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82998         (FTS): New member fts_cycle, that is a union that contains the
82999         old active_dir_ht and cycle_state.  All uses changed to mention
83000         fts_cycle.ht and fts_cycle.state.
83001         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83002         fts.c, with the following changes:
83003         (setup_dir, free_dir): New functions.
83004         (enter_dir): Now returns bool.  Return true if successful, false
83005         if memory exhausted.  All callers changed.
83006         Do not bother partly cleaning up on
83007         memory allocation failure; that is free_dir's job.
83008         However, free ad if hash_insert fails, to avoid memory leak.
83009         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83010         fts->fts_options to see which union member to use.
83011
83012 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83013
83014         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83015         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83016
83017 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83018
83019         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83020
83021 2005-05-20  Jim Meyering  <jim@meyering.net>
83022
83023         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83024         Now a macro, to pacify GCC.
83025
83026 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83027
83028         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83029         of -1.
83030
83031 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83032
83033         * lib/chown.c (rpl_chown): Return -1 on failure.
83034
83035 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83036
83037         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83038         Don't check for stddef.h.
83039         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83040         don't use its results.
83041         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83042         since we include them unconditionally.  Don't require
83043         AM_STDBOOL_H, since stdbool is a prerequisite.
83044         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83045         since we assume C89 or better.
83046         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83047         as we don't use their results.
83048         Don't check for fchdir, memmove, memset, strrchr, as we use
83049         them unconditionally.
83050         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83051         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83052
83053 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83054
83055         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83056         Include <stddef.h> unconditionally, since we assume C89 now.
83057         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83058         * lib/fts.c: Include fts_.h first, to check interface.
83059         Do not include intprops.h; no longer needed.
83060         Include cycle-check.h and hash.h, since fts_.h no longer does.
83061         Remove unnecessary casts of closedir to void.
83062         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83063         decide whether to decrement nlinks.
83064         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83065         (FTS): Use struct hash_table * instead of Hash_table, so that
83066         we no longer need to include hash.h here.
83067
83068 2005-05-18  Jim Meyering  <jim@meyering.net>
83069
83070         * modules/dirfd (License): Change to LGPL.  Most of the code
83071         is already in the public domain.
83072
83073 2005-05-18  Jim Meyering  <jim@meyering.net>
83074
83075         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83076         Reported by Yoann Vandoorselaere.
83077
83078 2005-05-17  Jim Meyering  <jim@meyering.net>
83079
83080         * m4/fts.m4: New file, from coreutils.
83081
83082 2005-05-17  Jim Meyering  <jim@meyering.net>
83083
83084         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83085
83086 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83087
83088         Sync from coreutils.
83089         * m4/unlinkdir.m4: New file.
83090
83091 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83092
83093         Sync from coreutils.
83094         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83095         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83096         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83097         White space changes only.
83098         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83099         special.
83100         * lib/yesno.c: Include getline.h, not ctype.h.
83101         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83102         Use getline to remove arbitrary restriction on response length.
83103
83104 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83105
83106         * config/srclist-update: Spell out "Street" in FSF postal
83107         mail address; this is the style the FSF seems to prefer.
83108
83109         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83110         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83111         this updates FSF postal mail address.
83112
83113         Sync from coreutils.
83114         * modules/unlinkdir: New file.
83115         * modules/yesno (Depends-on): Add getline.
83116         * MODULES.html.sh (File system functions): Add unlinkdir.
83117
83118 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83119
83120         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83121         lib/strsep.h:
83122         Change the initial comment to refer to GPL, not LGPL.
83123         gnulib-tool will change it to LGPL as needed.
83124
83125         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83126         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83127         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83128         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83129         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83130         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83131         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83132         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83133         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83134         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83135         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83136         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83137         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83138         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83139         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83140         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83141         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83142         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83143         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83144         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83145         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83146         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83147         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83148         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83149         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83150         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83151         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83152         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83153         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83154         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83155         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83156         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83157         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83158         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83159         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83160         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83161         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83162         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83163         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83164         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83165         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83166         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83167         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83168         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83169         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83170         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83171         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83172         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83173         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83174         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83175         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83176         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83177         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83178         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83179         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83180         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83181         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83182         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83183         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83184         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83185         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83186         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83187         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83188         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83189         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83190         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83191         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83192         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83193         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83194         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83195         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83196         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83197         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83198         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83199         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83200         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83201         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83202         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83203         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83204         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83205         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83206         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83207         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83208         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83209         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83210         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83211         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83212         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83213         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83214         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83215         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83216         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83217         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83218         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83219         lib/yesno.c, lib/yesno.h:
83220         Update FSF postal mail address.
83221
83222 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83223
83224         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83225         tests/test-memmem.c, tests/test-stpncpy.c:
83226         Update FSF postal mail address.
83227
83228 2005-05-13  Bruno Haible  <bruno@clisp.org>
83229
83230         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83231         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83232         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83233         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83234         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83235         Add support for 64-bit integers in the MSVC compiler.
83236
83237 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83238
83239         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83240
83241 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83242
83243         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83244
83245 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83246
83247         * doc/getdate.texi (General date syntax): Don't say that date
83248         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83249         Problem reported by Nic Ferrier.
83250
83251 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83252
83253         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83254         specified in ai_socktype. Fix invalid ai_protocol
83255         check. ai_protocol is usually set to 0 or depending on
83256         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83257         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83258         ai_socktype / ai_protocol in the returned addrinfo structure.
83259
83260 2005-05-10  Simon Josefsson  <jas@extundo.com>
83261
83262         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83263         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83264
83265 2005-05-10  Karl Berry  <karl@gnu.org>
83266
83267         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83268         (from http://www.gnu.org/licenses).
83269         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83270         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83271         fdl.texi suffices.
83272
83273 2005-05-10  Karl Berry  <karl@gnu.org>
83274
83275         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83276         (COPYING.DOC): remove.
83277
83278         * config/srclist-update: new FSF address.
83279
83280 2005-05-10  Derek Price  <derek@ximbiot.com>
83281
83282         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83283         possible.
83284
83285 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83286             Bruno Haible  <bruno@clisp.org>
83287
83288         * modules/inet_ntop: New file.
83289         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83290         inet_ntop.
83291
83292 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83293             Bruno Haible  <bruno@clisp.org>
83294
83295         * m4/inet_ntop.m4: New file.
83296
83297 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83298             Bruno Haible  <bruno@clisp.org>
83299
83300         * lib/inet_ntop.h: New file.
83301         * lib/inet_ntop.c: New file, from glibc with modifications.
83302
83303 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83304
83305         * modules/time_r (License): Change to LGPL.
83306         * modules/extensions (License): Change to LGPL.  Actually,
83307         the license is more permissive than that, but currently gnulib-tool
83308         doesn't know how to handle more-permissive licenses.
83309
83310         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83311         Problem reported by Dave Love.
83312
83313 2005-05-08  Jim Meyering  <jim@meyering.net>
83314
83315         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83316         blank.
83317
83318 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83319
83320         * modules/argmatch (Depends-on): Add stdbool.
83321         * modules/backupfile (Depends-on): Likewise.
83322         * modules/chdir-long (Depends-on): Likewise.
83323         * modules/closeout (Depends-on): Likewise.
83324         * modules/cycle-check (Depends-on): Likewise.
83325         * modules/dirname (Depends-on): Likewise.
83326         * modules/fnmatch (Depends-on): Likewise.
83327         * modules/fsusage (Depends-on): Likewise.
83328         * modules/fwriteerror (Depends-on): Likewise.
83329         * modules/getcwd (Depends-on): Likewise.
83330         * modules/getloadavg (Depends-on): Likewise.
83331         * modules/hard-locale (Depends-on): Likewise.
83332         * modules/makepath (Depends-on): Likewise.
83333         * modules/mountlist (Depends-on): Likewise.
83334         * modules/nanosleep (Depends-on): Likewise.
83335         * modules/posixtm (Depends-on): Likewise.
83336         * modules/quotearg (Depends-on): Likewise.
83337         * modules/readtokens (Depends-on): Likewise.
83338         * modules/readtokens0 (Depends-on): Likewise.
83339         * modules/readutmp (Depends-on): Likewise.
83340         * modules/save-cwd (Depends-on): Likewise.
83341         * modules/strftime (Depends-on): Likewise.
83342         * modules/userspec (Depends-on): Likewise.
83343         * modules/utimecmp (Depends-on): Likewise.
83344         * modules/xgetcwd (Depends-on): Likewise.
83345         * modules/xnanosleep (Depends-on): Likewise.
83346         * modules/xstrtod (Depends-on): Likewise.
83347         * modules/yesno (Depends-on): Likewise.
83348
83349 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83350
83351         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83352         needless checks.
83353
83354 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83355
83356         Merge from coreutils.  Among other things,
83357         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83358         * lib/fd-safer.c: New file.
83359         * lib/fcntl-safer.h, open-safer.c: Remove.
83360         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83361         * lib/dup-safer.c: Include unistd-safer.h first.
83362         Don't include errno.h.
83363         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83364         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83365         * lib/file-type.c: Rely on file-type.h change.
83366         * lib/getloadavg.c: Include unistd-safer.h.
83367         (getloadavg): Use safer open.
83368         * lib/getusershell.c: Include "stdio-safer.h".
83369         (getusershell): Use safer fopen.
83370         * lib/long-options.c (long_options): Use NULL rather than 0.
83371         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83372         'free'.
83373         * lib/modechange.c: Likewise.
83374         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83375         (MODE_DONE): New constant.
83376         (struct mode_change): Remove 'next' member.
83377         (make_node_op_equals): New function; like the old one of the
83378         same name, except it allocates an array.
83379         (mode_compile, mode_create_from_ref): Use it.
83380         (mode_compile): Allocate result as an array, not a linked list.
83381         Parse octal string ourself, so that we catch mistakes like "+0".
83382         (mode_adjust): Arg is an array, not a linked list.
83383         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83384         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83385         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83386         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83387         Remove.  This is now stat-macros.h's job.
83388         (talloc): Remove.  All callers replaced by xalloc, so that
83389         our invokers don't have to worry about reporting memory failures.
83390         (make_node_op_equals): Remove.
83391         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83392         New constants.
83393         (struct mode_change): Moved here from modechange.h.
83394         (mode_append_entry): Remove.
83395         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83396         apps to have incorrect behavior.  Use simpler algorithm for head
83397         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83398         Detect more invalid usages rather than having somewhat-random behavior.
83399         Don't insert an "a=" action, as that leads to incorrect behavior.
83400         (mode_compile, mode_create_from_ref): Return NULL on error instead
83401         of an enum, since now there's only one way to have an error.  All
83402         callers changed.
83403         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83404         at the correct time.  Simplify calculation of "+u" and its ilk.
83405         Don't mishandle "+X".
83406         (mode_free): Remove "register" and localize decls.
83407         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83408         (struct mode_change): Move to modechange.c; callers don't
83409         need to see this stuff.
83410         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83411         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83412         (mode_change, mode_adjust): Reflect the new signatures noted above.
83413         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83414         that might redefine system include files.
83415         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83416         (my_usleep): Use NULL rather than (void *) 0.
83417         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83418         Use siginterrupt to specify that system calls should be interrupted.
83419         (rpl_nanosleep): Move initialization of suspended closer to call of
83420         my_usleep.
83421         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83422         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83423         (desirable_utmp_entry): New function.
83424         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83425         using x2nrealloc, to simplify logic.
83426         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83427         size calculation.  Do not assume utmp file is a regular file.
83428         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83429         (READ_UTMP_CHECK_PIDS): New constant.
83430         * lib/save-cwd.c: Include unistd-safer.h.
83431         (save_cwd): Use fd_safer.
83432         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83433         [!_LIBC] Include "stat-macros.h" instead.
83434         * lib/unistd-safer.h (fd_safer): New decl.
83435
83436 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83437
83438         * modules/getloadavg (Depends-on): Add unistd-safer.
83439         * modules/getusershell (Depends-on): Add stdio-safer.
83440         * modules/lstat (Depends-on): Remove xalloc.
83441         * modules/mkstemp (Depends-on): Add stat-macros.
83442         * modules/modechange (Depends-on): Remove xstrtol.
83443         Add stat-macros, xalloc.
83444         * modules/save-cwd (Depends-on): Add unistd-safer.
83445         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83446         * modules/unistd-safer (Files): Add lib/fd-safer.c
83447         (Makefile.am): Remove lib_SOURCES.
83448
83449         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83450         Remove fcntl-safer; unistd-safer supersedes it.
83451
83452 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83453
83454         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83455         AC_HEADER_STAT.
83456         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83457         (gl_PREREQ_CHOWN): Remove.
83458         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83459         it.  Don't require AC_HEADER_STAT.
83460         (gl_PREREQ_LSTAT): Remove.
83461         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83462         Don't require AC_HEADER_STAT.
83463         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83464         (gl_PREREQ_RMDIR): Remove.
83465         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83466         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83467         the stat-macros module a prerequisite.
83468         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83469         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83470         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83471         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83472         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83473         variable names.
83474         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83475         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83476         variable prefixes.
83477         * m4/fcntl-safer.m4: Remove.
83478         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83479         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83480         Invoke gl_PREREQ_FD_SAFER.
83481         (gl_PREREQ_FD_SAFER): New macro.
83482         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83483         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83484         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83485         Remove duplicate call to AC_LIBOBJ(readutmp).
83486         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83487
83488         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83489         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83490
83491 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83492
83493         * MODULES.html.sh (Misc): Add byteswap.
83494
83495 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83496
83497         * modules/getcwd (Depends-on): Add extensions.
83498         * modules/openat (Depends-on): Likewise.
83499
83500 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83501
83502         * modules/byteswap: New file.
83503
83504 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83505
83506         * m4/byteswap.m4: New file.
83507
83508 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83509
83510         * lib/byteswap_.h: New file.
83511
83512 2005-04-25  Karl Berry  <karl@gnu.org>
83513
83514         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83515
83516 2005-04-25  Albert Chin  <china@thewrittenword.com>
83517
83518         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83519         Toolkit C bug.
83520
83521 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83522
83523         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83524         (func_ln_if_changed): Remove forcibly for no error message
83525         in case file does not exist.
83526
83527 2005-04-19  Simon Josefsson  <jas@extundo.com>
83528
83529         * gnulib-tool (Options): Make --symlink mean --symbolic.
83530
83531 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83532
83533         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83534
83535 2005-04-16  Simon Josefsson  <jas@extundo.com>
83536
83537         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83538
83539 2005-04-15  Simon Josefsson  <jas@extundo.com>
83540
83541         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83542
83543 2005-04-15  Simon Josefsson  <jas@extundo.com>
83544
83545         * gnulib-tool: Rename --symlink to --symbolic.
83546
83547 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83548
83549         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83550         symbolic links to files instead of copying/moving.  Add --aux-dir,
83551         specifying directory relative --dir where auxiliary build tools
83552         are placed.
83553
83554 2005-04-14  Bruno Haible  <bruno@clisp.org>
83555
83556         * modules/allocsa (License): Change to LGPL.
83557         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83558
83559 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83560
83561         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83562         that "UTC +1 second" continues to work.  Problem reported
83563         by Dmitry V. Levin.
83564         (relunit_snumber): New rule.
83565         (relunit): Use it.
83566
83567 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83568
83569         * lib/getdate.y (universal_time_zone_table): New constant.
83570         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83571         universal_time_zone_table.
83572         (lookup_zone): Prefer universal_time_zone_table to
83573         local_time_zone_table, so that "GMT" time stamps are allowed in
83574         London during the summer.  Problem reported by Ian Abbott.
83575
83576 2005-04-12  Jim Meyering  <jim@meyering.net>
83577
83578         * lib/human.c (humblock): Set *options even when returning due to
83579         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83580         warning from gcc-4.
83581
83582 2005-04-09  Jim Meyering  <jim@meyering.net>
83583
83584         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83585         -Wuninitialized: initialize tm0.tm_year.
83586
83587 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83588
83589         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83590         count, since there's no maximum.  All uses changed.
83591         Add member dsts_seen.
83592         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83593         not being INT_MAX.
83594         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83595         Use pc_rels_seen to decide whther a date is absolute.
83596
83597         * lib/getdate.y (number): Don't overwrite year.
83598         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83599         check.
83600
83601 2005-04-02  Simon Josefsson  <jas@extundo.com>
83602
83603         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83604         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83605
83606 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83607
83608         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83609         where no absolute path name can be longer than PATH_MAX.
83610
83611 2005-03-27  Jim Meyering  <jim@meyering.net>
83612
83613         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83614
83615 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83616
83617         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83618         "one's complement" -> "ones' complement" in comment, as per Knuth.
83619         "value of type" -> "type or expression" in comment.
83620         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83621
83622 2005-03-26  Jim Meyering  <jim@meyering.net>
83623
83624         Comment nits.
83625         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83626         Correct typos: s/or/of/.
83627
83628 2005-03-26  Jim Meyering  <jim@meyering.net>
83629
83630         * modules/check-include-files: Move to ../ and rename to...
83631         * check-module: ...this.
83632
83633 2005-03-25  Jim Meyering  <jim@meyering.net>
83634
83635         * modules/xvasprintf (Files): Add xalloc.h.
83636
83637 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83638
83639         * modules/gettext (Files): config/config.rpath ->
83640         build-aux/config.rpath
83641         * modules/iconv (Files): Likewise.
83642         Problem reported by Oskar Liljeblad.
83643
83644 2005-03-23  Jim Meyering  <jim@meyering.net>
83645
83646         * modules/check-include-files: New script to check for
83647         missing dependencies, multiple includes, etc.
83648
83649         * modules/c-strtold (Depends-on): Add xalloc.
83650         * modules/c-strtod (Depends-on): Add xalloc.
83651         * modules/hash (Depends-on): Add xalloc.
83652         (Files): Remove lib/xalloc.h.
83653
83654         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83655         * modules/userspec (Files): Add lib/inttostr.h.
83656
83657 2005-03-23  Jim Meyering  <jim@meyering.net>
83658
83659         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83660
83661 2005-03-22  Jim Meyering  <jim@meyering.net>
83662
83663         * modules/stat-macros: New module.
83664         * modules/canonicalize, modules/euidaccess, modules/file-type,
83665         * modules/filemode, modules/lchown, modules/makepath,
83666         * modules/rmdir, modules/stat: Depend on new stat-macros module
83667         rather than listing lib/stat-macros.h manually.
83668         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83669
83670 2005-03-22  Jim Meyering  <jim@meyering.net>
83671
83672         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83673
83674 2005-03-22  Bruno Haible  <bruno@clisp.org>
83675
83676         * config/srclist.txt: Replace target directory 'config' with
83677         'build-aux'.
83678         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83679         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83680         ../build-aux/.
83681
83682 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83683
83684         * modules/chdir-long (Depends-on): Add mempcpy.
83685
83686         * modules/acl, modules/backupfile, modules/c-strtod,
83687         modules/c-strtold, modules/canon-host, modules/canonicalize,
83688         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83689         modules/exclude, modules/exitfail, modules/file-type,
83690         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83691         modules/getdate, modules/getline, modules/getpagesize,
83692         modules/getpass, modules/getugroups, modules/group-member,
83693         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83694         modules/inttostr, modules/long-options, modules/makepath,
83695         modules/md5, modules/memcasecmp, modules/memcoll,
83696         modules/modechange, modules/mountlist, modules/path-concat,
83697         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83698         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83699         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83700         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83701         modules/strftime, modules/strndup, modules/strverscmp,
83702         modules/timespec, modules/unlocked-io, modules/userspec,
83703         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83704         modules/yesno:
83705         Remove lib_SOURCES line from Makefile.am section, as this is now
83706         done automatically by the corresponding Autoconf macro.
83707
83708 2005-03-21  Jim Meyering  <jim@meyering.net>
83709
83710         Changes imported from coreutils.
83711
83712         * lib/cycle-check.c: Don't include xalloc.h.
83713
83714         * lib/path-concat.c: Don't include assert.h.
83715         (path_concat): Remove assertion that would have triggered
83716         for ABASE starting with more than one slash.
83717         Reported by Andreas Schwab.
83718
83719         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83720         properly when ABASE is an absolute file name.
83721         Correct the description of this function.
83722         Include <assert.h>.
83723         Add an assertion and a test driver.
83724         This fixes a bug introduced on 2004-07-02.
83725         Andreas Schwab reported the resulting failure of cp --parents:
83726         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83727
83728 2005-03-21  Jim Meyering  <jim@meyering.net>
83729
83730         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83731         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83732
83733 2005-03-21  Jim Meyering  <jim@meyering.net>
83734         and  Paul Eggert  <eggert@cs.ucla.edu>
83735
83736         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83737         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83738         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83739         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83740         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83741         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83742         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83743         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83744         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83745         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83746         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83747         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83748         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83749         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83750         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83751         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83752         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83753         for these modules.
83754
83755 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83756
83757         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83758         (which shouldn't happen), generate nothing instead of returning 0
83759         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83760
83761 2005-03-16  Bruno Haible  <bruno@clisp.org>
83762
83763         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83764         HAVE_LONGLONG_64BIT.
83765
83766 2005-03-16  Bruno Haible  <bruno@clisp.org>
83767
83768         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83769         HAVE_LONGLONG_64BIT.
83770
83771 2005-03-16  Bruno Haible  <bruno@clisp.org>
83772
83773         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83774         HAVE_LONGLONG_64BIT.
83775
83776 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83777
83778         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83779         reliably distinguish strftime failure from empty output on POSIX
83780         hosts.
83781
83782 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83783
83784         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83785         (iconv_string): Don't guess a size-zero buffer, as that might cause
83786         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83787         result would be 'too large', where 'too large' is (heuristically)
83788         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83789         overflow concerns.  This will prevent some unwanted malloc failures
83790         when the inputs are very large.
83791
83792 2005-03-15  Karl Berry  <karl@gnu.org>
83793
83794         * config/srclist.txt (config.rpath): from gettext.
83795         * config/config.rpath: update.
83796
83797 2005-03-15  Bruno Haible  <bruno@clisp.org>
83798
83799         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83800         to 'negate'.
83801
83802         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83803         variable.
83804
83805         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83806         results.
83807
83808 2005-03-14  Simon Josefsson  <jas@extundo.com>
83809
83810         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83811         <fx@gnu.org>.
83812
83813 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83814
83815         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83816         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83817         intprops.h.
83818         * lib/strtol.c: Likewise.
83819
83820 2005-03-14  Jim Meyering  <jim@meyering.net>
83821
83822         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83823         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83824         to be nonzero so that we (and caller) can detect the difference
83825         between a valid zero-length expansion and an error return, even
83826         when the underlying strftime fails before writing anything into
83827         that location.
83828
83829 2005-03-14  Bruno Haible  <bruno@clisp.org>
83830
83831         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83832         Update from GNU gettext 0.14.3.
83833
83834 2005-03-10  Jim Meyering  <jim@meyering.net>
83835
83836         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83837
83838 2005-03-10  Jim Meyering  <jim@meyering.net>
83839
83840         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83841         so that this module works on systems without fchdir.
83842
83843 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83844
83845         Factor int-properties macros into a single file, except for
83846         glibc-related files.
83847         * lib/intprops.h: New file.
83848         * lib/getloadavg.c: Include it instead of limits.h.
83849         (INT_STRLEN_BOUND): Remove.
83850         * lib/human.c: Include intprops.h.
83851         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83852         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83853         302/1000.
83854         * lib/inttostr.h: Include intprops.h instead of limits.h.
83855         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83856         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83857         for consistency with intprops.h.
83858         (time_t_is_integer, twos_complement_arithmetic): Use them.
83859         * lib/sig2str.h: Include <signal.h>, intprops.h.
83860         (INT_STRLEN_BOUND): Remove.
83861         * lib/strftime.c (TYPE_SIGNED): Remove.
83862         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83863         * lib/strtol.c: Adjust comments to match intprops.h.
83864         * lib/userspec.c: Include intprops.h.
83865         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83866         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83867         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83868         instead of rolling our own expressions.
83869         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83870
83871         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83872         instead of int.
83873         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83874         the right thing even if adding 1900 would overflow.  Similarly
83875         for tm_mon + 1 and tm_yday + 1.
83876         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83877         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83878         (DO_SIGNED_NUMBER): New macro.
83879         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83880
83881 2005-03-07  Bruno Haible  <bruno@clisp.org>
83882
83883         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83884
83885 2005-03-07  Bruno Haible  <bruno@clisp.org>
83886
83887         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83888
83889 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83890
83891         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83892         (func_import): Only replace files via --import when they have actually
83893         changed.
83894
83895 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83896
83897         * m4/mmap-anon.m4: New file.
83898         * m4/pagealign_alloc.m4: New file.
83899
83900 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83901             Bruno Haible  <bruno@clisp.org>
83902
83903         * modules/pagealign_alloc: New file.
83904         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83905
83906 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83907             Bruno Haible  <bruno@clisp.org>
83908
83909         * lib/pagealign_alloc.h: New file.
83910         * lib/pagealign_alloc.c: New file.
83911
83912 2005-03-03  Bruno Haible  <bruno@clisp.org>
83913
83914         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83915         Use an all-permissive copyright notice, recommended by RMS.
83916
83917 2005-03-02  Bruno Haible  <bruno@clisp.org>
83918
83919         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83920         of AIX, the replacement has to be done only after <string.h> is
83921         included, therefore not in config.h. stpncpy.h does the replacement,
83922         and stpncpy.c uses it.
83923
83924 2005-03-02  Bruno Haible  <bruno@clisp.org>
83925
83926         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83927         stpncpy.c uses it.
83928
83929 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83930
83931         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83932         The workaround isn't strictly needed for POSIX conformance, and
83933         it's too much of a pain to configure and maintain.  We'll ask
83934         people to fix their kernels instead.
83935         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83936         (NANOSLEEP_BUG_WORKAROUND): Remove.
83937         (xnanosleep): Remove the workaround.
83938
83939 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83940
83941         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83942         Reported by Derek Price.
83943         (Include): Add "timespec.h".
83944
83945         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83946
83947 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83948
83949         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83950         to detect nanosleep bug.
83951
83952 2005-03-01  Bruno Haible  <bruno@clisp.org>
83953
83954         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83955
83956 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83957
83958         * modules/gethrxtime: New file.
83959         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83960         (Depends-on): Add gethrxtime.
83961         (configure.ac): Add gl_XNANOSLEEP.
83962         (Makefile.am): Remove lib_SOURCES line.
83963
83964 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83965
83966         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83967         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83968
83969 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83970
83971         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83972         * lib/timespec.h (gettime): Return void, since it always
83973         succeeds now.  All uses changed.
83974         * lib/gettime.c (gettime): Likewise.
83975         [HAVE_NANOTIME]: Prefer nanotime.
83976         Assume gettimeofday succeeds, as POSIX requires.
83977         Assime time () succeeds, since other code already does.
83978         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83979         (timespec_subtract): Remove.
83980         (NANOSLEEP_BUG_WORKAROUND): New constant.
83981         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83982         things considerably.  Use it only on GNU/Linux hosts, since the
83983         workaround shouldn't be needed elsewhere.
83984
83985 2005-02-24  Bruno Haible  <bruno@clisp.org>
83986
83987         * modules/gettext (Files): Add m4/glibc2.m4.
83988
83989 2005-02-24  Bruno Haible  <bruno@clisp.org>
83990
83991         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83992         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83993         * m4/progtest.m4:
83994         Update from GNU gettext 0.14.2.
83995         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83996
83997 2005-02-24  Bruno Haible  <bruno@clisp.org>
83998
83999         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84000         * lib/config.charset: Update from GNU gettext 0.14.2.
84001
84002 2005-02-24  Bruno Haible  <bruno@clisp.org>
84003
84004         * lib/gettext.h: Update from GNU gettext 0.14.2.
84005
84006 2005-02-23  Simon Josefsson  <jas@extundo.com>
84007
84008         * m4/iconvme.m4: New file.
84009
84010 2005-02-23  Jim Meyering  <jim@meyering.net>
84011
84012         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84013         change.
84014         Thanks to Bruno Haible for catching it.
84015
84016 2005-02-22  Simon Josefsson  <jas@extundo.com>
84017
84018         * modules/iconvme: New file.
84019
84020         * MODULES.html.sh: Add iconvme.
84021
84022 2005-02-22  Simon Josefsson  <jas@extundo.com>
84023
84024         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84025
84026 2005-02-22  Simon Josefsson  <jas@extundo.com>
84027
84028         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84029
84030 2005-02-22  Jim Meyering  <jim@meyering.net>
84031
84032         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84033         s/ifndef/ifdef/.
84034
84035 2005-02-20  Neil Conway  <neilc@samurai.com>
84036
84037         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84038         returned by OSX/Darwin if the specified buffer is not large
84039         enough for the hostname.
84040
84041 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84042
84043         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84044         pass it to _help, otherwise the latter coredumps trying to
84045         dereference state.root_argp.
84046
84047 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84048
84049         * modules/chdir-long (Depends-on): Add memrchr.
84050         * modules/memrchr (Files): Add lib/memrchr.h.
84051         (Include): "memrchr.h".
84052
84053 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84054
84055         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84056
84057 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84058
84059         * lib/memrchr.h: New file.
84060         * lib/chdir-long.c: Include it.
84061         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84062         Don't bother including stddef.h.
84063
84064 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84065
84066         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84067         inclusion.
84068         Include <sys/types.h>, for dev_t.
84069         (ME_DUMMY, ME_REMOTE): Move from here....
84070         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84071         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84072         Dmitry V. Levin.
84073         Include mountlist.h first, to test the interface.
84074
84075 2005-01-29  Bruno Haible  <bruno@clisp.org>
84076
84077         * lib/progname.c (program_name): Initialize.
84078         Needed when linking statically on MacOS X.
84079
84080 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84081
84082         Sync from coreutils.
84083         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84084         (Depends-on): Add c-strtod.
84085         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84086
84087 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84088
84089         Sync from coreutils.
84090         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84091
84092         Remove files that are specific to coreutils.
84093         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84094
84095 2005-01-28  Bruno Haible  <bruno@clisp.org>
84096
84097         * modules/javacomp: New file.
84098         * MODULES.html.sh (Java): Add javacomp.
84099
84100 2005-01-28  Bruno Haible  <bruno@clisp.org>
84101
84102         * m4/javacomp.m4: New file, from GNU gettext.
84103
84104 2005-01-28  Bruno Haible  <bruno@clisp.org>
84105
84106         * lib/javacomp.sh.in: New file, from GNU gettext.
84107         * lib/javacomp.h: New file, from GNU gettext.
84108         * lib/javacomp.c: New file, from GNU gettext.
84109
84110 2005-01-26  Simon Josefsson  <jas@extundo.com>
84111
84112         * lib/gai_strerror.c: Use GPL in header.
84113
84114 2005-01-26  Bruno Haible  <bruno@clisp.org>
84115
84116         * modules/javaexec: New file.
84117         * MODULES.html.sh (Java): Add javaexec.
84118
84119 2005-01-26  Bruno Haible  <bruno@clisp.org>
84120
84121         * m4/javaexec.m4: New file, from GNU gettext.
84122
84123 2005-01-26  Bruno Haible  <bruno@clisp.org>
84124
84125         * lib/javaexec.sh.in: New file, from GNU gettext.
84126         * lib/javaexec.h: New file, from GNU gettext.
84127         * lib/javaexec.c: New file, from GNU gettext.
84128
84129 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84130
84131         * modules/lchown (Depends-on): Remove lchown.h
84132
84133 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84134
84135         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84136         must be defined if the header file was not found, in order
84137         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84138
84139 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84140
84141         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84142         initializers for struct pentry_state.
84143         (__argp_error): Check return value of __asprintf
84144         (__argp_failure): Translate error message
84145
84146         * lib/argp-parse.c: Removed braces around the expansion of N_()
84147
84148 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84149
84150         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84151         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84152         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84153         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84154         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84155         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84156         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84157         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84158         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84159         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84160         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84161         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84162         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84163         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84164         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84165         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84166         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84167         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84168         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84169         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84170         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84171         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84172         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84173         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84174         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84175         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84176         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84177         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84178         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84179         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84180         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84181         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84182         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84183         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84184         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84185         Use an all-permissive copyright notice, recommended by RMS.
84186
84187 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84188
84189         * modules/chdir-long (Depends-on): Remove mempcpy.
84190
84191 2005-01-21  Jim Meyering  <jim@meyering.net>
84192
84193         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84194         same value as for Solaris 9.
84195
84196         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84197         component length.  This included changing the parameter to be
84198         of type `char *' rather than `char const *'.
84199         * lib/chdir-long.h (chdir_long): Update prototype.
84200
84201         * lib/openat.c (fdopendir, fstatat): New functions.
84202         * lib/openat.h: Include headers required for use of DIR and struct
84203         stat.
84204         [AT_SYMLINK_NOFOLLOW]: Define.
84205         (fdopendir, fstatat): Add prototypes.
84206
84207 2005-01-21  Bruno Haible  <bruno@clisp.org>
84208
84209         * modules/classpath: New file.
84210         * MODULES.html.sh (Java): Add classpath.
84211
84212 2005-01-21  Bruno Haible  <bruno@clisp.org>
84213
84214         * lib/classpath.h: New file, from GNU gettext.
84215         * lib/classpath.c: New file, from GNU gettext.
84216
84217 2005-01-20  Simon Josefsson  <jas@extundo.com>
84218
84219         * modules/version-etc-fsf: New file.
84220
84221 2005-01-20  Simon Josefsson  <jas@extundo.com>
84222
84223         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84224         * lib/version-etc.c: Remove version_etc_copyright.
84225         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84226         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84227
84228 2005-01-20  Simon Josefsson  <jas@extundo.com>
84229
84230         * lib/base64.h (isbase64): Add.
84231
84232         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84233         using a unsigned prototype, don't inline.
84234         (base64_decode): Use it.
84235
84236 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84237
84238         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84239         it.
84240
84241 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84242
84243         * lib/save-cwd.c (save_cwd): Remove code to support the case
84244         where fchdir is missing or flaky.
84245
84246 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84247
84248         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84249
84250 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84251
84252         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84253         AC_LIBSOURCES now does this.
84254         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84255         with new ullong_max module.
84256
84257 2005-01-19  Bruno Haible  <bruno@clisp.org>
84258
84259         * modules/sh-quote: New file.
84260         * MODULES.html.sh (Executing programs): Add sh-quote.
84261
84262 2005-01-19  Bruno Haible  <bruno@clisp.org>
84263
84264         * lib/sh-quote.h: New file, from GNU gettext.
84265         * lib/sh-quote.c: New file, from GNU gettext.
84266
84267 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84268
84269         Merge from coreutils.
84270         * m4/ullong_max.m4: New file.
84271         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84272         (gl_MACROS): Assume localeconv exists.
84273
84274 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84275
84276         Merge changes from coreutils, as described below in several
84277         changelogs dated today.
84278
84279         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84280         (O_DIRECTORY): Remove; not needed here, since "." must be
84281         a directory.  All uses removed.
84282         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84283         universal on Suns, and we also need to test for IRIX.
84284         Revamp code to use 'if' rather than '#if'.
84285         Avoid unnecessary comparison of cwd->desc to 0.
84286
84287         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84288         for known valid error numbers rather than observed invalid ones.
84289
84290 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84291
84292         * modules/ullong_max: New file.
84293
84294         * modules/chdir-long, modules/openat: New files.
84295         * modules/save-cwd (Depends-on): Depend on chdir-long.
84296         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84297
84298 2005-01-18  Jim Meyering  <jim@meyering.net>
84299
84300         Merge from coreutils.
84301         * m4/chdir-long.m4, m4/openat.m4: New files.
84302         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84303         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84304         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84305         is sane and DOES follow symlinks.  Besides, testing 20 different
84306         systems found no broken chown implementations.
84307         Prompted by a change in rsync's copy of this macro.
84308         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84309
84310         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84311
84312         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84313         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84314         NULL-means-set-to-current-time semantics.
84315         Remove temporary file immediately, rather than waiting
84316         for configure's at-exit trap code to do it.
84317
84318 2005-01-18  Jim Meyering  <jim@meyering.net>
84319
84320         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84321
84322         * lib/utimens.c (futimens): Account for the fact that futimes
84323         can also fail with errno == ENOSYS or errno == ENOENT.
84324         Patch from Dmitry V. Levin.
84325
84326         Change the name of the robust chdir function from chdir to chdir_long.
84327         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84328         (restore_cwd): Use chdir_long, not chdir.
84329         * lib/chdir-long.c: Renamed from chdir.c.
84330         * lib/chdir-long.h: Renamed from chdir.h.
84331         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84332         Hurd.
84333
84334 2005-01-18  Bruno Haible  <bruno@clisp.org>
84335
84336         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84337         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84338         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84339         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84340         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84341         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84342         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84343         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84344         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84345         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84346         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84347         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84348         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84349         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84350         Use an all-permissive copyright notice, recommended by RMS.
84351
84352 2005-01-18  Bob Proulx  <bob@proulx.com>
84353
84354         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84355         simplify offsetof() macro construct to avoid compile failure with
84356         native HP-UX 11.0 ANSI C compiler.
84357
84358 2005-01-17  Bruno Haible  <bruno@clisp.org>
84359
84360         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84361         redundant because stpncpy.m4 takes care of it.
84362
84363 2005-01-17  Bruno Haible  <bruno@clisp.org>
84364
84365         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84366
84367 2005-01-17  Bruno Haible  <bruno@clisp.org>
84368
84369         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84370         used.
84371
84372 2005-01-17  Bruno Haible  <bruno@clisp.org>
84373
84374         * lib/fwriteerror.h (fwriteerror): Change specification to include
84375         fclose.
84376         * lib/fwriteerror.c: Include <stdbool.h>.
84377         (fwriteerror): At the end, close the file stream. Record whether
84378         stdout was already closed.
84379
84380 2005-01-17  Bruno Haible  <bruno@clisp.org>
84381
84382         * lib/execute.c (environ): Declare if needed.
84383         * lib/pipe.c (environ): Likewise.
84384         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84385
84386 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84387
84388         * modules/argp: Depend on vsnprintf
84389
84390 2005-01-10  Jim Meyering  <jim@meyering.net>
84391
84392         * modules/closeout (Depends-on): Add atexit.
84393
84394 2005-01-06  Bruno Haible  <bruno@clisp.org>
84395
84396         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84397
84398 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84399
84400         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84401         definitions to be after all include files, to avoid collisions.
84402         Problem reported by Bob Proulx.
84403
84404 2005-01-04  Jim Meyering  <jim@meyering.net>
84405
84406         Changes imported from coreutils.
84407         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84408         as the mkstemp template, use a temporary directory and an
84409         8.3-friendly template to avoid trouble on systems like DJGPP.
84410         Reported by Juan M. Guerrero via Stepan Kasal.
84411         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84412         close. Remove the temporary directory right away, rather than waiting
84413         for configure's at-exit trap code to do it.
84414         Suggestion from Stepan Kasal.
84415
84416 2005-01-01  Simon Josefsson  <jas@extundo.com>
84417
84418         * gnulib-tool: Print #include directives when --import'ing.
84419
84420 2004-12-28  Simon Josefsson  <jas@extundo.com>
84421
84422         * tests/test-base64.c: Include required header files.  Remove
84423         unused variables.
84424
84425 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84426
84427         * modules/error (Depends-on): Remove gettext.
84428
84429 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84430
84431         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84432         not needed.  This removes a dependency on the gettext module.
84433         [defined _LIBC]: Do not include <libintl.h>; not needed.
84434
84435 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84436
84437         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84438         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84439
84440 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84441
84442         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84443         HAVE_DECL_STRTOLD.
84444
84445 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         * modules/getdate (Depends-on): Remove alloca-opt.
84448
84449 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84450
84451         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84452
84453 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84454
84455         * lib/argp-parse.c: Include <stddef.h>.
84456         (alignof, alignto): New macros.
84457         (parser_init): Don't assume that void * is aligned sufficiently
84458         for struct option.
84459
84460         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84461         need to extend the stack.
84462         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84463         large.
84464
84465 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84466
84467         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84468
84469 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84470
84471         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84472         (2004-10-24) change.  Apparently this was a false alarm.
84473
84474         * modules/getdate: Depend on alloca-opt, not alloca.
84475
84476 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84477
84478         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84479         Remove now-obsolete comment about AIX.
84480         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84481         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84482         (YYMAXDEPTH): New macro.
84483
84484 2004-12-18  Simon Josefsson  <jas@extundo.com>
84485
84486         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84487
84488 2004-12-18  Bruno Haible  <bruno@clisp.org>
84489
84490         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84491
84492 2004-12-18  Bruno Haible  <bruno@clisp.org>
84493
84494         * lib/fatal-signal.c (fatal_signals): Make non-const.
84495         (init_fatal_signals): New function.
84496         (uninstall_handlers, install_handlers): Ignore signals that were set to
84497         SIG_IGN.
84498         (at_fatal_signal): Call init_fatal_signals.
84499         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84500         SIG_IGN.
84501         Reported by Paul Eggert.
84502
84503 2004-12-18  Bruno Haible  <bruno@clisp.org>
84504
84505         * doc/alloca.texi: New file.
84506         * doc/alloca-opt.texi: New file.
84507
84508 2004-12-17  Jim Meyering  <jim@meyering.net>
84509
84510         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84511         Otherwise, install-sh could exit with improper exit status when
84512         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84513
84514 2004-12-16  Simon Josefsson  <jas@extundo.com>
84515
84516         * tests/test-base64.c: Add license.
84517
84518 2004-12-15  Stepan Kasal  <address@hidden>
84519
84520         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84521
84522 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84523
84524         * modules/getcwd (Files): Add m4/d-ino.m4.
84525         Suggested by Mark D. Baushke.
84526
84527 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         * lib/getdate.y (textint): New member "negative".
84530         (time_zone_hhmm): New function.
84531         Expect 14 shift-reduce conflicts, not 13.
84532         (o_colon_minutes): New rule.
84533         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84534         (yylex): Set the "negative" member of signed numbers.
84535
84536 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84537
84538         * doc/getdate.texi (Time of day items, Time zone items):
84539         Describe new formats +00:00, UTC+00:00.
84540
84541 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84542
84543         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84544         spurious "-l"s.  Problem reported by Stepan Kasal.
84545
84546 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84547
84548         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84549         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84550
84551 2004-12-04  Simon Josefsson  <jas@extundo.com>
84552
84553         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84554         Vandoorselaere <yoann@prelude-ids.org>.
84555
84556 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84557
84558         Changes imported from coreutils.
84559         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84560         exist.
84561         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84562
84563 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84564
84565         Changes imported from coreutils.
84566         * lib/hard-locale.c: Assume <locale.h> exists.
84567         Include "strdup.h".
84568         (GLIBC_VERSION): New macro.
84569         (hard_locale): Assume setlocale exists.
84570         Rewrite to avoid #ifdef.
84571         Use strdup rather than malloc + strcpy.
84572         * lib/human.c: Assume <locale.h> exists.
84573         (human_readable): Assume localeconv exists.
84574
84575 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         * modules/hard-locale (Depends-on): Add strdup.
84578
84579 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84580
84581         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84582         convert T2, not T.  (Imported from libc.)
84583
84584 2004-11-30  Simon Josefsson  <jas@extundo.com>
84585
84586         * modules/restrict (License): Change to LGPL.
84587
84588 2004-11-30  Simon Josefsson  <jas@extundo.com>
84589
84590         * m4/restrict.m4: Add copyright and copying conditions.
84591
84592 2004-11-30  Simon Josefsson  <jas@extundo.com>
84593
84594         * m4/base64.m4: New file.
84595
84596 2004-11-30  Simon Josefsson  <jas@extundo.com>
84597
84598         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84599         base64.
84600
84601         * tests/test-base64.c: New file.
84602
84603         * modules/base64: New file.
84604
84605 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84606
84607         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84608         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84609
84610         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84611
84612 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84613
84614         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84615         (__getcwd.c): Don't restore errno; glibc doesn't.
84616         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84617         first, falling back to our code only if its results look suspicious.
84618         Ensure that the resulting buffer is only as large as necessary.
84619
84620         * lib/readutmp.c: Include readutmp.h first.
84621         Include <errno.h>, since readutmp.h no longer does that.
84622         * lib/readutmp.h: Don't include <errno.h>,
84623         <sys/param.h>, <time.h>; not needed to establish interface.
84624         (errno): Remove decl.
84625         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84626         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84627         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84628
84629 2004-11-28  Simon Josefsson  <jas@extundo.com>
84630
84631         * lib/base64.h, base64.c: New file.
84632
84633 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84634
84635         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84636
84637 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84638
84639         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84640         (Depends-on): Remove pathmax, same.  Add mempcpy.
84641         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84642         (Makefile.am): Append getcwd.h to lib_SOURCES.
84643         (Include): Add getcwd.h.
84644         (Maintainer): Change from Jim Meyering to "all, glibc",
84645         since getdate now uses intended-for-glibc code.
84646         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84647         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84648
84649 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84650
84651         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84652         HP's ANSI C compiler.
84653         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84654         Declaring int functions causes warnings on some modern systems and
84655         shouldn't be needed to compile on ancient ones.
84656         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84657         defined.
84658
84659         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84660         with the following changes.
84661         (__set_errno): Parenthesize properly.
84662         Include <stdbool.h>.
84663         (MIN, MAX, MATCHING_INO): New macros.
84664         (__getcwd): Define with prototype, not K&R form.
84665         Use heuristics to allocate default buffer on stack if possible.
84666         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84667         behavior, and to avoid the PATH_MAX limit when computing
84668         ../../../../...
84669         Use MATCHING_INO to compare inode number to file.
84670         Check for arithmetic overflow in size calculations.
84671         Fix bug in reallocation of dot array that caused getcwd to fail
84672         on directories nested deeper than 75.
84673         Be more careful about saving errno on error.
84674         Do not use realloc; use only free+malloc, as this is a bit
84675         more flexible and avoids a needless copy operation.
84676         Do not inspect st_dev and st_ino for symbolic links; POSIX
84677         doesn't specify the latter.
84678         Check for closedir errors.
84679         Avoid needless casts.
84680         Use "#ifdef weak_alias" around weak_alias, to be like other
84681         glibc code.
84682         The following changes to getcwd.c have effect only when used in
84683         gnulib; they have no effect inside glibc proper.
84684         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84685         as alloca isn't used.
84686         (alloca, __alloca): Likewise.
84687         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84688         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84689         unconditionally, as gnulib assumes C89 or better.
84690         Do not include <sys/param.h>.
84691         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84692         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84693         better.
84694         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84695         Include <dirent.h> in a way that is compatible with modern Autoconf.
84696         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84697         New macros, if not already defined.
84698         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84699         Use "_LIBC", not "defined _LIBC", for consistency.
84700         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84701         a mempcpy module.
84702         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84703         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84704         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84705         credit only to Jim Meyering and adjust the copyright dates.
84706         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84707         <stdlib.h>, <unistd.h>, "pathmax.h".
84708         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84709         (INITIAL_BUFFER_SIZE): Remove.
84710         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84711
84712 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84713
84714         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84715         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84716         Use the _ONCE methods, for efficiency.
84717         Check for fcntl.h.  In test program, include <errno.h>
84718         and <fcntl.h> if available.  Remove old K&R cruft from
84719         test program.  Check for common errors in GNU/Linux,
84720         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84721         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84722         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84723         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84724         name accordingly.
84725         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84726         accommodate new getcwd.c.
84727         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84728         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84729         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84730         that's all we need now.
84731
84732 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84733
84734         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84735         argp-parse.c depends on getopt internals, that means we should
84736         always use our getopt, to be on the safe side.
84737         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84738         order not to spoil the result of an eventual previous invocation
84739         of gl_GETOPT_SUBSTITUTE.
84740
84741 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84742
84743         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84744         redefinition warnings. To avoid them, include the defines
84745         in `#if !defined __need_getopt ... #endif'. The only place
84746         where __getopt_argv_const is used is in definitions
84747         of getopt_long and getopt_long_only below, which are as well
84748         protected by `#ifndef __need_getopt'.
84749         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84750         __need_getopt after including <stdio.h> and <unistd.h> These
84751         headers might have defined it.
84752
84753 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84754
84755         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84756
84757 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84758
84759         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84760         (futimens): New function, which uses futimes if available.
84761         (futimens, utimens): Support timespec==NULL, with same semantics
84762         as utime and utimens.
84763         * lib/utimens.h (futimens): New decl.
84764
84765 2004-11-23  Jim Meyering  <jim@meyering.net>
84766
84767         * lib/getopt_.h: Remove trailing blanks.
84768
84769 2004-11-23  Jim Meyering  <jim@meyering.net>
84770
84771         * lib/__fpending.c: Add comment.
84772
84773 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84774
84775         * modules/canonicalize (Depends-on): Add xreadlink.
84776         Problem reported by James Youngman.
84777
84778 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84779
84780         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84781         New macros.
84782         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84783         optopt): Use them instead of invoking ## directly; otherwise, the
84784         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84785
84786 2004-11-19  Bruno Haible  <bruno@clisp.org>
84787
84788         * lib/strtok_r.c: Move comments from here...
84789         * lib/strtok_r.h: ... to here.
84790
84791 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84792
84793         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84794         implementations that mishandle size_t overflow.
84795
84796 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84797
84798         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84799         might fail.  Problem reported by Yoann Vandoorselaere.
84800         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84801         implementations that mishandle size_t overflow.
84802
84803 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84804
84805         * modules/canon-host (Depends-on): Add strdup.
84806
84807 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84808
84809         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84810
84811 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84812
84813         * lib/canon-host.c: Include "strdup.h".
84814         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84815         Use strdup instead of malloc/strcpy to duplicate strings.
84816
84817         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84818         (human_space_before_unit): New constant.
84819         * lib/human.c (human_readable): Support it.
84820
84821         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84822         (xgetcwd): Set errno correctly when failing.
84823         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84824         the failure is actually due to a PATH_MAX problem.
84825
84826         Further getopt changes to make it more likely that glibc will
84827         buy the changes back.
84828         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84829         (getopt): Use it, so to preserve glibc semantic
84830         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84831         when compiling for libc.
84832         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84833         (getopt_long, getopt_long_only): Use it.
84834
84835         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84836         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84837         (getopt): Argv is now char * const *, as per standard.
84838         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84839         not char *__getopt_argv_const *.
84840         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84841         _getopt_long_only_r): Likewise.
84842         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84843         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84844         _getopt_long_r, _getopt_long_only_r): Likewise.
84845         * lib/getopt_.h (__getopt_argv_const): Remove.
84846         (getopt): Argv is now char * const *, as per standard.
84847
84848         * lib/getdate.y (tORDINAL): New token.
84849         (day, relunit): Allow it for relative times.
84850         (relative_time_table): Use tORDINAL for ordinals.
84851
84852 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84853
84854         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84855         Document that "second" isn't allowed as an ordinal number.
84856
84857 2004-11-16  Jim Meyering  <jim@meyering.net>
84858
84859         * modules/closeout (Depends-on): Add fpending.
84860
84861 2004-11-15  Jim Meyering  <jim@meyering.net>
84862
84863         * lib/closeout.c: Include "__fpending.h" once again.
84864         Include <stdbool.h>.
84865         (close_stdout): Don't fail just because stdout was closed initially,
84866         since some programs don't write to stdout in the normal course of
84867         operation (other than --version and --help), and we don't want this
84868         function to make e.g. `touch file >&-' fail.
84869         But do fail if it was closed and someone has tried to write to it.
84870         E.g., `printf foo >&-' must fail.
84871
84872 2004-11-13  Jim Meyering  <jim@meyering.net>
84873
84874         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84875
84876 2004-11-12  Simon Josefsson  <jas@extundo.com>
84877
84878         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84879         small doc fix is still pending.
84880
84881 2004-11-11  Simon Josefsson  <jas@extundo.com>
84882
84883         * modules/strtok_r: New file.
84884
84885         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84886         strtok_r.
84887
84888 2004-11-11  Simon Josefsson  <jas@extundo.com>
84889
84890         * m4/strtok_r.m4: New file.
84891
84892         * m4/getopt.m4: Replace opterr.
84893
84894 2004-11-11  Simon Josefsson  <jas@extundo.com>
84895
84896         * lib/strtok_r.h, strtok_r.c: New file.
84897
84898 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84899
84900         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84901         of replacing opterr, getopt, etc.  This should handle the
84902         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84903
84904 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84905
84906         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84907         we can stop lying to compilers about the constness of argv when we
84908         are compiled outside glibc.
84909         (getopt, getopt_long, getopt_long_only): Use it.
84910         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84911         _getopt_internal, getopt): Likewise.
84912         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84913         _getopt_long_only_r): Likewise.
84914         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84915         _getopt_long_r, _getopt_long_only_r): Likewise.
84916
84917         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84918         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84919         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84920         the other external symbols.
84921         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84922         declaration, since the above renaming now works around collisions.
84923
84924 2004-11-11  Jim Meyering  <jim@meyering.net>
84925
84926         * lib/linebreak.c: Remove trailing blanks.
84927         * lib/alloca_.h: Likewise.
84928         * lib/acosl.c: Likewise.
84929         * lib/euidaccess.c: Likewise.
84930         * lib/allocsa.h: Likewise.
84931
84932 2004-11-10  Simon Josefsson  <jas@extundo.com>
84933
84934         * m4/getaddrinfo.m4: New file.
84935
84936 2004-11-10  Simon Josefsson  <jas@extundo.com>
84937
84938         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84939
84940 2004-11-10  Simon Josefsson  <jas@extundo.com>
84941
84942         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84943         getaddrinfo.
84944
84945         * modules/getaddrinfo: New file.
84946
84947 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84950
84951 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84952
84953         * lib/mktime.c (SHR): New macro, which is a portable
84954         substitute for >> that should work even on Crays.
84955         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84956         Problem reported by Mark D. Baushke in
84957         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84958         * lib/getdate.y (SHR): Likewise.
84959         (tm_diff): Use it.
84960         * lib/strftime.c (SHR): Likewise.
84961         (tm_diff): Use it.
84962         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84963         quote_these_too, so that right shifts are well defined.  All uses
84964         changed.
84965
84966 2004-11-10  Jim Meyering  <jim@meyering.net>
84967
84968         Ensure that no close failure goes unreported.
84969         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84970         return early when it seems there's nothing to flush.
84971         Don't include __fpending.h.
84972
84973 2004-11-10  Jim Meyering  <jim@meyering.net>
84974
84975         * modules/closeout (Depends-on): Remove fpending.
84976
84977 2004-11-10  Jim Meyering  <jim@meyering.net>
84978
84979         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84980
84981 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84982
84983         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84984         gl_FUNC_STRFTIME.
84985         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84986         and AC_REQUIRE when possible, to avoid duplicate checks.
84987         Check for <wchar.h>.
84988
84989 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84990
84991         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84992
84993 2004-11-09  Bruno Haible  <bruno@clisp.org>
84994
84995         * m4/sockpfaf.m4: New file.
84996
84997 2004-11-05  Bruno Haible  <bruno@clisp.org>
84998
84999         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85000         Reported by Mark D. Baushke <mdb@cvshome.org>.
85001
85002 2004-11-04  Bruno Haible  <bruno@clisp.org>
85003
85004         2004-09-11  Bruno Haible  <bruno@clisp.org>
85005                 * allocsa.valgrind: New file.
85006         2004-02-06  Bruno Haible  <bruno@clisp.org>
85007                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85008                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85009                 Reported by Christopher Seip <chris.seip@hp.com>.
85010
85011 2004-11-04  Bruno Haible  <bruno@clisp.org>
85012
85013         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85014         (Makefile.am): Distribute it.
85015
85016 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85017
85018         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85019         with errno == ERANGE if the buffer is too small.
85020         Problem reported by Mark D. Baushke.
85021
85022 2004-11-03  Albert Chin  <china@thewrittenword.com>
85023             Paul Eggert  <eggert@cs.ucla.edu>
85024
85025         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85026         equivalent, substitute $ac_type for equivalent type rather than
85027         blindly using uint32_t *always* which won't work if uint32_t is not
85028         available.  Define _UINT32_T to work around typedef of uint32_t if
85029         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85030         2.5.1.
85031
85032 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85033
85034         * m4/jm-macros.m4: Sync from coreutils.
85035         (gl_MACROS): Check for mbrlen, for pathchk.
85036         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85037
85038 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85039
85040         * lib/xreadlink.c (MAXSIZE): New macro.
85041         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85042         size does not exceed MAXSIZE.  Avoid cast.
85043         As suggested by Mark D. Baushke in
85044         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85045         if readlink fails with buffer size just under MAXSIZE, try again
85046         with MAXSIZE.
85047
85048 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85049
85050         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85051
85052 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85053         and  Paul Eggert  <eggert@cs.ucla.edu>
85054
85055         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85056         (get_date): Overparenthesize to avoid GCC warning.
85057
85058 2004-11-02  Bruno Haible  <bruno@clisp.org>
85059
85060         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85061         returns void.
85062
85063 2004-11-02  Bruno Haible  <bruno@clisp.org>
85064
85065         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85066         function returns void.
85067
85068 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85069
85070         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85071         fflush_unlocked, flockfile, funlockfile, funlockfile,
85072         fputs_unlocked, putc_unlocked.
85073
85074 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85075
85076         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85077         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85078         already declared.
85079
85080 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85081
85082         * modules/getdate (Files): Add doc/getdate.texi.
85083         (Depends-on): Add setenv, xalloc.
85084
85085 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85086
85087         * lib/getdate.y: Add support for TZ="foo" within a date string.
85088         Fix some bugs near time_t boundaries.  Reject dates with
85089         out-of-range components, e.g., "Sept 31".
85090         Include <stdlib.h>, "setenv.h", "xalloc.h".
85091         (ISDIGIT_LOCALE): Remove; unused.
85092         Note that the TZ and time functions used here are not reentrant.
85093         (mktime_ok, get_tz): New functions.
85094         (TZBUFSIZE): New constant.
85095         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85096         This requires that we sometimes generate our own TZ="XXX..." setting.
85097
85098 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85099
85100         * doc/getdate.texi: New file, from coreutils with modifications for
85101         the new TZ parsing.
85102
85103 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85104
85105         * lib/mktime.c (not_equal_tm): Remove redundant check.
85106
85107 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85108
85109         * modules/regex (lib_SOURCES): Add regex.c.
85110         Reported by James Youngman in
85111         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85112
85113 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85114
85115         * lib/getdate.y: Use Bison 1.875 features, and some minor
85116         code cleanups.  This change does not affect semantics.
85117         Don't include <stdlib.h>; no longer needed.
85118         Don't include unlocked-io.h; only the "#if TEST" code uses
85119         stdio, and performance isn't crucial there.
85120         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85121         Bison 1.875 features as described below.
85122         All uses of "PC." replaced by "pc->".
85123         (YYSTYPE): Add a forward declaration.
85124         (yylex, yyerror): Use full prototypes in forward decls.
85125         Use "%pure-parser" rather than obsolescent "%pure_parser".
85126         Use %parse-param and %lex-param instead of obsolescent
85127         YYPARSE_PARAM and YYLEX_PARAM.
85128         (meridian_table, month_and_day_table, time_units_table,
85129         relative_time_table, time_zone_table, military_table,
85130         lookup_zone, lookup_word, get_date):
85131         Use NULL instead of 0 where appropriate.
85132         (to_hour): Avoid abort (), to avoid a dependency on
85133         stdlib.h.
85134         (yyerror, yylex): Now accepts parser_control * arg.
85135         (main) [TEST]: Use '\0' rather than 0 for char.
85136
85137 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85138
85139         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85140
85141 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85142
85143         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85144         It's now the caller's responsibility to handle the case where
85145         !HAVE_GETPAGESIZE && !defined getpagesize.
85146
85147         * lib/mktime.c (leapyear): Arg is long int, not int.
85148
85149 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85150
85151         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85152
85153 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85154
85155         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85156         missing.  Problem reported by James Youngman.
85157
85158 2004-10-16  Simon Josefsson  <jas@extundo.com>
85159
85160         * gnulib-tool: Fix comments.  Fix parse problem.
85161         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85162
85163 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85164
85165         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85166         implementation of getopt_long.  Problem reported by Alexander Taler in:
85167         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85168
85169 2004-10-15  Bruno Haible  <bruno@clisp.org>
85170
85171         * gnulib-tool: Untabify. Initialize supplied_libname.
85172         (func_usage): More homogenous output.
85173         (func_modules_transitive_closure, func_modules_to_filelist,
85174         func_emit_lib_Makefile_am): New functions.
85175         (func_import): New function, extracted from big case statement. Use
85176         func_get_license, func_modules_transitive_closure,
85177         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85178         opt_lgpl. Don't use test -a, as it's not portable.
85179         (func_create_testdir): Use func_modules_transitive_closure,
85180         func_modules_to_filelist, func_emit_lib_Makefile_am.
85181
85182 2004-10-15  Bruno Haible  <bruno@clisp.org>
85183
85184         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85185
85186 2004-10-15  Bruno Haible  <bruno@clisp.org>
85187
85188         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85189         the portions belonging to each module.
85190         Suggested by Derek Robert Price <derek@ximbiot.com>.
85191
85192 2004-10-12  Simon Josefsson  <jas@extundo.com>
85193
85194         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85195         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85196         to real functions.
85197
85198 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85199
85200         * modules/vsnprintf: New file.
85201
85202 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85203
85204         * m4/vsnprintf.m4: New file.
85205
85206 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85207
85208         * lib/vsnprintf.h: New file.
85209         * lib/vsnprintf.c: New file.
85210
85211 2004-10-11  Bruno Haible  <bruno@clisp.org>
85212
85213         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85214         vsnprintf.
85215
85216 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85217
85218         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85219
85220 2004-10-07  Bruno Haible  <bruno@clisp.org>
85221
85222         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85223         fits into the provided buffer.
85224
85225 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85226
85227         * lib/diacrit.c, diacrit.h: Add GPL notice.
85228
85229         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85230         notice.
85231         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85232         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85233         This avoids a potential constant-folding bug.
85234
85235 2004-10-05  Bruno Haible  <bruno@clisp.org>
85236
85237         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85238         for the declaration of strsep.
85239
85240 2004-10-05  Bruno Haible  <bruno@clisp.org>
85241
85242         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85243
85244 2004-10-04  Simon Josefsson  <jas@extundo.com>
85245
85246         * modules/memmem: New file.
85247         * tests/test-memmem.c: New file.
85248         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85249
85250 2004-10-04  Simon Josefsson  <jas@extundo.com>
85251
85252         * m4/memmem.m4: New file.
85253
85254 2004-10-04  Simon Josefsson  <jas@extundo.com>
85255
85256         * lib/memmem.h: New file.
85257         * lib/memmem.c: New file, taken from glibc.
85258
85259 2004-10-04  Simon Josefsson  <jas@extundo.com>
85260
85261         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85262         '#ifdef USE_UNLOCKED_IO'.
85263
85264 2004-10-04  Simon Josefsson  <jas@extundo.com>
85265
85266         * config/srclist.txt: Add memmem from glibc.
85267
85268 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85269
85270         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85271
85272         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85273         modules/exclude, modules/getdate, modules/getline,
85274         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85275         modules/getusershell, modules/linebuffer, modules/md5,
85276         modules/mountlist, modules/posixtm, modules/readtokens,
85277         modules/readutmp, modules/regex, modules/sha1,
85278         modules/version-etc, modules/yesno:
85279         Remove dependency on unlocked-io.
85280
85281 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85282
85283         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85284
85285         * m4/unlocked-io.m4: Add copyright notice.
85286         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85287
85288 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85289
85290         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85291         * lib/xmalloc.c (xmemdup): Likewise.
85292         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85293         XFREE): Remove these long-obsolescent macros.
85294         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85295         * lib/xstrdup.c: Remove.
85296
85297         * lib/regex.c (re_comp): Cast gettext return value to char *,
85298         Problem reported by Martin Neitzel via Mark D. Baushke.
85299
85300 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85301
85302         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85303         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85304         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85305         regex.c, sha1.c, version-etc.c, yesno.c:
85306         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85307         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85308         the includer's responsibility.
85309
85310         Sync from coreutils.
85311
85312         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85313         points to the start of a string, as the C Standard says the
85314         resulting behavior is undefined.
85315
85316         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85317         simple -> simple_backups, numbered_existing ->
85318         numbered_existing_backups, numbered -> numbered_backups
85319         to avoid shadowing problems.  All uses changed.
85320         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85321         * lib/backupfile.c (check_extension, numbered_backup):
85322         Rename locals to avoid shadowing 'basename'.
85323         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85324         once.
85325
85326         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85327         * lib/.cvsignore: Add getopt.h.
85328
85329 2004-10-04  Bruno Haible  <bruno@clisp.org>
85330
85331         * modules/README: New file.
85332         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85333         not a module.
85334
85335 2004-10-02  Jim Meyering  <jim@meyering.net>
85336
85337         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85338
85339 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85340
85341         * modules/strsep: New file.
85342
85343 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85344
85345         * m4/strsep.m4: New file.
85346
85347 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85348
85349         * lib/strsep.h: New file.
85350         * lib/strsep.c: New file.
85351
85352 2004-10-01  Simon Josefsson  <jas@extundo.com>
85353
85354         * lib/snprintf.c (snprintf): Handle size==0.
85355
85356 2004-10-01  Simon Josefsson  <jas@extundo.com>
85357             Bruno Haible  <bruno@clisp.org>
85358
85359         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85360         (snprintf): Declare 'args'.
85361
85362 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85363
85364         * lib/snprintf.c: Remove comments as to why each header is needed.
85365
85366 2004-10-01  Bruno Haible  <bruno@clisp.org>
85367
85368         * MODULES.html.sh: Add strsep.
85369
85370 2004-09-30  Simon Josefsson  <jas@extundo.com>
85371
85372         * modules/snprintf: New file.
85373
85374 2004-09-30  Simon Josefsson  <jas@extundo.com>
85375
85376         * m4/snprintf.m4: New file.
85377
85378 2004-09-30  Simon Josefsson  <jas@extundo.com>
85379
85380         * lib/snprintf.h, lib/snprintf.c: New files.
85381
85382 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85383
85384         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85385         (hol_entry_help): Never translate an empty string.
85386         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85387         * lib/argp.h (OPTION_NO_TRANS): New option.
85388
85389 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85390
85391         * modules/argp (Maintainer): Replace Simon Josefsson
85392         by Sergey Poznyakoff.
85393
85394 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85395
85396         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85397         changes merged back into glibc.
85398
85399 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85400
85401         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85402
85403 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85404
85405         * lib/xvasprintf.c: Include xalloc.h.
85406         (xvasprintf): Use xalloc_die, not xmalloc_die.
85407
85408 2004-09-29  Bruno Haible  <bruno@clisp.org>
85409
85410         * modules/alloca-opt: New file, derived from modules/alloca.
85411         * modules/allocsa: Depend on alloca-opt instead of alloca.
85412         * modules/setenv: Likewise.
85413         * modules/vasnprintf: Likewise.
85414         * MODULES.html.sh: Add alloca-opt.
85415
85416 2004-09-28  Simon Josefsson  <jas@extundo.com>
85417
85418         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85419         LGPL, and to replace license template from GPL to LGPL.
85420
85421 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85422
85423         * modules/dummy: Change license to LGPL.
85424
85425 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85426
85427         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85428
85429 2004-09-24  Simon Josefsson  <jas@extundo.com>
85430
85431         * modules/minmax (License): Change from GPL to LGPL.
85432
85433 2004-09-23  Simon Josefsson  <jas@extundo.com>
85434
85435         * gnulib-tool (--import): Typo.
85436
85437 2004-09-23  Simon Josefsson  <jas@extundo.com>
85438
85439         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85440
85441 2004-09-22  Bruno Haible  <bruno@clisp.org>
85442
85443         * modules/*: Add 'License' field.
85444         * gnulib-tool: Accept --extract-license option.
85445         (func_get_license): New function.
85446
85447 2004-09-21  Bruno Haible  <bruno@clisp.org>
85448
85449         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85450         Reported by Simon Josefsson.
85451
85452 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85453
85454         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85455         gl_AC_TYPE_LONG_LONG.
85456
85457 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85458
85459         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85460
85461 2004-09-18  Simon Josefsson  <jas@extundo.com>
85462         and  Paul Eggert  <eggert@cs.ucla.edu>
85463
85464         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85465         calls with autoreconf.  Define GL_LIB.
85466
85467 2004-09-14  Karl Berry  <karl@gnu.org>
85468
85469         * config/srclist.txt: unsync setenv.c, sigh.
85470
85471 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85472
85473         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85474         Problem reported by Bruno Haible in:
85475         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85476
85477 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85478
85479         * config/srclist.txt: Comment out argp-pvh.c.
85480
85481 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85484         in case some system header has #define'd it.  Problem reported by
85485         Soeren D. Schulze in
85486         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85487
85488 2004-09-09  Karl Berry  <karl@gnu.org>
85489
85490         * regex.[ch]: delete from the root.  These were supposed to be
85491                 synced with emacs cvs, but this has not happened for about
85492                 a year, and anyway nothing else uses emacs regex.[ch].
85493                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85494                 lib/regex[.ch] is untouched.
85495
85496 2004-09-09  Bruno Haible  <bruno@clisp.org>
85497
85498         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85499
85500 2004-09-09  Bruno Haible  <bruno@clisp.org>
85501
85502         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85503         modifications.
85504         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85505
85506 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85507
85508         * modules/xvasprintf: New file.
85509         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85510
85511 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85512
85513         * lib/xvasprintf.h: New file.
85514         * lib/xvasprintf.c: New file.
85515         * lib/xasprintf.c: New file.
85516
85517 2004-09-08  Bruno Haible  <bruno@clisp.org>
85518
85519         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85520
85521 2004-09-08  Bruno Haible  <bruno@clisp.org>
85522
85523         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85524         length is > INT_MAX.
85525         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85526         more.
85527
85528 2004-09-08  Bruno Haible  <bruno@clisp.org>
85529
85530         * lib/stdint_.h: New file, taken from GNU clisp.
85531
85532 2004-09-08  Bruno Haible  <bruno@clisp.org>
85533             Oskar Liljeblad  <oskar@osk.mine.nu>
85534
85535         * modules/stdint: New file.
85536         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85537
85538 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85539
85540         Import from coreutils.
85541         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85542         strings on unbounded length.  alloca's performance benefits aren't
85543         that important here.
85544         (V_STRDUP): Remove.
85545         (parse_with_separator): New function, with most of the internals
85546         of the old parse_user_spec.  Allow user to omit both user and group,
85547         for compatibility with FreeBSD.
85548         Clone only the user name, not the entire spec.
85549         Do not set *uid, *gid unless entirely successful.
85550         Avoid memory leak in some failing cases.
85551         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85552         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85553         (parse_user_spec): Rewrite to use parse_with_separator.
85554
85555 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85556
85557         * modules/userspec: Don't depend on alloca.
85558
85559 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85560
85561         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85562
85563 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85564
85565         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85566         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85567         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85568
85569 2004-08-16  Simon Josefsson  <jas@extundo.com>
85570
85571         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85572         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85573         Add --dry-run for --import.
85574         Let user provided command line parameters override configure.ac
85575         settings.
85576
85577 2004-08-12  Simon Josefsson  <jas@extundo.com>
85578
85579         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85580         as discussed with Paul Eggert in threads rooted at
85581         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85582         and
85583         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85584         Before, the test was empty, and relied on ELIDE_CODE in source
85585         code.)
85586         (gl_PREREQ_GETOPT): New macro.
85587         (gl_GETOPT): Use them.
85588
85589 2004-08-12  Simon Josefsson  <jas@extundo.com>
85590
85591         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85592         * lib/getopt_.h: Renamed from getopt.h.
85593
85594 2004-08-12  Simon Josefsson  <jas@extundo.com>
85595
85596         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85597         Change default library name from libfoo to libgnu.
85598         Now, if you have a configure.ac that says:
85599                 gl_SOURCE_BASE(gl)
85600                 gl_M4_BASE(gl/m4)
85601                 gl_MODULES(error getopt etcetera)
85602                 gl_INIT
85603         you can import all you need by running:
85604                 ../gnulib/gnulib-tool --import
85605
85606         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85607         (Makefile.am): Rewrite, use logic from argz.
85608         (Include): Use <getopt.h> instead of "getopt.h".
85609
85610 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85611
85612         * modules/argp (Files): Add m4/unlocked-io.m4.
85613         (Depends-on): Add extensions.
85614
85615 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85616
85617         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85618         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85619         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85620         Check for program_invocation_name, program_invocation_short_name,
85621         flockfile, funlockfile, features.h, _getopt_long_only_r.
85622
85623 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85624
85625         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85626         its complicated substitute.
85627         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85628         and program_invocation_name.
85629         (__argp_basename) [!_LIBC]: Remove; the only use was
85630         replaced by its body.
85631         (__argp_short_program_name): Change condition from
85632         !defined __argp_short_program_name to
85633         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85634         to match argp-namefrob.h.
85635         (__argp_failure): Don't assume strerror_r returns char *.
85636         * lib/argp-parse.c (N_): Define unconditionally.
85637         (argp_default_options): Fill out initializers with 0 to avoid
85638         gcc warnings.
85639
85640 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85641
85642         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85643         getopt1.c.
85644
85645 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85646
85647         Merge from coreutils.
85648
85649         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85650
85651         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85652         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85653
85654 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85655
85656         Merge from coreutils.
85657
85658         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85659         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85660         for Reliant Unix 5.43.
85661
85662         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85663         (union fooround): Use uintmax_t, not long int.
85664         The rest is a merge from libc:
85665         [defined _LIBC]: Include <shlib-compat.h>.
85666         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85667
85668         * lib/settime.c (settime): Recode to avoid warning with
85669         Sun Forte C 6U2.
85670
85671         * lib/strverscmp.c: Convert to UTF-8.
85672
85673 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85674
85675         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85676         m4/uintmax_t.m4.
85677
85678 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85679
85680         * modules/xalloc-die: New file.
85681         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85682
85683         * modules/md5 (Files): Add m4/uint32_t.m4.
85684         * modules/sha1: Renamed from modules/sha.
85685         (Files):
85686         Rename lib/sha.h to lib/sha1.h.
85687         Rename lib/sha.c to lib/sha1.c.
85688         Rename m4/sha.m4 to m4/sha1.m4.
85689         (lib_SOURCES): Likewise.
85690         (configure.ac): Rename gl_SHA to gl_SHA1.
85691         (Include): sha.h -> sha1.h.
85692
85693 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85694
85695         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85696         * m4/sha1.m4: Renamed from sha.m4.
85697         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85698
85699 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85700
85701         * lib/obstack.h (obstack_empty_p):
85702         Don't assume that chunk->contents is suitably aligned.
85703         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85704         Likewise. Problem reported by Benno in
85705         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85706
85707         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85708         readable.  This could be improved further but it'd take some work.
85709
85710 2004-08-08  Simon Josefsson  <jas@extundo.com>
85711
85712         * modules/xgethostname (Depends-on): Remove exit and error (not
85713         used).
85714
85715         * modules/getpass-gnu: Add getpass.h.
85716         (Depends-on): Add stdbool.
85717         * modules/getpass: Add getpass.h.
85718
85719 2004-08-08  Simon Josefsson  <jas@extundo.com>
85720
85721         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85722         Check getpass declaration.
85723
85724 2004-08-08  Simon Josefsson  <jas@extundo.com>
85725
85726         * lib/xgethostname.c: Don't include error.h (not used).
85727
85728         * lib/getpass.h: Add.
85729         * lib/getpass.c: Include getpass.h first.
85730
85731 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85732
85733         * lib/xalloc-die.c: New file.
85734         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85735         All uses removed.
85736         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85737         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85738         xalloc-die.c.
85739         (_, N_, xalloc_die): Move to xalloc-die.c.
85740         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85741         so that we needn't mess with xalloc_msg_memory_exhausted.
85742
85743         * lib/sha1.h: Renamed from sha.h.
85744         (SHA1_H): Renamed from _SHA_H.
85745         (sha1_ctx): Renamed from sha_ctx.
85746         (sha1_init_ctx): Renamed from sha_init_ctx.
85747         (sha1_process_block): Renamed from sha_process_block.
85748         (sha1_process_bytes): Renamed from sha_process_bytes.
85749         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85750         (sha1_read_ctx): Renamed from sha_read_ctx.
85751         (sha1_stream): Renamed from sha_stream.
85752         (sha1_buffer): Renamed from sha_buffer.
85753         * lib/sha1.c: Likewise; renamed from sha.c.
85754         Do not include <sys/types.h>.
85755         Include <stddef.h> rather than <stdlib.h>.
85756
85757 2004-08-08  Bruno Haible  <bruno@clisp.org>
85758
85759         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85760         FILESYSTEM_PREFIX_LEN.
85761         * lib/progreloc.c: Likewise.
85762         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85763
85764 2004-08-06  Simon Josefsson  <jas@extundo.com>
85765
85766         * modules/progname (Depends-on): Don't depend on stdbool.
85767
85768 2004-08-06  Simon Josefsson  <jas@extundo.com>
85769
85770         * modules/getsubopt: New file.
85771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85772         getsubopt.
85773
85774 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85775
85776         More merge from coreutils.
85777
85778         * m4/utimens.m4, m4/utimecmp.m4: New files.
85779         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85780         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85781         prereq.m4, sha.m4: Import changes from coreutils.
85782
85783 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85784
85785         More merge from coreutils.
85786         * modules/raise, modules/readtokens0, modules/utimens:
85787         * modules/utimecmp, module/xnanosleep: New files.
85788         * modules/strftime: Add lib/strftime.h.
85789         Change include from <time.h> to "strftime.h".
85790         * modules/yesno: Add lib/yesno.h.
85791         * modules/backupfile: Remove lib/addext.c.
85792         * modules/euidaccess: Add stat-macros.h.
85793         * modules/canonicalize, modules/euidaccess,
85794         modules/filemode, modules/lchown, modules/makepath,
85795         modules/rmdir, modules/stat: Likewise.
85796
85797 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85798
85799         Merge from tar.
85800         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85801         SIZE_MAX is a valid preprocessor constant.
85802         (__argp_basename): Change from "#ifndef _LIBC"
85803         to "#ifndef __argp_short_program_name", so that
85804         we don't compile these functions for tar.
85805
85806         More merges from coreutils.
85807         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85808         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85809         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85810         * lib/addext.c: Remove; no longer needed.
85811         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85812         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85813         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85814         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85815         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85816         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85817         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85818         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85819         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85820         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85821         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85822         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85823         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85824         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85825         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85826         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85827         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85828         Import changes from coreutils.
85829
85830 2004-08-05  Simon Josefsson  <jas@extundo.com>
85831
85832         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85833
85834 2004-08-05  Simon Josefsson  <jas@extundo.com>
85835
85836         * m4/getsubopt.m4: New file.
85837
85838 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85839
85840         Merge from coreutils.
85841
85842         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85843         * m4/getcwd-path-max.m4: New files.
85844
85845         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85846         FILESYSTEM_PREFIX_LEN ->
85847         FILE_SYSTEM_PREFIX_LEN.
85848         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85849         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85850         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85851         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85852
85853         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85854         prerequisite modules now handle the DOS stuff.
85855         Don't check for unistd.h.
85856
85857 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85858
85859         Merge from coreutils.
85860
85861         * lib/.gdb-history: Remove; this doesn't belong here.
85862
85863         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85864         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85865         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85866         * lib/getcwd.c: New files.
85867
85868         * lib/dirname.h: Include <stdbool.h>.
85869         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85870         for consistency with POSIX terminology.  All uses changed.
85871         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85872         (strip_trailing_slashes): Use bool for booleans.
85873         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85874
85875         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85876         sometimes returns a positive errno value even when it succeeds.
85877         (print_errno_message) [!LIBC]: Fall back on strerror if
85878         __strerror_r fails.
85879
85880         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85881         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85882         (longest_relative_suffix): New function.
85883         (path_concat): Use it.  Assume first argument is not NULL.
85884         Port to DOS.  Omit redundant separators.
85885         Report an error instead of returning NULL.
85886         Use mempcpy instead of memcpy.
85887         (xpath_concat): Remove: not declared or used.
85888
85889         * lib/same.h: Include <stdbool.h>
85890         (same_name): Return bool, not int.
85891         * lib/same.c (same_name): Likewise.
85892         (errno): Don't declare; we assume C89 or better now.
85893
85894         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85895         if not already defined.
85896
85897         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85898         * lib/dup-safer.c (errno): Likewise.
85899
85900 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85901
85902         Merge from coreutils.
85903         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85904         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85905         * modules/path-concat: Don't depend on strdup.
85906
85907 2004-08-03  Simon Josefsson  <jas@extundo.com>
85908
85909         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85910         * lib/progname.h: Don't include stdbool.h.
85911
85912 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85913
85914         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85915         * MODULES.html.sh (func_all_modules): Remove fatal.
85916
85917 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85918
85919         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85920
85921 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85922
85923         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85924         working.
85925
85926 2004-08-02  Simon Josefsson  <jas@extundo.com>
85927
85928         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85929         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85930         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85931
85932 2004-08-01  Simon Josefsson  <jas@extundo.com>
85933
85934         * lib/xgetdomainname.c: Include stdlib.h, for free().
85935
85936 2004-07-19  Bruno Haible  <bruno@clisp.org>
85937
85938         * MODULES.html.sh (func_all_modules): Add dummy.
85939
85940 2004-07-16  Simon Josefsson  <jas@extundo.com>
85941
85942         * modules/dummy: New file.
85943
85944 2004-07-16  Simon Josefsson  <jas@extundo.com>
85945
85946         * lib/dummy.c: New file.
85947
85948 2004-07-16  Bruno Haible  <bruno@clisp.org>
85949
85950         * lib/backupfile.h: Add extern "C" for C++.
85951         * lib/closeout.h: Likewise.
85952         * lib/copy-file.h: Likewise.
85953         * lib/findprog.h: Likewise.
85954         * lib/full-write.h: Likewise.
85955         * lib/pathname.h: Likewise.
85956         * lib/progname.h: Likewise.
85957         * lib/stpcpy.h: Likewise.
85958         * lib/stpncpy.h: Likewise.
85959         * lib/strcase.h: Likewise.
85960         * lib/strstr.h: Likewise.
85961         * lib/xalloc.h: Likewise.
85962
85963         * lib/mbswidth.h: Add extern "C" for C++.
85964         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85965
85966 2004-07-13  Robert Millan  <robertmh@gnu.org>
85967
85968         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85969
85970 2004-07-09  Simon Josefsson  <jas@extundo.com>
85971
85972         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85973         failed without this.)
85974
85975 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85976
85977         * modules/chown (Files): Add lib/fchown-stub.c, since
85978         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85979
85980 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85981
85982         * lib/fchown-stub.c: New file.
85983
85984 2004-06-24  Jim Meyering  <jim@meyering.net>
85985
85986         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85987
85988 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85989
85990         * modules/argz: Omit "#include".
85991
85992         * MODULES.html.sh (func_all_modules): Add calloc, to match
85993         2004-06-01 addition of calloc module.
85994
85995 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85996
85997         * m4/argz.m4: New file, which is autoupdated from libtool.
85998
85999 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86000
86001         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86002         libtool.
86003
86004 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86005
86006         * config/srclist-update: Don't insist on "USA." before the
86007         close-comment, as libtool omits the period and puts the */ on a
86008         separate line.
86009         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86010         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86011
86012 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86013
86014         * modules/argz: New file.
86015         * MODULES.html.sh (func_all_modules): Add argz.
86016
86017 2004-06-12  Jim Meyering  <jim@meyering.net>
86018         and  Paul Eggert  <eggert@cs.ucla.edu>
86019
86020         * modules/hash (Files): Add lib/xalloc.h.
86021         * modules/pipe (Depends-on): Add wait-process.
86022         * modules/stat (Depends-on): Add xalloc.
86023         * modules/userspec (Files): Add lib/userspec.h.
86024         * modules/xstrto
86025
86026         Upgrade from gettext-0.13.
86027         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86028         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86029         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86030
86031 2004-06-10  Jim Meyering  <jim@meyering.net>
86032
86033         * lib/calloc.c: New file.
86034
86035 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86036
86037         * lib/getdate.y (yylex): Allow space between sign and number.
86038         Problem reported by Dan Jacobson.
86039
86040 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86041
86042         Merge from coreutils CVS.
86043
86044         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86045         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86046         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86047         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86048         xstrtol.m4: Fix copyright date and/or serial number.
86049
86050         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86051         See if we need an fchown replacement.
86052         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86053         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86054         and use the replacement function if we detect either defect.
86055
86056         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86057         gl_UTIMECMP.
86058
86059 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86060         and  Jim Meyering  <jim@meyering.net>
86061
86062         Merge from coreutils CVS.
86063
86064         * lib/stat-macros.h: New file, with contents from file-type.h
86065         and coreutils' system.h.
86066         * lib/file-type.c: Include "stat-macros.h".
86067         * lib/file-type.h (file_type): Move all macro definitions to new file,
86068         stat-macros.h.
86069
86070         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86071         Wrap old code with this conditional.
86072         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86073         function that does not dereference symlinks.
86074         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86075
86076         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86077         dependency problems.
86078         (xreadlink): Accept new arg SIZE, for efficiency.
86079         All decls and uses changed.
86080         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86081
86082         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86083         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86084
86085         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86086         sysexits.h.
86087
86088 2004-06-01  Jim Meyering  <jim@meyering.net>
86089
86090         * m4/calloc.m4: New file.
86091
86092 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86093
86094         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86095         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86096         Also, fix a typo in a diagnostic.
86097
86098 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86099
86100         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86101         or AC_FUNC_REALLOC.
86102
86103 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86106         macros to be defined.
86107         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86108         the allocator returns NULL because the requested size is zero.
86109
86110 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86111
86112         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86113         var.  Add comment explaining why libc still defines it.  This
86114         merges the following patch from glibc:
86115         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86116
86117 2004-05-20  Andreas Schwab  <schwab@suse.de>
86118
86119         * m4/free.m4: Replace free if it not known to work, not the other
86120         way round.
86121
86122 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86123
86124         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86125         present in glibc since revision 1.1 of this file.
86126         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86127         obstack_alignment_mask, obstack_alloc, obstack_base,
86128         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86129         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86130         obstack_grow0, obstack_init, obstack_int_grow,
86131         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86132         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86133         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86134         nonexistent functions.
86135
86136 2004-05-18  Karl Berry  <karl@gnu.org>
86137
86138         * config/srclist.txt: break link for vasnprintf.c.
86139
86140 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86141
86142         Port obstack to the AS/400, where pointers are 16 bytes wide and
86143         you cannot cast an integer to a valid pointer.  This patch is
86144         currently waiting to be integrated into glibc; see
86145         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86146
86147         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86148         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86149         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86150         (struct obstack): temp member is now a union of a pointer and
86151         an integer, instead of an integer.  All integer uses changed.
86152         This does not affect the physical layout of struct obstack,
86153         except on hosts (like the AS/400) where the size or alignment of
86154         void * is greater than that of ptrdiff_t.
86155         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86156         __STDC__)]: Store temporary in pointer member of union, not
86157         integer member.
86158         * lib/obstack.c: Include <stddef.h>, for offsetof.
86159         (struct fooalign): Remove; it doesn't need a name.
86160         (union fooround): Change double to long double, and add void *.
86161         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86162         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86163         not a macro.  Hence the values are always int; so remove all
86164         casts-to-int in uses.
86165
86166 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86167
86168         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86169         we can get this patch merged into glibc.
86170
86171 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86172             Paul Eggert  <eggert@cs.ucla.edu>
86173
86174         * m4/argp: Depend on alloca.
86175
86176 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86177             Paul Eggert  <eggert@cs.ucla.edu>
86178
86179         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86180         freecoding.
86181
86182 2004-05-17  Bruno Haible  <bruno@clisp.org>
86183
86184         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86185         precision that consists of a '.' followed by an empty digit string.
86186         Patch by Tor Lillqvist <tml@iki.fi>.
86187
86188 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86189
86190         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86191         for backward compatibility with older code.  We need our own
86192         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86193         it under some other name, and our alloca.h will define it.
86194
86195 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86196             Derek Price  <derek@ximbiot.com>
86197
86198         * lib/alloca.c: Include <alloca.h>, to get our interface.
86199         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86200         include <alloca.h> first.  Use C89 prototype for alloca; this
86201         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86202         Use #elif for simplicity, since we can assume C89 now.
86203         Don't try to source the system alloca.h since it will not be found
86204         and to prevent recursively including its replacement.
86205         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86206         * lib/regex.c: Likewise.
86207
86208 2004-05-16  Derek Price  <derek@ximbiot.com>
86209             Paul Eggert  <eggert@cs.ucla.edu>
86210
86211         getline cleanup.  This changes the getndelim2 API: both order of
86212         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86213         no delimiter).
86214
86215         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86216         interface does that.
86217         (getline): Always use getdelim, so that we don't have two
86218         copies of this code.
86219         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86220         if available.
86221         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86222         (GETNDELIM2_MAXIMUM): New macro.
86223         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86224         instead of the old practice of delim2==0.  All callers changed.
86225         Return -1 on overflow, instead of returning junk.
86226         Do not set *linesize unless allocation succeeds.
86227         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86228         that we include sys/types.h.
86229         * lib/getnline.h: Likewise.
86230         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86231         (getndelim2): Reorder arguments.
86232         * lib/getnline.c (getnline, getndelim):
86233         Don't discard the NMAX argument.
86234         (getnline): Invoke getndelim, to avoid code duplication.
86235         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86236         of (size_t) -1 by callers of the getnline family.
86237
86238 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86239
86240         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86241         Check for gettimeofday.
86242         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86243         Check for settimeofday, stime.
86244
86245 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86246
86247         * lib/nanosleep.c (suspended): Change its type from int to
86248         sig_atomic_t volatile.
86249         (first_call): Make it private to rpl_nanosleep, and have it
86250         be zero initially as that's a bit faster.
86251         (my_usleep): Round up fractional times instead of truncating them,
86252         as this is the usual meaning for 'sleep'.
86253
86254         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86255         doesn't work.
86256         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86257         (ENOSYS): Define if not defined.
86258         (settime): Fall back on stime if it exists and settimeofday fails.
86259         But don't bother with fallbacks if a method fails with errno == EPERM.
86260
86261 2004-05-11  Jim Meyering  <jim@meyering.net>
86262
86263         Prior to this change, the save_cwd caller required read access to the
86264         current directory on most systems (ones with the fchdir function).
86265
86266         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86267         fails, try write-only, and finally, resort to using xgetcwd.
86268
86269 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86270
86271         * lib/obstack.c, obstack.h: Import changes from libc.
86272
86273 2004-04-28  Bruno Haible  <bruno@clisp.org>
86274
86275         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86276         also implicitly appends .exe to executables.
86277         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86278         accepts Windows pathnames.
86279         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86280         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86281         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86282         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86283         Reported by Derek Robert Price <derek@ximbiot.com>.
86284
86285 2004-04-21  Karl Berry  <karl@gnu.org>
86286
86287         * config/srclist.txt (localcharset.c): break sync.
86288
86289 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86290
86291         * m4/host-os.m4: Add a copyright notice.
86292
86293 2004-04-20  Jim Meyering  <jim@meyering.net>
86294
86295         Change UTILS_ to gl_ in AC_DEFINE'd names.
86296         Change utils_- and jm_-prefixed variables, too.
86297         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86298         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86299         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86300
86301         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86302         Don't emit trailing blanks.
86303         Also rename jm_-prefixed variables to have gl_ prefix.
86304
86305         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86306         Also rename jm_-prefixed variables to have gl_ prefix.
86307
86308         * m4/jm-macros.m4: Reflect the renamings.
86309         * m4/prereq.m4: Likewise.
86310
86311 2004-04-20  Jim Meyering  <jim@meyering.net>
86312
86313         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86314         memory.
86315
86316 2004-04-20  Jim Meyering  <jim@meyering.net>
86317             Bruno Haible  <bruno@clisp.org>
86318
86319         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86320         memory when realloc fails.
86321
86322 2004-04-19  Jim Meyering  <jim@meyering.net>
86323
86324         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86325         now that readutmp.c may call `free (0)'.
86326
86327 2004-04-19  Bruno Haible  <bruno@clisp.org>
86328
86329         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86330         * m4/inttypes_h.m4: Likewise.
86331         * m4/stdint_h.m4: Likewise.
86332         * m4/intmax_t.m4: Likewise.
86333         * m4/uintmax_t.m4: Likewise.
86334
86335 2004-04-18  Jim Meyering  <jim@meyering.net>
86336
86337         * m4/prereq.m4: Don't forbid jm_ prefix.
86338
86339         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86340         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86341         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86342         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86343         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86344         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86345         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86346         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86347         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86348         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86349         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86350         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86351         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86352         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86353         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86354         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86355         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86356         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86357         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86358
86359 2004-04-18  Jim Meyering  <jim@meyering.net>
86360
86361         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86362         failure, don't leak memory and do call END_UTMP_ENT.
86363
86364 2004-04-16  Jim Meyering  <jim@meyering.net>
86365
86366         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86367         coreutils' stat program.
86368         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86369
86370 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86371
86372         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86373         C89.
86374         (CHAR_BIT): Remove, since we assume C89.
86375         Include <stdint.h> if available, as per current Autoconf CVS advice.
86376
86377 2004-03-31  Jim Meyering  <jim@meyering.net>
86378
86379         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86380         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86381         * m4/xalloc.m4: Likewise.
86382
86383 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86384
86385         Merge from coreutils.
86386
86387         * m4/inttostr.m4: New file.
86388         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86389         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86390         Require gl_CLOCK_TIME.
86391         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86392
86393 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86394
86395         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86396         not bool, to be more consistent with Unix conventions.
86397         Suggested by Bruno Haible.
86398
86399         Merge from coreutils.
86400
86401         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86402         * lib/umaxtostr.c: New files.
86403
86404         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86405         the usual <time.h> dance.
86406         (get_date): Change signature to support fractional time stamps.
86407         All callers changed.
86408         * lib/getdate.y: Include "getdate.h" first, as we can now
86409         assume C89 and don't need to worry about 'const'.
86410         Similarly, include "unlocked-io.h" near start, not in middle.
86411         Include <limits.h>.
86412         (textint.value): Use long int rather than int.
86413         (textint.digits): Use size_t rather than int.
86414         (BILLION, LOG10_BILLION): New constants.
86415         (parser_control): New member rel_ns.  Members day_ordinal,
86416         time_zone, month, day, hour, minutes, rel_year, rel_month,
86417         rel_day, rel_hour, rel_minutes, rel_seconds
86418         are now long int, not int.  Member seconds is now struct timespec,
86419         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86420         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86421         not int.
86422         (%union.intval): Now long int, not int.
86423         New member timespec.
86424         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86425         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86426         (spec): Now is a timespec or an item list.
86427         (timespec, items): New nonterminals.
86428         (time, rel, relunit, number, get_date):
86429         Add support for fractional seconds.
86430         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86431         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86432         (to_hour): First arg is now long int, not int.
86433         (to_year): Returns long int, not int.
86434         Don't treat year -70 like 70.
86435         (tm_diff): Returns long int, not int.
86436         (lookup_word): Use bool instead of int when appropriate.
86437         (yylex): Use size_t for count, not int.
86438         Detect overflow when parsing large integer constants.
86439         Add support for fractions.
86440         (get_date): Make pointers 'const' if possible.
86441         Use more-portable code to detect integer overflow.
86442         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86443         Don't use ctime; it's not reliable if the year has >4 digits.
86444
86445         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86446         This is for compatibility with BSD.
86447
86448         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86449         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86450         From coreutils' system.h.
86451
86452         * lib/userspec.c: Don't include "posixver.h".
86453         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86454         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86455         compatible extension.  Simplify code by removing a boolean int
86456         that was always nonzero if a string was nonnull.
86457
86458 2004-03-30  Jim Meyering  <jim@meyering.net>
86459
86460         Merge from coreutils.
86461
86462         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86463         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86464         on some systems one must include <grp.h> before it.
86465         Reported by Christian Krackowizer.
86466
86467 2004-03-30  Jim Meyering  <jim@meyering.net>
86468
86469         Merge from coreutils.
86470
86471         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86472
86473         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86474         an empty input stream.
86475
86476         * lib/readtokens.c: Include <stdbool.h>.
86477         (readtoken): Use `size_t' rather than int/long.
86478         All callers adjusted.
86479         Use `bool' rather than `int' where appropriate.
86480         Use memset rather than an explicit loop.
86481         Use x2nrealloc rather than xrealloc.
86482         Allow the use of `\0' as a delimiter.
86483         (readtokens): Likewise.
86484         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86485
86486 2004-03-30  Jim Meyering  <jim@meyering.net>
86487
86488         * m4/realloc.m4: Remove file, since now it does no more than
86489         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86490         the `configure.ac' section of module/realloc.
86491         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86492
86493 2004-03-30  Bruno Haible  <bruno@clisp.org>
86494
86495         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86496         nonnull.
86497
86498 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86499
86500         Merge changes to getloadavg.c from coreutils and Emacs.
86501
86502         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86503         Define to an expression, not to the empty string.
86504         Include cloexec.h and xalloc.h.
86505         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86506         Use set_cloexec_flag rather than rolling our own.
86507         * lib/cloexec.c, lib/cloexec.h: New files.
86508
86509 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86510
86511         * m4/cloexec.m4: New file.
86512
86513 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86514
86515         * lib/getopt.h: Sync with libc CVS.
86516
86517 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86518             Bruno Haible  <bruno@clisp.org>
86519
86520         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86521         mbswidth.
86522
86523 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86524             Bruno Haible  <bruno@clisp.org>
86525
86526         * lib/mbswidth.h: Include <wchar.h> only if
86527         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86528         <wchar.h>.
86529         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86530
86531 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86532
86533         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86534         Sync with libc CVS.
86535         * lib/getopt_int.h: New file, also synced from libc.
86536
86537 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86538
86539         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86540         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86541         Bring back getopt.c, getopt.h, getopt1.c.
86542
86543 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86544
86545         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86546         All uses changed.  Check for sa_sigaction member; this fixes
86547         a bug first reported by Jason Andrade in
86548         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86549
86550 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86551
86552         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86553         '#if' expressions.  Unlike the code it replaces, it does not
86554         depend on (defined _SC_PAGESIZE).  However, it does depend on
86555         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86556         first reported by Jason Andrade in
86557         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86558
86559 2004-02-25  Simon Josefsson  <jas@extundo.com>
86560
86561         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86562
86563 2004-02-25  Simon Josefsson  <jas@extundo.com>
86564
86565         * lib/strdup.h: New file.
86566         * lib/strdup.c: Include it.
86567         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86568         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86569
86570 2004-02-23  Karl Berry  <karl@gnu.org>
86571
86572         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86573         (from fencepost.gnu.org:/gd/gnuorg).
86574
86575 2004-02-23  Karl Berry  <karl@gnu.org>
86576
86577         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86578         * config/srclist.txt: add maintain/standards documents.
86579
86580 2004-02-18  Bruno Haible  <bruno@clisp.org>
86581
86582         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86583         Reported by Derek Robert Price <derek@ximbiot.com>.
86584
86585 2004-02-16  Karl Berry  <karl@gnu.org>
86586
86587         * config/mkinstalldirs, install-sh: update from automake.
86588
86589 2004-02-06  Karl Berry  <karl@gnu.org>
86590
86591         * m4/po.m4: update from gettext 0.14.1.
86592
86593 2004-02-06  Karl Berry  <karl@gnu.org>
86594
86595         * lib/config.charset: update from gettext 0.14.1.
86596
86597 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86598
86599         Add comments and code, prompted by suggestions from Bruno Haible
86600         for sh-quote.
86601         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86602         describing the enum quoting_style values.
86603         * lib/quotearg.c (quotearg_alloc): New function.
86604         (quotearg_buffer_restyled): Treat lone { and } as special.
86605         Treat = as special.  Work around bug with older shells
86606         that "see" a '\' that is really the 2nd byte of a multibyte char.
86607         Quote empty string with shell_quoting_style.
86608
86609 2004-02-03  Bruno Haible  <bruno@clisp.org>
86610
86611         * m4/pipe.m4: New file, from GNU gettext.
86612
86613 2004-02-03  Bruno Haible  <bruno@clisp.org>
86614
86615         * lib/pipe.h: New file, from GNU gettext.
86616         * lib/pipe.c: New file, from GNU gettext.
86617
86618 2004-01-27  Bruno Haible  <bruno@clisp.org>
86619
86620         * m4/execute.m4: New file, from GNU gettext.
86621
86622 2004-01-27  Bruno Haible  <bruno@clisp.org>
86623
86624         * lib/execute.h: New file, from GNU gettext.
86625         * lib/execute.c: New file, from GNU gettext.
86626         * lib/w32spawn.h: New file, from GNU gettext.
86627
86628 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86629
86630         Merge from diffutils.
86631
86632         * lib/file-type.c (file_type): Add typed memory objects.
86633         * lib/file-type.h (S_TYPEISTMO): New macro.
86634
86635         * lib/c-stack.h (c_stack_action): Remove argv argument.
86636         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86637         (die): Don't calculate message unless segv_action returns.
86638         (get_stack_location, min_address_from_argv, max_address_from_argv,
86639         volatile stack_base, volatile_stack_size): Remove.
86640         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86641         that every segmentation violation is a stack overflow.  (Ouch!)
86642         See Debian bug 136249 (still outstanding) for more info about why
86643         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86644
86645 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86646
86647         Exit-status fix from coreutils.
86648
86649         Use exit_failure consistently in place of EXIT_FAILURE,
86650         so that program exit statuses are consistent on failure.
86651
86652         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86653         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86654         * lib/argmatch.h: Comment fix to match the above.
86655         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86656         Now a macro referring to exit_failure, instead of a separate
86657         variable.  Include "exitfail.h" to get it.
86658         * lib/xstrtol.h: Include "exitfail.h".
86659         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86660
86661         * lib/long-options.c (parse_long_options): Use prototype
86662         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86663         for clarity.
86664
86665 2004-01-21  Jim Meyering  <jim@meyering.net>
86666
86667         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86668         so as not to conflict with a different-sized __mktime_internal
86669         function in GNU libc.
86670         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86671         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86672
86673 2004-01-20  Karl Berry  <karl@gnu.org>
86674
86675         * config/config.guess: update from config.
86676
86677         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86678
86679 2004-01-20  Bruno Haible  <bruno@clisp.org>
86680
86681         Safer stack allocation.
86682         * lib/setenv.c: Include allocsa.h.
86683         (alloca): Remove fallback definition.
86684         (freea): Remove macro.
86685         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86686         instead of freea.
86687
86688 2004-01-20  Bruno Haible  <bruno@clisp.org>
86689
86690         * m4/eealloc.m4: New file, from GNU gettext.
86691
86692 2004-01-20  Bruno Haible  <bruno@clisp.org>
86693
86694         * m4/allocsa.m4: New file, from GNU gettext.
86695
86696 2004-01-20  Bruno Haible  <bruno@clisp.org>
86697
86698         * lib/xallocsa.h: New file, from GNU gettext.
86699         * lib/xallocsa.c: New file, from GNU gettext.
86700
86701 2004-01-20  Bruno Haible  <bruno@clisp.org>
86702
86703         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86704
86705 2004-01-20  Bruno Haible  <bruno@clisp.org>
86706
86707         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86708         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86709         specially.
86710
86711 2004-01-20  Bruno Haible  <bruno@clisp.org>
86712
86713         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86714         patch.
86715
86716 2004-01-20  Bruno Haible  <bruno@clisp.org>
86717
86718         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86719
86720 2004-01-20  Bruno Haible  <bruno@clisp.org>
86721
86722         * lib/eealloc.h: New file.
86723
86724 2004-01-20  Bruno Haible  <bruno@clisp.org>
86725
86726         * lib/binary-io.h: Avoid warnings on Cygwin.
86727
86728 2004-01-20  Bruno Haible  <bruno@clisp.org>
86729
86730         * lib/allocsa.h: New file, from GNU gettext.
86731         * lib/allocsa.c: New file, from GNU gettext.
86732
86733 2004-01-18  Karl Berry  <karl@gnu.org>
86734
86735         * doc/gpl.texi, doc/lgpl.texi: new files.
86736
86737 2004-01-18  Karl Berry  <karl@gnu.org>
86738
86739         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86740         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86741
86742 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86743
86744         Merge from coreutils.
86745
86746         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86747         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86748         (gl_DEFAULT_POSIX2_VERSION): Move
86749         the documentation from 'configure' into 'config.hin',
86750         so that 'configure --help' isn't burdened by it and
86751         we don't have to worry about its formatting there.
86752         Reword the documentation so that it's more succinct
86753         and can be run together into a single paragraph.
86754         * m4/same.m4 (gl_SAME): Check for pathconf.
86755
86756 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86757
86758         Merge from coreutils.
86759
86760         * lib/posixver.c: Include posixver.h.
86761
86762         * lib/same.c: Include <stdbool.h>, <limits.h>.
86763         (_POSIX_NAME_MAX): Define if not defined.
86764         (MIN): New macro.
86765         (same_name): If file names are silently truncated, report
86766         that the file names are the same if they are the same after
86767         the silent truncation.
86768
86769         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86770         conversion function.
86771         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86772         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86773         longer needed.
86774
86775 2004-01-15  Jim Meyering  <jim@meyering.net>
86776
86777         Merge from coreutils.
86778
86779         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86780         if no library is required.
86781         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86782         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86783         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86784         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86785         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86786         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86787         value, $ac_cv_search_crypt, if it's "none required".
86788         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86789         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86790         not gl_FUNC_GETLOADAVG.
86791         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86792         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86793
86794 2004-01-15  Jim Meyering  <jim@meyering.net>
86795
86796         Merge from coreutils.
86797
86798         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86799         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86800         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86801
86802         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86803         optional configure-time default.
86804
86805         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86806
86807         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86808
86809 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86810
86811         Merge from coreutils.
86812
86813         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86814         value, $ac_cv_search_nanosleep, if it's "none required".
86815
86816 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86817
86818         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86819         with like-named macro in fnmatch.c.
86820         (EXT): Use an internal constant instead.
86821
86822         Merge fnmatch patches from glibc.
86823         * lib/fnmatch.c (mbsinit): Remove define.
86824         Add libc_hidden_ver (__fnmatch, fnmatch).
86825         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86826         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86827
86828 2004-01-14  Karl Berry  <karl@gnu.org>
86829
86830         * config/install-sh: update from automake.
86831
86832 2004-01-13  Karl Berry  <karl@gnu.org>
86833
86834         * config/install-sh: update from automake.
86835
86836 2004-01-09  Karl Berry  <karl@gnu.org>
86837
86838         * config/install-sh: update from automake.
86839
86840 2004-01-05  Karl Berry  <karl@gnu.org>
86841
86842         * config/config.{sub,guess}: update from config.
86843
86844 2003-12-31  Karl Berry  <karl@gnu.org>
86845
86846         * config/depcomp: update from automake.
86847
86848 2003-12-14  Karl Berry  <karl@gnu.org>
86849
86850         * lib/config.charset: update from gettext-runtime.
86851
86852 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86853
86854         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86855         Bug reported by Alfred M. Szmidt.
86856
86857 2003-12-03  Bruno Haible  <bruno@clisp.org>
86858
86859         * m4/gettext.m4: Upgrade from gettext-0.13.
86860         * m4/po.m4: Upgrade from gettext-0.13.
86861         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86862         * m4/intmax.m4: New file, from gettext-0.13.
86863         * m4/printf-posix.m4: New file, from gettext-0.13.
86864
86865 2003-11-29  Karl Berry  <karl@gnu.org>
86866
86867         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86868
86869 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86870             Bruno Haible  <bruno@clisp.org>
86871
86872         * lib/printf-parse.h: Don't include sys/types.h.
86873         (ARG_NONE): New macro.
86874         (char_directive): Change type of *arg_index fields to size_t.
86875         * lib/printf-parse.c: Don't include sys/types.h.
86876         (SSIZE_MAX): Remove macro.
86877         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86878         Remove unnecessary overflow check.
86879         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86880         fields.
86881
86882 2003-11-25  Bruno Haible  <bruno@clisp.org>
86883
86884         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86885
86886 2003-11-25  Bruno Haible  <bruno@clisp.org>
86887
86888         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86889         gt_TYPE_SSIZE_T.
86890
86891 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86892
86893         * modules/alloca: Remove dependency on xalloc.
86894
86895 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86896
86897         * lib/alloca.c: Remove dependency on xalloc module.
86898         (xalloc_die): Remove.
86899         (memory_full) [!defined emacs]: New macro.
86900         [!defined emacs]: Don't include xalloc.h.
86901         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86902         address arithmetic overflows.  Change datatypes a bit to avoid
86903         unnecessary casts.
86904
86905 2003-11-22  Jim Meyering  <jim@meyering.net>
86906
86907         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86908         s/size/size_t/.
86909
86910 2003-11-21  Karl Berry  <karl@gnu.org>
86911
86912         * config/config.{sub,guess}: update from config.
86913
86914 2003-11-18  Karl Berry  <karl@gnu.org>
86915
86916         * config/config.{sub,guess}: update from config.
86917
86918         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86919
86920 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86921
86922         * README: Mention that S+T cannot overflow if S is the size of
86923         an existing object and T is sufficiently small.
86924
86925 2003-11-17  Jim Meyering  <jim@meyering.net>
86926
86927         On systems without utime and without a utimes function capable of
86928         dealing with a NULL struct utimbuf* argument, this utime replacement
86929         could -- in unusual circumstances -- leak a file descriptor.
86930         * lib/utime.c: Include <unistd.h> and <errno.h>.
86931         (utime_null): Be sure to close `fd' and to preserve errno.
86932         Reported by Geoff Collyer via Arnold Robbins.
86933
86934 2003-11-17  Bruno Haible  <bruno@clisp.org>
86935
86936         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86937         (Depends-on): Add xsize.
86938
86939 2003-11-17  Bruno Haible  <bruno@clisp.org>
86940
86941         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86942
86943 2003-11-17  Bruno Haible  <bruno@clisp.org>
86944
86945         * lib/vasnprintf.c (alloca): Remove fallback definition.
86946         (freea): Remove definition.
86947         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86948         Reported by Paul Eggert.
86949
86950 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86951             Bruno Haible  <bruno@clisp.org>
86952
86953         Protect against address arithmetic overflow.
86954         * lib/printf-args.h: Include stddef.h.
86955         (arguments): Change type of field 'count' to size_t.
86956         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86957         'unsigned int' where appropriate.
86958         * lib/printf-parse.h: Include sys/types.h.
86959         (char_directive): Change type of *arg_index fields to ssize_t.
86960         (char_directives): Change type of fields 'count', max_*_length to
86961         size_t.
86962         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86963         (SSIZE_MAX): Define fallback value.
86964         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86965         instead of 'int' where appropriate. Check a_allocated, d_allocated
86966         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86967         * lib/vasnprintf.c: Include xsize.h.
86968         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86969         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86970         overflow. Avoid wraparound when converting a width or precision from
86971         decimal to binary.
86972
86973 2003-11-16  Bruno Haible  <bruno@clisp.org>
86974
86975         Update from GNU gettext.
86976         * lib/printf-parse.c: Generalize to it can be compiled for wide
86977         strings.
86978         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86979         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86980         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86981         SNPRINTF): New macros.
86982         Don't include <alloca.h> if the file is used inside libintl.
86983         (local_wcslen): New function, for Solaris 2.5.1.
86984         (VASNPRINTF): Use it instead of wcslen.
86985
86986 2003-11-16  Bruno Haible  <bruno@clisp.org>
86987
86988         * lib/xsize.h (xmax): New function.
86989         (xsum, xsum3, xsum4): Declare as "pure" functions.
86990
86991 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86992
86993         * modules/xalloc (Files): Undo latest change, since xalloc.h
86994         no longer needs SIZE_MAX or PTRDIFF_MAX.
86995
86996 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86997
86998         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86999         gl_PTRDIFF_MAX.
87000
87001 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87002
87003         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87004         "return", to pacify some unknown compiler.  Problem reported
87005         by Joerg Schilling.
87006
87007 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87008
87009         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87010         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87011         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87012         heuristic is just as accurate as far as we know, and it removes a
87013         dependency on size_max.m4 and ptrdiff_max.m4.
87014
87015 2003-11-11  Bruno Haible  <bruno@clisp.org>
87016
87017         * modules/xsize (Files): Add m4/size_max.m4.
87018         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87019
87020 2003-11-11  Bruno Haible  <bruno@clisp.org>
87021
87022         * m4/size_max.m4: New file.
87023         * m4/ptrdiff_max.m4: New file.
87024         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87025         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87026         (gl_XALLOC): Invoke it.
87027
87028 2003-11-11  Bruno Haible  <bruno@clisp.org>
87029
87030         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87031         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87032         defined.
87033
87034 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87035
87036         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87037         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87038         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87039         From Bruno Haible.
87040         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87041         not (size_t) -1, since it's defined here.
87042
87043 2003-11-09  Karl Berry  <karl@gnu.org>
87044
87045         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87046
87047 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87048
87049         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87050         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87051         Reject sizes of exactly SIZE_MAX bytes.
87052         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87053         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87054
87055 2003-11-05  Bruno Haible  <bruno@clisp.org>
87056
87057         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87058         SIZE_MAX defined in <limits.h> on Solaris.
87059
87060 2003-11-04  Jim Meyering  <jim@meyering.net>
87061
87062         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87063         variable names, rather than @VAR@.
87064         * modules/poll: Likewise.
87065
87066 2003-11-04  Bruno Haible  <bruno@clisp.org>
87067
87068         * modules/xsize: New file.
87069         * modules/linebreak: Depend on xsize.
87070         * MODULES.html.sh (func_all_modules): Add xsize.
87071
87072 2003-11-04  Bruno Haible  <bruno@clisp.org>
87073
87074         * m4/xsize.m4: New file.
87075
87076 2003-11-04  Bruno Haible  <bruno@clisp.org>
87077
87078         * lib/xsize.h: New file.
87079         * lib/linebreak.c: Include xsize.h.
87080         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87081         argument for overflow.
87082         Suggested by Paul Eggert.
87083
87084 2003-11-03  Karl Berry  <karl@gnu.org>
87085
87086         * config/config.{guess,sub}: update from config.
87087
87088 2003-11-03  Jim Meyering  <jim@meyering.net>
87089
87090         * modules/userspec (lib_SOURCES): Add userspec.h.
87091         (Include): Add "userspec.h".
87092         Improve description.
87093
87094 2003-11-03  Jim Meyering  <jim@meyering.net>
87095
87096         * lib/userspec.c: Include "userspec.h".
87097         * lib/userspec.h: New file.
87098
87099 2003-11-03  Bruno Haible  <bruno@clisp.org>
87100
87101         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87102
87103 2003-11-03  Bruno Haible  <bruno@clisp.org>
87104
87105         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87106         available, to avoid (extremely rare) race condition.
87107         Suggested by Paul Eggert.
87108
87109 2003-11-02  Karl Berry  <karl@gnu.org>
87110
87111         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87112
87113 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87114
87115         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87116         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87117         (read_filesystem_list): Set and use me_type_malloced.
87118         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87119         whatever the type happens to be), for brevity and consistency.
87120         Check for size calculation overflow on Alphas running OSF/1.
87121
87122 2003-10-31  Jim Meyering  <jim@meyering.net>
87123
87124         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87125
87126         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87127
87128 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87129             Bruno Haible  <bruno@clisp.org>
87130
87131         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87132         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87133
87134 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87135
87136         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87137         netbsd*-gnu*.  Suggested by Robert Millan.
87138
87139 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87140
87141         * modules/group-member: Depend on stdbool.
87142
87143 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87144
87145         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87146
87147 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87148
87149         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87150         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87151         after the 'gnu' in these cases.  This fixes some bugs in the
87152         previous change, and is based on suggestions by Robert Millan.
87153
87154 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87155
87156         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87157         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87158         no longer needed.
87159         * lib/quotearg.c (quotearg_n_options): Use it.
87160         * lib/group-member.c: Include <stdbool.h>.
87161         (free_group_info): Arg is now const *; don't free arg.
87162         (get_group_info): Now returns bool and accepts struct group_info *,
87163         rather than returning a malloc'ed struct group_info *.
87164         All uses changed.  Check for overflow in internal size calculation.
87165
87166         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87167         rather than xmalloc/xrealloc.
87168         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87169         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87170         conformance bug: the old code used a pointer after freeing the
87171         storage that it addressed.
87172         * lib/hash.c (hash_initialize): Simplify the code by using
87173         xalloc_oversized rather than doing it by hand.
87174         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87175         the buffer preserved.  Use free and xmalloc instead.
87176         * lib/quotearg.c (quotearg_n_options): Likewise.
87177         Use a simpler test for size overflow.  Don't use xalloc_oversized
87178         because unsigned int might be wider than size_t (!); this suggests
87179         that we should switch from unsigned int to size_t for slot numbers.
87180
87181 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87182
87183         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87184         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87185         NetBSD kernels.  Requested by Richard Stallman.
87186
87187 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87188
87189         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87190         to allocate the returned structure.  Do not allocate a subarray,
87191         as x2nrealloc will do that.
87192         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87193         instead of xnrealloc.
87194         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87195
87196 2003-10-27  Bruno Haible  <bruno@clisp.org>
87197
87198         * lib/stdbool_.h: Better support for BeOS.
87199
87200 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87201
87202         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87203         now uses inline.
87204
87205 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87206
87207         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87208         callers that want to do their own size-overflow checking.  Include
87209         <stdbool.h>, since xalloc_oversized returns bool.
87210         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87211         to use xalloc_oversized.
87212
87213         Add two functions x2realloc, x2nrealloc, for programs that grow
87214         arrays dynamically by doubling their sizes.
87215         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87216         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87217         New functions.
87218
87219         Port to C99 semantics for 'inline' of external functions.
87220         Bug reported by Bruno Haible.
87221         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87222         with the old contents of xnmalloc.
87223         (xnmalloc, xmalloc): Use it.
87224         (xnrealloc_inline): New static inline function,
87225         with the old contents of xnrealloc.
87226         (xnrealloc, xrealloc): Use it.
87227
87228         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87229         that.
87230
87231 2003-10-26  Karl Berry  <karl@gnu.org>
87232
87233         * config/srclist.txt (COPYING.DOC): no longer available from
87234         /gd/gnuorg; don't know where the ultimate source is.
87235
87236 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87237
87238         Fix several address-calculation bugs in the hash modules,
87239         plus some minor code cleanup.
87240
87241         * lib/hash.h: Include <stdbool.h>, for bool.
87242         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87243         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87244         hash_get_n_entries, hash_get_max_bucket_length,
87245         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87246         hash_rehash): Use size_t rather than unsigned.
87247         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87248         hash_get_n_buckets_used, hash_get_n_entries,
87249         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87250         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87251         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87252         Likewise.
87253         (SIZE_MAX): Define if not defined.
87254         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87255         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87256         hash_print):
87257         Use const * when possible.
87258         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87259         (check_tuning): Fix bug: if tuning parameters were very close to
87260         0 or 1, rounding errors could have caused subscript violations.
87261         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87262         (hash_initialize): Add 'fail:' label
87263         to free table and return NULL, and use it to simplify code.
87264         Use calloc rather than clearing the storage ourself.
87265         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87266         buffer size calculations.
87267         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87268         Include <stddef.h>, for size_t.
87269         * lib/hash-pjw.c (hash_pjw): Likewise.
87270         Switch to method described by Bruno Haible.
87271         Include <limits.h>, for CHAR_BIT.
87272         (SIZE_BITS): New macro.
87273
87274 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87275
87276         * m4/getline.m4 (AM_FUNC_GETLINE):
87277         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87278         hosts.  Problem reported by Derek Robert Price in
87279         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87280         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87281         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87282
87283 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87284
87285         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87286         ceiling the allocation at NMAX bytes rather than silently
87287         discarding input bytes before NMAX is reached.  This makes
87288         a difference only if NMAX exceeds SIZE_MAX / 2.
87289
87290         * lib/obstack.c: Merge from glibc.
87291         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87292         Add libc_hidden_def (_obstack_newchunk).
87293         (_obstack_free) [! defined _LIBC]: Remove.
87294         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87295         a clone of the function body.
87296         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87297         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87298
87299         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87300         glibc.
87301         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87302         arg to memcpy.
87303
87304         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87305         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87306         Don't use lvalue casts, as GCC plans to remove support for them
87307         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87308         was also present in the non-GCC version, indicating that this
87309         code had always been buggy and had never been widely used.
87310         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87311         Use the fast variant of each macro, rather than copying the
87312         definiens of the fast variant; that way, we'll be more likely to
87313         catch future bugs in the fast variants.
87314
87315 2003-10-20  Bruno Haible  <bruno@clisp.org>
87316
87317         * modules/wait-process: New file.
87318         * MODULES.html.sh (func_all_modules): Add wait-process.
87319
87320 2003-10-20  Bruno Haible  <bruno@clisp.org>
87321
87322         * m4/wait-process.m4: New file.
87323
87324 2003-10-20  Bruno Haible  <bruno@clisp.org>
87325
87326         * lib/wait-process.h: New file, from GNU gettext.
87327         * lib/wait-process.c: New file, from GNU gettext.
87328
87329 2003-10-19  Jim Meyering  <jim@meyering.net>
87330
87331         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87332         HPUX 10.20.
87333
87334 2003-10-18  Karl Berry  <karl@gnu.org>
87335
87336         * config/config.guess: update from config.
87337
87338 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87339
87340         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87341         (getgroups): First arg is int, not size_t.
87342         Don't let 'free' mangle errno.
87343
87344 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87345
87346         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87347
87348 2003-10-16  Karl Berry  <karl@gnu.org>
87349
87350         * config/config.{guess,sub}: update from config.
87351
87352 2003-10-16  Jim Meyering  <jim@meyering.net>
87353
87354         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87355         memcpy.
87356
87357 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87358
87359         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87360         (SIZE_MAX): Remove.
87361         (new_exclude, add_exclude_file): Initial size no longer needs to
87362         be a power of 2.
87363         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87364         our own address arithmetic overflow checking.
87365
87366         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87367         (fnmatch): Do not alloca more than 2000 wide characters;
87368         instead, use malloc for large buffers.
87369         Check for address arithmetic overflow, and return -1
87370         with errno set to ENOMEM in that case.
87371         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87372         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87373         instead, return -1.  Check for address arithmetic overflow.
87374
87375 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87376
87377         Handle invalid suffixes and overflow independently, so that
87378         callers can treat them independently as needed.  Fix some bugs in
87379         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87380         suffix for a human-readable blocksize.  The major caller-visible
87381         change is the addition of a new
87382         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87383         that both overflow and suffix chars were found.
87384
87385         * lib/human.c (humblock): Don't check separately for invalid suffix
87386         char; that is xstrtoumax's job (now that its bug is fixed).
87387         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87388         INTMAX_MAX]: New macros.
87389         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87390         TYPE_MAXIMUM): New macros.
87391         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87392         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87393         if overflow occurs, as it's what __strtol does and it's more useful
87394         in practice.
87395         (__xstrtol): If __strtol reports some error other than ERANGE,
87396         reflect it to the caller as LONGINT_INVALID.  If it reports
87397         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87398         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87399         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87400         value.
87401         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87402         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87403         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87404         [defined UINTMAX_MAX]: New macros.
87405
87406 2003-10-14  Bruno Haible  <bruno@clisp.org>
87407
87408         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87409
87410 2003-10-14  Bruno Haible  <bruno@clisp.org>
87411
87412         * m4/sig_atomic_t: New file, from GNU gettext.
87413         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87414
87415 2003-10-14  Bruno Haible  <bruno@clisp.org>
87416
87417         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87418         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87419         Also use volatile where needed.
87420
87421 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87422
87423         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87424         Change maintainer from Bruno Haible to 'all'.
87425
87426 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87427
87428         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87429
87430 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87431
87432         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87433         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87434         and define in terms of the other primitives.
87435         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87436         (SIZE_MAX): Define if not already defined.
87437         (array_size_overflow): New function.
87438         (xalloc_die): Abort instead of exiting if 'error' returns.
87439         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87440         (xmalloc, xrealloc): Use them.
87441         (xcalloc): Check for address arithmetic overflow.
87442         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87443         a bit faster than strcpy.
87444
87445 2003-10-10  Simon Josefsson  <jas@extundo.com>
87446
87447         * modules/argp (Depends-on): Add restrict and strcase.
87448
87449 2003-10-10  Simon Josefsson  <jas@extundo.com>
87450
87451         * m4/argp.m4: Add AC_C_INLINE.
87452
87453 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87454
87455         Merge getpass from libc, plus a few fixes.
87456
87457         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87458         Include <stdbool.h>.
87459         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87460         __fsetlocking to empty.
87461         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87462         do include <bits/libc-lock.h>.
87463         Do not include <fcntl.h>; not needed.
87464         [_LIBC]: Include <wchar.h>.
87465         (NOTCANCEL_MODE): New macro.
87466         (flockfile, funlockfile) [_LIBC]: New macros.
87467         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87468         [!_LIBC]: New macros.
87469         (call_fclose): New function.
87470         (getpass): Use it.  Save tty stream separately; this simplifies the
87471         code and makes it more reliable if stdin happens to equal stdout.
87472         Invoke __fsetlocking on tty.
87473         Handle thread cancellation if needed.
87474         Namespace cleanup (use __tcgetattr, __getline).
87475         Use bool for Booleans.
87476         [USE_IN_LIBIO]: Handle wide streams.
87477         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87478         stream might go where.
87479
87480         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87481         doesn't have to include <stdio.h> before us.
87482         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87483         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87484         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87485         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87486         if not declared, so that we can use getpass.c code from libc without
87487         rewriting it.
87488         (flockfile, ftrylockfile, funlockfile): New macros.
87489
87490 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87491
87492         * modules/getpass: Depend on stdbool.
87493
87494 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87495
87496         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87497
87498 2003-10-07  Karl Berry  <karl@gnu.org>
87499
87500         * config/config.{guess,sub}: update from config.
87501
87502 2003-10-06  Jim Meyering  <jim@meyering.net>
87503             Bruno Haible  <bruno@clisp.org>
87504
87505         This lets translators provide better translations for the
87506         "Written by ..." part of --version output.
87507         * lib/version-etc.h: Include stdarg.h.
87508         (version_etc_copyright): Declare as readonly.
87509         (version_etc): Make this function variadic with a NULL-terminated list
87510         of author name strings.
87511         (version_etc_va): New declaration.
87512         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87513         (version_etc_copyright): Declare as readonly.
87514         (version_etc_va): New function. Provide a different translatable string
87515         for each possible number of authors < 10. Abbreviate when there are 10
87516         authors or more.
87517         (version_etc): Make this function variadic. Call version_etc_va.
87518         Suggestion from Gary V. Vaughan.
87519
87520         * lib/long-options.h (parse_long_options): Change prototype: the
87521         authors string is moved to the end and becomes variadic.
87522         * lib/long-options.c: Include stdarg.h.
87523         (parse_long_options): Make this function variadic, too.
87524         Call version_etc_va, not version_etc.
87525
87526 2003-10-06  Bruno Haible  <bruno@clisp.org>
87527
87528         * modules/version-etc-2: Remove file.
87529         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87530
87531 2003-10-06  Bruno Haible  <bruno@clisp.org>
87532
87533         * modules/fatal-signal: New file.
87534         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87535
87536 2003-10-06  Bruno Haible  <bruno@clisp.org>
87537
87538         * m4/fatal-signal.m4: New file.
87539         * m4/signalblocking.m4: New file, from GNU gettext.
87540
87541 2003-10-06  Bruno Haible  <bruno@clisp.org>
87542
87543         * lib/version-etc-2.h: Remove file.
87544         * lib/version-etc-2.c: Remove file.
87545
87546 2003-10-06  Bruno Haible  <bruno@clisp.org>
87547
87548         * lib/fatal-signal.h: New file, from GNU gettext.
87549         * lib/fatal-signal.c: New file, from GNU gettext.
87550
87551 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87552
87553         * README: Rework advice for preventing empty .o files.
87554         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87555         not <sys/types.h>.
87556
87557 2003-10-04  Karl Berry  <karl@gnu.org>
87558
87559         * lib/argp*: update from libc.
87560
87561 2003-10-04  Karl Berry  <karl@gnu.org>
87562
87563         * config/config.{guess,sub}: update from config.
87564
87565 2003-10-02  Bruno Haible  <bruno@clisp.org>
87566
87567         * modules/lchown (Include): Add lchown.h.
87568         * modules/time_r (Include): Use "..." syntax.
87569         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87570
87571 2003-10-01  Simon Josefsson  <jas@extundo.com>
87572
87573         * MODULES.html.sh (func_all_modules): Move gethostname from section
87574         'based on' to section 'lacking' POSIX:2001.
87575
87576 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87577
87578         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87579         to output mode on the same stream.
87580
87581 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87582
87583         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87584         Fix arg typo in previous patch.
87585
87586 2003-09-28  Jim Meyering  <jim@meyering.net>
87587
87588         * lib/error.c: Correct cpp indentation.
87589
87590 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87591
87592         * modules/free: New file.
87593
87594 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87595
87596         * m4/free.m4: New file.
87597
87598 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87599
87600         * lib/minmax.h (MIN, MAX)
87601         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87602         Omit the special code that used __typeof__, since we worry that
87603         it could be more trouble than it's worth.  See:
87604         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87605         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87606
87607         * lib/free.c: New file.
87608
87609 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87610
87611         Trivial fixes to Makefile.am parts of module listings.
87612         * modules/strstr: Append strstr.h to lib_SOURCES.
87613         * modules/strcase: Likewise, for strcase.h.
87614
87615 2003-09-27  Karl Berry  <karl@gnu.org>
87616
87617         * config/mkinstalldirs: update from automake.
87618
87619 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87620
87621         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87622         (error_tail): Do not loop, reallocating temporary buffer, since
87623         the output cannot contain more wide characters than the input
87624         contains bytes, the size must be big enough already.  This avoids
87625         one potential size overflow calculation.  Check for size overflow
87626         when calculating temporary buffer size.  Free temporary buffer
87627         when done, if it was allocated with malloc; this plugs a memory
87628         leak.  Remove casts from void * to pointers, that are no longer
87629         needed now that we're assuming C89 or better.
87630
87631         Merge error changes from glibc.
87632
87633         * lib/error.c, error.h: Update copyright notice header to match glibc.
87634         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87635         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87636         Disable cancellation while printing error.
87637         * lib/error.h: Prepend __ to parameter names.
87638
87639 2003-09-26  Jim Meyering  <jim@meyering.net>
87640
87641         * lib/error.c (error_tail): Move some declarations
87642         into inner scope where the local variables are used.
87643
87644 2003-09-26  Bruno Haible  <bruno@clisp.org>
87645
87646         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87647         stpncpy().
87648         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87649
87650 2003-09-26  Bruno Haible  <bruno@clisp.org>
87651
87652         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87653         (stpncpy): Define as alias for gnu_stpncpy.
87654         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87655
87656 2003-09-25  Simon Josefsson  <jas@extundo.com>
87657
87658         * lib/xgetdomainname.h: New file.
87659         * lib/xgetdomainname.c: New file.
87660
87661 2003-09-25  Simon Josefsson  <jas@extundo.com>
87662             Bruno Haible  <bruno@clisp.org>
87663
87664         * modules/getdomainname: New file.
87665         * modules/xgetdomainname: New file.
87666         * MODULES.html.sh (func_all_modules): Add getdomainname,
87667         xgetdomainname.
87668
87669 2003-09-25  Simon Josefsson  <jas@extundo.com>
87670             Bruno Haible  <bruno@clisp.org>
87671
87672         * m4/getdomainname.m4: New file.
87673
87674 2003-09-25  Simon Josefsson  <jas@extundo.com>
87675             Bruno Haible  <bruno@clisp.org>
87676
87677         * lib/getdomainname.h: New file.
87678         * lib/getdomainname.c: New file.
87679
87680 2003-09-25  Karl Berry  <karl@gnu.org>
87681
87682         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87683
87684 2003-09-25  Karl Berry  <karl@gnu.org>
87685
87686         * config/install-sh: update from automake.
87687
87688 2003-09-25  Bruno Haible  <bruno@clisp.org>
87689
87690         * modules/version-etc-2: New file, from modules/version-etc with
87691         modifications.
87692         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87693
87694 2003-09-25  Bruno Haible  <bruno@clisp.org>
87695
87696         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87697         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87698
87699 2003-09-24  Simon Josefsson  <jas@extundo.com>
87700
87701         * modules/xgethostname: Add xgethostname.h.
87702
87703 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87704
87705         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87706         the buffer associated with the argument.  Bug reported by
87707         Simon Josefsson.
87708
87709 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87710
87711         * README: Document assumptions that 'int' is at least 32 bits
87712         wide, that integer arithmetic is 2's complement without overflow,
87713         that there are no holes in integer values, that adding sizes of
87714         two nonoverlapping objects can't overflow, and that all-bits-zero
87715         yields scalar zero.  Fix spelling and capitalization typos.
87716
87717 2003-09-19  Karl Berry  <karl@gnu.org>
87718
87719         * lib/argp.h: update from libc.
87720
87721 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87722
87723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87724         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87725         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87726
87727 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87728
87729         * gnulib-tool: Use "test -h", not "test -L", for portability
87730         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87731         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87732         (sed_extract_prog): Issue s commands one-by-one, rather than
87733         using \| in one s command.
87734
87735 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87736
87737         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87738         input error, instead of returning NULL the next time we are called
87739         (and therefore losing track of errno).
87740
87741 2003-09-16  Bruno Haible  <bruno@clisp.org>
87742
87743         * gnulib-tool (func_create_testdir): Warn about duplicated
87744         dependencies.
87745
87746 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87747
87748         * modules/argmatch, modules/fatal, modules/obstack,
87749         modules/xalloc, modules/xgethostname: Sort dependencies by
87750         importance, not alphabetically.
87751
87752 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87753
87754         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87755         fails, so that the caller gets the proper errno.
87756
87757         * lib/readutmp.c (read_utmp): Likewise.
87758         Check for fstat error.  Close stream and free storage
87759         when failing.
87760
87761 2003-09-14  Karl Berry  <karl@gnu.org>
87762
87763         * config/srclist.txt (strdup.c): disable for c89 changes.
87764
87765 2003-09-14  Jim Meyering  <jim@meyering.net>
87766
87767         * lib/getloadavg.c: Correct cpp indentation.
87768         * lib/strdup.c: Likewise.
87769         * lib/vasnprintf.c: Likewise.
87770
87771 2003-09-14  Bruno Haible  <bruno@clisp.org>
87772
87773         * modules/fwriteerror: New file.
87774         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87775
87776 2003-09-14  Bruno Haible  <bruno@clisp.org>
87777
87778         * lib/fwriteerror.h: New file.
87779         * lib/fwriteerror.c: New file.
87780
87781 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87782
87783         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87784         modules/xgethostname, modules/xalloc: Depend on exit.
87785
87786 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87787
87788         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87789
87790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87791         and AC_MINIX, too, so that their extensions are available.
87792
87793         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87794         This macro has been superseded by gl_BACKUPFILE.
87795
87796         More patches to assume C89 or better.
87797
87798         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87799
87800         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87801         unconditionally.
87802         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87803         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87804         Include <string.h>, <stdlib.h> unconditionally.
87805         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87806         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87807         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87808         headers or for string.h.
87809         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87810         or strtoul.
87811
87812         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87813         headers.
87814         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87815         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87816         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87817         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87818         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87819         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87820         memcpy, memset.
87821         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87822         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87823         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87824         strtol.
87825         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87826         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87827         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87828         strtoul.
87829
87830 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87831
87832         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87833         * lib/obstack.c [!defined _LIBC]: Likewise.
87834         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87835         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87836         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87837
87838         More changes to assume C89 or better.
87839
87840         * lib/error.c (error_tail): Assume vprintf.
87841
87842         * lib/argmatch.c (getenv): Remove decl.
87843         * lib/progreloc.c (get_full_program_name): Define via prototype.
87844         * lib/setenv.c (clearenv): Likewise.
87845         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87846         needed.
87847         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87848         (malloc, memcpy): Remove decls.
87849         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87850         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87851         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87852         (memcpy): Remove macro.
87853         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87854         (__P): Remove.  All uses removed.
87855         (PTR): Remove.  All uses changed to void *.
87856         (CHAR_BIT, NULL): Remove.
87857         (spaces, zeros, memset_space, memset_zero)
87858         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87859         Remove.
87860         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87861         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87862         Define with prototype.
87863         Remove now-unnecessary prototype decl.
87864         (extra_args_spec): Assume ANSI C.  All uses changed.
87865         (extra_args_spec_iso): Remove.
87866         (my_strftime, emacs_strftimeu): Define via prototype.
87867         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87868         unconditionally.
87869         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87870         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87871         (strtoul, strtol): Remove decls.
87872         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87873         LONG_MAX): Remove.
87874         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87875         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87876         (LOCALE_PARAM_PROTO): New macro.
87877         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87878         (INTERNAL (strtol), strtol): Define with a prototype.
87879         (PARAMS): Remove.  All uses removed.
87880         * lib/tempname.c: Include <string.h> unconditionally.
87881         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87882         * lib/xgethostname.c (main): Define with a prototype.
87883         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87884         Include <stdlib.h> unconditionally.
87885         (calloc, malloc, realloc, free): Remove decls.
87886         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87887         Include <stdlib.h> unconditionally.  Sort include file names.
87888         (strtod): Remove.
87889         (xstrtod): Define with a prototype.
87890         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87891         (strtol, strtoul): Remove decls.
87892
87893 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87894
87895         More patches to assume C89 or better.
87896         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87897         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87898         string.h, memchr, STDC_HEADERS.
87899
87900 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87901
87902         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87903         Include <stdlib.h>, <string.h> unconditionally.
87904         Remove now-unnecessary cast to char *.
87905         * lib/strnlen.c: Include <string.h> unconditionally.
87906         * lib/yesno.c (yesno): Define with a prototype.
87907
87908 2003-09-11  Bruno Haible  <bruno@clisp.org>
87909
87910         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87911
87912 2003-09-10  Jim Meyering  <jim@meyering.net>
87913
87914         * lib/error.c: Correct indentation of cpp directives.
87915
87916 2003-09-10  Bruno Haible  <bruno@clisp.org>
87917
87918         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87919         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87920         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87921         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87922         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87923         <stdlib.h> and <string.h> checks.
87924         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87925         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87926
87927 2003-09-10  Bruno Haible  <bruno@clisp.org>
87928
87929         * lib/strcspn.c: Include <string.h> unconditionally.
87930         * lib/strpbrk.c: Include <string.h> unconditionally.
87931         * lib/strstr.c: Include <string.h> unconditionally.
87932         * lib/unicodeio.c: Include <string.h> unconditionally.
87933         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87934         * lib/unsetenv.c: Likewise.
87935         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87936         * lib/yesno.c: Include <stdlib.h> unconditionally.
87937         (rpmatch): Add prototype.
87938
87939 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87940
87941         More patches to assume C89 or better.
87942         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87943         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87944         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87945         or for string.h.
87946         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87947         stdlib.h.
87948         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87949         C headers.
87950         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87951         string.h.
87952         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87953         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87954         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87955         or for string.h.
87956         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87957         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87958         C headers.
87959         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87960         memcpy.
87961         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87962         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87963         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87964         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87965         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87966         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87967         string.h, free.
87968         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87969         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87970         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87971         C headers, or for string.h.
87972         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87973         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87974         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87975         headers, memory.h, stdlib.h, string.h, strings.h.
87976         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87977         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87978         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87979         strchr.
87980         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87981         headers, memory.h, string.h.
87982         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87983         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87984         free.
87985         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87986         headers.
87987         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87988         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87989         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87990         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87991         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87992
87993 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87994
87995         More K&R removal.
87996
87997         * lib/acosl.c (main): Use a prototype.
87998         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87999         tanl.c: Likewise.
88000
88001         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88002
88003         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88004         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88005         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88006         with a prototype.
88007         * lib/getopt.c (const): Remove macro.
88008         Include <string.h> unconditionally.
88009         (my_index): Remove; all uses changed to strchr.
88010         (strlen): Remove decl.
88011         (exchange): Remove forward decl; no longer needed.
88012         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88013         Define with prototype.
88014         * lib/getopt1.c (const): Remove macro.
88015         (getopt_long, getopt_long_only, main): Define with prototype.
88016
88017         * lib/getugroups.c: Include <string.h> unconditionally.
88018
88019         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88020         (getusershell, setusershell, endusershell, readname, main):
88021         Define with prototypes.
88022
88023         * lib/group-member.c: Include group-member.h first.
88024         Include <stdlib.h> unconditionally.
88025
88026         * lib/hard-locale.c: Include hard-locale.h first.
88027         Include <stdlib.h>, <string.h> unconditionally.
88028
88029         * lib/hash.c (free, malloc): Remove decls.
88030         Include <stdlib.h> unconditionally.
88031
88032         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88033         (getenv): Do not declare.
88034
88035         * lib/idcache.c: Include <string.h> unconditionally.
88036
88037         * lib/long-options.c: Include long-options.h first, to test interface.
88038         Include <stdlib.h> unconditionally.
88039
88040         * lib/makepath.c: Include makepath.h first, to test interface.
88041         Include <stdlib.h> and <string.h> unconditionally.
88042
88043         * lib/linebuffer.c: Include <stdlib.h>.
88044         (free): Remove decl.
88045
88046         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88047         stddef.h. rpl_malloc returns void *, not char *.
88048         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88049         prototype.
88050
88051         * lib/md5.h: Include <limits.h> unconditionally.
88052         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88053         (__P): Remove; all uses removed.
88054         * lib/md5.c: Include "md5.h" first.
88055         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88056         md5_buffer, md5_process_bytes, md5_process_block):
88057         Define with prototypes.
88058         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88059         * lib/sha.c: Include "sha.h" first.
88060         Include <stdlib.h>, <string.h> unconditionally.
88061
88062         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88063         * lib/memcmp.c (__ptr_t): Likewise.
88064         * lib/memrchr.c (__ptr_t): Likewise.
88065         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88066         Include <string.h> unconditionally.
88067         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88068         * lib/memchr.c: Include <stdlib.h> unconditionally.
88069         * lib/memchr.c (LONG_MAX): Remove.
88070         * lib/memrchr.c (LONG_MAX): Likewise.
88071         * lib/memchr.c (__memchr): Define via a prototype.
88072         * lib/memrchr.c (__memrchr): Likewise.
88073         * lib/memcmp.c (__P): Remove, and remove all uses.
88074         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88075         Remove forward decls; no longer needed.
88076         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88077         Use types required by C89 in prototype.
88078
88079         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88080         * lib/savedir.c: Likewise.
88081         * lib/mkdir.c (free): Remove decl.
88082         * lib/rmdir.c (rmdir): Define with a prototype.
88083         * lib/savedir.c: Include savedir.h first, to test interface.
88084
88085         * lib/mktime.c (STDC_HEADERS): Remove.
88086         Include <stdlib.h>, <string.h> unconditionally.
88087
88088         * lib/modechange.c: Include <stdlib.h> unconditionally.
88089         (malloc): Remove decl.
88090
88091         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88092         (free): Remove decl.
88093
88094         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88095         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88096         (This type really should be intptr_t, but that's a C99ism.)
88097         (_obstack_memcpy): Remove: all uses changed to memcpy.
88098         Include <string.h> unconditionally.
88099         (struct obstack): Assume __STDC__ for types of members
88100         chunkfun, freefun, extra_arg.
88101         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88102         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88103         obstack_begin, obstack_specify_allocation,
88104         obstack_specify_allocation_with_arg, obstack_chunkfun,
88105         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88106         Remove unprototyped decls and the macros that use them.
88107         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88108         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88109         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88110         (defined __STDC__ && __STDC__)]:
88111         Remove nonprototyped code.
88112         Include <stdlib.h> unconditionally.
88113         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88114         _obstack_allocated_p, _obstack_free, obstack_free,
88115         _obstack_memory_used, print_and_abort):
88116         Define using prototypes.
88117         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88118         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88119         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88120         obstack_next_free, obstack_object_size, obstack_room) [0]:
88121         Remove unused, unprototyped code.
88122
88123         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88124
88125         * lib/physmem.c (physmem_total, physmem_available, main): Define
88126         with prototypes.
88127
88128         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88129         (main): Define with a prototype.
88130
88131         * lib/posixver.c (getenv): Remove decl.
88132
88133         * lib/putenv.c (malloc): Returns void *, not char *.
88134         Include <string.h> unconditionally.
88135         (strchr, memcpy, NULL): Do not define.
88136
88137         * lib/readtokens.c: Include readtokens.h first, to test interface.
88138         Include <stdlib.h>, <string.h> unconditionally.
88139         (init_tokenbuffer): Define with a prototype.
88140
88141         * lib/regex.c (PARAMS): Remove.  All uses removed.
88142         All uses of _RE_ARGS removed, too.
88143         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88144         unconditionally.
88145         (bzero): Assume memset exists.
88146         (memcmp, memcpy, NULL): Remove.
88147         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88148         char, or assignments to local vars of type signed char.
88149         (init_syntax_once, PREFIX(extract_number_and_incr),
88150         PREFIX(print_partial_compiled_pattern),
88151         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88152         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88153         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88154         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88155         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88156         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88157         wcs_compile_range, byte_compile_range, truncate_wchar,
88158         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88159         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88160         count_mbs_length, wcs_re_match_2_internal,
88161         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88162         PREFIX(alt_match_null_string_p),
88163         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88164         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88165         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88166         now-unnecessary declaration, if any.
88167         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88168         regcomp, regexec):
88169         Remove now-unnecessary casts among pointer types.
88170         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88171
88172         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88173         (free): Remove decl.
88174
88175         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88176
88177         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88178         (free): Remove decl.
88179
88180         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88181         * lib/xgetcwd.c: Likewise.
88182
88183         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88184         (free): Remove decl.
88185
88186         * lib/strchrnul.c (strchrnul): Define with a prototype.
88187         Fix bug: c_in was not converted to char before searching.
88188
88189         The following changes are not K&R related:
88190
88191         * lib/group-member.h: Include <sys/types.h>, so that this file is
88192         self-contained.
88193         * lib/makepath.h: Likewise.
88194
88195         * lib/getusershell.c (readname, default_index, line_size, readname):
88196         Use size_t, not int, for sizes.
88197         (readname): If the size overflows, report an error instead of
88198         looping forever.
88199
88200 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88201
88202         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88203         libc.
88204
88205 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88206
88207         * README: New section: portability guidelines.
88208
88209 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88210
88211         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88212         C89 spec.
88213
88214 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88215
88216         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88217
88218 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88219
88220         Assume C89 or better; remove K&R cruft.
88221         A few of these changes were first proposed by Derek Robert Price
88222         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88223
88224         * lib/addext.c: Include <string.h> unconditionally.
88225         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88226         Don't declare getenv or malloc.
88227
88228         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88229         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88230         (NULL): Remove.
88231         (find_stack_direction, alloca): Use prototypes.
88232
88233         * lib/atexit.c (atexit): Define using a prototype.
88234
88235         * lib/basename.c, dirname.c, stripslash.c:
88236         Include <string.h> unconditionally.
88237
88238         * lib/bcopy.c: Include <stddef.h>.
88239         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88240
88241         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88242
88243         * lib/error.h (error, error_at_line, error_print_progname)
88244         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88245         * lib/error.c: Include error.h first, to check interface.
88246         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88247         (VA_START): Remove; all uses changeed to va_start.
88248         (exit, strerror): Remove decls.
88249         (error_print_progname): Prototype uncondionally.
88250         Don't include <errno.h>; no longer needed.
88251         (private_strerror): Remove.
88252         (error_tail): Always define.
88253         (error, error_at_line): Assume C89 or better; always use prototypes.
88254         * lib/fatal.c: Include "fatal.h" first, to test interface.
88255         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88256         (VA_START): Remove; all uses changed to va_start.
88257         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88258         this case.
88259         (exit): Remove decl.
88260         (fatal): Prototype unconditionally.  Assume va_start works.
88261         Abort at end, to pacify gcc.
88262
88263         * lib/euidaccess.c (main): Define with a prototype.
88264
88265         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88266
88267         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88268
88269         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88270         prototypes.
88271         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88272         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88273         (getenv): Remove decl.
88274         (fnmatch): Define using a prototype.
88275         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88276         (FCT): Define using a prototype.
88277
88278         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88279
88280         * lib/gethostname.c: Include <stddef.h>.
88281         (gethostname): Define with prototype.  Length is size_t, not int.
88282
88283 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88284
88285         Assume C89 or better; remove K&R cruft.
88286         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88287         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88288         string.h, getenv, malloc.
88289         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88290         headers.
88291         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88292         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88293         do not check for strerror.
88294         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88295         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88296         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88297         do not check for doprnt or vprintf.
88298         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88299         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88300
88301 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88302
88303         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88304         getversion.c should have been removed then, but was accidentally
88305         preserved.
88306
88307         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88308         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88309
88310 2003-09-08  Karl Berry  <karl@gnu.org>
88311
88312         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88313                 config, forget about prep.
88314
88315         * config/depcomp, missing: update from automake.
88316
88317 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88318
88319         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88320         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88321
88322 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88323
88324         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88325         copy_tm_result.  Bug reported by Simon Josefsson in
88326         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88327
88328 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88329
88330         * m4/time_r.m4: New file.
88331         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88332         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88333         is. Check for timegm declaration.
88334         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88335         Do not check for gmtime_r.
88336         Replace mktime if __mktime_internal does not exist and if mktime
88337         hasn't been replaced already.
88338
88339 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88340
88341         * lib/time_r.c, lib/time_r.h: New files.
88342
88343         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88344         __localtime_r.
88345         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88346         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88347
88348         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88349         __gmtime_r.
88350         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88351         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88352         Include <time_r.h>.
88353
88354         * lib/timegm.c: Switch to glibc implementation, with the following
88355         changes:
88356         [defined HAVE_CONFIG_H]: Include <config.h>.
88357         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88358         (__mktime_internal) [!defined _LIBC]: New decl.
88359         (__gmtime_r) [!defined _LIBC]: New macro and function.
88360         (timegm): Use a prototype, since gnulib assumes C89.
88361         Do not bother declaring tmp to be const, as it's not really usefu.
88362         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88363         (timegm): Declare only if HAVE_DECL_TIMEGM.
88364
88365 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88366
88367         * MODULES.html.sh (func_all_modules): Add time_r.
88368         * modules/time_r: New file.
88369         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88370         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88371
88372 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88373
88374         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88375         Bug reported by Lute Kamstra in
88376         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88377
88378         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88379         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88380         course with correspondingly smaller numbers for tomorrow and
88381         yesterday.  From Tadayoshi Funaba.  Originally installed into
88382         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88383         coreutils merge?).
88384
88385 2003-08-31  Simon Josefsson  <jas@extundo.com>
88386
88387         * modules/timegm: New file.
88388         * MODULES.html.sh (func_all_modules): Add timegm.
88389
88390 2003-08-31  Simon Josefsson  <jas@extundo.com>
88391
88392         * m4/timegm.m4: New file.
88393
88394 2003-08-31  Simon Josefsson  <jas@extundo.com>
88395
88396         * lib/timegm.h: New file.
88397         * lib/timegm.c: New file.  Based on
88398         wget-1.8.2/src/http.c:mktime_from_utc.
88399
88400 2003-08-31  Karl Berry  <karl@gnu.org>
88401
88402         * lib/argp.h: update from libc.
88403
88404 2003-08-28  Bruno Haible  <bruno@clisp.org>
88405
88406         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88407         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88408         followed by '#define fnmatch fnmatch_posix' gives an error.
88409
88410 2003-08-28  Bruno Haible  <bruno@clisp.org>
88411
88412         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88413         warning on QNX, which defines O_BINARY to 000000.
88414
88415 2003-08-27  Jim Meyering  <jim@meyering.net>
88416
88417         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88418         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88419         would fail after 32.  Reported by Danny Levinson.  Details here:
88420         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88421
88422 2003-08-24  Bruno Haible  <bruno@clisp.org>
88423
88424         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88425         MSVC7 <stdio.h> is included later.
88426
88427 2003-08-22  Simon Josefsson  <jas@extundo.com>
88428
88429         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88430
88431 2003-08-20  Karl Berry  <karl@gnu.org>
88432
88433         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88434
88435 2003-08-20  Bruno Haible  <bruno@clisp.org>
88436
88437         * modules/progname: New file.
88438         * MODULES.html.sh (func_all_modules): Add progname.
88439
88440 2003-08-20  Bruno Haible  <bruno@clisp.org>
88441
88442         * lib/progname.h: New file, from GNU gettext.
88443         * lib/progname.c: New file, from GNU gettext.
88444         * lib/progreloc.c: New file, from GNU gettext.
88445
88446 2003-08-19  Jim Meyering  <jim@meyering.net>
88447
88448         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88449         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88450
88451 2003-08-19  Bruno Haible  <bruno@clisp.org>
88452
88453         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88454         more.
88455
88456 2003-08-19  Bruno Haible  <bruno@clisp.org>
88457
88458         * lib/xstrdup.c: Assume <string.h> exists.
88459
88460 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88461
88462         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88463         in makefile rules.
88464
88465 2003-08-18  Jim Meyering  <jim@meyering.net>
88466
88467         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88468         * m4/lib-ld.m4: Likewise.
88469
88470 2003-08-18  Jim Meyering  <jim@meyering.net>
88471
88472         * lib/setenv.h: Indent nested cpp directive.
88473         * lib/vasnprintf.c: Remove trailing blanks.
88474
88475 2003-08-17  Simon Josefsson  <jas@extundo.com>
88476
88477         * modules/xstrndup: New file.
88478         * MODULES.html.sh (func_all_modules): Add xstrndup.
88479
88480 2003-08-17  Simon Josefsson  <jas@extundo.com>
88481
88482         * modules/argp: Fix autoconf macro name. Add more dependencies.
88483
88484 2003-08-17  Simon Josefsson  <jas@extundo.com>
88485
88486         * m4/xstrndup.m4: New file.
88487
88488 2003-08-17  Simon Josefsson  <jas@extundo.com>
88489
88490         * m4/argp.m4: New file.
88491
88492 2003-08-17  Simon Josefsson  <jas@extundo.com>
88493             Bruno Haible  <bruno@clisp.org>
88494
88495         * lib/xstrndup.h: New file.
88496         * lib/xstrndup.c: New file.
88497
88498 2003-08-17  Bruno Haible  <bruno@clisp.org>
88499
88500         * modules/strndup (Files, Include): Add lib/strndup.h.
88501
88502 2003-08-17  Bruno Haible  <bruno@clisp.org>
88503
88504         * modules/euidaccess (Files): Add lib/euidaccess.h.
88505
88506 2003-08-17  Bruno Haible  <bruno@clisp.org>
88507
88508         * lib/strndup.h: New file.
88509
88510 2003-08-17  Bruno Haible  <bruno@clisp.org>
88511
88512         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88513         like AC_GNU_SOURCE.
88514         * modules/extensions (configure.ac): Comment out the invocation of
88515         gl_USE_SYSTEM_EXTENSIONS.
88516
88517 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88518
88519         Merges from coreutils, etc.
88520         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88521         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88522         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88523         fixing a typo.
88524         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88525         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88526
88527 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88528
88529         Document merge from coreutils.
88530         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88531         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88532         * modules/utime: Add m4/utimes-null.m4.
88533
88534 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88535
88536         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88537         space, undoing this 2003-08-12 change:
88538         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88539
88540 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88541
88542         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88543         strtoul.c from libc, undoing this 2003-08-12 change:
88544         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88545
88546 2003-08-16  Jim Meyering  <jim@meyering.net>
88547
88548         Merges from coreutils.
88549         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88550         prefix.  Adjust cache variables similarly.  Create 500 rather than
88551         just 300 files, to exercise bug on Darwin6.5, too.
88552         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88553         $missing_dir.
88554         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88555         AM_SYS_POSIX_TERMIOS.
88556         Reported by mkc@mathdogs.com.
88557         Also change use of $am_cv_sys_posix_termios
88558         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88559         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88560         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88561         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88562         in /proc/mounts until it finds one with matching device number.  This
88563         is unnecessary when the FILE argument *is* a mount point.  No stat call
88564         is necessary in that case.  So, disable the statvfs-testing code on
88565         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88566         as RedHat bug# 84846.
88567         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88568         to 1MB, so as not to render systems with no stack size limit (e.g.,
88569         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88570         Include <unistd.h>.  On some systems,
88571         it is required for the definition of _SC_PAGESIZE.
88572
88573 2003-08-16  Jim Meyering  <jim@meyering.net>
88574
88575         Merge from coreutils.
88576         * lib/xstrtoimax.c: #else #if -> #elif.
88577         * lib/xstrtoumax.c: Likewise.
88578
88579 2003-08-16  Jim Meyering  <jim@meyering.net>
88580
88581         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88582         * m4/utimes.m4: Removed.
88583         * m4/utimes-null.m4: Renamed from utimes.m4.
88584
88585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88586         to 1MB, so as not to render systems with no stack size limit (e.g.,
88587         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88588         Include <unistd.h>.  On some systems,
88589         it is required for the definition of _SC_PAGESIZE.
88590
88591 2003-08-16  Jim Meyering  <jim@meyering.net>
88592         and Paul Eggert  <eggert@cs.ucla.edu>
88593
88594         Merges from coreutils, etc.
88595
88596         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88597         using the latest version from cvs.  This avoids problems with #line
88598         directives using a vendor (Sun) compiler.
88599         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88600         Don't set GETGROUPS_LIB here; now it's
88601         done via getgroups.m4's wrapper function.
88602         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88603         rather than just in sh-util/configure.in, so that the
88604         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88605         same.
88606         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88607         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88608         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88609         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88610         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88611         Remove code that is now done by the newly-required macros.
88612         Append $(EXEEXT) to DF_PROG.
88613         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88614         Do not invoke or require the following here,
88615         since prereq.m4 or some gnulib .m4 now does this for us:
88616         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88617         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88618         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88619         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88620         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88621         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88622         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88623         AC_FUNC_OBSTACK.
88624         Do not replace the following functions, as this is now the job
88625         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88626         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88627         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88628         atexit getpass, strdup, getpagesize.
88629         Replace 'raise'.
88630         Do not check for the following functions, as this is now the job
88631         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88632         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88633         setregid.
88634         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88635         Check for sys/sysctl.h.
88636         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88637         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88638         of checking for ssize_t ourselves.
88639
88640         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88641         Require every macro that gnulib/modules/* suggests for us.
88642         (jm_PREREQ_ADDEXT): New macro.
88643         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88644         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88645
88646         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88647         (gl_PHYSMEM): Use it.
88648         Also check for `table' function.
88649         Check for new headers and functions.
88650         Add check for sys/sysmp.h.
88651         With suggestions from Kaveh Ghazi.
88652         Ignore headers that are present but cannot be compiled.  This
88653         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88654         C 5.4.
88655
88656 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88657
88658         Document merge from coreutils.
88659         * modules/userspec: Depend on posixver.
88660         * modules/strftime: Depend on tzset.
88661
88662 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88663
88664         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88665         rather than tab, after '#' in shell-script copyright notices.
88666         Suggested by Bruno Haible.
88667
88668 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88669
88670         * config/srclist-update: Use three spaces, rather than tab, after '#'
88671         in shell-script copyright notices.  Suggested by Bruno Haible.
88672         Remove unnecessary parenthesization in regular expression.
88673
88674 2003-08-15  Jim Meyering  <jim@meyering.net>
88675
88676         Merge from coreutils.
88677         * lib/xgethostname.c: Include <stdlib.h>.
88678         (xghostname): Don't exit for anything other than memory-related
88679         failure; just return NULL.
88680         * lib/userspec.c: Include "posixver.h".
88681         (parse_user_spec): Accept `.' as a separator only
88682         in pre-POSIX-200112 mode.
88683         * lib/strtoimax.c: Use #elif rather than #else #if.
88684         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88685         Remove function, now that we can rely on a working tzset function.
88686         [!_LIBC]: Ensure that the required autoconf test has been run.
88687         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88688         Use underlying_strftime for %r.
88689         * lib/sha.c: Merge in some clean-up and optimization changes from
88690         glibc.
88691         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88692         Ensure that it is a multiple of 64.
88693         Rearrange loop exit tests so as to avoid performing an
88694         additional fread after encountering an error or EOF.
88695         * lib/realloc.c: Update copyright date.
88696
88697 2003-08-15  Jim Meyering  <jim@meyering.net>
88698         and Paul Eggert  <eggert@twinsun.com>
88699
88700         Merge from coreutils.
88701         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88702         member but strut utmpx does not.  Needed for AIX 4.3.3.
88703         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88704
88705 2003-08-15  Jim Meyering  <jim@meyering.net>
88706         and Paul Eggert  <eggert@cs.ucla.edu>
88707
88708         Merges from coreutils, etc.
88709         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88710         Require gl_FUNC_TZSET_CLOBBER.
88711         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88712         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88713         members.
88714
88715 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88716
88717         Help the merge from coreutils.
88718         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88719         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88720         * m4/tzset.m4: Use it too.
88721
88722 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88723
88724         * modules/tzset: New file.
88725
88726 2003-08-14  Jim Meyering  <jim@meyering.net>
88727
88728         Merges from coreutils.
88729         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88730         variable names, rather than @FNMATCH_H@.
88731         * modules/alloca: Likewise for $(ALLOCA_H).
88732
88733         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88734         the three copies of the literal target, `fnmatch.h'.
88735         * modules/alloca (alloca.h): Likewise.
88736
88737 2003-08-14  Jim Meyering  <jim@meyering.net>
88738
88739         Merge from coreutils.
88740         * m4/tzset.m4: New file.
88741         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88742         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88743         otherwise, AIX 5.1 systems would end up using the latter.
88744         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88745         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88746         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88747         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88748
88749 2003-08-14  Jim Meyering  <jim@meyering.net>
88750
88751         Merge from coreutils.
88752         * lib/obstack.h: Whitespace changes.
88753         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88754         and xcalloc return values.
88755         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88756         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88757         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88758         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88759         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88760         error from mntctl.
88761         Use mntctl's return value to drive the entry-processing loop, since
88762         we can't rely on the value of the vmt_length member in the last
88763         entry.  On some systems doing so could result in exhausting
88764         virtual memory.  Based in part on a patch from Mike Jetzer.
88765
88766 2003-08-14  Jim Meyering  <jim@meyering.net>
88767         and Paul Eggert  <eggert@twinsun.com>
88768
88769         Merges from coreutils, plus other fixes.
88770         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88771         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88772         for credits and details.  Thanks to Kaveh Ghazi for helping
88773         to keep these files in sync.
88774         (ARRAY_SIZE): Define it.
88775         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88776         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88777         (memcasecmp): Don't assume size_t fits in unsigned int.
88778         Remove casts and duplicate code.
88779         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88780         (memcpy): Remove definition.
88781         Merge in some clean-up and optimization changes from glibc.
88782         [BLOCKSIZE]: Move definition to top of file.
88783         Ensure that it is a multiple of 64.
88784         Rearrange loop exit tests so as to avoid performing an
88785         additional fread after encountering an error or EOF.
88786         * lib/md5.h (md5_uintptr): Define.
88787         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88788         return to the initial working directory.  Preserve errno
88789         for caller.
88790         * lib/idcache.c: Include "xalloc.h".
88791         (xmalloc, xrealloc): Remove decls.
88792         (getuser): Remove casts no longer required in C89.
88793         * lib/human.c: Include stdio.h, for sprintf.
88794         * lib/group-member.c: Include "xalloc.h".
88795         (xmalloc, xrealloc): Remove decls.
88796         (get_group_info): Remove casts no longer required in C89.
88797         * lib/getusershell.c (readname): Remove casts no longer required in
88798         C89.
88799         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88800         * lib/getline.c: Whitespace fix, from coreutils.
88801
88802 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88803
88804         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88805         Check for isascii.
88806
88807         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88808         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88809         Undo previous (whitespace-only) change.
88810
88811 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88812
88813         * lib/exclude.c: Include <ctype.h>
88814         (IN_CTYPE_DOMAIN): New macro.
88815         (is_space): New fn.
88816         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88817         and empty lines.
88818
88819         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88820         Undo previous (whitespace-only) change.
88821
88822 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88823
88824         * config/srclist-update: Change update back to the old behavior,
88825         leaving whitespace alone.  Use one 'sed' command rather than a
88826         pipeline.
88827         (fixlicense): Now a variable, not a function.
88828         (remove_trailing_blanks): Remove.
88829         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88830         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88831         Undo previous (whitespace-only) change.
88832
88833 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88834
88835         Merge from coreutils.
88836         * modules/euidaccess: Add lib_SOURCES, include for new
88837         file euidaccess.h
88838
88839 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88840
88841         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88842         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88843         Normalize leading white space and remove trailing white space.
88844
88845         Merge from coreutils
88846         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88847
88848         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88849         0.12.1.  These files are now being upgraded automatically by
88850         ../config/srclist-update.
88851
88852 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88853
88854         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88855         Normalize leading white space and remove trailing white space.
88856         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88857         notice, as per ../config/srclist-update.
88858
88859         Merge from coreutils.
88860         * lib/euidaccess.h: New file.
88861         * lib/euidaccess.c: Include it.
88862         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88863         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88864         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88865
88866 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88867
88868         * config/srclist-update: Add copyright notice.
88869         (remove_id_lines, remove_trailing_blanks): New constants.
88870         (fixfile): Use them to normalize spacing a bit in copied files.
88871         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88872         Normalize leading white space and remove trailing white space.
88873
88874         * config/texinfo.tex: Sync with texinfo.
88875
88876         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88877         strtoul.c from libc, to merge coreutils whitespace changes.
88878
88879         * config/srclist.txt: Get the following m4 files from gettext:
88880         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88881         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88882         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88883         wint_t.m4.
88884
88885 2003-08-12  Karl Berry  <karl@gnu.org>
88886
88887         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88888         been made.
88889
88890 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88891
88892         * modules/gnu-source, m4/gnu-source.m4:
88893         Remove; we're assuming Autoconf 2.54 or later now.
88894         Suggested by Bruno Haible.
88895         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88896
88897 2003-08-11  Bruno Haible  <bruno@clisp.org>
88898
88899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88900
88901 2003-08-11  Bruno Haible  <bruno@clisp.org>
88902
88903         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88904         (vasnprintf): Use it instead of wcslen.
88905
88906 2003-08-11  Bruno Haible  <bruno@clisp.org>
88907
88908         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88909         value to ensure that _Bool promotes to int. Use #define for _Bool when
88910         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88911
88912 2003-08-10  Karl Berry  <karl@gnu.org>
88913
88914         * lib/regex.h: update from libc (whitespace fix).
88915
88916 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88917
88918         Merge some files from coreutils.  These changes were
88919         originally made by Jim Meyering.
88920         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88921         many older Unixes require this.
88922         * lib/alloca.c (alloca): Remove cast to argument of free;
88923         no longer needed in C89.
88924         * lib/alloca_.h, regex.h: Fix white space to match
88925         what GNU indent does.
88926
88927 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88928
88929         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88930         apparently Emacs's Unicode mode got confused before my 2003-08-05
88931         checkin.
88932
88933 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88934
88935         * m4/extensions.m4: New file.
88936         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88937         Require gl_USE_SYSTEM_EXTENSIONS.
88938         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88939         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88940
88941 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88942
88943         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88944         * modules/extensions, modules/gnu-source: New files.
88945         * modules/timespec, modules/unlocked-io: Depend on extensions.
88946
88947 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88948
88949         * modules/restrict: New file.
88950         * MODULES.html.sh (func_all_modules): Add restrict.
88951         * modules/regex: Depend on restrict.
88952
88953 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88954
88955         * m4/restrict.m4: New file.
88956         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88957
88958 2003-08-07  Bruno Haible  <bruno@clisp.org>
88959
88960         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88961         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88962
88963 2003-08-07  Bruno Haible  <bruno@clisp.org>
88964
88965         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88966         makes the module 'getndelim2' compatible with the module 'getline'.
88967
88968 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88969
88970         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88971         byte with "\201" to avoid glitches when editing that source file
88972         with multi-gnome-terminal.
88973
88974 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88975
88976         * lib/bumpalloc.h: Remove.
88977
88978 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88979
88980         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88981         * modules/bumpalloc: Remove.
88982
88983 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88984
88985         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88986         GNU coding style.
88987
88988         Merge from coreutils.
88989         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88990         1. From glibc.
88991         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88992         from Karl Berry, implemented by Jim Meyering.
88993         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88994         from Dmitry V. Levin.
88995         Remove anachronistic cast of xrealloc.
88996         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88997         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88998         type. Otherwise, it wouldn't compile with at least /bin/cc on
88999         ymp-cray-unicos9.0.2.X.
89000         Combine two mostly-identical uses of alloca into one.
89001         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89002
89003 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89004
89005         [From Emacs.]
89006
89007         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89008         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89009         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89010         obsolete NLIST_NAME_UNION.
89011         [__GNU__]: Undef BSD and FSCALE.
89012         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89013
89014 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89015
89016         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89017         an enum type, so that it's guaranteed to promote to int.  See:
89018         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89019
89020 2003-08-03  Karl Berry  <karl@gnu.org>
89021
89022         * config/depcomp: update from automake.
89023
89024 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89025
89026         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89027         (strerror): Don't assume that a printable int fits in 14 bytes.
89028
89029 2003-07-31  Bruno Haible  <bruno@clisp.org>
89030
89031         * modules/getpass-gnu: New file.
89032         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89033
89034 2003-07-31  Bruno Haible  <bruno@clisp.org>
89035
89036         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89037
89038 2003-07-24  Karl Berry  <karl@gnu.org>
89039
89040         * config/missing: update from automake.
89041
89042 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89043             Bruno Haible  <bruno@clisp.org>
89044
89045         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89046         * lib/getline.c (getline, getdelim): Likewise.
89047         Remove _GNU_SOURCE define; now it's defined in config.h through
89048         m4/getline.m4.
89049
89050 2003-07-23  Karl Berry  <karl@gnu.org>
89051
89052         * config/config.sub: update from prep.
89053
89054 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89055
89056         * modules/xalloc (Depends-on): Add exitfail.
89057         * modules/xmemcoll: Likewise.
89058
89059 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89060
89061         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89062         over-parenthesization in macros.
89063
89064         Sync with coreutils.
89065
89066         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89067         required by C99.
89068
89069         Use `exit_failure' for xalloc and xmemcoll instead of their own
89070         private exit-failure variables.
89071         * lib/xalloc.h (xalloc_exit_failure): Remove.
89072         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89073         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89074         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89075         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89076         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89077
89078 2003-07-20  Jim Meyering  <jim@meyering.net>
89079
89080         * modules/closeout (Depends-on): Add exitfail.
89081         Suggestion from Bruno Haible.
89082
89083 2003-07-19  Karl Berry  <karl@gnu.org>
89084
89085         * config/config.sub: update from prep.
89086
89087 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89088
89089         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89090         Remove.
89091         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89092         to test that it can stand by itself.  Include "exitfail.h".
89093         Clients should set exit_failure instead.
89094         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89095
89096 2003-07-18  Bruno Haible  <bruno@clisp.org>
89097
89098         * modules/getndelim2: New file.
89099         * modules/getline: Share files with module getndelim2.
89100         * modules/getnline: Depend on getndelim2 instead of sharing files with
89101         it. Add getnline.c to lib_SOURCES.
89102         * MODULES.html.sh (func_all_modules): Add getndelim2.
89103
89104 2003-07-18  Bruno Haible  <bruno@clisp.org>
89105
89106         * m4/getndelim2.m4: New file.
89107         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89108         invoke gl_PREREQ_GETNDELIM2.
89109         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89110         gl_PREREQ_GETNDELIM2.
89111         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89112         gl_GETNDELIM2.
89113
89114 2003-07-18  Bruno Haible  <bruno@clisp.org>
89115
89116         * lib/getndelim2.h: New file.
89117         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89118         getndelim2.h.
89119         (getndelim2): Make non-static. Change return type to ssize_t.
89120         * lib/getline.h: Change argument names.
89121         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89122         * lib/getnline.c: Include getndelim2.h.
89123
89124 2003-07-18  Andreas Schwab  <schwab@suse.de>
89125
89126         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89127
89128 2003-07-17  Karl Berry  <karl@gnu.org>
89129
89130         * config/config.sub: update from prep.
89131
89132 2003-07-17  Bruno Haible  <bruno@clisp.org>
89133
89134         * modules/getnline: New file.
89135         * modules/getline: Add lib/getndelim2.c to source file list.
89136         * MODULES.html.sh (func_all_modules): Add getnline.
89137
89138 2003-07-17  Bruno Haible  <bruno@clisp.org>
89139
89140         * m4/getnline.m4: New file.
89141
89142 2003-07-17  Bruno Haible  <bruno@clisp.org>
89143
89144         * m4/Makefile.am.in: Remove file.
89145         * m4/Makefile.am: Remove file.
89146         * m4/Makefile.in: Remove file.
89147
89148 2003-07-17  Bruno Haible  <bruno@clisp.org>
89149
89150         * lib/getnline.h: New file.
89151         * lib/getnline.c: New file.
89152         * lib/getndelim2.c: New file, extracted from getline.c.
89153         (getndelim2): Renamed from getdelim2, with added nmax argument.
89154         * lib/getline.c: Include getndelim2.c.
89155         (getdelim2): Moved out to getndelim2.c.
89156         (getline, getdelim): Update.
89157
89158 2003-07-17  Bruno Haible  <bruno@clisp.org>
89159
89160         * lib/Makefile.am: Remove file.
89161         * lib/Makefile.in: Remove file.
89162
89163 2003-07-17  Bruno Haible  <bruno@clisp.org>
89164
89165         * configure.in: Remove file.
89166         * Makefile.in: Remove file.
89167
89168 2003-07-17  Bruno Haible  <bruno@clisp.org>
89169
89170         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89171
89172 2003-07-16  Karl Berry  <karl@gnu.org>
89173
89174         * config/srclist-update: was running fixlicense twice, which caused
89175                 texinfo.tex to be nullified for some reason.  Simplify,
89176                 $gplsrc is no longer needed as far as I can see?
89177
89178 2003-07-16  Jim Meyering  <jim@meyering.net>
89179
89180         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89181
89182 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89183
89184         * config/srclist.txt: Get the following files from gettext-runtime/intl
89185         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89186         ref-del.sin.  From Bruno Haible.
89187         * config/srclist-update (fixfile): Change grep pattern again, since the
89188         previous fix didn't work (there was another trailing $).  Use
89189         '[$]' to escape the $s.
89190
89191 2003-07-15  Karl Berry  <karl@gnu.org>
89192
89193         * lib/vasnprintf.c: update from gettext.
89194
89195 2003-07-15  Karl Berry  <karl@gnu.org>
89196
89197         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89198         gets expanded when surrounded by '$'.
89199
89200 2003-07-15  Jim Meyering  <jim@meyering.net>
89201
89202         * modules/save-cwd: Don't depend on error.  From Derek Price.
89203
89204 2003-07-15  Jim Meyering  <jim@meyering.net>
89205
89206         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89207
89208 2003-07-14  Simon Josefsson  <jas@extundo.com>
89209
89210         * modules/mempcpy: New file.
89211         * MODULES.html.sh (func_all_modules): Add mempcpy.
89212
89213 2003-07-14  Simon Josefsson  <jas@extundo.com>
89214
89215         * m4/mempcpy.m4: New file.
89216
89217 2003-07-14  Simon Josefsson  <jas@extundo.com>
89218
89219         * lib/mempcpy.h: New file.
89220         * lib/mempcpy.c: New file.
89221
89222 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89223
89224         * modules/getdate, modules/posixtm: Depend on mktime.
89225
89226 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89227
89228         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89229         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89230         unicodeio.c, unicodeio.h, unlocked-io.h:
89231         Switch from LGPL to GPL.
89232
89233 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89234
89235         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89236         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89237         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89238         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89239         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89240         updated automatically by ../config/srclist-update.  This changes
89241         their license from LPGL to GPL.
89242
89243 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89244
89245         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89246         assumed to refer to the root of the most recent stable gettext version.
89247         * config/srclistvars.sh: Add defaults for eggert.
89248         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89249         Match "This program" as well as "The program".  This is needed
89250         for gettext.
89251
89252 2003-07-14  Jim Meyering  <jim@meyering.net>
89253
89254         Don't emit diagnostics.  Let callers do that.
89255         * lib/save-cwd.c: Don't include "error.h".
89256         (save_cwd): Don't call error.  Ensure that errno is valid
89257         when returning nonzero.
89258
89259         * lib/save-cwd.h (restore_cwd): Update prototype.
89260         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89261         Simplify.  Don't call error upon failure.  Let callers do that.
89262         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89263         when auditing is enabled.  But don't bother updating the #if.
89264
89265 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89266
89267         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89268         it breaks C++ compilation.
89269         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89270
89271 2003-07-10  Simon Josefsson  <jas@extundo.com>
89272
89273         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89274
89275 2003-07-10  Jim Meyering  <jim@meyering.net>
89276
89277         * m4/clock_time.m4: Remove trailing blank.
89278         * m4/intmax_t.m4: Likewise.
89279
89280 2003-07-10  Jim Meyering  <jim@meyering.net>
89281
89282         * lib/vasnprintf.c: Remove trailing blanks.
89283         Make cpp indentation consistent.
89284
89285 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89286
89287         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89288         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89289         Switch from LGPL to GPL.
89290
89291 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89292
89293         * config/srclist.txt: Sort sublists.  Add
89294         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89295         that differ from gnulib for one reason or another; we'd like this list
89296         to be smaller but for now let's document what we have.
89297
89298 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89299
89300         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89301         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89302         and sweeter "eval x=$x".
89303         * config/srclist.txt: Get lib/argp* from glibc.
89304
89305 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89306
89307         * lib/mktime.c: Fix some boundary cases and remove need for floating
89308         point.
89309
89310         Issue a compile-time diagnostic if time_t is floating point, or if
89311         two's complement arithmetic is not in effect, or if arithmetic
89312         right shift does not propagate the sign.  These assumptions were
89313         all in the original code but they weren't checked.
89314
89315         (TIME_T_MIDPOINT, verify): New macros.
89316         (__isleap): Remove; it has integer overflow problems.
89317         (leapyear): New function, without those problems.
89318         (ydhms_tm_diff): Remove; splitting into two parts.
89319         (ydhms_diff): New function, containing the arithmetic part of
89320         the old ydhms_tm_diff function.  Issue a compile-time
89321         diagnostic if we are not using C99 integer division.
89322         Avoid casts when possible.
89323         (guess_time_tm): New function, containing the checking part of
89324         the old ydhms_tm_diff function.  Return the new value, rather than
89325         the difference between it and the old.  Accept a new argument T
89326         so that *T specifies the old value.  Check for overflow in the result.
89327
89328         (__mktime_internal): Use a time_t offset, not a long int offset.
89329         This undoes the 2003-06-04 change, which is no longer needed now
89330         that we have better overflow checking.
89331         (localtime_offset): Likewise.
89332
89333         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89334         and long are 64-bit but int is only 32-bit.
89335         (ydhms_diff): Use long int to store year1 and yday1.
89336         Issue a compile-time diagnostic if long int is not wide enough.
89337
89338         (__mktime_internal): Use long int to store adjusted year and yday.
89339         Use plain C rather than preprocessor commands, if that doesn't
89340         affect efficiency.
89341         Check for overflow (and try to repair) after each probe
89342         rather than checking only at the very end.  This avoids some bugs
89343         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89344         does not equal GMT offset at maximum time).
89345         Use integer to check for overflow rather than floating point; this
89346         is more portable to non-IEEE hosts, and is a tad faster.
89347         When we detect that we are oscillating between two values,
89348         don't check whether tm_isdst has the requested value, since
89349         we already know the answer.  When tm_isdst has the wrong value,
89350         use a different heuristic to find the right one, based on the
89351         extreme values actually observed in practice in tz2003a,
89352         rather than the (overly optimistic) "previous 3 calendar quarters".
89353
89354         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89355         "T const" to accommodate glibc style.
89356         (check_result): Use less-confusing report format.  "long" -> "long int.
89357         (main): Likewise.
89358         Don't loop if the iteration overflows time_t.
89359         Allow a negative step in the iteration.
89360
89361 2003-07-06  Karl Berry  <karl@gnu.org>
89362
89363         * config/depcomp: update from automake.
89364         * config/config.sub: update from prep.
89365
89366 2003-07-03  Karl Berry  <karl@gnu.org>
89367
89368         * config/config.guess: update from prep.
89369
89370 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89371
89372         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89373         xreadlink.c now includes it unconditionally.
89374
89375 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89376
89377         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89378         having it depend on HAVE_SYS_TYPES_H.
89379
89380 2003-07-01  Bruno Haible  <bruno@clisp.org>
89381
89382         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89383         <sys/types.h> should be sufficient.
89384         Reported by Paul Eggert.
89385
89386 2003-06-26  Karl Berry  <karl@gnu.org>
89387
89388         * config/depcomp: update from automake.
89389
89390 2003-06-26  Bruno Haible  <bruno@clisp.org>
89391
89392         * modules/human: Depend on module stdbool.
89393
89394 2003-06-25  Bruno Haible  <bruno@clisp.org>
89395
89396         * modules/readlink: New file.
89397         * modules/xreadlink: Depend on it.
89398         * MODULES.html.sh (func_all_modules): Add readlink.
89399
89400 2003-06-25  Bruno Haible  <bruno@clisp.org>
89401
89402         * m4/readlink.m4: New file.
89403
89404 2003-06-25  Bruno Haible  <bruno@clisp.org>
89405
89406         * lib/readlink.c: New file.
89407
89408 2003-06-22  Karl Berry  <karl@gnu.org>
89409
89410         * config/srclist.txt: update mkinstalldirs from automake.
89411         * config/mkinstalldirs: update.
89412
89413 2003-06-22  Bruno Haible  <bruno@clisp.org>
89414
89415         Portability to mingw32.
89416         * m4/ssize_t.m4: New file, from GNU gettext.
89417         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89418         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89419
89420 2003-06-22  Bruno Haible  <bruno@clisp.org>
89421
89422         * modules/safe-read: Add m4/ssize_t.m4.
89423         * modules/xreadlink: Add m4/ssize_t.m4.
89424
89425 2003-06-20  Bruno Haible  <bruno@clisp.org>
89426
89427         Assume C89, so PARAMS isn't needed.
89428         * lib/unicodeio.h (PARAMS): Remove.
89429         * lib/unicodeio.c: Don't use PARAMS.
89430
89431 2003-06-18  Karl Berry  <karl@gnu.org>
89432
89433         * config/config.{guess,sub}: update from prep.
89434
89435 2003-06-18  Jim Meyering  <jim@meyering.net>
89436
89437         Merge changes from coreutils.
89438         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89439         Remove explicit declarations of xmalloc and realloc.
89440         Include xalloc.h.
89441         (read_utmp): Remove anachronistic cast of xmalloc.
89442
89443 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89444
89445         Assume C89, so PARAMS isn't needed.
89446         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89447         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89448         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89449         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89450         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89451         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89452         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89453         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89454         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89455         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89456         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89457         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89458         no longer needed. Anyway, config.h should always be included before any
89459         other file.
89460
89461 2003-06-11  Simon Josefsson  <jas@extundo.com>
89462
89463         * modules/sysexits: New file.
89464         * MODULES.html.sh (func_all_modules): Add sysexits.
89465
89466 2003-06-11  Simon Josefsson  <jas@extundo.com>
89467
89468         * lib/sysexit_.h: New file.
89469
89470 2003-06-11  Derek Price  <derek@ximbiot.com>
89471
89472         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89473         necessary.
89474
89475 2003-06-11  Bruno Haible  <bruno@clisp.org>
89476
89477         * m4/sysexits.m4: New file.
89478
89479 2003-06-10  Simon Josefsson  <jas@extundo.com>
89480
89481         * lib/argp.h: New file, from glibc.
89482         * lib/argp-ba.c: New file, from glibc.
89483         * lib/argp-eexst.c: New file, from glibc.
89484         * lib/argp-fmtstream.c: New file, from glibc.
89485         * lib/argp-fmtstream.h: New file, from glibc.
89486         * lib/argp-fs-xinl.c: New file, from glibc.
89487         * lib/argp-help.c: New file, from glibc.
89488         * lib/argp-namefrob.h: New file, from glibc.
89489         * lib/argp-parse.c: New file, from glibc.
89490         * lib/argp-pv.c: New file, from glibc.
89491         * lib/argp-pvh.c: New file, from glibc.
89492         * lib/argp-xinl.c: New file, from glibc.
89493
89494 2003-06-10  Simon Josefsson  <jas@extundo.com>
89495
89496         * modules/strchrnul: New file.
89497
89498 2003-06-10  Simon Josefsson  <jas@extundo.com>
89499
89500         * modules/argp: New file.
89501
89502 2003-06-10  Simon Josefsson  <jas@extundo.com>
89503
89504         * m4/strchrnul.m4: New file.
89505
89506 2003-06-10  Simon Josefsson  <jas@extundo.com>
89507
89508         * lib/strchrnul.h: New file.
89509         * lib/strchrnul.c: New file.
89510
89511 2003-06-10  Bruno Haible  <bruno@clisp.org>
89512
89513         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89514
89515 2003-06-07  Karl Berry  <karl@gnu.org>
89516
89517         * config/config.{guess,sub}: update from prep.
89518
89519 2003-06-07  Jim Meyering  <jim@meyering.net>
89520
89521         * modules/strtod: Use $(...) notation, not @...@ for
89522         AC_REPLACE'd variables.
89523         * modules/localcharset: Likewise.
89524
89525 2003-06-07  Jim Meyering  <jim@meyering.net>
89526
89527         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89528         in place of my name in the copyright comment.
89529         Remove definition and uses of __P.
89530
89531         From coreutils.
89532         * lib/stat.c: Don't declare xmalloc explicitly.
89533         Instead, include "xalloc.h".
89534         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89535         xrealloc, and xcalloc return values.
89536         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89537         Improve comment.
89538         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89539
89540 2003-06-07  Bruno Haible  <bruno@clisp.org>
89541
89542         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89543         avoid AC_CONFIG_LINKS.
89544         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89545         fnmatch.h, to avoid AC_CONFIG_LINKS.
89546         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89547
89548 2003-06-07  Bruno Haible  <bruno@clisp.org>
89549
89550         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89551         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89552         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89553         directory.
89554         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89555         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89556         directory.
89557
89558 2003-06-06  Jim Meyering  <jim@meyering.net>
89559
89560         Merge from coreutils.
89561         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89562         Consolidate declarations and initializations of *_base* locals.
89563
89564         Merge from coreutils.
89565         This avoids a core dump on systems without GNU putenv,
89566         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89567         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89568         (unsetenv): New static function, from GNU libc.
89569         (rpl_putenv): Use it.
89570
89571         * lib/modechange.c: Remove trailing blanks.
89572
89573         Merge from coreutils.
89574         * lib/fsusage.c: Remove declaration of statfs.
89575         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89576
89577         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89578
89579 2003-06-06  Jim Meyering  <jim@meyering.net>
89580
89581         * lib/stdbool_.h: Renamed from stdbool.h.in.
89582
89583 2003-06-06  Jim Meyering  <jim@meyering.net>
89584             Bruno Haible  <bruno@clisp.org>
89585
89586         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89587         Adjust Makefile.am snippet not to redirect directly to target.
89588         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89589
89590 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89591
89592         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89593         mismatch, look in future quarters as well as past.  This fixes a
89594         bug when processing fall-backwards gaps immediately after a long
89595         period of daylight-saving time.
89596
89597         * lib/mktime.c: Assume freestanding C89 or better.
89598         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89599         (__P): Remove; not used.
89600         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89601         (mktime, not_equal_tm, print_tm, check_result,
89602         main): Use prototypes.  Use const * where appropriate.
89603         (main): Fix typo in testing code that uncovered by above changes.
89604         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89605
89606 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89607
89608         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89609         locale.h, localeconv.  This merges changes from coreutils.
89610
89611         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89612         It can be removed after the next Autoconf is released.
89613         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89614         needed.
89615
89616 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89617
89618         * lib/mktime.c: Fix Debian bug 177940
89619         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89620         (localtime_offset): Now long int, not time_t, because we want it
89621         to be guaranteed to be signed.  All uses changed.
89622         (__mktime_internal): If overflow would occur when adding offset,
89623         don't add it.
89624
89625         Merge 'human' changes from coreutils.  Rewrite to support
89626         locale-specific notations like thousands separators.
89627         * lib/human.c: Simplify authorship notice.
89628         Include human.h immediately after config.h.
89629         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89630         <limits.h>: Do not include, since human.h does.
89631         (SIZE_MAX, UINTMAX_MAX): New macros.
89632         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89633         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89634         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89635         (power_letter): Renamed from suffixes.
89636         (generate_suffix_backwards): Remove.
89637         (adjust_value): Now takes int style (because of human.h changes)
89638         and long double value (for greater precision on some platforms).
89639         (group_number): New function.
89640         (human_readable): Use it.  Use integer options, not enum.
89641         Put the options before the sizes in the arg list.
89642         Support all the new options.
89643         The old human_readable function has been removed;
89644         use inttostr.h instead.
89645         (human_readable, default_block_size, humblock):
89646         Use uintmax_t, not int, for block sizes.
89647         (human_readable_inexact, block_size_types): Remove.
89648         (block_size_opts): New constant.
89649         (human_options): Renamed from human_block_size, with new signature
89650         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89651         * lib/human.h: Add copyright and authorship notice.
89652         Include <limits.h> and <stdbool.h> unconditionally.
89653         (PARAMS): Remove.  All uses removed.
89654         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89655         (enum human_inexact_style): Remove tag; now a nameless enum.
89656         (human_floor, human_ceiling, human_round_to_even): Now have
89657         values 2, 0, 1 rather than -1, 1, 0.
89658         (human_group_digits, human_suppress_point_zero, human_autoscale,
89659         human_base_1024, human_SI, human_B): New constants.
89660         (human_readable_inexact, human_block_size): Remove.
89661         (human_readable): Size args are now uintmax_t, not int.
89662         (human_options): New decl.
89663
89664         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89665         unnecessary now that we assume C89 or better.  This change
89666         imported from coreutils.
89667
89668         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89669         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89670         in the 2003-05-30 sync from glibc.
89671
89672         .h files should stand alone, but we shouldn't include <sys/types.h>
89673         if we can get away with just <stddef.h>.
89674
89675         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89676         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89677         rather than <sys/types.h>, as we merely need size_t.
89678         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89679         to get size_t.
89680         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89681         Include <stdio.h>, to get FILE.
89682         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89683         memcasecmp.h has included <stddef.h> and all we need is size_t.
89684         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89685         our interface, instead of including <sys/types.h>
89686
89687 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89688
89689         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89690         now, as glibc mktime is buggy on non-glibc systems.
89691
89692 2003-06-03  Karl Berry  <karl@gnu.org>
89693
89694         * config/config.sub: update from prep.
89695
89696 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89697
89698         [from coreutils]
89699         Fix some minor time-related bugs with POSIX time arguments.
89700         Some valid time stamps were being rejected (notably -1, and
89701         time stamps before 1900 on 64-bit hosts).  And some invalid
89702         time stamps were being accepted, e.g. September 31.
89703
89704         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89705         that we can return (time_t) -1 successfully.
89706         * lib/posixtm.c: Likewise.
89707         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89708         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89709         (t): Remove static var.
89710         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89711         of static var.  All uses changed.
89712         (year): Do not reject years before 1900; they can occur with
89713         64-bit time_t.
89714         (posix_time_parse): Do not check for out-of-range components;
89715         that is now the caller's responsibility, since our checks were
89716         only approximations.
89717         (posixtime): Use mktime to check for out-of-range components,
89718         since it knows them exactly.
89719         If mktime returns (time_t) -1, check whether an error actually occurred
89720         by invoking localtime on -1.
89721         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89722         posixtime failures better.
89723         Improve the test data (in comments only).
89724
89725 2003-06-02  Karl Berry  <karl@gnu.org>
89726
89727         * config/mkinstalldirs (version): new variable.
89728         (--version): new option.
89729         (usage): improve message.
89730
89731 2003-05-30  Karl Berry  <karl@gnu.org>
89732
89733         * lib/mktime.c: update from libc.
89734
89735 2003-05-30  Bruno Haible  <bruno@clisp.org>
89736
89737         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89738         * config/config.rpath: Upgrade to gettext-0.12.1.
89739
89740 2003-05-30  Bruno Haible  <bruno@clisp.org>
89741
89742         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89743         * m4/nls.m4: New file, from gettext-0.12.1.
89744         * m4/po.m4: New file, from gettext-0.12.1.
89745         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89746
89747 2003-05-30  Bruno Haible  <bruno@clisp.org>
89748
89749         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89750         * lib/localcharset.h: Likewise.
89751         * lib/localcharset.c: Likewise.
89752
89753 2003-05-29  Karl Berry  <karl@gnu.org>
89754
89755         * config/config.rpath: update from gettext.
89756
89757 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89758
89759         Assume the headers required for C89 freestanding compilers.
89760         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89761         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89762         * m4/human.m4 (gl_HUMAN): Likewise.
89763         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89764         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89765         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89766         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89767         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89768         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89769
89770 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89771
89772         Assume the headers required for C89 freestanding compilers.
89773         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89774         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89775         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89776         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89777         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89778         define, since <limits.h> is guaranteed to do that.
89779         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89780         * lib/exclude.c: Include <stdbool.h> unconditionally.
89781         * lib/tempname.c: Include <stddef.h> unconditionally.
89782         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89783         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89784         <stddef.h> does that.
89785         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89786         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89787         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89788         needed.
89789         * lib/xstrtol.c: Likewise.
89790         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89791         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89792
89793         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89794         warnings on some platforms.
89795
89796         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89797         arbitrarily.
89798
89799 2003-05-26  Jim Meyering  <jim@meyering.net>
89800
89801         Merge in a change from coreutils:
89802         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89803         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89804         that condition, rather than `-1' which is slightly misleading.
89805         Change the name of the cache variable to have the gl_ prefix.
89806         Prompted by a patch from Richard Dawe for DJGPP.
89807
89808 2003-05-24  Karl Berry  <karl@gnu.org>
89809
89810         * config/config.guess: update from prep.
89811
89812 2003-05-22  Karl Berry  <karl@gnu.org>
89813
89814         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89815
89816 2003-05-20  Karl Berry  <karl@gnu.org>
89817
89818         * config/config.guess: update from prep.
89819
89820 2003-05-18  Karl Berry  <karl@gnu.org>
89821
89822         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89823         might actually be set by the user.
89824
89825         * config/depcomp, install-sh, mdate-sh: update from automake.
89826
89827 2003-05-17  Bruno Haible  <bruno@clisp.org>
89828
89829         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89830         invalid expansion for AC_EGREP_CPP.
89831         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89832         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89833         Suggested by Akim Demaille <akim@epita.fr> in
89834         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89835
89836 2003-05-12  Jim Meyering  <jim@meyering.net>
89837
89838         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89839         the space-padded-by-default conversion specifiers, %e, %k, %l.
89840
89841 2003-05-12  Bruno Haible  <bruno@clisp.org>
89842
89843         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89844         the string is longer than 4 KB.
89845
89846 2003-05-11  Karl Berry  <karl@gnu.org>
89847
89848         * config/config.{guess,sub}: update from prep.
89849
89850 2003-05-09  Bruno Haible  <bruno@clisp.org>
89851
89852         * modules/error: Add m4/strerror_r.m4 to file list.
89853
89854 2003-05-03  Bruno Haible  <bruno@clisp.org>
89855
89856         Upgrade to Unicode-4.0.
89857         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89858         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89859         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89860         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89861         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89862         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89863         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89864         Change width of U+E0100..U+E01EF from 1 to 0.
89865
89866 2003-04-25  Jim Meyering  <jim@meyering.net>
89867
89868         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89869         of type size_t, not int.
89870
89871 2003-04-25  Bruno Haible  <bruno@clisp.org>
89872
89873         * lib/copy-file.c: Include <stddef.h>, for size_t.
89874
89875 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89876
89877         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89878         code which expansion is under static control.  Patch imported from
89879         Akim Demaille's patch to Bison; see
89880         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89881
89882 2003-04-14  Bruno Haible  <bruno@clisp.org>
89883
89884         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89885
89886 2003-04-11  Jim Meyering  <jim@meyering.net>
89887
89888         Merge changes from Coreutils.
89889
89890         2003-03-22  Jim Meyering  <jim@meyering.net>
89891
89892         * lib/strftime.c (widen): Cast alloca return value to proper type.
89893
89894         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89895
89896         From GNU libc.
89897         * lib/strftime.c (my_strftime): Handle very large width
89898         specifications for numeric values correctly.  Improve checks for
89899         overflow.
89900
89901         2003-01-19  Jim Meyering  <jim@meyering.net>
89902
89903         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89904         definitions.
89905         (nl_get_alt_digit) [! defined my_strftime]: Define.
89906         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89907         _nl_get_alt_digit and _nl_get_walt_digit.
89908
89909         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89910         libc. These changes have no effect outside of _LIBC.
89911
89912 2003-04-10  Bruno Haible  <bruno@clisp.org>
89913
89914         * modules/findprog: New file.
89915         * MODULES.html.sh (func_all_modules): Add it.
89916
89917 2003-04-10  Bruno Haible  <bruno@clisp.org>
89918
89919         * m4/findprog.m4: New file.
89920         * m4/eaccess.m4: New file.
89921
89922 2003-04-10  Bruno Haible  <bruno@clisp.org>
89923
89924         * lib/findprog.h: New file, from GNU gettext.
89925         * lib/findprog.c: New file, from GNU gettext.
89926
89927 2003-04-05  Jim Meyering  <jim@meyering.net>
89928
89929         Merge changes from Coreutils.
89930
89931         * lib/exclude.h (PARAMS): Remove definition and uses.
89932         * lib/exclude.c: Remove uses of `PARAMS'.
89933
89934         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89935         Add test-cases for DOS filenames. Declare program_name.
89936         (main): Set up program_name.  Patch by Rich Dawe.
89937
89938         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89939         error from mntctl.
89940         Use mntctl's return value to drive the entry-processing loop, since
89941         we can't rely on the value of the vmt_length member in the last
89942         entry.  On some systems doing so could result in exhausting
89943         virtual memory.  Based in part on a patch from Mike Jetzer.
89944
89945 2003-04-04  Bruno Haible  <bruno@clisp.org>
89946
89947         * modules/linebreak: New file.
89948         * MODULES.html.sh (func_all_modules): Add it.
89949
89950 2003-04-04  Bruno Haible  <bruno@clisp.org>
89951
89952         * m4/linebreak.m4: New file.
89953
89954 2003-04-04  Bruno Haible  <bruno@clisp.org>
89955
89956         * lib/linebreak.h: New file, from GNU gettext.
89957         * lib/linebreak.c: New file, from GNU gettext with slight
89958         modifications.
89959         * lib/lbrkprop.h: New file, from GNU gettext.
89960
89961 2003-04-03  Bruno Haible  <bruno@clisp.org>
89962
89963         * modules/utf8-ucs4: New file.
89964         * modules/utf16-ucs4: New file.
89965         * modules/ucs4-utf8: New file.
89966         * modules/ucs4-utf16: New file.
89967         * MODULES.html.sh (func_all_modules): Add them.
89968
89969 2003-04-03  Bruno Haible  <bruno@clisp.org>
89970
89971         * m4/utf-ucs4.m4: New file.
89972         * m4/ucs4-utf.m4: New file.
89973
89974 2003-04-03  Bruno Haible  <bruno@clisp.org>
89975
89976         * lib/utf8-ucs4.h: New file, from GNU gettext.
89977         * lib/utf16-ucs4.h: New file, from GNU gettext.
89978         * lib/ucs4-utf8.h: New file, from GNU gettext.
89979         * lib/ucs4-utf16.h: New file, from GNU gettext.
89980
89981 2003-04-02  Bruno Haible  <bruno@clisp.org>
89982
89983         * modules/binary-io: New file.
89984         * MODULES.html.sh (func_all_modules): Add it.
89985
89986 2003-04-02  Bruno Haible  <bruno@clisp.org>
89987
89988         * lib/binary-io.h: New file, from GNU gettext.
89989
89990 2003-04-01  Bruno Haible  <bruno@clisp.org>
89991
89992         * modules/pathname: New file.
89993         * MODULES.html.sh (func_all_modules): Add it.
89994
89995 2003-04-01  Bruno Haible  <bruno@clisp.org>
89996
89997         * lib/pathname.h: New file, from GNU gettext.
89998         * lib/concatpath.c: New file, from GNU gettext.
89999
90000 2003-03-30  Bruno Haible  <bruno@clisp.org>
90001
90002         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90003
90004 2003-03-30  Bruno Haible  <bruno@clisp.org>
90005
90006         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90007         function chown() doesn't exist.
90008
90009 2003-03-28  Bruno Haible  <bruno@clisp.org>
90010
90011         * modules/copy-file: New file.
90012         * MODULES.html.sh (func_all_modules): Add it.
90013
90014 2003-03-28  Bruno Haible  <bruno@clisp.org>
90015
90016         * m4/copy-file.m4: New file.
90017
90018 2003-03-28  Bruno Haible  <bruno@clisp.org>
90019
90020         * lib/copy-file.h: New file, from GNU gettext.
90021         * lib/copy-file.c: New file, from GNU gettext.
90022
90023 2003-03-18  Jim Meyering  <jim@meyering.net>
90024
90025         * lib/quote.c (quote_n): Fix typo in comment.
90026
90027 2003-03-18  Bruno Haible  <bruno@clisp.org>
90028
90029         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90030         checking.
90031         * m4/onceonly_2_57.m4: Likewise.
90032
90033 2003-03-17  Bruno Haible  <bruno@clisp.org>
90034
90035         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90036         (m4_quote): Remove macro.
90037         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90038
90039 2003-03-14  Jim Meyering  <jim@meyering.net>
90040
90041         Merge changes from Coreutils.
90042         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90043         to be const, in order to avoid warnings.
90044         (obstack_room): Likewise.
90045         (obstack_empty_p): Likewise.
90046
90047 2003-03-14  Bruno Haible  <bruno@clisp.org>
90048
90049         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90050         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90051
90052 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90053
90054         Merge changes from Bison.
90055         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90056         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90057         when compiling Bison 1.875's `bitset bset = obstack_alloc
90058         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90059         * lib/hash.c: Include <stdbool.h> unconditionally.
90060
90061 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90062
90063         * m4/onceonly.m4 (m4_quote): New macro.
90064         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90065         Quote AC_FOREACH variable-expansions properly.
90066
90067 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90068
90069         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90070
90071 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90072
90073         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90074         Reported by Bruce Becker; see:
90075         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90076
90077 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90078             Bruno Haible  <bruno@clisp.org>
90079
90080         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90081         Reported by John Hughes, see
90082         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90083
90084 2003-02-20  Bruno Haible  <bruno@clisp.org>
90085
90086         * MODULES.html.sh (func_all_modules): Add poll.
90087
90088 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90089
90090         * modules/poll: New file.
90091
90092 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90093
90094         * lib/poll_.h: New file.
90095         * lib/poll.c: New file.
90096
90097 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90098
90099         * m4/poll.m4: New file.
90100
90101 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90102
90103         * modules/mathl: New file.
90104
90105 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90106
90107         * lib/mathl.h: New file.
90108         * lib/acosl.c: New file.
90109         * lib/asinl.c: New file.
90110         * lib/atanl.c: New file.
90111         * lib/ceill.c: New file.
90112         * lib/cosl.c: New file.
90113         * lib/expl.c: New file.
90114         * lib/floorl.c: New file.
90115         * lib/frexpl.c: New file.
90116         * lib/ldexpl.c: New file.
90117         * lib/logl.c: New file.
90118         * lib/sincosl.c: New file.
90119         * lib/sinl.c: New file.
90120         * lib/sqrtl.c: New file.
90121         * lib/tanl.c: New file.
90122         * lib/trigl.c: New file.
90123         * lib/trigl.h: New file.
90124
90125 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90126
90127         * m4/mathl.m4: New file.
90128
90129 2003-02-18  Bruno Haible  <bruno@clisp.org>
90130
90131         * MODULES.html.sh (func_all_modules): Add mathl.
90132
90133 2003-02-17  Bruno Haible  <bruno@clisp.org>
90134
90135         * modules/mkdtemp: New module.
90136         * MODULES.html.sh (func_all_modules): Add it.
90137
90138 2003-02-17  Bruno Haible  <bruno@clisp.org>
90139
90140         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90141
90142 2003-02-17  Bruno Haible  <bruno@clisp.org>
90143
90144         * lib/mkdtemp.h: New file, from GNU gettext.
90145         * lib/mkdtemp.c: New file, from GNU gettext.
90146
90147 2003-02-02  Jim Meyering  <jim@meyering.net>
90148
90149         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90150         e.g. glibc-2.2.93.
90151
90152 2003-01-31  Bruno Haible  <bruno@clisp.org>
90153
90154         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90155         'rpl_rename'.
90156         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90157         'rpl_strnlen'.
90158         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90159         'rpl_strtod'.
90160         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90161         'rpl_utime'.
90162
90163 2003-01-31  Bruno Haible  <bruno@clisp.org>
90164
90165         * lib/rename.c: #undef rename before defining rpl_rename.
90166         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90167
90168 2003-01-30  Bruno Haible  <bruno@clisp.org>
90169
90170         * modules/vasnprintf, modules/vasprintf: New modules.
90171         * MODULES.html.sh (func_all_modules): Add them.
90172
90173 2003-01-30  Bruno Haible  <bruno@clisp.org>
90174
90175         * m4/signed.m4: New file, from GNU gettext.
90176         * m4/longdouble.m4: New file, from GNU gettext.
90177         * m4/wchar_t.m4: New file, from GNU gettext.
90178         * m4/wint_t.m4: New file, from GNU gettext.
90179         * m4/vasnprintf.m4: New file.
90180         * m4/vasprintf.m4: New file.
90181
90182 2003-01-30  Bruno Haible  <bruno@clisp.org>
90183
90184         * lib/printf-args.h: New file, from GNU gettext.
90185         * lib/printf-args.c: New file, from GNU gettext.
90186         * lib/printf-parse.h: New file, from GNU gettext.
90187         * lib/printf-parse.c: New file, from GNU gettext.
90188         * lib/vasnprintf.h: New file, from GNU gettext.
90189         * lib/vasnprintf.c: New file, from GNU gettext.
90190         * lib/asnprintf.c: New file, from GNU gettext.
90191         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90192         * lib/vasprintf.c: New file, from GNU gettext.
90193         * lib/asprintf.c: New file, from GNU gettext.
90194
90195 2003-01-29  Bruno Haible  <bruno@clisp.org>
90196
90197         * modules/stpncpy: New module.
90198         * MODULES.html.sh (func_all_modules): Add it.
90199
90200 2003-01-29  Bruno Haible  <bruno@clisp.org>
90201
90202         * m4/stpncpy.m4: New file.
90203
90204 2003-01-29  Bruno Haible  <bruno@clisp.org>
90205
90206         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90207         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90208
90209 2003-01-28  Bruno Haible  <bruno@clisp.org>
90210
90211         * modules/c-ctype: New module.
90212         * MODULES.html.sh (func_all_modules): Add it.
90213
90214 2003-01-28  Bruno Haible  <bruno@clisp.org>
90215
90216         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90217         Paul Eggert.
90218         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90219         Paul Eggert.
90220
90221 2003-01-27  Bruno Haible  <bruno@clisp.org>
90222
90223         * modules/xsetenv: New module.
90224         * MODULES.html.sh (func_all_modules): Add it.
90225
90226 2003-01-27  Bruno Haible  <bruno@clisp.org>
90227
90228         * lib/xsetenv.h: New file, from GNU gettext.
90229         * lib/xsetenv.c: New file, from GNU gettext.
90230
90231 2003-01-23  Jim Meyering  <jim@meyering.net>
90232
90233         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90234         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90235
90236 2003-01-23  Bruno Haible  <bruno@clisp.org>
90237
90238         * modules/minmax: New module.
90239         * MODULES.html.sh (func_all_modules): Add it.
90240
90241 2003-01-23  Bruno Haible  <bruno@clisp.org>
90242
90243         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90244         Eggert.
90245
90246 2003-01-22  Bruno Haible  <bruno@clisp.org>
90247
90248         * modules/exit: New module.
90249         * MODULES.html.sh (func_all_modules): Add it.
90250
90251 2003-01-22  Bruno Haible  <bruno@clisp.org>
90252
90253         * lib/exit.h: New file, from GNU gettext.
90254
90255 2003-01-19  Bruno Haible  <bruno@clisp.org>
90256
90257         * gnulib-tool: Recognize option --extract-maintainer.
90258         (func_get_maintainer): New function.
90259         * modules/*: Add Maintainer entry.
90260
90261 2003-01-16  Jim Meyering  <jim@meyering.net>
90262
90263         * m4/regex.m4: The `regex' struct is both input and output.
90264         Initialize it before each use.  Patch by Tim Waugh.
90265
90266 2003-01-16  Bruno Haible  <bruno@clisp.org>
90267
90268         * MODULES.html.sh: Add a table of contents. Add the module name as
90269         leftmost column. Add hyperlinks.
90270
90271 2003-01-15  Bruno Haible  <bruno@clisp.org>
90272
90273         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90274
90275 2003-01-15  Bruno Haible  <bruno@clisp.org>
90276
90277         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90278         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90279         suffix.
90280
90281 2003-01-15  Bruno Haible  <bruno@clisp.org>
90282
90283         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90284
90285 2003-01-15  Bruno Haible  <bruno@clisp.org>
90286
90287         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90288         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90289
90290 2003-01-14  Jim Meyering  <jim@meyering.net>
90291
90292         * lib/same.c (same_name): Tweak a comment.
90293
90294 2003-01-14  Bruno Haible  <bruno@clisp.org>
90295
90296         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90297         when a string comparison is sufficient.
90298
90299 2003-01-14  Bruno Haible  <bruno@clisp.org>
90300
90301         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90302         'unsigned int'.
90303
90304 2003-01-14  Bruno Haible  <bruno@clisp.org>
90305
90306         * lib/hash-pjw.c: Add comment about low quality of this function.
90307
90308 2003-01-13  Bruno Haible  <bruno@clisp.org>
90309
90310         * modules/stpcpy: Distribute lib/stpcpy.h.
90311         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90312
90313 2003-01-13  Bruno Haible  <bruno@clisp.org>
90314
90315         * modules/*: Add a description.
90316         * modules/strpbrk: Fix Makefile.am snippet.
90317         * modules/strtoimax: Fix dependencies.
90318         * modules/strtoumax: Likewise.
90319
90320 2003-01-13  Bruno Haible  <bruno@clisp.org>
90321
90322         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90323         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90324         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90325
90326 2003-01-13  Bruno Haible  <bruno@clisp.org>
90327
90328         * gnulib-tool (func_create_testdir): Store config/* files in the main
90329         directory.
90330         * config.rpath: Move to ...
90331         * config/config.rpath: ... here.
90332         * modules/gettext: Contains config/config.rpath, not config.rpath.
90333         * modules/iconv: Likewise.
90334
90335 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90336
90337         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90338         to avoid collisions with libcurses and libreadline.
90339
90340         * m4/getstr.m4: Remove.
90341         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90342
90343 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90344
90345         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90346         to avoid collisions with libcurses and libreadline.
90347
90348         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90349         * lib/getstr.h, getstr.c: Remove.
90350         * lib/getline.c: Include "getline.h", to check interface.
90351         Move body of old getstr.c here: this defines MIN_CHUNK and
90352         declares getdelim2, which is renamed from getstr.
90353         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90354
90355         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90356         All uses changed.
90357         * lib/linebuffer.h: Likewise.
90358         (readline): Remove backward-compatibility macro.
90359
90360 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90361
90362         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90363         to avoid collisions with libcurses and libreadline.
90364         * getstr: Remove.
90365         * MODULES.html.sh: Remove getstr.
90366         * modules/getline: Depend on unlocked-io, not getstr.
90367
90368 2003-01-12  Jim Meyering  <jim@meyering.net>
90369
90370         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90371
90372 2003-01-10  Bruno Haible  <bruno@clisp.org>
90373
90374         * modules/alloca: Change Makefile.am requirements. Simplify Include
90375         requirements. Add lib/alloca_.h to file list.
90376
90377 2003-01-10  Bruno Haible  <bruno@clisp.org>
90378
90379         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90380
90381 2003-01-10  Bruno Haible  <bruno@clisp.org>
90382
90383         * lib/alloca_.h: New file.
90384         * lib/getdate.y: Unconditionally include alloca.h.
90385         * lib/makepath.c: Likewise.
90386         * lib/setenv.c: Likewise.
90387         * lib/userspec.c: Likewise.
90388
90389 2003-01-09  Karl Berry  <karl@gnu.org>
90390
90391         * MODULES.html.sh: include `dirname $0` in PATH, to find
90392         gnulib-tool.
90393
90394 2003-01-09  Bruno Haible  <bruno@clisp.org>
90395
90396         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90397         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90398
90399 2003-01-09  Bruno Haible  <bruno@clisp.org>
90400
90401         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90402
90403 2003-01-09  Bruno Haible  <bruno@clisp.org>
90404
90405         * lib/stdbool.h.in: New file.
90406
90407 2003-01-09  Bruno Haible  <bruno@clisp.org>
90408
90409         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90410         * MODULES.html.sh: Likewise.
90411
90412 2003-01-08  Jim Meyering  <jim@meyering.net>
90413
90414         * lib/full-write.c: Undefine and define-away `const' after inclusion
90415         of errno.h, not before.  Suggestion from Bruno Haible.
90416
90417 2003-01-08  Bruno Haible  <bruno@clisp.org>
90418
90419         * modules/full-read: Depend on full-write.
90420
90421 2003-01-08  Bruno Haible  <bruno@clisp.org>
90422
90423         * lib/safe-read.c: Include specification header first, to ensure its
90424         selfcontainedness.
90425         * lib/full-write.c: Likewise.
90426
90427 2003-01-07  Jim Meyering  <jim@meyering.net>
90428
90429         * lib/full-write.c: Rework so that it may serve to define full_read,
90430         too.
90431         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90432
90433 2003-01-07  Bruno Haible  <bruno@clisp.org>
90434
90435         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90436         <inttypes.h>.
90437         * lib/xstrtol.h: Likewise.
90438         * lib/xstrtoimax.c: Likewise.
90439         * lib/xstrtoumax.c: Likewise.
90440         * lib/human.h: Likewise.
90441
90442         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90443         on systems that have <inttypes.h> but not <stdint.h>.
90444
90445 2003-01-07  Bruno Haible  <bruno@clisp.org>
90446
90447         * MODULES.html.sh: Add copyright notice.
90448         (missed_files): Omit CVS directory entries.
90449         (func_module): Make it work with sed-3.02.
90450         * MODULES.txt: Remove file.
90451
90452 2003-01-06  Jim Meyering  <jim@meyering.net>
90453
90454         * lib/version-etc.c: Update year in translatable copyright string.
90455
90456 2003-01-03  Karl Berry  <karl@gnu.org>
90457
90458         * config/config.{guess,sub}: update from prep.
90459
90460 2003-01-02  Karl Berry  <karl@gnu.org>
90461
90462         * doc/COPYING.DOC: belatedly updated to 1.2.
90463
90464 2003-01-01  Karl Berry  <karl@gnu.org>
90465
90466         * gnulib-tool (func_verify_module): report module name $module in
90467         error message, not $1.
90468         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90469         be created, only if it doesn't exist.
90470         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90471
90472 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90473
90474         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90475
90476 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90477
90478         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90479         memcmp if strcoll doesn't work.
90480
90481 2002-12-31  Bruno Haible  <bruno@clisp.org>
90482
90483         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90484         nonempty.
90485
90486 2002-12-31  Bruno Haible  <bruno@clisp.org>
90487
90488         * lib/memcoll.c (STRCOLL): New macro.
90489         (memcoll): Use it.
90490
90491 2002-12-31  Bruno Haible  <bruno@clisp.org>
90492
90493         * lib/localcharset.h: New file.
90494         * lib/localcharset.c: Include it.
90495         * lib/unicodeio.c: Likewise.
90496
90497 2002-12-31  Bruno Haible  <bruno@clisp.org>
90498
90499         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90500         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90501
90502 2002-12-31  Bruno Haible  <bruno@clisp.org>
90503
90504         * lib/getline.h: Include <stddef.h>, for size_t.
90505
90506         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90507         * lib/unicodeio.c: Don't include <stddef.h>.
90508
90509 2002-12-31  Bruno Haible  <bruno@clisp.org>
90510
90511         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90512         HAVE_TM_ZONE.
90513
90514 2002-12-24  Karl Berry  <karl@gnu.org>
90515
90516         * config/config.guess: update from prep.
90517
90518 2002-12-24  Bruno Haible  <bruno@clisp.org>
90519
90520         General infrasructure.
90521         * m4/README: Rewritten.
90522         * m4/onceonly.m4: New file.
90523         * m4/onceonly_2_57.m4: New file.
90524
90525         Module atexit.
90526         * m4/atexit.m4: New file.
90527
90528         Module strtod.
90529         * m4/strtod.m4: New file.
90530
90531         Module strtol.
90532         * m4/strtol.m4: New file.
90533
90534         Module strtoul.
90535         * m4/strtoul.m4: New file.
90536
90537         Module memchr.
90538         * m4/memchr.m4: New file.
90539
90540         Module memcmp.
90541         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90542         (jm_FUNC_MEMCMP): Invoke it.
90543
90544         Module memcpy.
90545         * m4/memcpy.m4: New file.
90546
90547         Module memmove.
90548         * m4/memmove.m4: New file.
90549
90550         Module memset.
90551         * m4/memset.m4: New file.
90552
90553         Module strcspn.
90554         * m4/strcspn.m4: New file.
90555
90556         Module strpbrk.
90557         * m4/strpbrk.m4: New file.
90558
90559         Module strstr.
90560         * m4/strstr.m4: New file.
90561
90562         Module strerror.
90563         * m4/strerror.m4: New file.
90564
90565         Module mktime.
90566         * m4/mktime.m4: Renamed from jm-mktime.m4.
90567         (gl_PREREQ_MKTIME): New macro.
90568         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90569
90570         Module malloc.
90571         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90572         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90573         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90574
90575         Module realloc.
90576         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90577         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90578         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90579
90580         Module strftime.
90581         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90582         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90583         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90584         gl_TM_GMTOFF.
90585         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90586
90587         Module xalloc.
90588         * m4/xalloc.m4: New file.
90589
90590         Module alloca.
90591         * m4/alloca.m4: New file.
90592
90593         Module putenv.
90594         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90595         (jm_FUNC_PUTENV): Invoke it.
90596
90597         Module setenv.
90598         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90599         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90600         when invoked twice.
90601         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90602         gt_FUNC_SETENV.
90603
90604         Module memrchr.
90605         * m4/memrchr.m4: New file.
90606
90607         Module stpcpy.
90608         * m4/stpcpy.m4: New file.
90609
90610         Module strcase.
90611         * m4/strcase.m4: New file.
90612
90613         Module strdup.
90614         * m4/strdup.m4: New file.
90615
90616         Module strnlen.
90617         * m4/strnlen.m4: New file.
90618
90619         Module strndup.
90620         * m4/strndup.m4: New file.
90621
90622         Module xstrtod.
90623         * m4/xstrtod.m4: New file.
90624
90625         Module xstrtol.
90626         * m4/xstrtol.m4: New file.
90627
90628         Module getdate.
90629         * m4/getdate.m4: New file.
90630
90631         Module unlocked-io.
90632         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90633         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90634         * m4/jm-glibc-io.m4n: Remove file.
90635
90636         Module long-options.
90637         * m4/long-options.m4: New file.
90638
90639         Module md5.
90640         * m4/md5.m4: New file.
90641
90642         Module sha.
90643         * m4/sha.m4: New file.
90644
90645         Module getstr.
90646         * m4/getstr.m4: New file.
90647
90648         Module getline.
90649         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90650         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90651         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90652         simply getline. Infoke gl_PREREQ_GETLINE.
90653
90654         Module obstack.
90655         * m4/obstack.m4: New file.
90656
90657         Module hash.
90658         * m4/hash.m4: New file.
90659
90660         Module readtokens.
90661         * m4/readtokens.m4: New file.
90662
90663         Module strverscmp.
90664         * m4/strverscmp.m4: New file.
90665
90666         Module stdbool.
90667         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90668         OSF/1.
90669
90670         Module strtoll.
90671         * m4/strtoll.m4: New file.
90672
90673         Module strtoull.
90674         * m4/strtoull.m4: New file.
90675
90676         Module strtoimax.
90677         * m4/strtoimax.m4: New file.
90678
90679         Module strtoumax.
90680         * m4/strtoumax.m4: New file.
90681
90682         Module xstrtoimax.
90683         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90684         jm_AC_PREREQ_XSTRTOIMAX.
90685         Moved the strtol prerequisites to strtol.m4.
90686         Moved the strtoll prerequisites to strtoll.m4.
90687         Moved the strtoimax prerequisites to strtoimax.m4.
90688
90689         Module xstrtoumax.
90690         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90691         jm_AC_PREREQ_XSTRTOUMAX.
90692         Moved the strtoul prerequisites to strtoul.m4.
90693         Moved the strtoull prerequisites to strtoull.m4.
90694         Moved the strtoumax prerequisites to strtoumax.m4.
90695
90696         Module chown.
90697         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90698         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90699
90700         Module dup2.
90701         * m4/dup2.m4: New file.
90702
90703         Module ftruncate.
90704         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90705         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90706
90707         Module getgroups.
90708         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90709         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90710
90711         Module gettimeofday.
90712         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90713         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90714         gl_PREREQ_GETTIMEOFDAY.
90715
90716         Module mkdir.
90717         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90718         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90719
90720         Module mkstemp.
90721         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90722         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90723         jm_AC_TYPE_UINTMAX_T.
90724         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90725
90726         Module stat.
90727         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90728         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90729
90730         Module lstat.
90731         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90732         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90733
90734         Module timespec.
90735         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90736         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90737         * m4/st_mtim.m4: Indentation.
90738
90739         Module nanosleep.
90740         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90741         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90742         gl_PREREQ_NANOSLEEP.
90743
90744         Module regex.
90745         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90746         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90747         (gl_REGEX): New macro.
90748
90749         Module rename.
90750         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90751         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90752
90753         Module rmdir.
90754         * m4/rmdir.m4: New file.
90755
90756         Module utime.
90757         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90758         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90759         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90760
90761         Module dirname.
90762         * m4/dirname.m4: New file.
90763
90764         Module getopt.
90765         * m4/getopt.m4: New file.
90766
90767         Module unistd-safer.
90768         * m4/unistd-safer.m4: New file.
90769
90770         Module fnmatch.
90771         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90772         declaration.
90773         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90774         (gl_FUNC_FNMATCH_POSIX): New macro.
90775         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90776         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90777         simply fnmatch.
90778
90779         Module exclude.
90780         * m4/exclude.m4: New file.
90781
90782         Module human.
90783         * m4/human.m4: New file.
90784
90785         Module acl.
90786         * m4/acl.m4: Nop.
90787
90788         Module backupfile.
90789         * m4/backupfile.m4: New file.
90790         * m4/d-ino.m4: Indentation.
90791
90792         Module fsusage.
90793         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90794         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90795         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90796
90797         Module dirfd.
90798         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90799         requirements.
90800
90801         Module euidaccess.
90802         * m4/euidaccess.m4: New file.
90803
90804         Module file-type.
90805         * m4/file-type.m4: New file.
90806
90807         Module fileblocks.
90808         * m4/fileblocks.m4: New file.
90809
90810         Module filemode.
90811         * m4/filemode.m4: New file.
90812
90813         Module isdir.
90814         * m4/isdir.m4: New file.
90815
90816         Module lchown.
90817         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90818         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90819
90820         Module makepath.
90821         * m4/makepath.m4: New file.
90822
90823         Module modechange.
90824         * m4/modechange.m4: New file.
90825
90826         Module mountlist.
90827         * m4/mountlist.m4: New file.
90828         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90829         Indentation.
90830
90831         Module path-concat.
90832         * m4/path-concat.m4: New file.
90833
90834         Module pathmax.
90835         * m4/pathmax.m4: New file.
90836
90837         Module same.
90838         * m4/same.m4: New file.
90839
90840         Module save-cwd.
90841         * m4/save-cwd.m4: New file.
90842
90843         Module savedir.
90844         * m4/savedir.m4: New file.
90845
90846         Module xgetcwd.
90847         * m4/xgetcwd.m4: New file.
90848         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90849
90850         Module xreadlink.
90851         * m4/xreadlink.m4: New file.
90852
90853         Module safe-read.
90854         * m4/safe-read.m4: New file.
90855
90856         Module safe-write.
90857         * m4/safe-write.m4: New file.
90858
90859         Module closeout.
90860         * m4/closeout.m4: New file.
90861
90862         Module stdio-safer.
90863         * m4/stdio-safer.m4: New file.
90864
90865         Module getpass.
90866         * m4/getpass.m4: New file.
90867
90868         Module getugroups.
90869         * m4/getugroups.m4: New file.
90870
90871         Module group-member.
90872         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90873         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90874
90875         Module idcache.
90876         * m4/idcache.m4: New file.
90877
90878         Module userspec.
90879         * m4/userspec.m4: New file.
90880
90881         Module gettime.
90882         * m4/clock_time.m4: New file.
90883         * m4/gettime.m4: New file.
90884
90885         Module settime.
90886         * m4/settime.m4: New file.
90887
90888         Module posixtm.
90889         * m4/posixtm.m4: New file.
90890
90891         Module gethostname.
90892         * m4/gethostname.m4: New file.
90893
90894         Module canon-host.
90895         * m4/canon-host.m4: New file.
90896
90897         Module gettext.
90898         * m4/codeset.m4: New file, from gettext-0.11.5.
90899         * m4/gettext.m4: New file, from gettext-0.11.5.
90900         * m4/glibc21.m4: New file, from gettext-0.11.5.
90901         * m4/iconv.m4: New file, from gettext-0.11.5.
90902         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90903         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90904         * m4/inttypes.m4: New file, from gettext-0.11.5.
90905         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90906         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90907         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90908         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90909         * m4/lib-link.m4: New file, from gettext-0.11.5.
90910         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90911         * m4/progtest.m4: New file, from gettext-0.11.5.
90912         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90913         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90914         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90915
90916         Module localcharset.
90917         * m4/localcharset.m4: New file.
90918
90919         Module hard-locale.
90920         * m4/hard-locale.m4: New file.
90921
90922         Module mbswidth.
90923         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90924         onceonly macros.
90925         * m4/mbrtowc.m4: Add comment.
90926
90927         Module memcasecmp.
90928         * m4/memcasecmp.m4: New file.
90929
90930         Module memcoll.
90931         * m4/memcoll.m4: New file.
90932
90933         Module unicodeio.
90934         * m4/unicodeio.m4: New file.
90935
90936         Module rpmatch.
90937         * m4/rpmatch.m4: New file.
90938
90939         Module yesno.
90940         * m4/yesno.m4: New file.
90941
90942         Module exitfail.
90943         * m4/exitfail.m4: New file.
90944
90945         Module c-stack.
90946         * m4/c-stack.m4 (gl_C_STACK): New macro.
90947         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90948
90949         Module error.
90950         * m4/error.m4 (gl_ERROR): New macro.
90951         (jm_PREREQ_ERROR): Use onceonly macros.
90952
90953         Module fatal.
90954         * m4/fatal.m4: New file.
90955
90956         Module getloadavg.
90957         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90958         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90959
90960         Module getpagesize.
90961         * m4/getpagesize.m4: New file.
90962
90963         Module getusershell.
90964         * m4/getusershell.m4: New file.
90965
90966         Module physmem.
90967         * m4/physmem.m4: New file.
90968
90969         Module posixver.
90970         * m4/posixver.m4: New file.
90971
90972         Module quotearg.
90973         * m4/quotearg.m4: New file.
90974
90975         Module quote.
90976         * m4/quote.m4: New file.
90977
90978         Module readutmp.
90979         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90980
90981         Module sig2str.
90982         * m4/sig2str.m4: New file.
90983
90984         Other.
90985         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90986         ulonglong.m4.
90987         * m4/intmax_t.m4: New file.
90988         * m4/d-type.m4: Indentation.
90989         * m4/jm-macros.m4: Update.
90990         * m4/prereq.m4 (jm_PREREQ): Update.
90991         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90992         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90993         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90994         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90995         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90996         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90997         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90998         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90999         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91000         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91001         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91002         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91003         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91004         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91005         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91006         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91007         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91008         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91009         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91010
91011 2002-12-24  Bruno Haible  <bruno@clisp.org>
91012
91013         * MODULES.txt: Update according to m4/ changes.
91014
91015         Module gettext.
91016         * config.rpath: New file, from gettext-0.11.5.
91017
91018         * modules/*: New module descriptions.
91019         * gnulib-tool: New file.
91020         * MODULES.html.sh: New file.
91021
91022 2002-12-21  Karl Berry  <karl@gnu.org>
91023
91024         * doc/fdl.texi: update to version 1.2.
91025
91026 2002-12-19  Karl Berry  <karl@gnu.org>
91027
91028         * config/config.guess: update from prep.
91029
91030 2002-12-18  Bruno Haible  <bruno@clisp.org>
91031
91032         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91033         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91034
91035 2002-12-17  Bruno Haible  <bruno@clisp.org>
91036
91037         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91038         stdlib.h, string.h.
91039
91040 2002-12-17  Bruno Haible  <bruno@clisp.org>
91041
91042         * lib/canon-host.c (strdup): Remove unused declaration.
91043
91044         * lib/fsusage.c: Include full_read.h.
91045         (get_fs_usage): Use full_read instead of safe_read.
91046
91047         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91048
91049 2002-12-12  Karl Berry  <karl@gnu.org>
91050
91051         * config/config.guess: update from prep.
91052
91053 2002-12-11  Bruno Haible  <bruno@clisp.org>
91054
91055         * m4/setenv.m4: New file, from gettext-0.11.5.
91056
91057 2002-12-11  Bruno Haible  <bruno@clisp.org>
91058
91059         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91060         not unsetenv().
91061         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91062         modifications:
91063
91064         2002-12-11  Bruno Haible  <bruno@clisp.org>
91065
91066                 * setenv.c (alloca): Fall back to malloc.
91067                 (freea): New macro.
91068                 (setenv): Use freea() to free memory allocated with alloca().
91069
91070         2002-11-13  Bruno Haible  <bruno@clisp.org>
91071
91072                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91073                 function declarations.
91074                 * unsetenv.c (unsetenv): Likewise.
91075
91076         2002-03-04  Bruno Haible  <bruno@clisp.org>
91077
91078                 Portability to AIX 4.3.3.
91079                 * unsetenv.c: New file, extracted from setenv.c.
91080                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91081
91082         2001-12-20  Bruno Haible  <bruno@clisp.org>
91083
91084                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91085                 use malloc instead. For SunOS 4.
91086
91087         2001-12-11  Bruno Haible  <bruno@clisp.org>
91088
91089                 * setenv.c: Declare alloca.
91090                 (compar_fn_t): New typedef.
91091                 (KNOWN_VALUE, STORE_VALUE): Use it.
91092
91093         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91094         setenv.h.
91095
91096 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91097
91098         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91099         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91100         Choose values that are less likely to collide with system fnmatch
91101         options.
91102         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91103         defined (e.g., a pure POSIX system).
91104         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91105         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91106
91107 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91108
91109         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91110         a pain in practice to deal with generated m4 files.  This change
91111         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91112
91113         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91114         and jm-glibc-io.m4, as they are no longer a special case.
91115         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91116         kludge and the auto-generation stuff.  Check only whether the
91117         functions are declared, not whether they exist, since older hosts
91118         that don't declare the functions can't use the optimization anyway.
91119
91120 2002-12-06  Jim Meyering  <jim@meyering.net>
91121
91122         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91123
91124         Merge in changes from libc's misc/error.c, in preparation
91125         for the merge of gnulib's changes back into libc.
91126
91127         * lib/error.c (_): Define only if not already defined.
91128         Move definition to follow all #include directives.
91129         Include unlocked-io.h only if !_LIBC.
91130         [_LIBC]: Include <libio/libioP.h>.
91131         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91132         (fflush): Tweak definition to use INTUSE.
91133         (putc): Define.
91134
91135 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91136
91137         * lib/alloca.c [defined emacs]: Include "lisp.h".
91138         (xalloc_die) [defined emacs]: New macro.
91139         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91140         [! defined emacs]: Include <xalloc.h>.
91141         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91142         (pointer): Typedef to POINTER_TYPE *.
91143         (malloc): Remove decl; we now always use xmalloc.
91144         (alloca): Use old-style definition, since Emacs needs this.
91145         Check for arithmetic overflow when computing combined size.
91146
91147 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91148
91149         Do not generate unlocked-io.h automatically, since it's easier to
91150         maintain it by hand.
91151
91152         * lib/unlocked-io.h: New file, from GNU diffutils,
91153         but with proper copyright notice and attribution.
91154         * lib/gen-uio: Remove.
91155         * lib/Makefile.am: Add copyright notice.
91156         (libfetish_a_SOURCES): Add unlocked-io.h.
91157         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91158         (DISTCLEANFILES, io_functions): Remove macros.
91159         (EXTRA_DIST): Remove gen_uio.
91160         (unlocked-io.h): Remove rule.
91161
91162 2002-12-04  Jim Meyering  <jim@meyering.net>
91163
91164         Reflect the fact that stat.c and lstat.c are no longer generated.
91165         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91166         (DISTCLEANFILES): Likewise.
91167         (EXTRA_DIST): Likewise.
91168         (all_local): Don't depend on stat.c or lstat.c.
91169         (stat.c, lstat.c): Remove rules.
91170         (EXTRA_DIST): Remove xstat.in.
91171
91172         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91173         * lib/stat.c: New file.  Contents mostly from xstat.in.
91174         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91175         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91176
91177         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91178         too.
91179         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91180
91181 2002-12-03  Jim Meyering  <jim@meyering.net>
91182
91183         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91184         but not semantics, to minimize the differences between these two files.
91185         (safe_read): Change comment to mention SAFE_READ_ERROR.
91186
91187         * lib/safe-read.c (IS_EINTR): Define.
91188         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91189
91190 2002-12-02  Jim Meyering  <jim@meyering.net>
91191
91192         * lib/safe-read.c (EINTR): Define.
91193         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91194         (INT_MAX): Provide fallback.
91195         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91196
91197         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91198
91199 2002-12-02  Bruno Haible  <bruno@clisp.org>
91200
91201         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91202         Define, taken from safe-read.c.
91203         (INT_MAX): Provide fallback.
91204         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91205         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91206
91207         * lib/safe-read.c (EINTR): Remove definition.
91208         (safe_read): Don't use EINTR if it is absent.
91209
91210 2002-12-01  Jim Meyering  <jim@meyering.net>
91211
91212         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91213         zero.
91214         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91215
91216 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91217
91218         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91219         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91220         with `if (! (value < limit)) abort ();', for readability.
91221
91222 2002-11-26  Karl Berry  <karl@gnu.org>
91223
91224         * lib/strdup.c: copy from libc again, with jim's ok.
91225         * lib/.cppi-disable: re-add strdup.c
91226
91227 2002-11-25  Karl Berry  <karl@gnu.org>
91228
91229         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91230         instead of "strtol.c".
91231
91232 2002-11-25  Karl Berry  <karl@gnu.org>
91233
91234         * config/install-sh: update from automake for variable quoting, $0 in
91235         error msgs, etc.
91236
91237         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91238         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91239         entry.
91240
91241 2002-11-25  Jim Meyering  <jim@meyering.net>
91242
91243         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91244
91245 2002-11-24  Karl Berry  <karl@gnu.org>
91246
91247         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91248         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91249
91250 2002-11-24  Jim Meyering  <jim@meyering.net>
91251
91252         Update from coreutils:
91253
91254         * lib/mktime.c: Merge in changes from libc.
91255
91256         Avoid a link-time failure on some Linux systems.
91257         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91258         (otherwise).
91259         (__mon_yday): Declare with the STATIC attribute.
91260         (__mktime_internal): Likewise.
91261         Based on a report from Greg Schafer.
91262
91263 2002-11-23  Jim Meyering  <jim@meyering.net>
91264
91265         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91266         Use `unsigned', not `int', as type of index.
91267
91268         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91269
91270         * lib/fsusage.c: Remove unneeded parentheses around operands of
91271         `defined'.
91272
91273 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91274
91275         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91276         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91277         so that we can be included first.
91278         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91279         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91280         No need to include stddef.h or sys/types.h any more.
91281         Surround local include files with "", not "<>".
91282         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91283         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91284         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91285         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91286         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91287         (ISPRINT): Remove; no longer needed now that we assume C89.
91288
91289         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91290         Preserve errno.
91291
91292         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91293         quotearg_char): Use SIZE_MAX rather than
91294         (size_t) -1 when we are talking about "infinity".
91295
91296         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91297
91298 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91299
91300         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91301         hint that one should use `if (! x) abort ();' rather than `assert
91302         (x);', and anyway it's one less thing to worry about configuring.
91303         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91304         hash_rehash, hash_insert): Use abort rather than assert.
91305
91306 2002-11-22  Bruno Haible  <bruno@clisp.org>
91307
91308         * lib/safe-read.h: Assume C89. Add comments.
91309         (safe_read): Change return type to size_t.
91310         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91311         byte counts > SSIZE_MAX correctly.
91312         * lib/safe-write.h: New file.
91313         * lib/safe-write.c: New file.
91314         * lib/full-read.h: New file.
91315         * lib/full-read.c: New file.
91316         * lib/full-write.h: Assume C89. Add comments.
91317         * lib/full-write.c: Include safe-write.h.
91318         (full_write): Rewritten to use safe_write.
91319         Suggested by Jim Meyering and Paul Eggert.
91320
91321 2002-11-21  Jim Meyering  <jim@meyering.net>
91322
91323         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91324
91325         Merge in changes from the coreutils.
91326
91327         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91328         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91329         <stdint.h>.
91330         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91331         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91332         int.  Work more efficiently if X is the same width as uintmax_t.
91333         Do not compare X to -1, to avoid bogus compiler warning.
91334         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91335         Don't assume that f_frsize and f_bsize are the same type.
91336
91337         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91338         warning on FreeBSD.
91339
91340         * lib/makepath.c (make_path): Restore umask *before* creating the final
91341         component.
91342         (make_path): Minor reformatting.
91343
91344         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91345         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91346         HAVE_MALLOC/HAVE_REALLOC.
91347
91348         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91349         dummy ones.  At least on GNU/Linux systems, `auto' means something
91350         else.
91351         From Michael Stone.
91352
91353 2002-11-21  Bruno Haible  <bruno@clisp.org>
91354
91355         Remove case insensitive option matching.
91356         * lib/argmatch.h (argcasematch): Remove declaration.
91357         (ARGCASEMATCH): Remove macro.
91358         (__xargmatch_internal): Remove case_sensitive argument.
91359         (XARGMATCH): Update.
91360         (XARGCASEMATCH): Remove macro.
91361         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91362         case_sensitive argument.
91363         (argcasematch): Remove function.
91364         (__xargmatch_internal): Remove case_sensitive argument.
91365         (main): Use XARGMATCH instead of XARGCASEMATCH.
91366
91367         * lib/xmalloc.c: Change compile-time error message. Add comment about
91368         required autoconf version.
91369
91370 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91371
91372         Merge argmatch cleanups from Bison.  Assume C89.
91373
91374         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91375         Include stdlib.h, for EXIT_FAILURE.
91376         Always include <string.h>, since we assume C89.
91377         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91378         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91379         Include <stddef.h> instead, since it's all we need for size_t.
91380         (PARAMS): Remove.  All uses removed.
91381         (ARRAY_CARDINALITY): Do not bother to #undef.
91382         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91383         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91384         Remove unnecessary parentheses.
91385         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91386         Insert necessary parentheses.
91387         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91388         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91389
91390 2002-11-19  Bruno Haible  <bruno@clisp.org>
91391
91392         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91393         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91394
91395         * lib/mbswidth.h (PARAMS): Remove macro.
91396         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91397         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91398
91399         * lib/gcd.h (PARAMS): Remove macro.
91400         (gcd): Use ANSI C function declarations.
91401         * lib/gcd.c (gcd): Likewise.
91402
91403 2002-11-15  Bruno Haible  <bruno@clisp.org>
91404
91405         * lib/strcspn.c: Include <stddef.h>.
91406         (strcspn): Use ANSI C function declaration. Change return type to
91407         size_t. Use NULL.
91408         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91409         (strpbrk): Use NULL.
91410         * lib/strpbrk.h (PARAMS): Remove macro.
91411         (strpbrk): Use ANSI C function declaration.
91412         * lib/strstr.c: Don't include <sys/types.h>.
91413         * lib/strstr.h (PARAMS): Remove macro.
91414         (strstr): Use ANSI C function declarations.
91415
91416 2002-11-14  Karl Berry  <karl@gnu.org>
91417
91418         * config/mkinstalldirs: `do' on separate line, instead of
91419         `for var; do'.
91420
91421 2002-11-06  Bruno Haible  <bruno@clisp.org>
91422
91423         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91424         * lib/gcd.c (gcd): Likewise.
91425
91426 2002-11-05  Bruno Haible  <bruno@clisp.org>
91427
91428         * lib/gcd.h: New file, from gettext-0.11.5.
91429         * lib/gcd.c: New file, from gettext-0.11.5.
91430
91431 2002-11-05  Bruno Haible  <bruno@clisp.org>
91432
91433         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91434         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91435         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91436         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91437
91438         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91439         <libintl.h>.
91440         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91441         <libintl.h>.
91442
91443         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91444         * lib/human.c: Include gettext.h instead of <libintl.h>.
91445         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91446         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91447         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91448         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91449         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91450         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91451         (textdomain): Remove definition.
91452         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91453
91454         * lib/long-options.c: Remove include of <libintl.h> and definition of
91455         _.
91456         * lib/same.c: Remove include of <libintl.h> and definition of _.
91457
91458 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91459
91460         * lib/config.charset: A few additions for Solaris.
91461
91462 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91463
91464         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91465         * lib/localcharset.c (locale_charset): Declare as extern "C".
91466
91467 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91468
91469         * lib/config.charset: msdos in uk_UA uses CP1125.
91470
91471 2002-11-04  Bruno Haible  <bruno@clisp.org>
91472
91473         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91474         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91475         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91476         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91477         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91478
91479 2002-11-04  Bruno Haible  <bruno@clisp.org>
91480
91481         * lib/localcharset.c (locale_charset): Don't return an empty string.
91482
91483 2002-11-04  Bruno Haible  <bruno@clisp.org>
91484
91485         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91486         aliases.
91487
91488 2002-11-04  Bruno Haible  <bruno@clisp.org>
91489
91490         * lib/config.charset: Update for newest glibc. Add canonical names
91491         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91492
91493 2002-11-04  Bruno Haible  <bruno@clisp.org>
91494
91495         * lib/config.charset: Add support for NetBSD.
91496
91497 2002-11-04  Bruno Haible  <bruno@clisp.org>
91498
91499         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91500
91501 2002-11-01  Bruno Haible  <bruno@clisp.org>
91502
91503         * configure.in: Add AC_CONFIG_AUX_DIR call.
91504         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91505         test/Makefile.
91506         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91507
91508 2002-09-28  Karl Berry  <karl@gnu.org>
91509
91510         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91511         installed automake until the next release, since changes have been
91512         made.
91513
91514 2002-09-25  Karl Berry  <karl@gnu.org>
91515
91516         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91517         * lib/getopt*: copy from libc/posix.
91518         * lib/gettext.h: copy from gettext.
91519         * lib/.cppi-disable: add strdup.c, gettext.h.
91520
91521 2002-09-25  Karl Berry  <karl@gnu.org>
91522
91523         * config/srclist.txt: enable gettext.h check.
91524         * config/config.{guess,sub}: update from prep.
91525         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91526                 from automake 1.6.3.
91527         See srclist*.
91528
91529 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91530
91531         * regex.c (PATFETCH): Remove the translating fetch.
91532         (PATFETCH_RAW): Rename to PATFETCH.
91533         (set_image_of_range): New fun.
91534         (SET_RANGE_TABLE_WORK_AREA): Use it.
91535         (regex_compile): Don't translate the pattern chars so eagerly.
91536         Only do it when inserting an `exactn' bytecode or when handling
91537         a char-range.
91538         (mutually_exclusive_p): Avoid empty statement.
91539
91540 2002-07-06  Jim Meyering  <meyering@lucent.com>
91541
91542         * m4/README: Don't mention Makefile.am.in.
91543         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91544
91545 2002-07-01  Jim Meyering  <meyering@lucent.com>
91546
91547         * lib/c-stack.c: Include sys/time.h.
91548         From Volker Borchert.
91549
91550 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91551
91552         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91553
91554 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91555
91556         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91557         New macro.  Use it uniformly instead of
91558         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91559         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91560         reported by Vin Shelton.
91561
91562 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91563
91564         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91565         Do not assume SA_SIGINFO behavior.
91566         Bug reported by Jim Meyering on NetBSD 1.5.2.
91567
91568 2002-06-22  Jim Meyering  <meyering@lucent.com>
91569
91570         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91571         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91572
91573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91574         now that configure.ac uses AC_GNU_SOURCE.
91575         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91576         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91577
91578         Update to latest tools.  Suggestions from Paul Eggert.
91579         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91580         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91581         * m4/fnmatch.m4: Likewise.
91582         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91583         to AC_HEADER_STDBOOL
91584
91585 2002-06-22  Jim Meyering  <meyering@lucent.com>
91586
91587         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91588         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91589
91590 2002-06-22  Jim Meyering  <meyering@lucent.com>
91591
91592         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91593
91594         * lib/exitfail.c, exitfail.h: Likewise.
91595         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91596
91597         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91598         of fnmatch.h.
91599         (EXTRA_DIST): Add fnmatch_loop.c.
91600         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91601
91602         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91603         * lib/fnmatch.c: Update from diffutils-2.8.2.
91604         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91605         * lib/fnmatch.h: Remove file.
91606
91607 2002-06-21  Jim Meyering  <meyering@lucent.com>
91608
91609         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91610         * m4/mbrtowc.m4: Likewise.
91611
91612         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91613         * m4/mbswidth.m4: Reflect name change:
91614         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91615         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91616
91617         * m4/lib-link.m4: Update from gettext-0.11.2.
91618         * m4/gettext.m4: Likewise.
91619
91620         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91621         From Alfred M. Szmidt.
91622
91623 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91624
91625         * lib/file-type.h: Report an error if neither S_ISREG nor
91626         S_IFREG is defined, instead of using a test specific to glibc
91627         2.2.  This should be safe, since POSIX requires S_ISREG and
91628         Unix Version 7 had S_IFREG.  We don't need to check for
91629         <sys/types.h> since we don't use any symbols that it defines.
91630
91631 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91632
91633         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91634         $@-t, so that each temporary file name is unique and valid in the first
91635         8 characters, for operation under DOS.
91636
91637 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91638
91639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91640
91641 2002-06-15  Jim Meyering  <meyering@lucent.com>
91642
91643         Work even with DJGPP 2.03, which lacks support for symlinks.
91644         From Richard Dawe.
91645         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91646         is defined.
91647         * lib/lchown.c (S_ISLNK): Likewise.
91648
91649 2002-06-15  Jim Meyering  <meyering@lucent.com>
91650
91651         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91652         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91653         have been included before this file.
91654
91655 2002-06-14  Jim Meyering  <meyering@lucent.com>
91656
91657         * lib/file-type.h: Use the version from diffutils-2.8.2.
91658         * lib/file-type.c: Likewise.
91659
91660 2002-06-07  Jim Meyering  <meyering@lucent.com>
91661
91662         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91663         They're needed at least for NetBSD 1.5.2.
91664         ($statxfs_includes): Include those same headers.
91665         ($statxfs_includes): Include sys/vfs.h if available.
91666         ($statxfs_includes): Likewise for sys/statvfs.h.
91667         Check for the following members in both structs statfs and statvfs:
91668         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91669
91670 2002-06-01  Jim Meyering  <meyering@lucent.com>
91671
91672         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91673         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91674
91675 2002-05-28  Jim Meyering  <meyering@lucent.com>
91676
91677         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91678         Reported by Volker Borchert.
91679
91680 2002-05-27  Jim Meyering  <meyering@lucent.com>
91681
91682         Fix a problem seen only on nonconforming systems whereby ls.c's
91683         use of localtime, and then of gettimeofday would cause trouble:
91684         the localtime call used to initialize rpl_gettimeofday's save
91685         mechanism would clobber ls's current local time information so
91686         that in any long listing the first file would always be listed
91687         with date 1970-01-01.  Analysis by Volker Borchert.
91688
91689         * lib/gettimeofday.c (localtime): Undefine.
91690         (rpl_localtime): New function.
91691
91692 2002-05-27  Jim Meyering  <meyering@lucent.com>
91693
91694         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91695         localtime.
91696
91697         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91698         use the replacement function; it wouldn't resolve at link time.
91699         Reported by Volker Borchert.
91700
91701 2002-05-22  Jim Meyering  <meyering@lucent.com>
91702
91703         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91704         file-type.h.
91705         * lib/file-type.h: New file.
91706         * lib/file-type.c (file_type): New file/function.  Extracted from
91707         diffutils.
91708
91709 2002-04-30  Jim Meyering  <meyering@lucent.com>
91710
91711         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91712
91713 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91714
91715         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91716
91717 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91718
91719         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91720         Do not check for alloca.h (no longer used) or stdbool.h (was never
91721         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91722
91723 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91724
91725         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91726
91727 2002-04-29  Jim Meyering  <meyering@lucent.com>
91728
91729         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91730         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91731         Use AC_FUNC_STRNLEN here instead.
91732
91733         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91734         With autoconf-2.53a, it's part of AC_PROG_CC.
91735
91736 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91737
91738         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91739         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91740
91741 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91742
91743         * lib/sig2str.h, lib/sig2str.c: New files.
91744         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91745
91746 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91747
91748         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91749         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91750         of 127, since 64 is the largest conceivable number for ancient
91751         nonstandard hosts.
91752         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91753
91754 2002-04-28  Jim Meyering  <meyering@lucent.com>
91755
91756         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91757
91758 2002-04-24  Jim Meyering  <meyering@lucent.com>
91759
91760         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91761         (jm_PREREQ): Use it.
91762
91763         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91764         mach/mach.h fcntl.h.
91765         Check for this function: setlocale.
91766
91767 2002-04-24  Jim Meyering  <meyering@lucent.com>
91768
91769         * lib/gettext.h: New file, from Gettext.
91770         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91771         (libfetish_a_SOURCES): Add gettext.h.
91772
91773 2002-04-16  Jim Meyering  <meyering@lucent.com>
91774
91775         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91776         ut_pid, ut_id, ut_exit.
91777
91778 2002-04-16  Jim Meyering  <meyering@lucent.com>
91779
91780         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91781         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91782         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91783
91784 2002-04-12  Jim Meyering  <meyering@lucent.com>
91785
91786         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91787         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91788         existence of the getmntinfo function.  Needed for Darwin 5.3.
91789
91790         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91791         This is necessary at least on Darwin 5.3.
91792
91793         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91794         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91795         strnlen.o in the library, and that makes some versions of ranlib
91796         object.
91797
91798 2002-04-12  Jim Meyering  <meyering@lucent.com>
91799
91800         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91801
91802 2002-04-09  Jim Meyering  <meyering@lucent.com>
91803
91804         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91805         to be more precise.  Rather than saying we're checking whether the
91806         function `works', say what we're testing.
91807         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91808         Reported by Bruno Haible.
91809
91810 2002-03-10  Jim Meyering  <meyering@lucent.com>
91811
91812         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91813         Suggestion from Santiago Vila.
91814
91815 2002-03-08  Jim Meyering  <meyering@lucent.com>
91816
91817         * lib/rename.c: Mention that this wrapper is needed also on
91818         mips-dec-ultrix4.4 systems.
91819
91820 2002-03-02  Jim Meyering  <meyering@lucent.com>
91821
91822         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91823         not HAVE_CLOCK_SETTIME.
91824
91825 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91826
91827         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91828         Check for clock_settime.
91829
91830 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91831
91832         * lib/nanosleep.h: Rename to....
91833         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91834
91835         * lib/gettime.c: New file.
91836         * lib/settime.c: New file.
91837         * lib/stime.c: Remove.
91838
91839         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91840         timespec.h.  Remove nanosleep.h.
91841
91842 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91843
91844         * m4/acl.m4: New file.
91845         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91846         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91847
91848 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91849
91850         * lib/acl.c, lib/acl.h: New files.
91851         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91852
91853 2002-02-24  Jim Meyering  <meyering@lucent.com>
91854
91855         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91856         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91857         cause trouble.  Reported by Nelson Beebe.
91858
91859 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91860
91861         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91862         compilers that don't know that xalloc_die never returns.
91863
91864 2002-02-20  Jim Meyering  <meyering@lucent.com>
91865
91866         * lib/getdate.c: Regenerate using bison-1.33.
91867
91868 2002-02-17  Jim Meyering  <meyering@lucent.com>
91869
91870         * config/config.guess (main): Don't use `head -1'; it's no longer
91871         portable. Use `sed 1q' instead.
91872
91873 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91874
91875         * m4/codeset.m4: Upgrade to gettext-0.11.
91876         * m4/gettext.m4: Upgrade to gettext-0.11.
91877         * m4/glibc21.m4: Upgrade to gettext-0.11.
91878         * m4/iconv.m4: Upgrade to gettext-0.11.
91879         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91880         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91881         * m4/lib-ld.m4: New file, from gettext-0.11.
91882         * m4/lib-link.m4: New file, from gettext-0.11.
91883         * m4/lib-prefix.m4: New file, from gettext-0.11.
91884         * m4/progtest.m4: Upgrade to gettext-0.11.
91885
91886 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91887
91888         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91889         (jm_PREREQ): Use it.
91890
91891 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91892
91893         * lib/posixver.c, lib/posixver.h: New files.
91894         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91895
91896 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91897             Bruno Haible  <bruno@clisp.org>
91898
91899         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91900         (fwrite_success_callback): New declaration.
91901         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91902         print_unicode_char. Call failure callback instead of error.
91903         (fwrite_success_callback): New function.
91904         (exit_failure_callback): New function.
91905         (fallback_failure_callback): New function.
91906         (print_unicode_char): Call unicode_to_mb.
91907
91908 2002-01-26  Jim Meyering  <meyering@lucent.com>
91909
91910         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91911         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91912
91913 2002-01-26  Jim Meyering  <meyering@lucent.com>
91914
91915         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91916
91917 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91918
91919         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91920
91921 2002-01-22  Jim Meyering  <meyering@lucent.com>
91922
91923         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91924         Otherwise, some versions of automake would omit the rule that makes
91925         Makefile from Makefile.in.
91926
91927 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91928
91929         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91930         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91931         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91932         (memcoll): Set errno to zero if there is no error.
91933
91934         * lib/quotearg.c (quotearg_buffer_restyled):
91935         Fix bug with quoting buffers containing NUL when backslashing escapes.
91936         This bug was exposed by the other changes in this patch.
91937         (quotearg_n_options): New arg ARGSIZE.
91938         All callers changed.
91939         (quoting_options_from_style): New function.
91940         (quotearg_n_style): Use it.
91941         (quotearg_n_style_mem): New function.
91942
91943         * lib/quotearg.h (quotearg_n_style_mem): New function.
91944
91945 2002-01-19  Jim Meyering  <meyering@lucent.com>
91946
91947         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91948         Remove useless quotes: DF_PROG="df".
91949         * m4/strnlen.m4: New file.
91950
91951 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91952
91953         * lib/backupfile.c (ISDIGIT): Comment fix.
91954         * lib/getdate.y (ISDIGIT): Likewise.
91955         * lib/posixtm.c (ISDIGIT, year): Likewise.
91956         * lib/strverscmp.c (ISDIGIT): Likewise.
91957         * lib/userspec.c (ISDIGIT): Likewise.
91958
91959 2002-01-16  Jim Meyering  <meyering@lucent.com>
91960
91961         * lib/getdate.y: Add three semicolons, each just before a closing
91962         brace. Bison (as of version 1.31) no longer papers over that mistake.
91963
91964 2002-01-05  Jim Meyering  <meyering@lucent.com>
91965
91966         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91967
91968 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91969
91970         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91971         not silently exit merely because the output buffer happens to
91972         have nothing pending.
91973
91974 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91975
91976         See the big note in ../ChangeLog.
91977         * lib/human.c (suffixes): Prefer K to k for 1024.
91978         (generate_suffix_backwards): New function.
91979         (human_readable_inexact): Use it.
91980         * lib/xstrtol.c (__xstrtol): If there is no number but there
91981         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91982         Accept 'K' as well as 'k'.
91983
91984 2001-12-15  Jim Meyering  <meyering@lucent.com>
91985
91986         * lib/regex.h (__restrict_arr): Update from libc.
91987
91988         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91989         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91990         (STREQ): Define.
91991
91992 2001-12-14  Jim Meyering  <meyering@lucent.com>
91993
91994         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91995         Suggestion from Bruno Haible.
91996
91997 2001-12-10  Jim Meyering  <meyering@lucent.com>
91998
91999         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92000         xrealloc, Instead, include "xalloc.h".
92001         (initbuffer): Don't cast xmalloc return value to char*.
92002         (readline): Reword comment.
92003         Don't cast xrealloc return value to char*
92004         Return NULL, not 0.
92005
92006 2001-12-09  Jim Meyering  <meyering@lucent.com>
92007
92008         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92009         about `signed and unsigned type in conditional expression'.
92010         * lib/posixtm.c (posix_time_parse): Likewise.
92011
92012         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92013
92014         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92015         to avoid a pedantic warning.
92016
92017         * lib/getstr.c: Don't include assert.h.
92018         (getstr): Remove warning-evoking assertions.
92019         Return -1 if offset parameter is out of bounds.
92020         Change the type of a local from int to size_t.
92021
92022         * lib/strftime.c (my_strftime_localtime_r): Include this function
92023         definition in the `#if ! HAVE_TM_GMTOFF' block.
92024
92025         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92026         Include xalloc.h instead.
92027
92028 2001-12-02  Jim Meyering  <meyering@lucent.com>
92029
92030         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92031         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92032         included.
92033
92034         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92035         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92036
92037 2001-11-30  Akim Demaille  <akim@epita.fr>
92038
92039         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92040         before being defined.
92041
92042 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92043
92044         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92045         First arg is int, not unsigned.
92046         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92047         (SIZE_MAX, UINT_MAX): New macros.
92048         (quotearg_n_options): Abort if N is negative.
92049         Avoid overflow check on hosts where size_t is 64 bits and int
92050         is 32 bits, as overflow is impossible there.
92051         Fix off-by-one typo that caused unnecessary reallocation.
92052
92053 2001-11-27  Jim Meyering  <meyering@lucent.com>
92054
92055         * lib/tempname.c: Merge with version from libc.
92056         * lib/regex.c: Likewise.
92057
92058         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92059         systems for which STDC_HEADERS is 0, it was not included, resulting in
92060         a warning about an integer-to-pointer conversion problem with getenv.
92061         Reported by Volker Borchert.
92062
92063 2001-11-26  Jim Meyering  <meyering@lucent.com>
92064
92065         * lib/gtod.h: Remove file.
92066         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92067         * lib/gettimeofday.c: Don't include gtod.h.
92068         (GTOD_init): Remove function.
92069         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92070         Suggestion from Volker Borchert.
92071
92072 2001-11-23  Jim Meyering  <meyering@lucent.com>
92073
92074         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92075         it.
92076         * lib/hash.c (struct hash_table): Define it here instead.
92077
92078 2001-11-22  Jim Meyering  <meyering@lucent.com>
92079
92080         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92081
92082 2001-11-20  Jim Meyering  <meyering@lucent.com>
92083
92084         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92085         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92086
92087 2001-11-19  Jim Meyering  <meyering@lucent.com>
92088
92089         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92090         directory.  Use "conftestXXXXXX" as the template.
92091         Suggestion from Paul Eggert.
92092
92093         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92094         immediately, so the test doesn't mistakenly hit the max-open-files
92095         limit.
92096
92097 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92098
92099         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92100         (TEMPORARIES): New macro.
92101         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92102         removes an artificial limitation (e.g. HP-UX 10.20, where
92103         TMP_MAX is 17576).
92104
92105 2001-11-18  Jim Meyering  <meyering@lucent.com>
92106
92107         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92108
92109 2001-11-18  Jim Meyering  <meyering@lucent.com>
92110
92111         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92112         on SunOS 4.
92113
92114         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92115         files will be created before anything else.
92116
92117 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92118
92119         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92120         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92121
92122 2001-11-17  Jim Meyering  <meyering@lucent.com>
92123
92124         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92125         Prompted by a report from Bob Proulx.
92126
92127         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92128         Instead, require UTILS_FUNC_MKSTEMP.
92129
92130 2001-11-17  Jim Meyering  <meyering@lucent.com>
92131
92132         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92133         Now, that's done as part of AC_FUNC_STRTOD.
92134
92135 2001-11-17  Jim Meyering  <meyering@lucent.com>
92136
92137         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92138         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92139         rather than group writable.  Patch by Juan F. Codagnone.
92140
92141         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92142         xrealloc, Instead, include "xalloc.h".
92143
92144         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92145         Remove explicit declarations of xmalloc, xrealloc,
92146         and xstrdup.  Instead, include "xalloc.h".
92147
92148         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92149         unlocked-io.h.
92150         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92151         Likewise.
92152         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92153
92154         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92155         Reported by Padraig Brady.
92156
92157         * lib/mkstemp.c: #undef mkstemp.
92158         Include config.h.
92159         (rpl_mkstemp): Rename from mkstemp.
92160         Protoize.
92161
92162 2001-11-16  Jim Meyering  <meyering@lucent.com>
92163
92164         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92165         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92166         determine the amount of total physical memory, use pstat_getstatic.
92167         HPUX-11 doesn't define _SC_PHYS_PAGES.
92168         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92169         If sysconf couldn't be used to determine the amount of available
92170         physical memory, use both pstat_getstatic and pstat_getdynamic.
92171         Based on a patch from Bob Proulx.
92172
92173 2001-11-10  Jim Meyering  <meyering@lucent.com>
92174
92175         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92176         (jm_PREREQ): Use it.
92177
92178 2001-11-09  Jim Meyering  <meyering@lucent.com>
92179
92180         * m4/jm-macros.m4: Require autoconf-2.52f.
92181         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92182         Use these AC_-prefixed names, not the AM_-prefixed ones.
92183
92184         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92185
92186 2001-11-05  Jim Meyering  <meyering@lucent.com>
92187
92188         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92189
92190 2001-11-04  Jim Meyering  <meyering@lucent.com>
92191
92192         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92193         $DEFS.
92194
92195 2001-11-03  Jim Meyering  <meyering@lucent.com>
92196
92197         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92198         of AC_DEFUN.
92199
92200         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92201         know the name of the variable in the macro definition.
92202
92203 2001-11-03  Jim Meyering  <meyering@lucent.com>
92204
92205         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92206         in argmatch_to_argument call.
92207
92208         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92209         argument.
92210
92211         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92212         e.g., a fault due to an attempt to free a NULL pointer.
92213
92214 2001-11-01  Jim Meyering  <meyering@lucent.com>
92215
92216         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92217         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92218
92219 2001-11-01  Jim Meyering  <meyering@lucent.com>
92220
92221         * lib/dirfd.c, lib/dirfd.h: New files.
92222         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92223
92224         * lib/hash.c (hash_print) [TESTING]: Clean up.
92225
92226 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92227
92228         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92229         to avoid a warning if -Wall.
92230
92231 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92232
92233         * README: New file
92234         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92235         (per RMS's instructions, this is now the canonical source)
92236         * lgpl/, gpl/: New directories.
92237
92238 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92239
92240         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92241
92242 2001-10-21  Jim Meyering  <meyering@lucent.com>
92243
92244         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92245         this code would end up calling gettext even in packages built
92246         with --disable-nls.
92247         * lib/getopt.c (_): Likewise.
92248         * lib/regex.c (_): Likewise.
92249
92250 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92251
92252         * m4/error.m4 (jm_PREREQ_ERROR):
92253         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92254         AC_FUNC_STRERROR_R does that.
92255         Check for strerror declaration.
92256
92257         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92258         are supposed to have them these days.
92259         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92260         Merge changes from latest Autoconf CVS.
92261         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92262         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92263         POSIX decided to standardize on the int flavor of strerror_r.
92264
92265 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92266
92267         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92268         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92269         Use strerror_r that is only a macro, even if it is not a function.
92270         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92271         (private_strerror): Use prototypes, not old-style function definition.
92272         (print_errno_message): New function.
92273         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92274         char*-flavored one.
92275         (error_tail, error, error_at_line): Use it.
92276
92277 2001-10-11  Jim Meyering  <meyering@lucent.com>
92278
92279         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92280         and quote_n (1, ... to avoid clobbering a buffer.
92281
92282 2001-10-05  Jim Meyering  <meyering@lucent.com>
92283
92284         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92285         hash-pjw.h.
92286         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92287         * lib/hash-pjw.h: New file.
92288
92289 2001-09-30  Jim Meyering  <meyering@lucent.com>
92290
92291         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92292         `struct fsstat' has the `f_fstypename' member.
92293         Use that to define FS_TYPE, which is now used to make
92294         the getfsstat link test tighter.
92295
92296 2001-09-30  Jim Meyering  <meyering@lucent.com>
92297
92298         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92299         Include <sys/ucred.h>, for Apple Darwin.
92300         Include sys/mount.h and sys/fs_types.h only if available.
92301         (FS_TYPE): Define.
92302         (read_filesystem_list): Use FS_TYPE.
92303
92304 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92305
92306         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92307         a boolean context.
92308
92309 2001-09-29  Jim Meyering  <meyering@lucent.com>
92310
92311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92312         [one-argument getmntent function]): Include stdio.h before mntent.h.
92313         SunOS 4.1.x needs it for the declaration of `FILE'.
92314         Patch by Volker Borchert.
92315
92316         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92317         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92318         sys/fs_types.h, and make the link-test for getfsstat guard #include
92319         directives with appropriate #if HAVE_*_H tests so that we can
92320         detect getfsstat on Apple Darwin1.3.7 systems.
92321         Reported by Nelson Beebe.
92322         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92323
92324 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92325
92326         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92327         #defines strtoimax.  Also treat the other strto* functions
92328         like strtoimax.
92329
92330         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92331         Check for strtoul and strtoumax,
92332         as those declarations are made even in the signed case.
92333         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92334         Likewise, for strtol and strtoimax.
92335
92336 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92337
92338         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92339         #defines strtoimax.  Also treat the other strto* functions
92340         like strtoimax.
92341
92342         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92343         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92344         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92345
92346 2001-09-26  Jim Meyering  <meyering@lucent.com>
92347
92348         Most macros in unlocked-io.h had the wrong number of arguments.
92349         * lib/gen-uio: New script.
92350         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92351         * lib/unlocked-io.hin: Remove file.
92352         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92353         rather than trying to embed it here.
92354         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92355         Reported by Padraig Brady.
92356
92357 2001-09-25  Volker Borchert  <bt@teknon.de>
92358
92359         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92360         `result'.
92361
92362 2001-09-24  Jim Meyering  <meyering@lucent.com>
92363
92364         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92365
92366 2001-09-23  Jim Meyering  <meyering@lucent.com>
92367
92368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92369         instead of the mere test for existence of mntent.h.  The latter
92370         would get a false-positive on AIX 3.4 systems.
92371         In the outer getmntent if-block, don't die if neither of the getmntent
92372         tests succeeds.  Instead, just fall through and continue with the
92373         remaining tests.
92374
92375 2001-09-23  Jim Meyering  <meyering@lucent.com>
92376
92377         * lib/mountlist.c: Remove useless parentheses in #if directives.
92378         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92379         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92380
92381 2001-09-22  Jim Meyering  <meyering@lucent.com>
92382
92383         * m4/gettext.m4: New file.  From gettext.
92384         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92385         * m4/progtest.m4: Likewise
92386         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92387         * m4/glibc21.m4: Likewise.
92388
92389         * m4/libintl.m4: Remove.  No longer used.
92390
92391 2001-09-22  Jim Meyering  <meyering@lucent.com>
92392
92393         * lib/localcharset.c: Update from latest gettext.
92394         * lib/config.charset: Likewise.
92395
92396 2001-09-20  Jim Meyering  <meyering@lucent.com>
92397
92398         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92399         strtoimax.
92400         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92401         strtoumax.
92402
92403 2001-09-20  Jim Meyering  <meyering@lucent.com>
92404
92405         * lib/xstrtol.c (strtoimax): Guard declaration with
92406         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92407         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92408         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92409         (strtoumax): Likewise, for completeness (it wasn't necessary).
92410
92411 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92412
92413         * lib/strtoimax.c (HAVE_LONG_LONG):
92414         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92415         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92416         to work around bug in IBM C compiler.
92417
92418 2001-09-17  Jim Meyering  <meyering@lucent.com>
92419
92420         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92421         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92422         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92423         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92424         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92425         whenever the right hand side need not be expanded by the shell.
92426
92427 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92428
92429         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92430         library.  It's not correct, as some older glibcs are buggy.
92431         fnmatch wasn't fixed until glibc 2.2.
92432
92433         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92434         special shell magic here.
92435
92436 2001-09-16  Jim Meyering  <meyering@lucent.com>
92437
92438         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92439         * m4/jm-macros.m4: Require it.
92440
92441 2001-09-16  Jim Meyering  <meyering@lucent.com>
92442
92443         * lib/mkdir.c: New file.
92444
92445 2001-09-15  Jim Meyering  <meyering@lucent.com>
92446
92447         * m4/jm-macros.m4: Check for help2man.
92448
92449 2001-09-11  Jim Meyering  <meyering@lucent.com>
92450
92451         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92452         The body, by Paul Eggert, was moved here from configure.in.
92453         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92454
92455 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92456
92457         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92458         (jm_PREREQ): Use it.
92459
92460 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92461
92462         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92463         Use ssize_t, not int, to store result of readlink.
92464         Check for ssize_t overflow as well as size_t overflow,
92465         as POSIX says the result of readlink is implementation-defined
92466         when ssize_t overflows.
92467         Remove unnecessary cast to char*.
92468         Use free+malloc instead of realloc, as the storage doesn't need
92469         to be preserved and it's clearer and can be more efficient that way.
92470         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92471         * lib/xreadlink.h (xreadlink): Update prototype.
92472
92473 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92474
92475         * lib/xgetcwd.c: Revert some of the previous change; intead,
92476         fix the HAVE_GETCWD_NULL code to behave more like the
92477         !HAVE_GETCWD_NULL code used to.
92478
92479         Include "xalloc.h".
92480         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92481         invoke xalloc_die.
92482
92483 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92484
92485         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92486         sys/param.h, as pathmax.h includes them.
92487
92488 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92489
92490         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92491         (jm_PREREQ_XGETCWD): New macro.
92492
92493         * m4/getcwd.m4: New file.
92494
92495 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92496
92497         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92498         like the HAVE_GETCWD_NULL code.
92499         Include pathmax.h if not HAVE_GETCWD.
92500         Do not include xalloc.h.
92501         (INITIAL_BUFFER_SIZE): New symbol.
92502         Do not use xmalloc / xrealloc, since the caller is responsible for
92503         handling errors.  Preserve errno around `free' during failure.
92504         Do not overrun buffer when using getwd.
92505
92506 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92507
92508         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92509         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92510         getcwd (NULL, 0).
92511
92512 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92513
92514         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92515         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92516         spotted by Jim Meyering.
92517
92518 2001-09-03  Jim Meyering  <meyering@lucent.com>
92519
92520         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92521         failure.
92522
92523 2001-09-02  Jim Meyering  <meyering@lucent.com>
92524
92525         * lib/error.c: Update from GNU libc.
92526
92527 2001-09-01  Jim Meyering  <meyering@lucent.com>
92528
92529         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92530         Used by df.
92531
92532 2001-09-01  Jim Meyering  <meyering@lucent.com>
92533
92534         * lib/xreadlink.c: New file.
92535         * lib/xreadlink.h: New file.
92536         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92537         xreadlink.h.
92538
92539         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92540         doesn't conflict with sparc Solaris 7's definition in
92541         /usr/include/sys/int_types.h.
92542
92543         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92544         files.
92545         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92546         and strncasecmp as r-values.  Unixware didn't have declarations.
92547
92548 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92549
92550         * lib/xstrtol.h: Add copyright notice.
92551         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92552         LONGINT_INVALID_SUFFIX_CHAR.
92553
92554 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92555
92556         * lib/xstrtol.c (strtoimax): New decl.
92557
92558 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92559
92560         * lib/xgetcwd.c: Don't include pathmax.h.
92561         Include stdlib.h and unistd.h if available.
92562         Include xalloc.h.
92563         (xmalloc, xstrdup, free): Remove decls.
92564         (xgetcwd): Don't assume sizes fit in unsigned.
92565         Check for overflow when computing sizes.
92566         Simplify reallocation code.
92567
92568 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92569
92570         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92571         a directory's st_size can have an arbitrary value, so the old
92572         usage could waste an arbitrary amount of memory.  All uses
92573         changed.
92574         * lib/savedir.h: Update prototype.
92575
92576 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92577
92578         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92579
92580         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92581         old strtoimax.c.
92582
92583         Also, make the following further changes to make this file's
92584         configuration more similar to that of strtol.c:
92585         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92586         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92587         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92588         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92589         changed to signed values.
92590
92591         And make the following changes as well:
92592         Fix copyright notice, as 1999 was missing.
92593         (verify): New macro.
92594         (strtoimax): Check sizes at compile-time, not run-time.
92595         Prefer strtol to strtoll if both work.
92596         (main): Remove; it was not that useful and was a pain to maintain.
92597
92598         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92599
92600 2001-08-31  Jim Meyering  <meyering@lucent.com>
92601
92602         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92603         Use an initial, malloc'd, buffer of length 128 rather than
92604         a statically allocated one of length 1024.
92605
92606 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92607
92608         Simplify code, partly by assuming autoconf 2.52 semantics.
92609
92610         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92611
92612         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92613         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92614         All uses removed.
92615         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92616         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92617         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92618         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92619         jm_AC_HEADER_INTTYPES_H.
92620         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92621
92622         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92623
92624         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92625         Quote first arg of AC_DEFUN.
92626         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92627         since they are needed to parse the include file even if we need
92628         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92629         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92630         but with opposite signedness.
92631
92632 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92633
92634         Merge 'exclude' changes from tar 1.13.22.
92635         This fixes one or two unlikely storage allocation overflow bugs,
92636         but doesn't change user-visible behavior otherwise.
92637
92638 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92639
92640         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92641         (jm_PREREQ_EXCLUDE): New macro.
92642
92643 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92644
92645         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92646         tm to be declared.
92647
92648 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92649
92650         * lib/hash.c: Remove '2001' from copyright notice.
92651
92652 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92653
92654         * lib/full-write.h: New file.
92655         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92656         * lib/full-write.c: Correct credits, as cccp.c no longer
92657         exists and anyway it was so heavily changed from the old cccp
92658         code as to be unrecognizable.  Include full-write.h.
92659         (full_write): Return size_t, with short writes meaning failure.
92660         All callers changed.  This fixes a bug with large buffers
92661         on 64-bit hosts.
92662         * lib/utime.c: Include full-write.h.
92663
92664 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92665
92666         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92667         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92668         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92669         Include if available.
92670         (<xalloc.h>): Include
92671         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92672         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92673         collide with FNM macros.
92674         (struct patopts): New struct.
92675         (struct exclude): Use it, as exclude patterns now come with options.
92676         (new_exclude): Support above changes.
92677         (new_exclude, add_exclude_file):
92678         Initial size must now be a power of two to simplify overflow checking.
92679         (free_exclude, fnmatch_no_wildcards): New function.
92680         (excluded_filename): No longer requires options arg, as the options
92681         are determined by add_exclude.  Now returns bool, not int.
92682         (excluded_filename, add_exclude):
92683         Add support for the fancy new exclusion options.
92684         (add_exclude, add_exclude_file): Now takes int options arg.
92685         Check for arithmetic overflow when computing sizes.
92686         (add_exclude_file): xrealloc might modify errno, so don't
92687         realloc until after errno might be used.
92688
92689         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92690         New macros.
92691         (free_exclude): New decl.
92692         (add_exclude, add_exclude_file): Now takes int options arg.
92693         (excluded_filename): No longer requires options arg, as the options
92694         are determined by add_exclude.  Now returns bool, not int.
92695
92696 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92697
92698         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92699
92700 2001-08-27  Jim Meyering  <meyering@lucent.com>
92701
92702         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92703
92704         * lib/version-etc.c (N_): Remove definition.
92705         Revert most of last change.
92706         Instead, simply don't mark the `Copyright...' string for translation.
92707         Based on advice from Paul Eggert.
92708
92709         * lib/strtoxmax.c: Tweak comment.
92710
92711 2001-08-26  Jim Meyering  <meyering@lucent.com>
92712
92713         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92714
92715         * m4/xstrtoimax.m4: New file.
92716         * m4/xstrtoumax.m4: Add comments explaining why we
92717         AC_REPLACE_FUNCS(strtol).
92718
92719 2001-08-26  Jim Meyering  <meyering@lucent.com>
92720
92721         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92722         of copyright with `%s' so translators don't get an untranslated
92723         message in 2002.
92724         (COPYRIGHT_YEAR): Define.
92725         (version_etc): Use fprintf rather than fputs.
92726         Suggestion from Ulrich Drepper.
92727
92728         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92729
92730         * lib/strtoll.c: New file, from GNU libc.
92731         * lib/xstrtoimax.c: New file.
92732
92733         * lib/xstrtol.h: Add xstrtoimax.
92734         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92735         * lib/strtoimax.c: New file.  Likewise, but first define
92736         STRTOUXMAX_SIGNED.
92737
92738         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92739         ...
92740         * lib/strtoxmax.c: ... then renamed to this.
92741
92742 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92743
92744         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92745         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92746         (jm_AC_TYPE_INTMAX_T): New macro.
92747         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92748
92749         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92750
92751         * m4/longlong.m4: Renamed from ulonglong.m4.
92752         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92753         * m4/uintmax_t.m4: Removed.
92754
92755 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92756
92757         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92758         Port to Solaris 8, where 'sed' requires a space after the 'r'
92759         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92760         Redirect output to $tmp just once.
92761
92762 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92763
92764         * lib/addext.c (<errno.h>): Include.
92765         (errno): Declare if not defined.
92766         (addext): Work correctly when pathconf returns -1 and leaves
92767         errno alone because there is no limit.  Also, work even if
92768         pathconf returns a value greater than SIZE_MAX.
92769
92770 2001-08-12  Jim Meyering  <meyering@lucent.com>
92771
92772         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92773         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92774         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92775         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92776         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92777         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92778         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92779         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92780         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92781         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92782         utime.m4, utimes.m4, xstrtoumax.m4:
92783         Quote the first argument in each use of AC_DEFUN.
92784
92785 2001-08-12  Jim Meyering  <meyering@lucent.com>
92786
92787         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92788         Simply `return getcwd (NULL, 0);'.
92789         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92790         Use 1300 as initial value for length, not PATH_MAX.
92791
92792         * lib/pathmax.h: Clean up cpp syntax.
92793
92794 2001-08-12  Jim Meyering  <meyering@lucent.com>
92795
92796         * lib/gettimeofday.c: New file.
92797         * lib/gtod.h: New file.
92798         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92799
92800 2001-08-05  Jim Meyering  <meyering@lucent.com>
92801
92802         * m4/jm-macros.m4: Require autoconf-2.52.
92803
92804 2001-08-04  Jim Meyering  <meyering@lucent.com>
92805
92806         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92807         stmt, to get in sync with glibc.
92808
92809 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92810
92811         The following changes are from gettext 0.10.39 as maintained by
92812         Bruno Haible.
92813
92814         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92815         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92816         with inverted sense.  All uses changed.
92817
92818         * lib/mbswidth.c: Don't include <limits.h>.
92819         Include <stdlib.h> and <string.h> unconditionally.
92820         (iswcntrl, mbsinit, ISCNTRL): New macros.
92821         (mbsnwidth): Use K&R style function declarations.
92822         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92823         can optimize it when MB_CUR_MAX == 1.
92824         The width of control characters is zero, not 1.
92825
92826 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92827
92828         The following changes are from gettext 0.10.39 as maintained by
92829         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92830
92831         * m4/codeset.m4: Upgrade to serial AM1.
92832         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92833         all uses changed.  Quote first arg of AC_DEFUN.
92834         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92835
92836         * m4/iconv.m4: Upgrade to serial AM2.
92837         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92838         Add --with-libconv-prefix.
92839         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92840         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92841         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92842         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92843         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92844
92845         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92846         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92847         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92848         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92849         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92850         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92851         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92852         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92853         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92854
92855         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92856         string.h any more.
92857
92858         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92859         not the default value.
92860
92861         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92862         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92863         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92864         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92865         Also check for iswcntrl, used for wcwidth fallback.
92866         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92867         to Autoconf 2.13.
92868
92869 2001-08-03  Jim Meyering  <meyering@lucent.com>
92870
92871         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92872         as it was in the original.  Reported by Paul Eggert.
92873
92874 2001-07-16  Jim Meyering  <meyering@lucent.com>
92875
92876         * m4/gettimeofday.m4: New file.
92877         Prompted by a report from Bernhard Baehr.
92878
92879 2001-07-15  Jim Meyering  <meyering@lucent.com>
92880
92881         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92882         stuff. Now it's in ../Makefile.cfg.
92883
92884 2001-07-15  Jim Meyering  <meyering@lucent.com>
92885
92886         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92887         (BUILT_SOURCES): Add unlocked-io.h.
92888         (io_functions): Define.
92889         (unlocked-io.h): New rule.
92890         (DISTCLEANFILES): Add unlocked-io.h.
92891         (all-local): Depend on unlocked-io.h, to ensure it is created.
92892
92893         * lib/unlocked-io.hin: New file
92894
92895         * lib/regex.c: Update from glibc.
92896
92897 2001-07-05  Jim Meyering  <meyering@lucent.com>
92898
92899         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92900         recommendation.
92901         (libfetish_a_SOURCES): Put all .h files here instead.
92902         Remove a thus-exposed (better checks in automake) duplicate and
92903         two unnecessary .h files.
92904
92905 2001-07-04  Jim Meyering  <meyering@lucent.com>
92906
92907         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92908         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92909         distcheck failure.
92910
92911 2001-07-02  Jim Meyering  <meyering@lucent.com>
92912
92913         The following changes were prompted by suggestions from Bruno Haible.
92914
92915         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92916         is now generated.
92917         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92918         definition of EXTRA_DIST.
92919         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92920         ensure that the generated file is created/updated whenever the list
92921         of $(unlocked_functions) is changed.
92922         (jm-glibc-io.m4): New rule.
92923         (unlocked-io.h): New rule -- currently unused.
92924
92925 2001-06-24  Jim Meyering  <meyering@lucent.com>
92926
92927         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92928         unmatched right bracket, rather than kludging it with an extra,
92929         falsely-matching quote in a comment.  Patch by Akim Demaille.
92930
92931 2001-06-11  Jim Meyering  <meyering@lucent.com>
92932
92933         * lib/regex.c: Update from GNU libc.
92934
92935 2001-05-27  Jim Meyering  <meyering@lucent.com>
92936
92937         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92938         Check for ut_type in struct utmp.
92939
92940 2001-05-27  Jim Meyering  <meyering@lucent.com>
92941
92942         * lib/readutmp.h (UT_TYPE): Define.
92943
92944 2001-05-24  Jim Meyering  <meyering@lucent.com>
92945
92946         * lib/argmatch.c: Include "quote.h".
92947         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92948         quote function.  Reported by Göran Uddeborg.
92949
92950 2001-05-22  Jim Meyering  <meyering@lucent.com>
92951
92952         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92953         now that we use the package-supplied version unconditionally.
92954         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92955
92956 2001-05-21  Jim Meyering  <meyering@lucent.com>
92957
92958         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92959         shell syntax errors.
92960
92961 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92962
92963         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92964
92965 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92966
92967         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92968         Don't bother to check library strftime, since
92969         we'll be using our own my_strftime function anyway.
92970         Define my_strftime instead of strftime.
92971
92972 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92973
92974         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92975         which is not yet declared.
92976
92977 2001-05-15  Jim Meyering  <meyering@lucent.com>
92978
92979         * m4/regex.m4: Use proper quoting so brackets appear in the test
92980         program.
92981         Reported by, and with help from, Bruno Haible.
92982
92983 2001-05-13  Jim Meyering  <meyering@lucent.com>
92984
92985         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92986         undefined.
92987
92988 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92989
92990         dirname code cleanup.  base_name now behaves more compatibly
92991         with POSIX basename when given file names that have trailing
92992         slashes, and similarly for dir_name.  Add new primitives
92993         base_len and dir_len.  Put the directory-name-related decls
92994         into dirname.h.
92995
92996         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92997         * lib/backupfile.c (base_name): Likewise.
92998         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92999         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93000         * lib/makepath.c (strip_trailing_slashes): Likewise.
93001         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93002         ISSLASH): Likewise.
93003         * lib/rename.c (strip_trailing_slashes): Likewise.
93004         * lib/same.c (base_name): Likewise.
93005         * lib/stripslash.c (ISSLASH): Likewise.
93006
93007         * lib/addext.c: Include <dirname.h> after size_t is defined.
93008         * lib/backupfile.c: Likewise.
93009
93010         * lib/addext.c (addext): Use base_len to trim redundant
93011         trailing slashes instead of doing it ourselves.
93012         But do not trim the last slash if it is not redundant.
93013
93014         * lib/backupfile.c (find_backup_file_name,
93015         max_backup_version): Use base_len instead of rolling it ourselves.
93016         Handle the case of "" and (on DOS) "C:" correctly.
93017
93018         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93019         needed. Include <string.h>, <dirname.h>.
93020         (base_name): Allow file names ending in slashes, other than names
93021         that are all slashes.  In this case, return the basename followed
93022         by the slashes.  This is more general, and can be used in places
93023         where the original base_name purposely had an assertion failure.
93024         (base_len): New function.
93025
93026         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93027         Do not include <assert.h>; no longer needed.
93028         Include xalloc.h.
93029         (memrchr): Remove decl.
93030         (dir_name_r): Remove.
93031         (dir_len): Renamed from dirlen.  All callers changed.
93032         Rewrite in terms of base_name, for simplicity and consistency.
93033         (dir_name): Never return NULL.  All callers changed.
93034         Do not include <stdlib.h> in test program; no longer needed.
93035         return 0; is fine for test program.
93036
93037         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93038         New macros.
93039         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93040
93041         * lib/path-concat.c (path_concat): Use base_len to compute
93042         base length, not strlen; this means we cannot rely on memcpy
93043         to null-terminate.
93044
93045         * lib/same.c (STREQ): Remove.
93046         (same_name): Handle the case where the basename ends in trailing '/'.
93047
93048         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93049         a slash was stripped.  Do not strip the last slash after a
93050         file system prefix.
93051
93052 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93053
93054         * lib/Makefile.am (libfetish_a_SOURCES):
93055         Add strftime.c, since we now compile it on all hosts.
93056
93057         * lib/strftime.c (my_strftime):
93058         Define to nstrftime if emacs, but only if my_strftime is not defined.
93059         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93060         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93061         Add one more extra argument: a nanoseconds value.
93062         All uses changed.
93063         (ns): New macro.
93064         (my_strftime function): Add %N format.
93065         (emacs_strftimeu): Renamed from emacs_strftime,
93066         with extra ut argument.
93067
93068 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93069
93070         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93071
93072 2001-04-21  Jim Meyering  <meyering@lucent.com>
93073
93074         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93075         doesn't interfere.
93076
93077 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93078
93079         * m4/ftruncate.m4: Check for chsize.
93080         Link with ftruncate.o unconditionally if ftruncate is missing.
93081         This was required when cross-compiling to i586-mingw32msvc.
93082
93083 2001-04-08  Jim Meyering  <meyering@lucent.com>
93084
93085         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93086         recomputed; that's necessary when the offset spans a DST transition.
93087         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93088
93089 2001-04-02  Jim Meyering  <meyering@lucent.com>
93090
93091         * lib/regex.h, regex.c: Update from GNU libc.
93092
93093 2001-03-24  Jim Meyering  <meyering@lucent.com>
93094
93095         * m4/jm-macros.m4: Require autoconf-2.49d.
93096
93097 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93098
93099         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93100
93101 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93102
93103         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93104
93105 2001-03-17  Jim Meyering  <meyering@lucent.com>
93106
93107         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93108         now that the version in autoconf is equivalent.
93109         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93110
93111         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93112         Suggestion from Akim Demaille.
93113
93114         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93115         (jm_PREREQ_TEMPNAME): New function.
93116
93117 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93118
93119         * lib/tempname.c (uint64_t): Define to uintmax_t if
93120         not defined, and if UINT64_MAX is not defined.
93121         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93122         Reported by John David Anglin.
93123
93124 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93125
93126         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93127         resolve alias if codeset is empty.
93128         * lib/config.charset (BeOS): Use wildcard syntax.
93129
93130 2001-03-13  Jim Meyering  <meyering@lucent.com>
93131
93132         * lib/path-concat.c (path_concat)
93133         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93134         concatenating e.g., `C:' and `foo'.
93135         From Bruno Haible.
93136
93137 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93138
93139         * lib/localcharset.c (locale_charset): Don't use
93140         setlocale(LC_CTYPE,NULL). Don't return NULL.
93141         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93142
93143 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93144
93145         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93146         support for DOS/DJGPP.
93147
93148 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93149
93150         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93151         lacks mkstemp.  Compile our own tempname.c if we compile our own
93152         mkstemp.c, as mkstemp relies on tempname.
93153
93154 2001-03-01  Jim Meyering  <meyering@lucent.com>
93155
93156         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93157         AH_VERBATIM really does output its argument verbatim.
93158
93159 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93160
93161         * lib/Makefile.am (libfetish_a_SOURCES):
93162         Add dup-safer.c, fopen-safer.c.
93163         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93164
93165         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93166         * lib/unistd-safer.h: New files.
93167
93168 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93169
93170         The mkstemp replacement is taken from glibc 2.2.2, with some
93171         portability fixes for use outside glibc, as follows:
93172
93173         * lib/tempname.c (struct_stat64): New macro.
93174         (direxists, __gen_tempname): Use it.
93175         This avoids a portability problem with Solaris 8.
93176
93177         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93178         (<stddef.h>, <stdint.h>, <string.h>):
93179         Include only if STDC_HEADERS || _LIBC.
93180         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93181         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93182         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93183         (__set_errno): Define this macro if <errno.h> doesn't.
93184         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93185         Define these macros if <stdio.h> doesn't.
93186         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93187         Define these macros if <sys/stat.h>
93188         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93189         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93190         __xstat64): Define if not _LIBC.
93191         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93192         (__gen_tempname): Invoke gettimeofday only if
93193         HAVE_GETTIMEOFDAY || _LIBC;
93194         otherwise, fall back on plain "time".
93195         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93196
93197         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93198
93199         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93200
93201 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93202
93203         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93204
93205 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93206
93207         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93208         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93209         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93210         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93211
93212 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93213
93214         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93215         Remove workaround macros for hosts that have mbrtowc but not
93216         mbstate_t, as we now insist on proper declarations for both
93217         before using mbrtowc.
93218
93219 2001-02-17  Jim Meyering  <meyering@lucent.com>
93220
93221         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93222         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93223         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93224         UnixWare 7.1.1.
93225
93226         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93227         rather than AC_CACHE_VAL.
93228
93229 2001-02-17  Jim Meyering  <meyering@lucent.com>
93230
93231         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93232         around included file name.
93233
93234         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93235
93236         * lib/strftime.c: Update from GNU libc (the only changes were to
93237         comments).
93238
93239 2001-02-17  Jim Meyering  <meyering@lucent.com>
93240
93241         * lib/regex.c: Update from libc.
93242
93243 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93244
93245         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93246         clash.
93247
93248 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93249
93250         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93251         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93252         Reported by Mark Hounschell via Paul Eggert.
93253
93254 2001-02-07  Jim Meyering  <meyering@lucent.com>
93255
93256         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93257
93258 2001-02-05  Jim Meyering  <meyering@lucent.com>
93259
93260         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93261         it includes the patch required for `large file' support with at least
93262         HP-UX's 10.20 /bin/cc.
93263
93264 2001-02-03  Jim Meyering  <meyering@lucent.com>
93265
93266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93267         AS_IF, now that it works once again (mysteriously).
93268         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93269
93270 2001-01-30  Jim Meyering  <meyering@lucent.com>
93271
93272         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93273         * m4/chown.m4: Rename conftestchown to conftest.chown.
93274         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93275         s/conftestdir2/conftest.d2/.
93276         * m4/utimes.m4: s/conftestdata/conftest.data/
93277         Inspired by Pavel Roskin's change in autoconf.
93278
93279 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93280
93281         * lib/config.charset: Update for FreeBSD 4.2.
93282
93283 2001-01-27  Jim Meyering  <meyering@lucent.com>
93284
93285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93286         a use of AS_IF.
93287         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93288
93289 2001-01-26  Jim Meyering  <meyering@lucent.com>
93290
93291         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93292         quotearg.c includes it.
93293
93294 2001-01-26  Jim Meyering  <meyering@lucent.com>
93295
93296         * lib/quotearg.c: Include stddef.h.
93297         * lib/quote.c: Include stddef.h.
93298         Reported by Axel Kittenberger.
93299
93300         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93301         line in double quotes so that it evokes a better diagnostic.
93302         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93303         Reported by Axel Kittenberger.
93304
93305 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93306
93307         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93308         as if it was a `charset'.
93309
93310 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93311
93312         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93313         has const.
93314
93315 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93316
93317         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93318         to avoid a warning.  Add back 'const' to inptr.
93319
93320 2001-01-20  Jim Meyering  <meyering@lucent.com>
93321
93322         Be sure that headers are checked before used in code compiled
93323         for the type checks.
93324         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93325         In place of that, invoke jm_CHECK_ALL_TYPES.
93326         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93327         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93328         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93329         The check for ssize_t was mistakenly run before the test for unistd.h.
93330
93331         The configure-time check for stdbool.h was missing.
93332         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93333         (jm_PREREQ_HASH): New function.
93334
93335 2001-01-17  Jim Meyering  <meyering@lucent.com>
93336
93337         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93338         for autoconf-2.49c.
93339         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93340
93341 2001-01-16  Jim Meyering  <meyering@lucent.com>
93342
93343         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93344         From Bruno Haible.
93345
93346 2001-01-14  Jim Meyering  <meyering@lucent.com>
93347
93348         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93349         foo and bar.  Create conftestdir/ in the script, not in the C code.
93350         Remove directories in the script, not in the C code.
93351         Remove conftestdir{,2} before trying to create the directory.
93352         Make the entire configure script fail if the mkdir fails.
93353
93354 2001-01-14  Jim Meyering  <meyering@lucent.com>
93355
93356         * lib/rename.c: New file.  From Volker Borchert.
93357         Include stdlib.h, string.h or strings.h, and xalloc.h.
93358         Use strip_trailing_slashes rather than open-coding it.
93359
93360 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93361
93362         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93363
93364 2001-01-03  Jim Meyering  <meyering@lucent.com>
93365
93366         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93367         of local `inptr' to avoid warning with some system declarations of
93368         iconv.
93369
93370 2001-01-02  Volker Borchert  <bt@teknon.de>
93371
93372         * m4/rename.m4: New file.
93373         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93374
93375 2001-01-01  Jim Meyering  <meyering@lucent.com>
93376
93377         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93378         even on systems with utmpx.h.  It's necessary for the declaration of
93379         utmp's ut_user member.  Reported by Andreas Jaeger.
93380
93381         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93382         available. They are required for the declarations of getgrgid and
93383         getpwuid resp.
93384         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93385         Reported by Andreas Jaeger.
93386
93387 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93388
93389         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93390         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93391         so `make install' also works in VPATH builds.
93392
93393 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93394
93395         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93396         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93397         can be used in subdirectories.
93398
93399 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93400
93401         * lib/modechange.c: Do not assume that mode_t uses the
93402         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93403         the other-execute bit of FOO even if S_IXOTH != 1.
93404
93405         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93406         WOTH, XOTH, ALLM): New macros.
93407         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93408          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93409         Use them.
93410         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93411         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93412         (mode_compile):
93413         No need to use uintmax_t; unsigned long is long enough.
93414         Don't bother to get suffix since we don't use it.
93415
93416 2000-12-26  Jim Meyering  <meyering@lucent.com>
93417
93418         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93419         better with autoheader.
93420
93421 2000-12-24  Jim Meyering  <meyering@lucent.com>
93422
93423         * lib/hash.c (is_prime): Return explicit boolean values.
93424         (hash_get_first): Return NULL to appease Irix5.6's 89.
93425         Reported by Nelson Beebe.
93426
93427 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93428
93429         * lib/localcharset.c (locale_charset): Add support for Win32.
93430
93431 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93432
93433         * lib/physmem.h, lib/physmem.c: New files.
93434
93435         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93436         (noinst_HEADERS): Add physmem.h.
93437
93438         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93439         't' for compatibility with Solaris 8 sort.
93440
93441 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93442
93443         * lib/config.charset: Add support for BeOS.
93444
93445 2000-12-17  Jim Meyering  <meyering@lucent.com>
93446
93447         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93448         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93449
93450 2000-12-16  Jim Meyering  <meyering@lucent.com>
93451
93452         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93453         N and M) would have treated it like `chown N:N FILE'.
93454
93455         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93456
93457 2000-12-16  Jim Meyering  <meyering@lucent.com>
93458
93459         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93460         SHELLS_FILE to a file name that's useful on djgpp systems.
93461         Include stdlib.h.
93462         (ADDITIONAL_DEFAULT_SHELLS): Define.
93463         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93464         Based mostly on a patch from Prashant TR.
93465
93466 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93467
93468         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93469         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93470         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93471
93472 2000-12-08  Andreas Schwab  <schwab@suse.de>
93473
93474         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93475         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93476
93477 2000-12-07  Jim Meyering  <meyering@lucent.com>
93478
93479         * lib/stripslash.c (ISSLASH): Define.
93480         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93481         `/'.
93482         From Prashant TR.
93483
93484         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93485         (dir_name_r): Declare this function as static.
93486         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93487         manifest itself on a name containing a mix of slashes and
93488         backslashes.
93489         Make this function work with names starting with a DOS-style
93490         drive letter and colon prefix.
93491         (dir_name): Append `.' if necessary.
93492         Based mostly on patches from Prashant TR and Eli Zaretskii.
93493
93494         * lib/dirname.h (dir_name_r): Remove prototype.
93495
93496 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93497
93498         * m4/off_t-format.m4: Remove this file.
93499         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93500
93501 2000-12-06  Jim Meyering  <meyering@lucent.com>
93502
93503         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93504         replacement strtoull, we may well need the replacement strtoul, too.
93505         Check for declarations of strtoul and strtoull.
93506         Check for strtol.  Mainly as a cue to cause automake to include
93507         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93508         Check for limits.h -- strtol.c needs it.
93509
93510 2000-12-05  Jim Meyering  <meyering@lucent.com>
93511
93512         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93513
93514 2000-12-04  Jim Meyering  <meyering@lucent.com>
93515
93516         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93517         Also include memory.h, stdlib.h, unistd.h if appropriate.
93518         Reported by Andreas Jaeger (conflicting declaration of malloc).
93519
93520 2000-12-02  Jim Meyering  <meyering@lucent.com>
93521
93522         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93523         * m4/jm-macros.m4 (jm_MACROS): require it.
93524
93525 2000-12-02  Jim Meyering  <meyering@lucent.com>
93526
93527         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93528
93529 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93530
93531         * lib/memrchr.c: Include <config.h> before any system include file.
93532
93533 2000-11-30  Jim Meyering  <meyering@lucent.com>
93534
93535         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93536
93537 2000-11-30  Jim Meyering  <meyering@lucent.com>
93538
93539         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93540
93541 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93542
93543         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93544
93545 2000-11-26  Jim Meyering  <meyering@lucent.com>
93546
93547         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93548
93549 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93550
93551         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93552         size of (size_t) -1; it's not portable.
93553
93554 2000-11-17  Jim Meyering  <meyering@lucent.com>
93555
93556         * lib/strstr.c: Update from GNU libc.
93557
93558 2000-11-17  Akim Demaille  <akim@epita.fr>
93559
93560         * lib/obstack.h: Formatting changes.
93561         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93562         prevent type checking.
93563         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93564         cast the value to (void *): assigning a `foo *' to a `void *'
93565         variable is valid.
93566         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93567
93568 2000-11-16  Jim Meyering  <meyering@lucent.com>
93569
93570         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93571
93572 2000-11-11  Jim Meyering  <meyering@lucent.com>
93573
93574         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93575
93576 2000-11-10  Jim Meyering  <meyering@lucent.com>
93577
93578         * lib/obstack.h: Update from GNU libc.
93579         * lib/obstack.c: Likewise.
93580
93581 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93582
93583         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93584
93585 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93586
93587         * lib/getusershell.c (setusershell): Use rewind rather than
93588         fseek/fseeko, to avoid configuration hassles with fseeko.
93589         Don't bother opening SHELLS_FILE if shellstream is NULL;
93590         it's not necessary.
93591
93592 2000-11-05  Jim Meyering  <meyering@lucent.com>
93593
93594         * lib/makepath.h (make_dir): Declare.
93595         * lib/makepath.c (make_dir): Remove `static' attribute.
93596         Tweak a comment.
93597
93598 2000-11-04  Jim Meyering  <meyering@lucent.com>
93599
93600         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93601
93602 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93603
93604         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93605         last one in a bucket, advance to the next bucket.
93606
93607 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93608
93609         * lib/fnmatch.c: Do not comment out all the code if we are using
93610         the GNU C library, because in some cases we are replacing buggy
93611         code in the GNU C library itself.
93612
93613 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93614
93615         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93616         (regex_compile): Catch bogus \(\1\).
93617
93618 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93619
93620         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93621         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93622         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93623
93624 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93625
93626         * lib/error.h, getline.h, modechange.h:
93627         Remove "2000" from Copyright line, as the file hasn't been
93628         changed this year other than in the copyright notice.
93629
93630         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93631         was changed this year.
93632
93633 2000-10-29  Jim Meyering  <meyering@lucent.com>
93634
93635         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93636         renaming.
93637         * m4/ls-mntd-fs.m4: Likewise
93638
93639 2000-10-29  Jim Meyering  <meyering@lucent.com>
93640
93641         * lib/xstat.in: Fix grammar in comment.
93642
93643 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93644
93645         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93646         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93647         doesn't define __restrict_arr.
93648
93649 2000-10-28  Jim Meyering  <meyering@lucent.com>
93650
93651         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93652         (jm_PREREQ_MEMCHR): New function.
93653
93654 2000-10-28  Jim Meyering  <meyering@lucent.com>
93655
93656         * lib/memchr.c: Update from libc.
93657         Adjust for portability:
93658         [HAVE_STDLIB_H]: Include stdlib.h.
93659         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93660         Undef __memchr, too.
93661         [!weak_alias]: Define __memchr to memchr.
93662
93663         * lib/regex.c: Update from libc.
93664         * lib/regex.h: Likewise.
93665         * lib/getopt1.c: Likewise.
93666         * lib/memcmp.c: Likewise.
93667
93668         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93669         Avoid using fseek, when possible -- it's broken by design.
93670         Patch by Ulrich Drepper.
93671
93672 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93673
93674         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93675         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93676         Giving in to popular pressure to shut up the compiler with casts.
93677
93678 2000-10-26  Jim Meyering  <meyering@lucent.com>
93679
93680         * lib/strftime.c: Update from libc.
93681
93682 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93683
93684         * regex.c: More `unsigned char' -> `re_char' changes.
93685         Also change several `int' into `re_wchar_t'.
93686         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93687         (PUSH_FAILURE_POINTER): Don't cast any more.
93688         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93689         We want GCC to complain, since this piece of code makes
93690         re_match non-reentrant, which *should* be fixed.
93691         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93692         (EXTEND_BUFFER): Use RETALLOC.
93693         (SET_LIST_BIT): Don't cast.
93694         (re_wchar_t): New type.
93695         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93696         that those two functions will always properly return.
93697         (IMMEDIATE_QUIT_CHECK): Cast to void.
93698         (analyse_first): Use recursion rather than an explicit stack.
93699         (re_compile_fastmap): Can't fail anymore.
93700         (re_search_2): Don't check re_compile_fastmap for failure.
93701         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93702         Now also sets the new value (passed in a new argument).
93703         (re_match_2_internal): Use it.
93704         Also, use a new var `reg' of type size_t when looping through regs
93705         rather than reuse the inappropriate `mcnt'.
93706
93707 2000-10-25  Jim Meyering  <meyering@lucent.com>
93708
93709         * lib/obstack.c: Update from libc.
93710
93711 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93712
93713         * regex.c (regex_compile): Change the way of handling a range from
93714         a char less than 256 to a char not less than 256.
93715
93716 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93717
93718         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93719         NT-Emacs only.
93720         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93721         so that re_search functions only quit when callers expect them to.
93722
93723 2000-10-23  Jim Meyering  <meyering@lucent.com>
93724
93725         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93726         wrong.  That set_locale call must not have any side effects.
93727         From Paul Eggert.
93728
93729 2000-10-22  Jim Meyering  <meyering@lucent.com>
93730
93731         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93732         [CYCLIC]: Remove now-unused definition.
93733
93734         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93735         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93736         Suggestion from Ulrich Drepper.
93737
93738 2000-10-21  Jim Meyering  <meyering@lucent.com>
93739
93740         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93741         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93742         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93743
93744 2000-10-21  Jim Meyering  <meyering@lucent.com>
93745
93746         * lib/dirname.c (memrchr): Declare if necessary.
93747         (dir_name): Remove the restriction that there be no
93748         trailing slashes.  Now, this code skips past them, effectively
93749         ignoring them.
93750         [TEST_DIRNAME] (main): New unit tests.
93751
93752         * lib/memrchr.c: New file from GNU libc.
93753         Undef __memrchr, too.
93754         [!weak_alias]: Define __memrchr to memrchr.
93755         Guard weak_alias use with `#ifdef weak_alias'.
93756
93757 2000-10-21  Jim Meyering  <meyering@lucent.com>
93758
93759         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93760         (dir_name): Use dir_name_r.
93761         * lib/dirname.h (dir_name_r): Declare it.
93762
93763 2000-10-17  Jim Meyering  <meyering@lucent.com>
93764
93765         * lib/quote.h (PARAMS): Define and use.
93766         Reported by Akim Demaille.
93767
93768         * lib/getopt.c: Update from libc.
93769
93770 2000-10-16  Jim Meyering  <meyering@lucent.com>
93771
93772         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93773         setlocale.
93774         From Jan Fedak.
93775
93776 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93777
93778         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93779
93780 2000-09-25  Jim Meyering  <meyering@lucent.com>
93781
93782         * lib/md5.h (rol): Define (from GnuPG).
93783
93784         * lib/sha.c: Give credit (GnuPG) where due.
93785         (M): Use rol rather than open-coding it.
93786         Add a FIXME comment.
93787
93788 2000-09-21  Jim Meyering  <meyering@lucent.com>
93789
93790         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93791         Reported by Michael Stone.
93792
93793 2000-09-20  Jim Meyering  <meyering@lucent.com>
93794
93795         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93796         (noinst_HEADERS): Add sha.h.
93797         Based on code from Scott G. Miller and from GnuPG.
93798
93799 2000-09-18  Jim Meyering  <meyering@lucent.com>
93800
93801         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93802         LIBS. Otherwise, everyone ends up linking with -lelf for some
93803         configurations.
93804         Reported by Mike Stone.
93805
93806 2000-09-15  Jim Meyering  <meyering@lucent.com>
93807
93808         * lib/regex.c: Update from libc.
93809
93810 2000-09-10  Jim Meyering  <meyering@lucent.com>
93811
93812         * lib/getopt.c (_getopt_internal): Update from glibc.
93813
93814 2000-09-09  Jim Meyering  <meyering@lucent.com>
93815
93816         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93817         think it should be used as a general replacement for isascii.
93818         * lib/fnmatch.c: Likewise.
93819         * lib/mbswidth.c: Likewise
93820         * lib/regex.c: Likewise.
93821
93822         Don't use atoi.
93823         * lib/userspec.c: Include sys/param.h and limits.h.
93824         Include xstrtol.h.
93825         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93826         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93827         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93828         UID, GID.  Check range.
93829
93830 2000-09-06  Jim Meyering  <meyering@lucent.com>
93831
93832         * lib/getopt.c (_getopt_internal): Update from glibc.
93833
93834 2000-08-30  Jim Meyering  <meyering@lucent.com>
93835
93836         * lib/strftime.c: Merge in changes from GNU libc.
93837
93838 2000-08-26  Jim Meyering  <meyering@lucent.com>
93839
93840         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93841         * m4/fpending.m4: New file.
93842
93843 2000-08-26  Jim Meyering  <meyering@lucent.com>
93844
93845         * lib/closeout.c: Include "__fpending.h".
93846         (close_stdout_status): Return right away if there's nothing to flush.
93847
93848         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93849         * lib/__fpending.c: New file.
93850         * lib/__fpending.h: New file.
93851
93852 2000-08-20  Jim Meyering  <meyering@lucent.com>
93853
93854         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93855         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93856         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93857
93858 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93859
93860         Improve fileutils installation on systems where running
93861         programs (like install) can't be unlinked.
93862         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93863         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93864
93865 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93866
93867         Standardize on "memory exhausted" instead of "Memory exhausted"
93868         or "virtual memory exhausted".
93869         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93870         "virtual memory exhausted".
93871         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93872         our own message.
93873         * lib/userspec.c (parse_user_spec): Likewise.
93874         * lib/bumpalloc.h: comment fix
93875         * lib/same.c, userspec.c: Include xalloc.h.
93876
93877         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93878         not char *const and pointing to a constant array.
93879         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93880         (xrealloc): Comment fix.
93881
93882         * lib/userspec.c (parse_user_spec):
93883         Don't translate a message until just before returning,
93884         to avoid unnecessary translation.
93885
93886 2000-08-07  Jim Meyering  <meyering@lucent.com>
93887
93888         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93889         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93890         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93891         getgroups.c, gethostname.c, getopt.h, group-member.c,
93892         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93893         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93894         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93895         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93896         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93897         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93898         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93899         yesno.c: Back out Copyright date changes for each file with no change
93900         this year.  This eases coordination with other programs using the same
93901         source code modules.  From Paul Eggert.
93902
93903 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93904
93905         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93906         not char, for compatibility with glibc 2.1.3 strftime.c.
93907
93908 2000-08-03  Greg McGary  <greg@mcgary.org>
93909
93910         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93911         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93912         (EXTEND_BUFFER): Use them.
93913
93914 2000-08-01  Jim Meyering  <meyering@lucent.com>
93915
93916         * lib/dirname.c (ISSLASH): Define.
93917         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93918         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93919         both `\' and `/' may be use as path separators.
93920         Based on a patch from Prashant TR.
93921
93922 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93923
93924         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93925         slot vector a constant, since it might get modified.
93926
93927 2000-07-31  Jim Meyering  <meyering@lucent.com>
93928
93929         * lib/xmalloc.c: Use `virtual memory exhausted', not
93930         `Memory exhausted'.
93931         * lib/obstack.c (print_and_abort): Likewise.
93932
93933 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93934
93935         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93936         buffer, so that the caller can always quote one small
93937         component of a "memory exhausted" message in slot 0.
93938         From a suggestion by Jim Meyering.
93939
93940 2000-07-30  Jim Meyering  <meyering@lucent.com>
93941
93942         * lib/makepath.c (make_path): Quote the other instance, too.
93943
93944         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93945         (STATIC_BUF_SIZE): Define.
93946         (quotearg_n_options): Use only statically allocated storage when
93947         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93948         than STATIC_BUF_SIZE.
93949
93950 2000-07-29  Jim Meyering  <meyering@lucent.com>
93951
93952         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93953         * lib/dirname.c (dir_name): Likewise.
93954
93955         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93956         `/'.
93957
93958         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93959         (dir_name): Assert that there are no trailing slashes.
93960
93961 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93962
93963         * lib/mbswidth.h (mbswidth): Add a flags argument.
93964         (mbswidth): New declaration.
93965         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93966         * lib/mbswidth.c (mbswidth): Add a flags argument.
93967         (mbsnwidth): New function.
93968
93969 2000-07-24  Jim Meyering  <meyering@lucent.com>
93970
93971         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93972
93973 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93974
93975         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93976
93977 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93978
93979         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93980         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93981         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93982         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93983         invoke multibyte primitives.
93984
93985 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93986
93987         * lib/quotearg.c:
93988         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93989         so that mbstate_t is always defined.
93990
93991         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93992         be 1 in at least one GCC installation, and this configuration
93993         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93994         performance on hosts that have mbrtowc but have only unibyte
93995         locales, but I assume these hosts are rare.
93996
93997 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93998
93999         * lib/mbswidth.c (_XOPEN_SOURCE):
94000         Don't define; this causes problems on Solaris 7.
94001         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94002
94003 2000-07-23  Jim Meyering  <meyering@lucent.com>
94004
94005         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94006         too: getgrgid, getpwuid, getuid.
94007
94008 2000-07-23  Jim Meyering  <meyering@lucent.com>
94009
94010         * lib/basename.c (base_name): Add an assertion.
94011
94012 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94013
94014         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94015         shadow its mbsinit function.
94016
94017 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94018
94019         * lib/mbswidth.h: New file.
94020         * lib/mbswidth.c: New file.
94021         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94022         (noinst_HEADERS): Add mbswidth.h.
94023
94024 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94025
94026         * lib/config.charset: Add support for FreeBSD. Improve support for
94027         HP-UX and IRIX 6.
94028
94029 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94030
94031         * m4/mbswidth.m4: New file.
94032         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94033
94034 2000-07-15  Jim Meyering  <meyering@lucent.com>
94035
94036         * lib/makepath.c: Include quote.h.
94037         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94038         corresponding argument in a `quote (...)' call.
94039         Give better diagnostics.
94040
94041         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94042         (noinst_HEADERS): Add quote.h.
94043
94044         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94045         from tar's src/misc.c.
94046         * lib/quote.h: New file.  Prototypes for same.
94047
94048 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94049
94050         From a suggestion by Bruno Haible.
94051         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94052         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94053         to decide whether to define the BeOS workaround macro;
94054         this adjusts to the change to AC_MBSTATE_T.
94055
94056 2000-07-14  Jim Meyering  <meyering@lucent.com>
94057
94058         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94059         jm_AC_TYPE_UINTMAX_T.
94060
94061 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94062
94063         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94064
94065         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94066         quotearg_buffer_restyled): Add support for
94067         clocale_quoting_style.  Undo previous change to
94068         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94069         and "{RIGHT QUOTATION MARK}" msgids.
94070
94071 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94072
94073         From a suggestion by Bruno Haible.
94074         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94075         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94076         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94077         and mbstate_t, to a single-part test that simply defines mbstate_t.
94078         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94079         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94080
94081 2000-07-10  Jim Meyering  <meyering@lucent.com>
94082
94083         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94084
94085         * m4/gnu-source.m4: Output to confdefs.h directly.
94086         Suggestion from Akim Demaille.
94087
94088 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94089
94090         The old behavior of quoting `like this' doesn't look good with
94091         newer, ISO-style fonts.  See:
94092         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94093
94094         Instead, quote "like this" by default.  Let the translator
94095         tailor the locale-specific quoting behavior by providing
94096         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94097
94098         * lib/quotearg.c (N_): New macro.
94099         (gettext_default): New function.
94100         (quotearg_buffer_restyled): Use
94101         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94102         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94103
94104 2000-07-09  Jim Meyering  <meyering@lucent.com>
94105
94106         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94107         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94108
94109         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94110         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94111
94112 2000-07-09  Jim Meyering  <meyering@lucent.com>
94113
94114         * lib/Most files: Update copyright dates to include 2000.
94115
94116 2000-07-08  Jim Meyering  <meyering@lucent.com>
94117
94118         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94119         if not defined.
94120         (xgethostname): Remove now-unnecessary #ifdef.
94121         Move declaration of `err' into loop where it's used.
94122
94123 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94124         and Bruno Haible  <haible@clisp.cons.org>
94125
94126         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94127         only if the test for an object-type mbstate_t fails.  This
94128         prevents us from mistakenly reporting that mbstate_t is a
94129         system object type after we "#define mbstate_t int" to work
94130         around its lack.
94131
94132 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94133         and Bruno Haible  <haible@clisp.cons.org>
94134
94135         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94136
94137 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94138
94139         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94140         to strerror_r.
94141         Include <ctype.h> for use of isalpha.
94142
94143 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94144
94145         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94146         by allocating a larger buffer. Test the gethostname return value for
94147         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94148         returns an error and ENAMETOOLONG isn't defined.
94149
94150 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94151
94152         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94153         dimension.
94154
94155 2000-07-04  Jim Meyering  <meyering@lucent.com>
94156
94157         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94158         of the deprecated AC_CHECKING.
94159
94160 2000-07-04  Jim Meyering  <meyering@lucent.com>
94161
94162         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94163         Reported by Bruno Haible.
94164
94165 2000-07-04  Jim Meyering  <meyering@lucent.com>
94166
94167         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94168         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94169         lacks mbrtowc.
94170
94171 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94172
94173         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94174         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94175
94176 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94177         and Bruno Haible  <haible@clisp.cons.org>
94178
94179         * lib/quotearg.c (mbrtowc):
94180         Assign to *pwc, and return 1 only if result is nonzero.
94181         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94182
94183 2000-07-03  Jim Meyering  <meyering@lucent.com>
94184
94185         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94186
94187 2000-07-03  Jim Meyering  <meyering@lucent.com>
94188
94189         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94190         This is necessary to get a definition of e.g., UTMP_FILE on
94191         HP-UX 10.20.
94192         From Bob Proulx.
94193
94194 2000-07-02  Jim Meyering  <meyering@lucent.com>
94195
94196         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94197
94198         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94199         AC_LIBOBJ(function_name).
94200         * m4/chown.m4: Likewise.
94201         * m4/fnmatch.m4: Likewise.
94202         * m4/ftruncate.m4: Likewise.
94203         * m4/getgroups.m4: Likewise.
94204         * m4/getline.m4: Likewise.
94205         * m4/group-member.m4: Likewise.
94206         * m4/jm-macros.m4: Likewise.
94207         * m4/lstat.m4: Likewise.
94208         * m4/malloc.m4: Likewise.
94209         * m4/memcmp.m4: Likewise.
94210         * m4/nanosleep.m4: Likewise.
94211         * m4/putenv.m4: Likewise.
94212         * m4/realloc.m4: Likewise.
94213         * m4/regex.m4: Likewise.
94214         * m4/stat.m4: Likewise.
94215         * m4/strftime.m4: Likewise.
94216
94217 2000-07-02  Jim Meyering  <meyering@lucent.com>
94218
94219         * lib/quotearg.c (mbstate_t): Don't define here.
94220
94221 2000-07-02  Jim Meyering  <meyering@lucent.com>
94222
94223         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94224
94225 2000-07-01  Jim Meyering  <meyering@lucent.com>
94226
94227         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94228
94229 2000-07-01  Jim Meyering  <meyering@lucent.com>
94230
94231         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94232         problem.
94233
94234 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94235
94236         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94237         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94238
94239 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94240
94241         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94242         per change in ../m4/ls-mntd-fs.m4.
94243         (read_filesystem_list): Ignore symbolic links.
94244
94245 2000-06-29  Jim Meyering  <meyering@lucent.com>
94246
94247         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94248         for declaration of strcmp.
94249
94250         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94251
94252         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94253         Avoid warning by casting result to `char *' to remove `const'.
94254
94255 2000-06-28  Jim Meyering  <meyering@lucent.com>
94256
94257         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94258         included by quotearg.c, for which we perform this test.  From
94259         Bruno Haible.
94260
94261 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94262
94263         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94264         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94265         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94266
94267 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94268
94269         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94270
94271 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94272
94273         savedir now sets errno on failure and invokes xmalloc to get memory.
94274         Fix a couple of other minor bugs while we're at it.
94275
94276         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94277         (NAMLEN): Remove macro.
94278         (malloc, realloc): Remove decls.
94279         (stpcpy): Likewise.
94280         ("xalloc.h"): Include.
94281         (NAME_SIZE_DEFAULT): New macro.
94282         (savedir): Use xmalloc / xrealloc to allocate memory.
94283         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94284         Skip "" directory entries.
94285         Use strlen to calculate directory entry length, since the old method
94286         is rarely used these days and isn't worth supporting.
94287         Don't use a pointer after freeing it.
94288         Check for integer overflow when calculating allocation size.
94289         Use memcpy to copy entries, instead of stpcpy.
94290         Set errno properly when returning NULL.
94291         Check for readdir error.
94292
94293 2000-06-26  Jim Meyering  <meyering@lucent.com>
94294
94295         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94296
94297 2000-06-25  Jim Meyering  <meyering@lucent.com>
94298
94299         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94300         Linux header bug when _XOPEN_SOURCE is defined to 500.
94301
94302 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94303
94304         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94305         deficiency.
94306
94307 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94308
94309         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94310         Include xalloc.h.
94311         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94312
94313 2000-06-24  Jim Meyering  <meyering@lucent.com>
94314
94315         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94316         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94317         for which strerror does return char*, but which lacks a conveniently
94318         accessible declaration of the function.  If the compile-test says
94319         strerror_r doesn't work, then resort to a `run'-test that works on
94320         BeOS and segfaults on DEC Unix.
94321
94322 2000-06-24  Jim Meyering  <meyering@lucent.com>
94323
94324         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94325
94326 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94327
94328         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94329         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94330
94331 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94332
94333         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94334         (mbrtowc, mbstate_t): Define substitutes if
94335         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94336         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94337         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94338
94339 2000-06-23  Jim Meyering  <meyering@lucent.com>
94340
94341         * m4/afs.m4: Add missing AC_MSG_RESULT.
94342         Reported by Bruno Haible.
94343
94344         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94345         Suggestion from Bruno Haible.
94346
94347 2000-06-23  Jim Meyering  <meyering@lucent.com>
94348
94349         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94350
94351 2000-06-21  Jim Meyering  <meyering@lucent.com>
94352
94353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94354
94355 2000-06-21  Jim Meyering  <meyering@lucent.com>
94356
94357         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94358         (noinst_HEADERS): Add getstr.h.
94359
94360         * lib/getline.c (getstr): Move into a separate file.
94361         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94362         the following changes: new parameter, delim2; both delim[12]
94363         parameters have type `int', not `char'.  The latter would lose
94364         with 8-bit delimiters.
94365         * lib/getstr.h: New file.
94366
94367 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94368
94369         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94370         than 1024, return a memory chunk of least possible size, instead
94371         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94372         Use free/xmalloc instead of xrealloc to avoid copying for very long
94373         paths.
94374
94375 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94376
94377         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94378         the empty string.
94379
94380 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94381
94382         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94383         address, not strdup.  Include <stdlib.h> and don't declare free().
94384
94385 2000-06-19  Jim Meyering  <meyering@lucent.com>
94386
94387         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94388
94389 2000-06-18  Jim Meyering  <meyering@lucent.com>
94390
94391         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94392
94393         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94394         `checking whether...' message to be consistent with that of the
94395         lstat test.
94396
94397 2000-06-18  Jim Meyering  <meyering@lucent.com>
94398
94399         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94400         Besides, these days every porting target provides a mkdir function.
94401
94402         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94403         needed. (this snippet comes from src/system.h).
94404
94405 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94406
94407         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94408
94409 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94410
94411         * lib/human.c (adjust_value): New function.
94412         (human_readable_inexact): Apply rounding style even when
94413         printing approximate values.
94414
94415 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94416
94417         * lib/human.c (human_readable_inexact): Allow an input block
94418         size that is not a multiple of the output block size, and vice versa.
94419         Reported by Piergiorgio Sartor.
94420
94421 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94422
94423         * lib/getdate.y (get_date): Apply relative times after time
94424         zone indicator, not before.  Reported by Todd A. Jacobs.
94425
94426 2000-06-13  Jim Meyering  <meyering@lucent.com>
94427
94428         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94429
94430         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94431
94432 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94433
94434         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94435
94436 2000-06-12  Jim Meyering  <meyering@lucent.com>
94437
94438         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94439         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94440         optional argument.
94441         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94442         the optional argument, `lib'.
94443
94444 2000-06-08  Jim Meyering  <meyering@lucent.com>
94445
94446         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94447
94448 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94449
94450         Rewrite largefile configuration so that we don't need to run
94451         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94452         AC_CANONICAL_HOST in configure.in -- jmm]
94453
94454         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94455         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94456         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94457         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94458         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94459         All uses changed.
94460         Instead of inspecting the output of getconf, try to compile the
94461         test program without and with the macro definition.
94462         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94463         for getconf.  Instead, check for the needed flags by compiling
94464         test programs.
94465
94466 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94467
94468         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94469
94470 2000-06-04  Jim Meyering  <meyering@lucent.com>
94471
94472         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94473         SunOS 4.1.4 for which gid_t is an unsigned type.
94474
94475 2000-06-03  Jim Meyering  <meyering@lucent.com>
94476
94477         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94478         now that autoconf requires that.
94479
94480         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94481         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94482         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94483
94484 2000-06-03  Jim Meyering  <meyering@lucent.com>
94485
94486         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94487
94488 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94489
94490         * m4/glibc21.m4: New file.
94491         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94492
94493 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94494
94495         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94496         newer, don't install charset.alias.
94497         * lib/config.charset: Change the Linux/glibc rules so they become empty
94498         on glibc-2.1 or newer.
94499
94500 2000-06-02  Jim Meyering  <meyering@lucent.com>
94501
94502         * lib/mountlist.c: Back out last change.  Instead, do this...
94503         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94504         me_dummy member using the same `ignore'-testing code.
94505         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94506         fs_type strings.
94507         From Mark D. Roth.
94508
94509 2000-05-29  Jim Meyering  <meyering@lucent.com>
94510
94511         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94512         mounts with the `ignore' attribute.  Based on a patch from
94513         Mark D. Roth.
94514
94515 2000-05-28  Jim Meyering  <meyering@lucent.com>
94516
94517         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94518         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94519         * m4/stat.m4: Likewise.
94520         * m4/lstat.m4: Likewise.
94521         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94522
94523         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94524         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94525
94526 2000-05-26  Jim Meyering  <meyering@lucent.com>
94527
94528         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94529
94530 2000-05-24  Jim Meyering  <meyering@lucent.com>
94531
94532         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94533         autoconf requires that.
94534         * m4/lib-check.m4: Likewise.
94535         * m4/jm-macros.m4: Likewise.
94536         * m4/strftime.m4: Likewise.
94537
94538         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94539         AC_CHECK_DECLS, now that autoconf requires that.
94540
94541 2000-05-22  Jim Meyering  <meyering@lucent.com>
94542
94543         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94544         * m4/lstat.m4: Likewise.
94545
94546 2000-05-22  Jim Meyering  <meyering@lucent.com>
94547
94548         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94549
94550 2000-05-20  Jim Meyering  <meyering@lucent.com>
94551
94552         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94553         (jm_PREREQ): Use it.
94554
94555 2000-05-18  Jim Meyering  <meyering@lucent.com>
94556
94557         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94558         back, too, since it may have been modified by allocate_entry.
94559         (hash_delete): Rewrite to use neither the assignment operator
94560         nor the comma operator in an if-expression.
94561
94562 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94563
94564         * lib/closeout.c:
94565         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94566         Remove; no longer needed.
94567         "quotearg.h": Add include.
94568         (file_name): Do not bother to explicitly initialize to NULL; it's less
94569         efficient on some hosts.
94570         (close_stdout_status): Remove test as to whether stdout was already
94571         closed; it breaks for the case "echo x | sort >&-".
94572         Quote file name colons.
94573         Do not assume that _("write error") lacks format strings.
94574
94575 2000-05-15  Jim Meyering  <meyering@lucent.com>
94576
94577         * lib/version-etc.c (version_etc_copyright): Update the copyright
94578         string used in all --version output.
94579
94580 2000-05-14  Jim Meyering  <meyering@lucent.com>
94581
94582         * lib/closeout.c (close_stdout_set_file_name): New function.
94583         (close_stdout_status): Use new file-scoped global.
94584         Return right away if fstat says the stdout file descriptor is invalid.
94585         * lib/closeout.h (close_stdout_set_file_name): Declare.
94586
94587 2000-05-10  Jim Meyering  <meyering@lucent.com>
94588
94589         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94590         (close_stdout_set_status): New function.
94591         * lib/closeout.h (close_stdout_set_status): Declare.
94592
94593 2000-05-09  Jim Meyering  <meyering@lucent.com>
94594
94595         * m4/gettext.m4: Rename this...
94596         * m4/libintl.m4: ...to this.
94597
94598 2000-05-08  Jim Meyering  <meyering@lucent.com>
94599
94600         * lib/long-options.c: Don't include closeout.h.
94601         (parse_long_options): Don't call close_stdout for --version.
94602
94603 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94604
94605         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94606         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94607         2.1.3 bug.  This avoids a clash when files like regex.c define
94608         _GNU_SOURCE.
94609
94610 2000-05-06  Jim Meyering  <meyering@lucent.com>
94611
94612         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94613         (AC_REPLACE_FUNCS): Add strnlen.
94614
94615         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94616         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94617
94618         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94619         AC_SEARCH_LIBS call for nanosleep.
94620         (LIB_NANOSLEEP): Set and AC_SUBST.
94621
94622 2000-05-06  Jim Meyering  <meyering@lucent.com>
94623
94624         * lib/strnlen.c: Undefine __strnlen and strnlen.
94625         [!weak_alias]: Define __strnlen to strnlen.
94626
94627         * lib/atexit.c: New file, from libiberty.
94628
94629 2000-05-06  Jim Meyering  <meyering@lucent.com>
94630
94631         * lib/closeout.c (close_stdout_status): Also check for errors on the
94632         stderr stream.
94633
94634 2000-05-05  Jim Meyering  <meyering@lucent.com>
94635
94636         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94637         AC_SEARCH_LIBS call for clock_gettime.
94638         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94639
94640         * m4/search-libs.m4: Update from autoconf.
94641
94642         su doesn't work on Solaris 2.6.
94643         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94644         <shadow.h>.  Reported by Dragos Harabor.
94645
94646 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94647
94648         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94649         memcpy instead of xmalloc, xrealloc, path_concat.
94650         (locale_charset): Treat empty environment variables as absent.
94651         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94652
94653 2000-05-04  Jim Meyering  <meyering@lucent.com>
94654
94655         * lib/getopt.c: Update from glibc.
94656         * lib/obstack.c: Likewise.
94657         * lib/obstack.h: Likewise.
94658         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94659         file
94660
94661         * lib/regex.h: Likewise.
94662         * lib/strndup.c: Likewise.
94663         * lib/strnlen.c: New file, from glibc.
94664
94665 2000-05-03  Jim Meyering  <meyering@lucent.com>
94666
94667         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94668
94669 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94670
94671         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94672         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94673         compile-time test, rather than inspecting host and OS, to
94674         decide whether to define _LARGEFILE_SOURCE.
94675
94676 2000-05-01  Jim Meyering  <meyering@lucent.com>
94677
94678         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94679
94680         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94681         Based on a patch from Bruno Haible.
94682
94683 2000-05-01  Jim Meyering  <meyering@lucent.com>
94684
94685         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94686
94687 2000-04-29  Jim Meyering  <meyering@lucent.com>
94688
94689         * lib/path-concat.c: Declare strdup only if it's not defined.
94690         * lib/canon-host.c: Likewise.
94691
94692 2000-04-28  Jim Meyering  <meyering@lucent.com>
94693
94694         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94695         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94696         is included first, then limits.h is included by locale.h by libintl.h.
94697         From John David Anglin.
94698
94699 2000-04-25  Jim Meyering  <meyering@lucent.com>
94700
94701         * lib/makepath.c (S_IRWXUGO): Define.
94702         (make_path): Always perform explicit chmod if MODE specifies any
94703         of the `special' permission bits.  Prompted by a bug report against
94704         install from Mate Wierdl and Joost van Baal.
94705
94706 2000-04-18  Jim Meyering  <meyering@lucent.com>
94707
94708         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94709         (jm_PREREQ): Use it.
94710
94711 2000-04-18  Jim Meyering  <meyering@lucent.com>
94712
94713         * lib/README: New file.
94714
94715         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94716         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94717
94718 2000-04-17  Jim Meyering  <meyering@lucent.com>
94719
94720         Get it right :-)
94721         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94722         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94723         Suggestion from Akim Demaille.
94724
94725 2000-04-17  Jim Meyering  <meyering@lucent.com>
94726
94727         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94728         the definition of it to rpl_strftime also defined-away the system's
94729         declaration.
94730
94731 2000-04-15  Jim Meyering  <meyering@lucent.com>
94732
94733         Use `C' to denote so-called `contiguous' files, the same way
94734         that tar does.
94735         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94736         (ftypelet): Use S_ISCTG.
94737         From Michael Deutschmann.
94738
94739 2000-04-14  Jim Meyering  <meyering@lucent.com>
94740
94741         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94742         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94743         clobbered.
94744
94745 2000-04-14  Jim Meyering  <meyering@lucent.com>
94746
94747         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94748
94749 2000-04-13  Jim Meyering  <meyering@lucent.com>
94750
94751         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94752         AH_VERBATIM to insert required #ifndef into config.h.in.
94753         Suggestion from Akim Demaille.
94754
94755 2000-04-12  Jim Meyering  <meyering@lucent.com>
94756
94757         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94758         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94759         Christian Krackowizer.
94760
94761         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94762         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94763         (AC_SYS_LARGEFILE): Require.
94764         (AM_C_PROTOTYPES): Require.
94765
94766 2000-04-08  Jim Meyering  <meyering@lucent.com>
94767
94768         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94769         names don't conflict.  Reported by Eli Zaretskii.
94770
94771 2000-04-07  Jim Meyering  <meyering@lucent.com>
94772
94773         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94774         sys/types.h, to work around system header problems on AIX 3.2.5.
94775         From Bruno Haible.
94776
94777 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94778
94779         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94780         bug.  Deal with the different error behavior of Irix iconv.
94781
94782 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94783
94784         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94785         IRIX if the installer said otherwise.
94786
94787 2000-04-05  Jim Meyering  <meyering@lucent.com>
94788
94789         Portability tweaks required for ultrix4.3.
94790         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94791         (jm_CHECK_DECLS): Add getutent to the list of functions.
94792         (_jm_DECL_HEADERS): Add utmpx.h.
94793         From John David Anglin.
94794
94795         * m4/strftime.m4: Back out the 2000-04-02 change.
94796         Instead of that change, simply undefine putenv in the test program.
94797
94798 2000-04-05  Jim Meyering  <meyering@lucent.com>
94799
94800         Portability tweaks required for ultrix4.3.
94801         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94802         getutent.
94803         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94804         * lib/canon-host.c: Declare strdup.
94805         * lib/path-concat.c: Likewise.
94806         From John David Anglin.
94807
94808 2000-04-04  Jim Meyering  <meyering@lucent.com>
94809
94810         Be more DOS 8.3-friendly.
94811         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94812         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94813         * lib/Makefile.am: Reflect renaming.
94814         Reported by Eli Zaretskii.
94815
94816         Use a temporary file name that won't clash with `charset.alias'
94817         in the DOS 8.3 name space.
94818         * lib/Makefile.am (charset_tmp): Define.
94819         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94820         (uninstall-local): Likewise.
94821         Reported by Eli Zaretskii.
94822
94823 2000-04-03  Jim Meyering  <meyering@lucent.com>
94824
94825         * m4/gettext.m4: Fix typo in comment.
94826
94827         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94828         textutils/configure.in).  Suggestion from Paul Eggert.
94829         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94830
94831 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94832
94833         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94834         variable in the shell rather than using putenv, which isn't
94835         portable.  This avoids the configure-time inter-test dependency
94836         on the potentially-renamed putenv function.
94837
94838 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94839
94840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94841         before checking struct stat.st_blksize, so that
94842         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94843
94844 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94845
94846         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94847         since strftime.c uses HAVE_STRFTIME to decide whether to use
94848         the underlying strftime.
94849
94850 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94851
94852         * lib/time/strftime.c (my_strftime): Make sure we call the system
94853         strftime, not ourselves, when invoking the underlying strftime.
94854
94855 2000-03-24  Jim Meyering  <meyering@lucent.com>
94856
94857         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94858         (charset_alias): Define.
94859         (install-exec-local): Factor out common code.
94860         (uninstall-local): Split lines longer than 80.
94861         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94862         (SUFFIXES): Define.
94863         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94864         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94865
94866 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94867
94868         * lib/config.charset: Output a line containing "Packages using this
94869         file".
94870         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94871         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94872         ref-del.sed): New rules.
94873
94874 2000-03-17  Jim Meyering  <meyering@lucent.com>
94875
94876         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94877         Otherwise, include <strings.h>
94878
94879 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94880
94881         * lib/unicodeio.c (utf8_wctomb): New function.
94882         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94883         format instead of in UCS-4 with platform dependent endianness.
94884
94885 2000-03-10  Jim Meyering  <meyering@lucent.com>
94886
94887         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94888         From Marco Franzen.
94889
94890 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94891
94892         * lib/savedir.c (savedir): Work even if directory size is
94893         negative; this can happen with some screwy NFS configurations.
94894
94895 2000-03-06  Jim Meyering  <meyering@lucent.com>
94896
94897         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94898         if it's NULL (because we ran out of memory).  From Bruno Haible.
94899
94900 2000-03-05  Jim Meyering  <meyering@lucent.com>
94901
94902         * lib/localcharset.c ("path-concat.h"): Include.
94903         (get_charset_aliases): Use path_concat instead of ANSI string
94904         concatenation.
94905
94906         * lib/unicodeio.h (PARAMS): Define.
94907         Use it to guard prototype.
94908
94909 2000-03-04  Jim Meyering  <meyering@lucent.com>
94910
94911         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94912         for lib/localcharset.c.
94913
94914 2000-03-04  Jim Meyering  <meyering@lucent.com>
94915
94916         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94917         installing into it.
94918         (uninstall-local): Uncomment this rule so `make distcheck' works
94919         once again.
94920
94921         * lib/unicodeio.c (<errno.h>): Include it.
94922         (errno): Declare if not defined.
94923
94924         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94925
94926         * lib/config.charset: New version, incorporating remarks from a linux
94927         i18n mailing list.  From Bruno Haible.
94928
94929 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94930
94931         * m4/codeset.m4: New file.
94932         * m4/iconv.m4: New file.
94933         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94934
94935 2000-03-03  Jim Meyering  <meyering@lucent.com>
94936
94937         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94938
94939 2000-03-02  Jim Meyering  <meyering@lucent.com>
94940
94941         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94942         the messages come out on separate lines.
94943
94944         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94945         rather than jm_CHECK_DECLARATIONS.
94946         * m4/decl.m4: Remove now-unused file.
94947
94948         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94949         geteuid.
94950
94951 2000-03-02  Jim Meyering  <meyering@lucent.com>
94952
94953         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94954
94955 2000-03-01  Jim Meyering  <meyering@lucent.com>
94956
94957         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94958         * lib/unicodeio.c: Likewise.
94959
94960 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94961
94962         * lib/config.charset: New file.
94963         * lib/localcharset.c: New file.
94964         * lib/unicodeio.h, lib/unicodeio.c: New files.
94965         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94966         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94967         (noinst_HEADERS): Add unicodeio.h.
94968         (all-local, install-exec-local, charset.alias): New targets.
94969
94970 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94971
94972         * lib/quotearg.c (ALERT_CHAR): New macro.
94973         (quotearg_buffer_restyled): Use it.
94974
94975 2000-02-27  Jim Meyering  <meyering@lucent.com>
94976
94977         * m4/check-decl.m4: Add getenv to the list.
94978
94979 2000-02-27  Jim Meyering  <meyering@lucent.com>
94980
94981         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94982         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94983
94984         * lib/backupfile.c: Guard inclusion of stdlib.h with
94985         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94986         Declare malloc if needed.
94987
94988         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94989         `#ifndef HAVE_DECL..'
94990         now that autoconf always defines the HAVE_DECL_ symbols.
94991         * lib/human.c: Likewise.
94992         * lib/same.c: Likewise.
94993         * lib/strtoumax.c: Likewise.
94994
94995         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94996         declaration check was not run.
94997         * lib/hash.c: Likewise.
94998         * lib/human.c: Likewise.
94999         * lib/same.c: Likewise.
95000         * lib/strtoumax.c: Likewise.
95001
95002         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95003         `.', then first look up the entire `.'-containing string as a login
95004         name.
95005
95006 2000-02-23  Jim Meyering  <meyering@lucent.com>
95007
95008         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95009         in place of my hack.
95010
95011 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95012
95013         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95014         (textint): New typedef.
95015         (parser_control): Member year changed from int to textint.
95016         All uses changed.
95017         (YYSTYPE): Removed; replaced by %union with int and textint members.
95018         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95019         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95020         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95021         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95022         (date, number, to_year): Use width of number in digits, not its value,
95023         to determine whether it's a 2-digit year, or a 2-digit time.
95024         (yylex): Store number of digits of numeric tokens.
95025         Reported by John Kendall.
95026
95027         (parser_control): Changed from struct parser_control to typedef (for
95028         consistency).  All uses changed.
95029
95030         (tID): Removed; not used.
95031         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95032
95033 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95034
95035         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95036         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95037
95038 2000-02-12  Jim Meyering  <meyering@lucent.com>
95039
95040         * lib/userspec.c (ISDIGIT): Define it.
95041         (isdigit): Remove definition.
95042         (is_number): Use ISDIGIT, not isdigit.
95043         <libintl.h>: Include.
95044         (_ and N_): Define.
95045         (parse_user_spec): Mark translatable strings.
95046
95047 2000-02-10  Jim Meyering  <meyering@lucent.com>
95048
95049         With these changes, nanosleep.[ch] are finally enough like the other
95050         lib/* replacement files to compile on a few more losing systems.
95051
95052         * lib/nanosleep.h: Don't include config.h.
95053         Remove prototype from declaration of nanosleep.
95054         (PARAMS): Remove now-unneeded definition.
95055         * lib/nanosleep.c: #undef nanosleep.
95056         (rpl_nanosleep): Rename from nanosleep.
95057
95058 2000-02-10  Jim Meyering  <meyering@lucent.com>
95059
95060         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95061         gnu_nanosleep to rpl_nanosleep.
95062
95063 2000-02-09  Jim Meyering  <meyering@lucent.com>
95064
95065         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95066         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95067
95068 2000-02-08  Akim Demaille  <akim@epita.fr>
95069
95070         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95071         `[' and `]' and remove uses of `changequote'.
95072         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95073         (AC_SYS_LARGEFILE): Likewise.
95074         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95075         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95076         of changequote.
95077         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95078         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95079         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95080         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95081
95082 2000-02-05  Jim Meyering  <meyering@lucent.com>
95083
95084         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95085         Remove explicit use of AC_HEADER_TIME.  It is required by
95086         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95087         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95088         in autoconf whereby the expansion of the latter ended up preceding
95089         the expansion of its prerequisite, AC_HEADER_TIME.
95090         Reported by Volker Borchert.
95091
95092 2000-02-03  Jim Meyering  <meyering@lucent.com>
95093
95094         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95095
95096 2000-02-03  Jim Meyering  <meyering@lucent.com>
95097
95098         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95099         rather than with `#if HAVE_UTMPNAME'.
95100
95101 2000-02-02  Jim Meyering  <meyering@lucent.com>
95102
95103         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95104         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95105         Reported by Eli Zaretskii.
95106
95107 2000-02-01  Jim Meyering  <meyering@lucent.com>
95108
95109         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95110
95111 2000-01-31  Jim Meyering  <meyering@lucent.com>
95112
95113         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95114         functions.  Add the time.h and sys/time.h headers along with the
95115         AC_REQUIRE'ment of AC_HEADER_TIME.
95116
95117 2000-01-31  Jim Meyering  <meyering@lucent.com>
95118
95119         * lib/nanosleep.h (nanosleep): Guard declaration with
95120         `#if ! HAVE_DECL_NANOSLEEP'.
95121         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95122         the declaration in that vendor's sys/timers.h.
95123         Reported by Christian Krackowizer.
95124
95125         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95126         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95127         (ISPRINT): Likewise.
95128         Reported by Tom Tromey.
95129
95130 2000-01-30  Jim Meyering  <meyering@lucent.com>
95131
95132         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95133
95134         * m4/prereq.m4 (utmp_includes): Define.
95135         Check for ut_user and ut_name members in both struct utmpx
95136         and struct utmp.
95137
95138 2000-01-30  Jim Meyering  <meyering@lucent.com>
95139
95140         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95141         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95142         header files where only utmpx.ut_user is declared.
95143
95144         * lib/readutmp.h (UT_USER): Define.
95145
95146 2000-01-29  Jim Meyering  <meyering@lucent.com>
95147
95148         * m4/lib-check.m4: New file containing library-related checks from
95149         fileutils and sh-utils (textutils had none).
95150
95151 2000-01-28  Jim Meyering  <meyering@lucent.com>
95152
95153         * m4/perl.m4: Change format of warning message to look more like that
95154         from the missing script.  Suggestion from François Pinard.
95155
95156 2000-01-25  Jim Meyering  <meyering@lucent.com>
95157
95158         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95159         well as time.h in the compile check.
95160         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95161         Fix typo in cross-compiling case: s/yes/no/.
95162
95163 2000-01-23  Jim Meyering  <meyering@lucent.com>
95164
95165         * m4/jm-macros.m4: Move df-related tests here from
95166         fileutils/configure.in
95167
95168         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95169         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95170
95171         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95172         s/space/ac_fsusage_space/.
95173         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95174
95175         * m4/ftruncate.m4: New file (derived from part of
95176         fileutils/configure.in).
95177         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95178         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95179
95180         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95181         AC_SUBST these here, rather than just in sh-util/configure.in, so
95182         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95183         all the same.
95184         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95185         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95186         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95187         (AC_SUBST(POW_LIBM)): Likewise.
95188         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95189
95190 2000-01-23  Jim Meyering  <meyering@lucent.com>
95191
95192         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95193         obstack.c.
95194
95195 2000-01-22  Jim Meyering  <meyering@lucent.com>
95196
95197         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95198
95199         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95200
95201         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95202         configure.in
95203         (AC_CHECK_HEADERS): Likewise for sh-utils.
95204         (AC_CHECK_HEADERS): Likewise for textutils.
95205         Merge the three lists of headers.
95206
95207         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95208         from fileutils' configure.in.
95209
95210         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95211         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95212         check-decl.m4.
95213
95214         * m4/check-decl.m4: Use #if rather than #ifdef.
95215         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95216         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95217         (_jm_DECL_HEADERS): Define new function.
95218         (jm_CHECK_DECLARATIONS): Require it.
95219
95220 2000-01-22  Jim Meyering  <meyering@lucent.com>
95221
95222         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95223         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95224         Required for some AIX systems.  Reported by Christian Krackowizer.
95225         [TESTING] (main): New function.
95226
95227         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95228         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95229         letters.
95230
95231         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95232         iswprint.
95233
95234         * lib/strverscmp.c (ISDIGIT): Define.
95235         (strverscmp): Use ISDIGIT, not isdigit.
95236
95237 2000-01-19  Jim Meyering  <meyering@lucent.com>
95238
95239         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95240         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95241         defines `struct timespec' in <sys/time.h>
95242
95243         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95244         Thanks to Akim for explaining.
95245
95246 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95247
95248         * lib/nanosleep.c (nanosleep):
95249         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95250         POSIX.1 doesn't require SA_INTERRUPT and some systems
95251         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95252         it's been part of POSIX.1 since day 1 (in 1988).
95253
95254 2000-01-17  Jim Meyering  <meyering@lucent.com>
95255
95256         * lib/interlock: Remove unused file.  Reported by François Pinard.
95257
95258 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95259
95260         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95261         alert, backslash, formfeed, and vertical tab unnecessarily in
95262         shell quoting style.
95263
95264 2000-01-16  Jim Meyering  <meyering@lucent.com>
95265
95266         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95267         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95268         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95269         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95270
95271 2000-01-16  Jim Meyering  <meyering@lucent.com>
95272
95273         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95274         because the latter didn't work.
95275
95276 2000-01-15  Jim Meyering  <meyering@lucent.com>
95277
95278         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95279         (AC_REPLACE_FUNCS): Add memcpy and memset.
95280         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95281         Add strpbrk.
95282         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95283
95284 2000-01-12  Jim Meyering  <meyering@lucent.com>
95285
95286         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95287         (jm_PREREQ): Use it.
95288         (jm_PREREQ_READUTMP): New macro.
95289         (jm_PREREQ): Use it.
95290
95291 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95292
95293         Quote multibyte characters correctly.
95294         * m4/c-bs-a.m4: New file.
95295         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95296         (jm_PREREQ): Use it.
95297
95298 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95299
95300         * m4/uintmax_t.m4: Port to autoconf 2.13.
95301
95302 2000-01-08  Jim Meyering  <meyering@ascend.com>
95303
95304         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95305         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95306
95307 2000-01-04  Jim Meyering  <meyering@ascend.com>
95308
95309         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95310         jm_STRUCT_DIRENT_D_TYPE.
95311         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95312         jm_STRUCT_DIRENT_D_INO.
95313         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95314         jm_STRUCT_UTIMBUF.
95315         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95316         renamings.
95317         * m4/utime.m4: Likewise.
95318
95319         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95320         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95321
95322 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95323
95324         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95325         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95326
95327 2000-01-02  Jim Meyering  <meyering@ascend.com>
95328
95329         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95330         remember if this is necessary.
95331
95332 1999-12-26  Jim Meyering  <meyering@ascend.com>
95333
95334         * m4/jm-macros.m4: Use it here.
95335         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95336
95337 1999-12-23  Jim Meyering  <meyering@ascend.com>
95338
95339         * m4/jm-macros.m4: Check for clock_gettime (moved from
95340         fileutils/configure.in)
95341         Check for gettimeofday.
95342
95343 1999-12-20  Jim Meyering  <meyering@ascend.com>
95344
95345         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95346         autoconf-2.14a-1999-12-20.
95347
95348 1999-12-19  Jim Meyering  <meyering@ascend.com>
95349
95350         * m4/lstat-slash.m4: New file.
95351         * m4/jm-macros.m4: Use the new macro:
95352         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95353
95354 1999-12-07  Jim Meyering  <meyering@ascend.com>
95355
95356         * m4/perl.m4: Require that File::Compare be available, too.
95357         Too many systems seem to lack it.
95358
95359         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95360         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95361
95362 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95363
95364         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95365         problem with the QNX 4.25 shell, which doesn't propagate exit
95366         status of failed commands inside shell assignments.
95367
95368 1999-11-17  Jim Meyering  <meyering@ascend.com>
95369
95370         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95371
95372 1999-11-07  Jim Meyering  <meyering@ascend.com>
95373
95374         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95375
95376 1999-11-06  Jim Meyering  <meyering@ascend.com>
95377
95378         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95379         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95380
95381 1999-11-05  Jim Meyering  <meyering@ascend.com>
95382
95383         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95384         configure.in of textutils, fileutils, and sh-utils into this one
95385         (shared between those packages) file.
95386         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95387         AC_STRUCT_ST_BLKSIZE.
95388
95389 1999-11-03  Jim Meyering  <meyering@ascend.com>
95390
95391         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95392         of AC_CHECK_TYPE checks includes unistd.h.
95393         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95394         Suggestion from Akim Demaille.
95395
95396 1999-10-30  Jim Meyering  <meyering@ascend.com>
95397
95398         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95399         m4-quoted string.
95400         * m4/ls-mntd-fs.m4: Likewise.
95401         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95402         * m4/jm-winsz1.m4: Likewise.
95403
95404         * m4/const.m4: Remove file, since the fix made it into the experimental
95405         version of autoconf.
95406         * m4/mktime.m4: Likewise.
95407
95408         * m4/check-type.m4: Remove file, now that the latest version of
95409         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95410
95411         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95412         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95413         AC_CHECK_TYPE.
95414
95415 1999-10-04  Jim Meyering  <meyering@ascend.com>
95416
95417         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95418
95419 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95420
95421         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95422         2.95.1 bug with HP-UX 10.20.
95423
95424 1999-09-17  Jim Meyering  <meyering@ascend.com>
95425
95426         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95427         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95428         due to missing strdup (against sh-utils-2.0).
95429
95430 1999-08-29  Jim Meyering  <meyering@ascend.com>
95431
95432         * m4/jm-macros.m4: Require jm_BISON.
95433         * m4/bison.m4: New file.
95434
95435 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95436
95437         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95438         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95439
95440 1999-08-05  Jim Meyering  <meyering@ascend.com>
95441
95442         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95443         to avoid conflicts with `conftest' on 8+3 filesystems.
95444         Suggestion from Eli Zaretskii.
95445
95446 1999-08-04  Jim Meyering  <meyering@ascend.com>
95447
95448         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95449         fileutils and sh-utils (textutils's getline test was inadequate).
95450         (AM_FUNC_GETLINE): Run this test.
95451         (AC_CHECK_FUNCS): Check for getdelim.
95452         Reported by Bob Proulx.
95453
95454 1999-08-02  Jim Meyering  <meyering@ascend.com>
95455
95456         * m4/jm-macros.m4: Add a comment.
95457
95458 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95459
95460         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95461         <inttypes.h> defines strtoumax as a macro (and not as a
95462         function).
95463
95464 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95465
95466         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95467         that we can shift, multiply and divide unsigned long long
95468         values; Ultrix cc can't do it.
95469
95470 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95471
95472         * m4/mktime.m4: New file, which is a preview of what should appear
95473         in the next public autoconf release.
95474
95475 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95476
95477         * m4/lfs.m4: Remove this file.
95478         * m4/largefile.m4: New file.  It contains the old contents of
95479         lfs.m4, except that all names with prefix AC_LFS have been
95480         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95481         compatible with future autoconf versions.  Also, some minor m4
95482         quoting problems have been fixed.
95483
95484 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95485
95486         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95487         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95488         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95489         and simplify the shell code.
95490
95491 1999-08-01  Jim Meyering  <meyering@ascend.com>
95492
95493         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95494         m4.
95495
95496 1999-07-20  Jim Meyering  <meyering@ascend.com>
95497
95498         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95499
95500 1999-07-15  Jim Meyering  <meyering@ascend.com>
95501
95502         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95503
95504 1999-05-22  Jim Meyering  <meyering@ascend.com>
95505
95506         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95507
95508 1999-05-20  Jim Meyering  <meyering@ascend.com>
95509
95510         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95511         Add a colon after each `then' in case $4 is empty.
95512
95513 1999-05-16  Jim Meyering  <meyering@ascend.com>
95514
95515         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95516
95517 1999-05-10  Jim Meyering  <meyering@ascend.com>
95518
95519         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95520
95521         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95522         AC_FUNC_MKTIME.
95523
95524 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95525
95526         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95527
95528 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95529
95530         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95531         not CPPFLAGS, so that linking works correctly in IRIX.
95532
95533 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95534
95535         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95536
95537 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95538
95539         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95540         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95541         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95542         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95543         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95544
95545         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95546
95547 1999-04-20  Jim Meyering  <meyering@ascend.com>
95548
95549         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95550         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95551         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95552
95553 1999-04-18  Jim Meyering  <meyering@ascend.com>
95554
95555         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95556         * m4/jm-macros.m4: Use it.
95557
95558 1999-04-06  Jim Meyering  <meyering@ascend.com>
95559
95560         * m4/strftime.m4: Remove test for %f.
95561
95562 1999-03-29  Jim Meyering  <meyering@ascend.com>
95563
95564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95565         superset of the AC_TYPE_* checks in the textutils, fileutils,
95566         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95567         AC_TYPE_PID_T.
95568
95569 1999-03-28  Jim Meyering  <meyering@ascend.com>
95570
95571         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95572         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95573         replaced e.g., in the *.sh files of the sh-utils.
95574
95575 1999-03-20  Jim Meyering  <meyering@ascend.com>
95576
95577         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95578         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95579         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95580
95581 1999-03-19  Jim Meyering  <meyering@ascend.com>
95582
95583         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95584
95585 1999-03-12  Jim Meyering  <meyering@ascend.com>
95586
95587         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95588
95589 1999-03-07  Jim Meyering  <meyering@ascend.com>
95590
95591         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95592         declared.
95593
95594 1999-02-17  Jim Meyering  <meyering@ascend.com>
95595
95596         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95597         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95598
95599 1999-02-07  Jim Meyering  <meyering@ascend.com>
95600
95601         * m4/group-member.m4: New file -- extracted from sh-utils'
95602         configure.in.
95603
95604         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95605         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95606
95607 1999-02-06  Jim Meyering  <meyering@ascend.com>
95608
95609         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95610         * m4/fnmatch.m4: Likewise.
95611         * m4/getgroups.m4: Likewise.
95612         * m4/lstat.m4: Likewise.
95613         * m4/malloc.m4: Likewise.
95614         * m4/putenv.m4: Likewise.
95615         * m4/realloc.m4: Likewise.
95616         * m4/regex.m4: Likewise.
95617         * m4/stat.m4: Likewise.
95618         * m4/strftime.m4: Likewise.
95619         Suggestion from Alain Magloire.
95620
95621         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95622         * m4/fnmatch.m4: Likewise.
95623         * m4/getgroups.m4: Likewise.
95624         * m4/getline.m4: Likewise.
95625         * m4/lstat.m4: Likewise.
95626         * m4/malloc.m4: Likewise.
95627         * m4/memcmp.m4: Likewise.
95628         * m4/putenv.m4: Likewise.
95629         * m4/realloc.m4: Likewise.
95630         * m4/regex.m4: Likewise.
95631         * m4/stat.m4: Likewise.
95632         * m4/strftime.m4: Likewise.
95633         Suggestion from Alain Magloire.
95634
95635         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95636         an argument.
95637
95638         * m4/regex.m4: Add a run-time Test for proper operation of
95639         re_compile_pattern.
95640
95641 1999-01-31  Jim Meyering  <meyering@ascend.com>
95642
95643         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95644
95645 1999-01-30  Jim Meyering  <meyering@ascend.com>
95646
95647         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95648
95649         * m4/jm-mktime.m4: Make this a wrapper around the official
95650         AM_FUNC_MKTIME rather than my private copy, now that the official one
95651         is up to date.
95652         * m4/mktime.m4: Remove file.
95653
95654         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95655         * m4/uptime.m4: Likewise.
95656         * m4/uintmax_t.m4: Likewise.
95657
95658 1999-01-28  Jim Meyering  <meyering@ascend.com>
95659
95660         * m4/jm-macros.m4: Use jm_AFS.
95661         * m4/afs.m4: New file (from fileutils' configure.in).
95662
95663         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95664         * m4/chown.m4: Likewise.
95665         * m4/d-ino.m4: Likewise.
95666         * m4/d-type.m4: Likewise.
95667         * m4/fnmatch.m4: Likewise.
95668         * m4/getgroups.m4: Likewise.
95669         * m4/gettext.m4: Likewise.
95670         * m4/jm-mktime.m4: Likewise.
95671         * m4/jm-winsz2.m4: Likewise.
95672         * m4/lcmessage.m4: Likewise.
95673         * m4/ls-mntd-fs.m4: Likewise.
95674         * m4/malloc.m4: Likewise.
95675         * m4/memcmp.m4: Likewise.
95676         * m4/putenv.m4: Likewise.
95677         * m4/realloc.m4: Likewise.
95678         * m4/st_mtim.m4: Likewise.
95679         * m4/strftime.m4: Likewise.
95680
95681 1999-01-16  Jim Meyering  <meyering@ascend.com>
95682
95683         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95684         (ARGMATCH_DIE_DECL): Define.
95685
95686 1999-01-12  Jim Meyering  <meyering@ascend.com>
95687
95688         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95689         Reported by Lars Hecking.
95690
95691 1999-01-10  Jim Meyering  <meyering@ascend.com>
95692
95693         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95694         gross kludge.
95695         * m4/inttypes_h.m4: Likewise.
95696         * m4/lstat.m4: Likewise.
95697         * m4/malloc.m4: Likewise.
95698         * m4/readdir.m4: Likewise.
95699         * m4/realloc.m4: Likewise.
95700         * m4/st_dm_mode.m4: Likewise.
95701         * m4/stat.m4: Likewise.
95702         * m4/utimbuf.m4: Likewise.
95703         * m4/utimes.m4: Likewise.
95704
95705         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95706         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95707         comments in config.h.in are meaningful.
95708
95709         * m4/jm-macros.m4: Require autoconf-2.13 here.
95710
95711         * m4/regex.m4: By default, don't use the included regex.c on systems
95712         with glibc 2.  Suggestion from Uli Drepper.
95713
95714 1999-01-02  Jim Meyering  <meyering@ascend.com>
95715
95716         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95717
95718 1998-12-18  Jim Meyering  <meyering@ascend.com>
95719
95720         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95721         Based on a suggestion from Lars Hecking.
95722
95723 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95724
95725         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95726
95727 1998-11-16  Jim Meyering  <meyering@ascend.com>
95728
95729         * m4/lfs.m4: Double-quote the `uname...` expression.
95730
95731 1998-11-14  Jim Meyering  <meyering@ascend.com>
95732
95733         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95734         * m4/stat.m4: Likewise.
95735
95736 1998-11-03  Jim Meyering  <meyering@ascend.com>
95737
95738         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95739         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95740
95741 1998-10-18  Jim Meyering  <meyering@ascend.com>
95742
95743         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95744
95745 1998-10-17  Jim Meyering  <meyering@ascend.com>
95746
95747         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95748         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95749         calls for those previously hard-coded headers.  Instead, take a new
95750         parameter.
95751         (jm_CHECK_DECLARATIONS): Reflect interface change.
95752         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95753         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95754
95755         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95756
95757 1998-10-14  Jim Meyering  <meyering@ascend.com>
95758
95759         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95760         instead of "TZ=America/Vancouver".  From Paul Eggert.
95761
95762 1998-10-11  Jim Meyering  <meyering@ascend.com>
95763
95764         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95765         This adds a test for a recently added compatibility fix for mktime.c.
95766         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95767
95768 1998-09-27  Jim Meyering  <meyering@ascend.com>
95769
95770         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95771
95772         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95773         ../configure.in, including a change from Gordon Matzigkeit to allow
95774         cross-compiling for the Hurd.
95775
95776         * m4/glibc.m4: New file/macro to test for the GNU C Library
95777         versions 1 and 2.  From Gordon Matzigkeit.
95778         Indent.
95779
95780 1998-09-21  Jim Meyering  <meyering@ascend.com>
95781
95782         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95783
95784 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95785
95786         Port nanosecond-resolution times to UnixWare 2.1.2 and
95787         pedantic Solaris 2.6.
95788
95789         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95790         AC_STRUCT_ST_MTIM.
95791         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95792         Generate name of ns member, instead of just 1 or undef.
95793         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95794
95795 1998-08-15  Jim Meyering  <meyering@ascend.com>
95796
95797         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95798         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95799         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95800         instead of jm_TYPE_SSIZE_T.
95801
95802 1998-08-12  Jim Meyering  <meyering@ascend.com>
95803
95804         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95805
95806 1998-08-02  Jim Meyering  <meyering@ascend.com>
95807
95808         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95809         in acconfig.h manually.
95810
95811 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95812
95813         * m4/st_mtim.m4: New file.
95814
95815 1998-07-28  Jim Meyering  <meyering@ascend.com>
95816
95817         * m4/utimes.m4: Undef stat.
95818
95819 1998-07-25  Jim Meyering  <meyering@ascend.com>
95820
95821         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95822         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95823
95824 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95825
95826         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95827         uid and gid actually remain unchanged.
95828
95829 1998-07-07  Jim Meyering  <meyering@ascend.com>
95830
95831         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95832
95833 1998-07-04  Jim Meyering  <meyering@ascend.com>
95834
95835         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95836         to prove that this macro can be used in packages without regex.c.
95837
95838 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95839
95840         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95841         is to be used.
95842
95843 1998-07-03  Jim Meyering  <meyering@ascend.com>
95844
95845         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95846
95847         * m4/gettext.m4: New file -- from gettext-0.10.35.
95848         * m4/lcmessage.m4: Likewise.
95849         * m4/progtest.m4: Likewise.
95850
95851         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95852         * m4/jm-macros.m4: Require the new macro.
95853
95854 1998-06-29  Jim Meyering  <meyering@ascend.com>
95855
95856         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95857         for the definition of NGROUPS (used in a system header included
95858         by sys/mount.h).
95859
95860 1998-06-28  Jim Meyering  <meyering@ascend.com>
95861
95862         * m4/ls-mntd-fs.m4: New file.
95863         * m4/fstypename.m4: New file.
95864
95865         * m4/jm-macros.m4: Require the new macro.
95866         * m4/jm-glibc-io.m4: New file.
95867
95868 1998-05-19  Jim Meyering  <meyering@ascend.com>
95869
95870         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95871         * m4/lchown.m4: New file.
95872
95873         * m4/Makefile.am.in: New file.
95874         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95875
95876 1998-05-14  Jim Meyering  <meyering@ascend.com>
95877
95878         * m4/Makefile.am (EXTRA_DIST): Add them.
95879         * m4/jm-macros.m4: New file.
95880         * m4/utimbuf.m4: New file.
95881
95882 1998-05-12  Jim Meyering  <meyering@ascend.com>
95883
95884         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95885
95886 1998-05-11  Jim Meyering  <meyering@ascend.com>
95887
95888         * m4/isc-posix.m4: New file.
95889
95890 1998-05-10  Jim Meyering  <meyering@ascend.com>
95891
95892         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95893
95894 1998-05-09  Jim Meyering  <meyering@ascend.com>
95895
95896         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95897         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95898         with automake.
95899
95900         * m4/ssize_t.m4: New file.
95901         * m4/mktime.m4: Remove file -- the new automake has this now.
95902
95903 1998-04-26  Jim Meyering  <meyering@ascend.com>
95904
95905         * m4/assert.m4: New file.
95906         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95907
95908 1998-04-05  Jim Meyering  <meyering@ascend.com>
95909
95910         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95911         (jm_PREREQ): Use it here.
95912
95913 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95914
95915         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95916         in acconfig.h.
95917
95918 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95919
95920         * m4/prereq.m4: New file.
95921         * m4/error.m4: New file.
95922         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95923
95924 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95925
95926         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95927         cache-check for the same variable -- that defeated the purpose of
95928         the test; the test program was never run.  This was a problem only
95929         on systems with losing getline functions -- HP-UX 10.20 is one.
95930         Reported by Bjorn Helgaas.
95931
95932 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95933
95934         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95935
95936 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95937
95938         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95939
95940         * m4/const.m4: New file.  Use an initializer in this declaration
95941         typedef int charset[2]; const charset x;
95942         Reported by Bob Glickstein.
95943
95944 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95945
95946         * m4/chown.m4: Fix reversed types on -1 args to chown.
95947         From Kaveh Ghazi.
95948
95949 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95950
95951         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95952         Add lseek and memchr.
95953
95954         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95955         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95956         have a 20-character limit on names.
95957
95958 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95959
95960         * m4/inttypes_h.m4: New file.
95961         * m4/uintmax_t.m4: New file.
95962         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95963
95964
95965         -----
95966
95967         Local Variables:
95968         coding: utf-8
95969         End:
95970
95971         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95972
95973         Copying and distribution of this file, with or without
95974         modification, are permitted provided the copyright notice
95975         and this notice are preserved.